重用FLOPs:通过条件化非常离策略前缀来扩展RL在困难问题上的应用
Reuse your FLOPs: Scaling RL on Hard Problems by Conditioning on Very Off-Policy Prefixes
AI总结:
通过条件化离策略前缀提升RL在困难问题上的学习效率,实现更快的训练奖励和更高的最终奖励。
摘要:
典型的用于LLM推理的强化学习(RL)方法在处理困难问题时会浪费计算资源,因为在这些问题中正确的在线轨迹很少,策略梯度消失,学习停滞。为了提高RL的效率,我们考虑重用旧的采样FLOPs(来自先前的推理或RL训练)以离策略轨迹的形式。标准的离策略方法通过离策略数据进行监督,导致在RL优化过程中出现不稳定性。我们引入了PrefixRL,其中我们基于成功离策略轨迹的前缀进行条件化,并运行在线RL来完成它们,从而绕过离策略不稳定性。PrefixRL通过调节离策略前缀长度来增强在困难问题上的学习信号。我们证明了PrefixRL的目标不仅与标准RL目标一致,而且更加样本高效。实验发现,仅在前缀问题上训练可以泛化到分布外的非前缀表现,学习到的策略往往与前缀中的不同。在我们的实验中,我们通过拒绝采样使用基础模型来获取离策略轨迹,形成自我改进的循环。在困难推理问题上,PrefixRL达到与最强基线(在离策略数据上进行SFT然后RL)相同的训练奖励速度快2倍,即使考虑了初始拒绝采样所花费的计算资源,并且最终奖励增加了3倍。这些收益转移到了保留的基准测试中,当离策略轨迹来源于不同模型家族时,PrefixRL仍然有效,验证了其在实际应用中的灵活性。
英文摘要:
Typical reinforcement learning (RL) methods for LLM reasoning waste compute on hard problems, where correct on-policy traces are rare, policy gradients vanish, and learning stalls. To bootstrap more efficient RL, we consider reusing old sampling FLOPs (from prior inference or RL training) in the form of off-policy traces. Standard off-policy methods supervise against off-policy data, causing instabilities during RL optimization. We introduce PrefixRL, where we condition on the prefix of successful off-policy traces and run on-policy RL to complete them, side-stepping off-policy instabilities. PrefixRL boosts the learning signal on hard problems by modulating the difficulty of the problem through the off-policy prefix length. We prove that the PrefixRL objective is not only consistent with the standard RL objective but also more sample efficient. Empirically, we discover back-generalization: training only on prefixed problems generalizes to out-of-distribution unprefixed performance, with learned strategies often differing from those in the prefix. In our experiments, we source the off-policy traces by rejection sampling with the base model, creating a self-improvement loop. On hard reasoning problems, PrefixRL reaches the same training reward 2x faster than the strongest baseline (SFT on off-policy data then RL), even after accounting for the compute spent on the initial rejection sampling, and increases the final reward by 3x. The gains transfer to held-out benchmarks, and PrefixRL is still effective when off-policy traces are derived from a different model family, validating its flexibility in practical settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。