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

BubbleSpec: 将长尾气泡转化为投机性回滚草稿以同步强化学习

BubbleSpec: Turning Long-Tail Bubbles into Speculative Rollout Drafts for Synchronous Reinforcement Learning

Shanghai Jiao Tong University(上海交通大学)

Yuhang Xu, Kaibin Tian, Yang Tian, Zhice Yang, Yifeng Yu, Yan Li, Shengzhong Liu, Fan Wu, Guihai Chen

AI总结:

本文提出BubbleSpec框架,通过利用更快rank的空闲时间预生成回滚结果,提升同步强化学习的效率,减少50%的解码步骤并提高1.8倍的回滚吞吐量。

摘要:

强化学习(RL)已成为提升大语言模型(LLMs)性能的基石。然而,其回滚阶段存在显著的效率瓶颈,主要源于数据并行排名中的长尾气泡,特别是在长上下文场景中,更快的GPU在等待滞后者时处于空闲状态。现有解决方案,如部分回滚或异步RL,通过牺牲算法的严格同步性质来缓解这些气泡。相反,我们提出BubbleSpec,一种新的框架,加速RL回滚同时严格保持数学精确性。不同于尝试消除气泡,BubbleSpec利用这些气泡。我们利用更快rank的空闲时间窗口,预先生成后续步骤的回滚结果,作为投机解码的草稿。与以往依赖历史epoch相似性和预热的投机方法不同,BubbleSpec不依赖数据集大小,从训练开始即可提供即时加速。广泛评估表明,BubbleSpec将解码步骤减少50%,并提高回滚吞吐量高达1.8倍。关键的是,BubbleSpec与各种RL框架和策略无缝兼容,因为它维持了RL算法的严格同步性质。

英文摘要:

Reinforcement Learning (RL) has become a cornerstone for improving the performance of Large Language Models (LLMs). However, its rollout phase constitutes a significant efficiency bottleneck, mainly arising from the long-tail bubbles across data parallel ranks, particularly in long-context scenarios where faster GPUs remain idle while waiting for stragglers. Existing solutions, such as partial rollout or asynchronous RL, mitigate these bubbles by compromising the algorithm's strict synchronous nature. Instead, we propose BubbleSpec, a novel framework that accelerates RL rollouts while strictly keeping the mathematical exactness. Instead of attempting to eliminate bubbles, BubbleSpec exploits them. We exploit the idle time windows of faster ranks to pre-generate rollout results for subsequent steps, serving as drafts for speculative decoding. Unlike prior speculative methods that rely on historical epoch similarity and warm-ups, BubbleSpec is agnostic to dataset size and provides immediate acceleration from the onset of training. Extensive evaluations demonstrate that BubbleSpec reduces decoding steps by 50% and increases rollout throughput by up to 1.8x. Critically, BubbleSpec is seamlessly compatible with various RL frameworks and strategies as it sustains the strict synchronous property of RL algorithms.

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

↑