A Common Pitfall of Margin-based Language Model Alignment: Gradient Entanglement
Hui Yuan, Yifan Zeng, Yue Wu, Huazheng Wang, Mengdi Wang, Liu Leqi
摘要
Reinforcement Learning from Human Feedback (RLHF) has become the predominant approach for language model (LM) alignment. At its core, RLHF uses a margin-based loss for preference optimization, specifying ideal LM behavior only by the difference between preferred and dispreferred responses. In this paper, we identify a common pitfall of margin-based methods -- the under-specification of ideal LM behavior on preferred and dispreferred responses individually, which leads to two unintended consequences as the margin increases: (1) The probability of dispreferred (e.g., unsafe) responses may increase, resulting in potential safety alignment failures. (2) The probability of preferred responses may decrease, even when those responses are ideal. We demystify the reasons behind these problematic behaviors: margin-based losses couple the change in the preferred probability to the gradient of the dispreferred one, and vice versa, often preventing the preferred probability from increasing while the dispreferred one decreases, and thus causing a synchronized increase or decrease in both probabilities. We term this effect, inherent in margin-based objectives, gradient entanglement. Formally, we derive conditions for general margin-based alignment objectives under which gradient entanglement becomes concerning: the inner product of the gradients of preferred and dispreferred log-probabilities is large relative to the individual gradient norms. We theoretically investigate why such inner products can be large when aligning language models and empirically validate our findings. Empirical implications of our framework extend to explaining important differences in the training dynamics of various preference optimization algorithms, and suggesting potential algorithm designs to mitigate the under-specification issue of margin-based methods and thereby improving language model alignment.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation 引用了 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
- Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models 引用了 Training language models to follow instructions with human feedback
- ULTRAFEEDBACK: Boosting Language Models with Scaled AI Feedback 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- ULTRAFEEDBACK: Boosting Language Models with Scaled AI Feedback 引用了 Training language models to follow instructions with human feedback
- Towards Disentangled Preference Optimization Dynamics: Suppress the Loser, Preserve the Winner 引用了 Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation
- Towards Disentangled Preference Optimization Dynamics: Suppress the Loser, Preserve the Winner 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Towards Disentangled Preference Optimization Dynamics: Suppress the Loser, Preserve the Winner 引用了 Training language models to follow instructions with human feedback
- Can DPO Learn Diverse Human Values? A Theoretical Scaling Law 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Can DPO Learn Diverse Human Values? A Theoretical Scaling Law 引用了 Training language models to follow instructions with human feedback
引用它的顶会 Paper2
它引用的 Paper10
- 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 次引用
- Self-Play Fine-Tuning Converts Weak Language Models to Strong Language ModelsZixiang Chen, Yihe Deng, Huizhuo Yuan, Kaixuan Ji 等ICML 2024 · 527 次引用
- Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine TranslationHaoran Xu, Amr Sharaf, Yunmo Chen, Weiting Tan 等ICML 2024 · 447 次引用
- ULTRAFEEDBACK: Boosting Language Models with Scaled AI FeedbackGanqu Cui, Lifan Yuan, Ning Ding, Guanming Yao 等ICML 2024 · 286 次引用
相关 Paper
- On a Connection Between Imitation Learning and RLHFTeng Xiao, Yige Yuan, Mingxiao Li, Zhengyu Chen 等ICLR 2025
- Contrastive Preference Learning: Learning from Human Feedback without Reinforcement LearningJoey Hejna, Rafael Rafailov, Harshit Sikchi, Chelsea Finn 等ICLR 2024 · 37 次引用
- One-Shot Safety Alignment for Large Language Models via Optimal DualizationXinmeng Huang, Shuo Li, Edgar Dobriban, Osbert Bastani 等NeurIPS 2024 · 30 次引用
- On the Limited Generalization Capability of the Implicit Reward Model Induced by Direct Preference OptimizationYong Lin, Skyler Seto, Maartje ter Hoeve, Katherine Metcalf 等EMNLP Findings 2024 · 1 次引用
- Safe RLHF: Safe Reinforcement Learning from Human FeedbackJosef Dai, Xuehai Pan, Ruiyang Sun, Jiaming Ji 等ICLR 2024 · 656 次引用
