Teaching Large Language Models to Reason with Reinforcement Learning
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.
Community
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- GLoRe: When, Where, and How to Improve LLM Reasoning via Global and Local Refinements (2024)
- ReFT: Reasoning with Reinforced Fine-Tuning (2024)
- A Critical Evaluation of AI Feedback for Aligning Large Language Models (2024)
- Improving Large Language Models via Fine-grained Reinforcement Learning with Minimum Editing Constraint (2024)
- AutoPRM: Automating Procedural Supervision for Multi-Step Reasoning via Controllable Question Decomposition (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
It seems natural, that current LLMs are mediocre in specific reasoning skills, as their training datasets are not created with reasoning capability in mind. So, similarly to humans, the reasoning skills are by product of learning another more factual information
That leads to two “what if” questions:
- what would be good dataset to create LLM specialized in “reasoning” in from the scratch?
- shall we not change our own schools to have different priorities in education - focusing on reasoning, communication, self-management and it’s application in doing things (including science, arts, etc.)) ?
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper