arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.13202cs.LGcs.CL
收藏

S³R:通过自稀疏投机解码实现快速且可靠的强化学习滚动生成

S$^3$R: Fast and Faithful RL Rollouts via Self-Sparse Speculative Decoding

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))

Yuhang He, Hongyu Ge, Zihan Lin, Siyi Liu, Yongqi Zhang

AI总结:

S³R通过自稀疏投机解码,在不改变策略优化响应组的前提下,减少RLVR的KV缓存流量,提升训练吞吐量并保持任务稳定性,在Qwen3模型上实现1.39倍、1.35倍的训练吞吐量提升。

摘要:

针对带可验证奖励的长上下文强化学习(RLVR)的快速滚动生成,需在不改变策略优化所用响应组的前提下减少KV缓存流量。在我们分析的RLVR工作负载中,注意力占自回归解码内核时间的72%至76%。稀疏注意力可减少这些读取操作,但直接从稀疏策略采样会改变学习所用的响应组。对于组相对优化,我们证明即使是精确的响应权重重分配,通常也无法恢复预期的密集策略更新,因为每个响应的优势取决于组内其他成员的奖励。我们提出自稀疏投机滚动(S³R),其使用稀疏注意力生成候选token,再通过全注意力验证和精确投机采样生成响应;草稿生成与验证共享同一策略参数,无需训练或更新单独的草稿生成器,所得响应组遵循密集策略分布。在S³R框架下,我们明确了加速条件及草稿生成与验证的成本,发现密集验证仍需完整的历史KV缓存,因此需采用KV感知调度器限制KV缓存的重复换出与恢复,同时保持滚动并行性。在采用激进稀疏草稿预算的匹配消融实验中,S³R可维持稳定训练,而带训练侧修正的直接稀疏采样则变得不稳定;在长上下文数学推理任务上,S³R在Qwen3模型上实现了自回归滚动端到端训练吞吐量的1.39倍、1.35倍,且任务表现相当。

英文摘要:

Fast rollout generation for long-context reinforcement learning with verifiable rewards (RLVR) requires reducing KV-cache traffic without changing the response groups used for policy optimization. In our profiled RLVR workloads, attention accounts for 72--76\% of autoregressive decoding kernel time. Sparse attention reduces these reads, but sampling directly from a sparse policy changes the response groups used for learning. For group-relative optimization, we show that even exact response-wise reweighting does not generally recover the expected dense-policy update because the advantage of each response depends on the rewards of other group members. We propose Self-Sparse Speculative Rollouts (S$^3$R). It uses sparse attention to propose tokens, then generates responses through full-attention verification and exact speculative sampling. Drafting and verification share the same policy parameter, eliminating the need to train or update a separate drafter. The resulting response groups follow the dense-policy distribution. Under S$^3$R, we characterize speedup conditions and the costs of drafting and verification. We found that dense verification still requires the complete historical KV cache. A KV-aware scheduler therefore limits KV-cache repeated offloading and restoration while maintaining rollout parallelism. % OR thrashing In a matched ablation with an aggressive sparse drafting budget, S$^3$R maintains stable training while direct sparse sampling with training-side correction becomes unstable. On long-context mathematical reasoning, S$^3$R achieves $1.39\times~1.35\times$ the end-to-end training throughput of autoregressive rollouts on Qwen3 model, with comparable task performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑