Disentangling Length Bias In Preference Learning Via Response-Conditioned Modeling
Jianfeng Cai, Jinhua Zhu, Ruopei Sun, Yue Wang, Li Li, Wengang Zhou, Houqiang Li
TL;DR
The paper tackles length bias in RLHF reward modeling and policy optimization by introducing Rc-BT, a Response-conditioned Bradley-Terry framework that explicitly differentiates human semantic preferences from response length constraints. It augments the training data with length-aware instructions and defines two augmented prompts to create paired preferences, enabling the reward model and policy optimization to reason about length without sacrificing semantics. Rc-RM and Rc-DPO extend this approach to reward modeling and direct preference optimization, respectively, and experiments across Qwen and Llama models demonstrate reduced length bias, improved length-instruction following, and better semantic quality compared to baselines and prior methods. The work suggests a practical path to more robust RLHF systems, with demonstrated generalization to different biases and datasets, albeit at increased computational cost and with remaining questions for very large models.
Abstract
Reinforcement Learning from Human Feedback (RLHF) has achieved considerable success in aligning large language models (LLMs) by modeling human preferences with a learnable reward model and employing a reinforcement learning algorithm to maximize the reward model's scores. However, these reward models are susceptible to exploitation through various superficial confounding factors, with length bias emerging as a particularly significant concern. Moreover, while the pronounced impact of length bias on preference modeling suggests that LLMs possess an inherent sensitivity to length perception, our preliminary investigations reveal that fine-tuned LLMs consistently struggle to adhere to explicit length instructions. To address these two limitations, we propose a novel framework wherein the reward model explicitly differentiates between human semantic preferences and response length requirements. Specifically, we introduce a $\textbf{R}$esponse-$\textbf{c}$onditioned $\textbf{B}$radley-$\textbf{T}$erry (Rc-BT) model that enhances the model's capability in length bias mitigating and length instruction following, through training on our augmented dataset. Furthermore, we propose the Rc-RM and Rc-DPO algorithm to leverage the Rc-BT model for reward modeling and direct policy optimization (DPO) of LLMs, simultaneously mitigating length bias and promoting adherence to length instructions. Extensive experiments across various foundational models and datasets demonstrate the effectiveness and generalizability of our approach.
