TensorX
返回文献探索

Paper · arXiv 2403.04642

Teaching Large Language Models to Reason with Reinforcement Learning

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

48 upvotesMarch 7, 2024arXiv 预印本
AI 摘要

Multiple RLHF algorithms, including Expert Iteration, PPO, and Return-Conditioned RL, similarly improve LLM reasoning with similar sample complexity, with Expert Iteration slightly outperforming others.

Reinforcement Learning from Human FeedbackRLHFExpert IterationProximal Policy OptimizationPPOReturn-Conditioned RLsparse rewardsdense rewardsreward modelmodel sizesinitializationssupervised fine-tuningSFTsample complexitypretrained checkpointmaj@1pass@96

Abstract

Reinforcement Learning from Human Feedback (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 (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 (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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号