Vanishing Gradients in Reinforcement Finetuning of Language Models
Noam Razin, Hattie Zhou, Omid Saremi, Vimal Thilak, Arwen Bradley, Preetum Nakkiran, Joshua Susskind, Etai Littwin
Abstract
Pretrained language models are commonly aligned with human preferences and downstream tasks via reinforcement finetuning (RFT), which refers to maximizing a (possibly learned) reward function using policy gradient algorithms. This work identifies a fundamental optimization obstacle in RFT: we prove that the expected gradient for an input vanishes when its reward standard deviation under the model is small, even if the expected reward is far from optimal. Through experiments on an RFT benchmark and controlled environments, as well as a theoretical analysis, we then demonstrate that vanishing gradients due to small reward standard deviation are prevalent and detrimental, leading to extremely slow reward maximization. Lastly, we explore ways to overcome vanishing gradients in RFT. We find the common practice of an initial supervised finetuning (SFT) phase to be the most promising candidate, which sheds light on its importance in an RFT pipeline. Moreover, we show that a relatively small number of SFT optimization steps on as few as 1% of the input samples can suffice, indicating that the initial SFT phase need not be expensive in terms of compute and data labeling efforts. Overall, our results emphasize that being mindful for inputs whose expected gradient vanishes, as measured by the reward standard deviation, is crucial for successful execution of RFT. 1
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
16 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Discovering Preference Optimization Algorithms with and for Large Language Models cites AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- Discovering Preference Optimization Algorithms with and for Large Language Models cites The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
- Discovering Preference Optimization Algorithms with and for Large Language Models cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Discovering Preference Optimization Algorithms with and for Large Language Models cites Dense Reward for Free in Reinforcement Learning from Human Feedback
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback cites The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback cites Finetuned Language Models are Zero-Shot Learners
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback cites Training language models to follow instructions with human feedback
- What Makes a Reward Model a Good Teacher? An Optimization Perspective cites AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- What Makes a Reward Model a Good Teacher? An Optimization Perspective cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- What Makes a Reward Model a Good Teacher? An Optimization Perspective cites Training language models to follow instructions with human feedback
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning cites Finetuned Language Models are Zero-Shot Learners
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning cites Training language models to follow instructions with human feedback
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
- WARM: On the Benefits of Weight Averaged Reward Models cites AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- WARM: On the Benefits of Weight Averaged Reward Models cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- WARM: On the Benefits of Weight Averaged Reward Models cites Finetuned Language Models are Zero-Shot Learners
- WARM: On the Benefits of Weight Averaged Reward Models cites Training language models to follow instructions with human feedback
- Preference Learning Algorithms Do Not Learn Preference Rankings cites AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- Preference Learning Algorithms Do Not Learn Preference Rankings cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Finetuned Language Models are Zero-Shot Learners cites Training language models to follow instructions with human feedback
- Training language models to follow instructions with human feedback cites Finetuned Language Models are Zero-Shot Learners
- Dense Reward for Free in Reinforcement Learning from Human Feedback cites The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
- Dense Reward for Free in Reinforcement Learning from Human Feedback cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
Cited by top-tier papers16
- WARM: On the Benefits of Weight Averaged Reward ModelsAlexandre Ramé, Nino Vieillard, Léonard Hussenot, Robert Dadashi et al.ICML 2024 · 145 citations
- Dense Reward for Free in Reinforcement Learning from Human FeedbackAlex James Chan, Hao Sun, Samuel Holt, Mihaela van der SchaarICML 2024 · 74 citations
- What Makes a Reward Model a Good Teacher? An Optimization PerspectiveNoam Razin, Zixuan Wang, Hubert Strauss, Stanley Wei et al.NeurIPS 2025 · 73 citations
- Preference Learning Algorithms Do Not Learn Preference RankingsAngelica Chen, Sadhika Malladi, Lily H. Zhang, Xinyi Chen et al.NeurIPS 2024 · 60 citations
- Discovering Preference Optimization Algorithms with and for Large Language ModelsChris Lu, Samuel Holt, Claudio Fanconi, Alex J. Chan et al.NeurIPS 2024 · 41 citations
Builds on17
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
- Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu et al.ICLR 2022 · 4,966 citations
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human FeedbackYann Dubois, Chen Xuechen Li, Rohan Taori, Tianyi Zhang et al.NeurIPS 2023 · 948 citations
- The Flan Collection: Designing Data and Methods for Effective Instruction TuningShayne Longpre, Le Hou, Tu Vu, Albert Webson et al.ICML 2023 · 908 citations
Related papers
- On the Generalization of SFT: A Reinforcement Learning Perspective with Reward RectificationYongliang Wu, Yizhou Zhou, Ziheng Zhou, Yingzhe Peng et al.ICLR 2026 · 130 citations
- Clipping Low-Probability Tokens in SFT Yields a Generalizable Initialization for RLTian-Shuo Liu, Chengxing Jia, Haoyu Liu, Pengyuan Wang et al.ICML 2026
- GFT: From Imitation to Reward Fine-Tuning with Unbiased Group Advantages and Dynamic Coefficient RectificationWangjie Gan, Miao Pan, Linbo Xi, Wenqi Zhang et al.ACL Findings 2026 · 1 citation
- Benefits and Pitfalls of Reinforcement Learning for Language Model Planning: A Theoretical PerspectiveSiwei Wang, Yifei Shen, Haoran Sun, Shi Feng et al.ICLR 2026 · 7 citations
- Q-SFT: Q-Learning for Language Models via Supervised Fine-TuningJoey Hong, Anca D. Dragan, Sergey LevineICLR 2025
