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

Logic-RL:通过基于规则的强化学习释放大语言模型推理能力

Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learning

Microsoft Research Asia(微软亚洲研究院);Ubiquant;Independent(独立研究者)

Tian Xie, Zitian Gao, Qingnan Ren, Haoming Luo, Yuqian Hong, Bryan Dai, Joey Zhou, Kai Qiu, Zhirong Wu, Chong Luo

AI总结:

本研究受DeepSeek-R1启发,提出基于规则的强化学习框架Logic-RL,通过合成逻辑谜题训练7B模型,借助系统提示、格式奖励与稳定训练方案,使模型获得反思等高级推理能力,仅用5K题训练即在AIME、AMC数学基准上展现泛化性。

摘要:

受DeepSeek-R1成功的启发,我们探索了基于规则的强化学习(RL)在大型推理模型中的潜力。为分析推理动态,我们采用合成逻辑谜题作为训练数据,因其复杂度可控且答案验证直接。我们取得了若干关键技术突破,可实现有效且稳定的RL训练:一套强调思考与作答过程的系统提示词、一个惩罚输出走捷径的严格格式奖励函数,以及一种可实现稳定收敛的简明训练方案。我们的7B模型发展出了反思、验证和总结等高级推理技能,这些技能在逻辑语料库中并不存在。值得注意的是,仅在5K道逻辑题上训练后,该模型便展现出对具有挑战性的数学基准AIME和AMC的泛化能力。

英文摘要:

Inspired by the success of DeepSeek-R1, we explore the potential of rule-based reinforcement learning (RL) in large reasoning models. To analyze reasoning dynamics, we use synthetic logic puzzles as training data due to their controllable complexity and straightforward answer verification. We make some key technical contributions that lead to effective and stable RL training: a system prompt that emphasizes the thinking and answering process, a stringent format reward function that penalizes outputs for taking shortcuts, and a straightforward training recipe that achieves stable convergence. Our 7B model develops advanced reasoning skills-such as reflection, verification, and summarization-that are absent from the logic corpus. Remarkably, after training on just 5K logic problems, it demonstrates generalization abilities to the challenging math benchmarks AIME and AMC.

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

↑