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

KV4-RL:通过INT4 KV缓存量化解锁RLVR的更快异步rollout

KV4-RL: Unlocking Faster Asynchronous Rollouts for RLVR with INT4 KV Cache Quantization

KAIST(韩国科学技术院);NAVER Cloud(NAVER云);AITRICS

Sihwan Park, Sung-Yub Kim, Doohyuk Jang, Eunho Yang

AI总结:

针对RLVR异步rollout的KV缓存量化问题,提出KV4-RL方法,结合INT4 KV量化与选择性INT8保护,在Qwen3模型训练中实现显著加速且精度损失极小。

摘要:

异步rollout通过减少长尾生成期间的资源未利用情况,提升了带可验证奖励的强化学习(RLVR)的效率。持续的并发还会将上下文处理集中到更少的解码步骤中,增加了每一步的KV工作负载。我们对这种“KV集中”现象进行了表征,发现在匹配工作负载的对比中,KV缓存量化比仅权重量化、权重激活量化能带来大得多的加速效果。不过,即使采用了token级截断重要性采样(TIS),INT4 KV rollout仍可能降低学习效果。我们提出了KV4-RL,它将无需校准的INT4 KV量化与注意力汇点及近期上下文的选择性INT8保护相结合。对有限数量位置的保护减少了采样器不匹配,同时保留了INT4带来的大部分加速效果。在Qwen3-8B-Base GRPO训练的400次迭代中,与BF16 rollout相比,KV4-RL实现了1.80倍的累计rollout加速和1.27倍的累计全迭代加速,在最后50次迭代中达到了1.97倍的rollout加速。在常用的BF16评估器下,对于Qwen3-4B-Base和Qwen3-8B-Base,其最终六项基准的平均准确率与BF16 rollout训练的差距在0.5个百分点以内。

英文摘要:

Asynchronous rollout improves the efficiency of reinforcement learning with verifiable rewards (RLVR) by reducing under-utilization during long-tail generation. Sustained concurrency also concentrates context processing into fewer decode steps, increasing the KV workload per step. We characterize this \emph{KV concentration} and find that KV cache quantization delivers substantially greater acceleration than weight-only and weight-activation quantization in our matched-workload comparisons. However, INT4 KV rollout can degrade learning even with token-level truncated importance sampling (TIS). We propose \emph{KV4-RL}, which combines calibration-free INT4 KV quantization with selective INT8 protection of attention sinks and recent context. Protecting a bounded number of positions reduces sampler mismatch while retaining most of the speedup from INT4. Across 400 iterations of Qwen3-8B-Base GRPO training, KV4-RL achieves $1.80\times$ cumulative rollout speedup and $1.27\times$ cumulative full-iteration speedup over BF16 rollout, reaching $1.97\times$ rollout speedup over the final 50 iterations. Under a common BF16 evaluator, its final six-benchmark mean accuracy is within 0.5 percentage points of BF16-rollout training for both Qwen3-4B-Base and Qwen3-8B-Base.

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

↑