基础设施 4.0 · 优秀 2026-10-23 · 论文

NgramRL: Accelerating RL Post-Training for Structured Generation via Rollout-Aware N-gram Specul...

RL 后训练成本大头是自回归 rollout 生成(可占训练时间 70%+),现有投机解码不适配:模型 drafter 占显存且随策略漂移,免模型方法忽略跨 epoch 重复NgramRL 用同一 prompt 近期 rollout 历史构建 per-prompt n-gram 草稿源:无辅助模型无需训练无 GPU 常驻状态,目标模型验证保证 rollout 分布不变,自适应 fan-out 预取器预测验证结果三类负载上热缓存态每次目标前向提交 3.60-7.77 token,最高 1.99 倍于 SuffixDecoding7.0 倍于 prompt-lookup;Spider 上预取覆盖 96.6% 结局,rollout 吞吐 1.38 倍

打开原文回到归档

NgramRL: Accelerating RL Post-Training for Structured Generation via Rollout-Aware N-gram Speculative Decoding

  • ID: 5126c05b
  • 原文链接: https://arxiv.org/abs/2610.32881
  • PDF: https://arxiv.org/pdf/2610.32881v1
  • 作者: Nilesh Prasad Pandey, Jangseon Park, Jason Kong, Onat Gungor, Tajana Rosing
  • 日期: 2026-10-23
  • 更新: 2026-10-23
  • 分类: infra
  • 来源类型: paper
  • 标签: rl-post-training, speculative-decoding, rollout-acceleration, efficiency
  • 质量评分: 4/5
  • 抓取时间: 2026-10-27T04:27:03Z

中文导读

RL 后训练的成本大头是自回归 rollout 生成,可占训练时间 70% 以上;现有投机解码不适配这个场景:模型 drafter 占 GPU 显存且会随策略演进而失配,已有免模型方法又没有利用跨 epoch 的重复。NgramRL 的观察是同一 prompt 的近期 rollout 本身就是高质量、自更新的草稿源,据此构建 per-prompt n-gram drafter:无辅助模型、无需训练、无常驻显存状态,target 模型验证保证 rollout 分布不变;再加一个自适应 fan-out prefetcher 预测验证结果(接受长度 j 与续写 token b),用因果预算分配器把 prefetch 集中到高概率结果。两个模型家族、三类推理与结构化生成负载上,warm-cache 下每 target 前向提交 3.60-7.77 个 token,最高为 SuffixDecoding 的 1.99 倍、prompt-lookup decoding 的 7 倍;Spider 上 prefetcher 以候选预算 16 覆盖 96.6% 的结果,rollout 吞吐提升 1.38 倍,接近 1.40 倍的 overlap 上限。

为什么值得关注

rollout 生成占 RL 训练七成时间,用历史 rollout 自举草稿源是一条零额外模型的加速路径:对做 RL 后训练的团队,这是不改训练配方就能拿到的吞吐,且结构化生成负载正是 agent 工作流的常见形态。

关键信息

  • 论文标题: NgramRL: Accelerating RL Post-Training for Structured Generation via Rollout-Aware N-gram Speculative Decoding
  • 作者: Nilesh Prasad Pandey, Jangseon Park, Jason Kong, Onat Gungor, Tajana Rosing
  • arXiv: https://arxiv.org/abs/2610.32881
  • 发布时间: 2026-10-23
  • arXiv 分类: cs.AI
  • 关联标签: rl-post-training, speculative-decoding, rollout-acceleration, efficiency

English Abstract

Reinforcement learning (RL) post-training improves the reasoning capabilities of large language models, but its cost is dominated by autoregressive rollout generation, which can exceed 70% of training time. Existing speculative-decoding methods are poorly suited to this setting: model-based drafters consume scarce GPU memory and may become misaligned as the policy evolves, while existing model-free methods do not explicitly exploit repetition across training epochs. We observe that recent rollouts of the same prompt provide a high-quality, self-updating draft source. Based on this insight, we propose NgramRL, a per-prompt n-gram drafter constructed from bounded recent rollout history. NgramRL requires no auxiliary model, drafter training, or persistent GPU-resident drafter state, while target-model verification preserves the rollout distribution. To hide CPU cache lookup and scheduling, we further introduce an adaptive fan-out prefetcher that predicts likely verification outcomes (j, b), consisting of the accepted draft length j and target-emitted continuation token b. A causal budget allocator concentrates prefetches on high-probability outcomes, while uncovered outcomes fall back to sequential lookup without changing committed tokens. Across two model families and three reasoning and structured-generation workloads, NgramRL commits 3.60-7.77 tokens per target-model forward in the warm-cache regime, up to 1.99x more than SuffixDecoding and 7.0x more than prompt-lookup decoding. On Spider, the prefetcher covers 96.6% of Qwen3-8B outcomes at a candidate budget of 16 and improves measured rollout throughput by 1.38x over synchronous NgramRL, approaching its 1.40x overlap ceiling.

原文摘录 (Excerpts)

its cost is dominated by autoregressive rollout generation, which can exceed 70% of training time
NgramRL commits 3.60-7.77 tokens per target-model forward in the warm-cache regime, up to 1.99x more than SuffixDecoding and 7.0x more than prompt-lookup decoding

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取的 arXiv 元数据与摘要生成(2026-10-27 Asia/Shanghai);导读与价值判断锚定在论文摘要、作者、日期与分类信息上,未补充摘要之外的实验细节。