RLEP:用于LLM推理的基于经验回放的强化学习
RLEP: Reinforcement Learning with Experience Replay for LLM Reasoning
AI总结:
本文提出RLEP两阶段强化学习框架,通过收集并回放已验证的高质量推理轨迹来优化模型,有效避免无效探索,在Qwen2.5-Math-7B上以更少更新次数实现更快收敛并显著提升了多项数学基准的最终准确率。
摘要:
针对大型语言模型的强化学习(RL)是一项极其耗能的任务:训练过程可能不稳定,且策略可能会逐渐偏离其预训练权重。我们提出了RLEP——Reinforcement Learning with Experience rePlay(基于经验回放的强化学习),这是一个两阶段框架,首先收集已验证的轨迹,随后在后续训练中对其进行回放。在每次更新步骤中,策略会在混合了新生成的rollouts与这些回放成功经验的mini-batches上进行优化。通过回放高质量样本,RLEP引导模型避开无效探索,将学习聚焦于有前景的推理路径,从而实现更快的收敛速度和更强的最终性能。在Qwen2.5-Math-7B基础模型上,RLEP以显著更少的更新次数达到基线峰值准确率,并最终超越基线,将AIME-2024上的准确率从38.2%提升至39.9%,AIME-2025上的准确率从19.8%提升至22.3%,AMC-2023上的准确率从77.0%提升至82.2%。我们的代码、数据集和检查点已在https://github.com/Kwai-Klear/RLEP公开发布,以促进可复现性和进一步研究。
英文摘要:
Reinforcement learning (RL) for large language models is an energy-intensive endeavor: training can be unstable, and the policy may gradually drift away from its pretrained weights. We present \emph{RLEP}\, -- \,Reinforcement Learning with Experience rePlay\, -- \,a two-phase framework that first collects verified trajectories and then replays them during subsequent training. At every update step, the policy is optimized on mini-batches that blend newly generated rollouts with these replayed successes. By replaying high-quality examples, RLEP steers the model away from fruitless exploration, focuses learning on promising reasoning paths, and delivers both faster convergence and stronger final performance. On the Qwen2.5-Math-7B base model, RLEP reaches baseline peak accuracy with substantially fewer updates and ultimately surpasses it, improving accuracy on AIME-2024 from 38.2% to 39.9%, on AIME-2025 from 19.8% to 22.3%, and on AMC-2023 from 77.0% to 82.2%. Our code, datasets, and checkpoints are publicly available at https://github.com/Kwai-Klear/RLEP to facilitate reproducibility and further research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。