paper-with-me

홈 › Papers

A Common Pitfall of Margin-based Language Model Alignment: Gradient Entanglement

2024-10-17 · 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.

📄 PDF Abstract BibTeX arXiv:2410.13828

Code (1)

humainlab/understand_marginpo 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingSafety Alignment

Similar Papers 제목 키워드 기반

VSPO: Validating Semantic Pitfalls in Ontology via LLM-Based CQ Generation

2025-11-11 · Hyojun Choi, Seokju Hwang, Kyong-Ho Lee arxiv

Competency Questions (CQs) play a crucial role in validating ontology design. While manually crafting CQs can be highly time-consuming and costly for ontology engineers, recent studies have explored the use of large lang…

AMaPO: Adaptive Margin-attached Preference Optimization for Language Model Alignment

2025-11-12 · Ruibo Deng, Duanyu Feng, Wenqiang Lei arxiv

Offline preference optimization offers a simpler and more stable alternative to RLHF for aligning language models. However, their effectiveness is critically dependent on ranking accuracy, a metric where further gains ar…

Can LLMs $\textit{understand}$ Math? -- Exploring the Pitfalls in Mathematical Reasoning

2025-05-21 · Tiasa Singha Roy, Aditeya Baral, Ayush Rajesh Jhaveri, Yusuf Baig

Large language models (LLMs) demonstrate considerable potential in various natural language tasks but face significant challenges in mathematical reasoning, particularly in executing precise, multi-step logic. However, c…

MathMathematical Reasoning

Does Cross-Cultural Alignment Change the Commonsense Morality of Language Models?

2024-06-24 · Yuu Jinnai

Alignment of the language model with human preferences is a common approach to making a language model useful to end users. However, most alignment work is done in English, and human preference datasets are dominated by …

EthicsLanguage ModelingLanguage Modelling

LuxInstruct: A Cross-Lingual Instruction Tuning Dataset For Luxembourgish

2025-10-08 · Fred Philippy, Laura Bernardy, Siwen Guo, Jacques Klein 외 arxiv

Instruction tuning has become a key technique for enhancing the performance of large language models, enabling them to better follow human prompts. However, low-resource languages such as Luxembourgish face severe limita…

Machine Translation