arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04642cs.LG
收藏

通过强化学习教大语言模型进行推理

Teaching Large Language Models to Reason with Reinforcement Learning

Meta;Georgia Institute of Technology(佐治亚理工学院);UC Berkeley(加州大学伯克利分校);StabilityAI(StabilityAI公司)

Alex Havrilla, Yuqing Du, Sharath Chandra Raparthy, Christoforos Nalmpantis, Jane Dwivedi-Yu, Maksym Zhuravinskyi, Eric Hambro, Sainbayar Sukhbaatar, Roberta Raileanu

AI总结:

该研究对比了多种反馈学习算法对大语言模型推理能力的提升效果,发现专家迭代表现最优且样本复杂度与PPO相近,同时揭示了SFT的指标权衡与RL的同步提升特性,为RLHF及LLM微调的RL应用提供参考。

摘要:

基于人类反馈的强化学习(Reinforcement Learning from Human Feedback,RLHF)已成为使大语言模型(LLM)输出符合人类偏好的主流方法。受RLHF成功的启发,我们研究了多种从反馈中学习的算法(专家迭代、近端策略优化(Proximal Policy Optimization,PPO)、回报条件强化学习)在提升LLM推理能力上的表现。我们探究了通过启发式方法以及学习型奖励模型为LLM提供的稀疏和密集两种奖励信号。此外,我们还从多种模型规模、以及有无监督微调(supervised fine-tuning,SFT)数据的初始化状态出发开展实验。总体而言,我们发现所有算法表现相当,其中专家迭代在大多数情况下表现最优。令人意外的是,专家迭代的样本复杂度与PPO相近,从预训练检查点开始收敛最多需要约$10^6$量级的样本。我们探究了这一现象的原因,得出结论:在强化学习训练期间,模型未能显著探索超出SFT模型已生成的解的范围。此外,我们讨论了SFT训练期间maj@1与pass@96指标表现之间的权衡关系,以及强化学习训练如何相反地同时提升这两个指标。最后,我们讨论了这些发现对RLHF的启示,以及强化学习在LLM微调中的未来作用。

英文摘要:

Reinforcement Learning from Human Feedback (\textbf{RLHF}) has emerged as a dominant approach for aligning LLM outputs with human preferences. Inspired by the success of RLHF, we study the performance of multiple algorithms that learn from feedback (Expert Iteration, Proximal Policy Optimization (\textbf{PPO}), Return-Conditioned RL) on improving LLM reasoning capabilities. We investigate both sparse and dense rewards provided to the LLM both heuristically and via a learned reward model. We additionally start from multiple model sizes and initializations both with and without supervised fine-tuning (\textbf{SFT}) data. Overall, we find all algorithms perform comparably, with Expert Iteration performing best in most cases. Surprisingly, we find the sample complexity of Expert Iteration is similar to that of PPO, requiring at most on the order of $10^6$ samples to converge from a pretrained checkpoint. We investigate why this is the case, concluding that during RL training models fail to explore significantly beyond solutions already produced by SFT models. Additionally, we discuss a trade off between maj@1 and pass@96 metric performance during SFT training and how conversely RL training improves both simultaneously. We then conclude by discussing the implications of our findings for RLHF and the future role of RL in LLM fine-tuning.

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

↑