Vanishing Gradients in Reinforcement Finetuning of Language Models
Noam Razin, Hattie Zhou, Omid Saremi, Vimal Thilak, Arwen Bradley, Preetum Nakkiran, Joshua Susskind, Etai Littwin
摘要
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
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 16 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Discovering Preference Optimization Algorithms with and for Large Language Models 引用了 AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- Discovering Preference Optimization Algorithms with and for Large Language Models 引用了 The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
- Discovering Preference Optimization Algorithms with and for Large Language Models 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Discovering Preference Optimization Algorithms with and for Large Language Models 引用了 Dense Reward for Free in Reinforcement Learning from Human Feedback
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback 引用了 The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback 引用了 Finetuned Language Models are Zero-Shot Learners
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback 引用了 Training language models to follow instructions with human feedback
- What Makes a Reward Model a Good Teacher? An Optimization Perspective 引用了 AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- What Makes a Reward Model a Good Teacher? An Optimization Perspective 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- What Makes a Reward Model a Good Teacher? An Optimization Perspective 引用了 Training language models to follow instructions with human feedback
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 Finetuned Language Models are Zero-Shot Learners
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 Training language models to follow instructions with human feedback
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model 引用了 Training language models to follow instructions with human feedback
- WARM: On the Benefits of Weight Averaged Reward Models 引用了 AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- WARM: On the Benefits of Weight Averaged Reward Models 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- WARM: On the Benefits of Weight Averaged Reward Models 引用了 Finetuned Language Models are Zero-Shot Learners
- WARM: On the Benefits of Weight Averaged Reward Models 引用了 Training language models to follow instructions with human feedback
- Preference Learning Algorithms Do Not Learn Preference Rankings 引用了 AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback
- Preference Learning Algorithms Do Not Learn Preference Rankings 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Finetuned Language Models are Zero-Shot Learners 引用了 Training language models to follow instructions with human feedback
- Training language models to follow instructions with human feedback 引用了 Finetuned Language Models are Zero-Shot Learners
- Dense Reward for Free in Reinforcement Learning from Human Feedback 引用了 The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
- Dense Reward for Free in Reinforcement Learning from Human Feedback 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
引用它的顶会 Paper16
- WARM: On the Benefits of Weight Averaged Reward ModelsAlexandre Ramé, Nino Vieillard, Léonard Hussenot, Robert Dadashi 等ICML 2024 · 145 次引用
- Dense Reward for Free in Reinforcement Learning from Human FeedbackAlex James Chan, Hao Sun, Samuel Holt, Mihaela van der SchaarICML 2024 · 74 次引用
- What Makes a Reward Model a Good Teacher? An Optimization PerspectiveNoam Razin, Zixuan Wang, Hubert Strauss, Stanley Wei 等NeurIPS 2025 · 73 次引用
- Preference Learning Algorithms Do Not Learn Preference RankingsAngelica Chen, Sadhika Malladi, Lily H. Zhang, Xinyi Chen 等NeurIPS 2024 · 60 次引用
- Discovering Preference Optimization Algorithms with and for Large Language ModelsChris Lu, Samuel Holt, Claudio Fanconi, Alex J. Chan 等NeurIPS 2024 · 41 次引用
它引用的 Paper17
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
- Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning 等NeurIPS 2023 · 10,924 次引用
- Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu 等ICLR 2022 · 4,966 次引用
- AlpacaFarm: A Simulation Framework for Methods that Learn from Human FeedbackYann Dubois, Chen Xuechen Li, Rohan Taori, Tianyi Zhang 等NeurIPS 2023 · 948 次引用
- The Flan Collection: Designing Data and Methods for Effective Instruction TuningShayne Longpre, Le Hou, Tu Vu, Albert Webson 等ICML 2023 · 908 次引用
相关 Paper
- On the Generalization of SFT: A Reinforcement Learning Perspective with Reward RectificationYongliang Wu, Yizhou Zhou, Ziheng Zhou, Yingzhe Peng 等ICLR 2026 · 130 次引用
- Clipping Low-Probability Tokens in SFT Yields a Generalizable Initialization for RLTian-Shuo Liu, Chengxing Jia, Haoyu Liu, Pengyuan Wang 等ICML 2026
- GFT: From Imitation to Reward Fine-Tuning with Unbiased Group Advantages and Dynamic Coefficient RectificationWangjie Gan, Miao Pan, Linbo Xi, Wenqi Zhang 等ACL Findings 2026 · 1 次引用
- Benefits and Pitfalls of Reinforcement Learning for Language Model Planning: A Theoretical PerspectiveSiwei Wang, Yifei Shen, Haoran Sun, Shi Feng 等ICLR 2026 · 7 次引用
- Q-SFT: Q-Learning for Language Models via Supervised Fine-TuningJoey Hong, Anca D. Dragan, Sergey LevineICLR 2025
