Disentangling Length Bias In Preference Learning Via Response-Conditioned Modeling

Jianfeng Cai, Jinhua Zhu, Ruopei Sun, Yue Wang, Li Li, Wengang Zhou · OpenReview

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 Response-conditioned Bradley-Terry (Rc-BT) model that enhances the reward model's capability in length bias mitigating and length instruction following, through training on our augmented dataset. Furthermore, we propose the Rc-DPO algorithm to leverage the Rc-BT model for direct policy optimization (DPO) of LLMs, simultaneously mitigating length bias and promoting adherence to length instructions. Extensive evaluations demonstrate that our approach substantially improves both preference modeling and length instruction compliance, with its effectiveness validated across various foundational models and preference datasets.

The Challenge of Length Bias in RLHF

Reinforcement Learning from Human Feedback (RLHF) is the standard for aligning Large Language Models (LLMs) with human values. However, it suffers from a persistent flaw: length bias. Human evaluators, and the reward models (RMs) trained on their data, tend to prefer longer, more verbose responses, even when they aren't more helpful. This leads to "reward hacking," where models generate unnecessarily wordy output to chase higher scores.

Correlation between RM scores and response length for standard models, illustrating the inherent length bias.

Furthermore, while models seem sensitive to length during preference training, they are notoriously bad at following explicit length instructions (e.g., "summarize this in exactly 50 words"). Existing solutions usually try to either suppress length information entirely or train specifically on length-constrained datasets, but these often come at the cost of overall semantic quality or result in a "short bias" where the model produces truncated, low-quality responses.

Proposed Framework: Response-Conditioned Modeling

This paper introduces Response-Conditioned Modeling (Rc-BT), a novel framework designed to decouple length bias from semantic quality. The core shift in perspective is treating length as an explicit instruction rather than an implicit reward signal.

Rc-BT and Rc-DPO

The authors propose the Response-conditioned Bradley-Terry (Rc-BT) model. Unlike the standard Bradley-Terry model which simply compares two responses for a given prompt, Rc-BT explicitly differentiates between semantic intent and length requirements.

Comparison of (a) standard preference pairs, (b) LIFT preference pairs, and (c) the proposed Rc-BT preference pairs which use response-conditioned constraints.
  1. Response-Conditioned Training: The core idea is to create augmented triplets. For a given high-quality response $y_w$, the authors construct a "length-augmented" prompt $x^1_l$ that the response violates (e.g., if the response is 200 words, the prompt might ask for "100 words or less"). The model is then trained to prefer the original prompt $x$ over the constrained prompt $x^1_l$ for that specific response.
  2. Rc-RM and Rc-DPO: This logic is integrated into both Reward Modeling (Rc-RM) and Direct Preference Optimization (Rc-DPO). This allows the model to learn that length is a constraint to be satisfied, not a proxy for quality.
  3. Data Augmentation: To ensure the model learns semantic nuances rather than just counting words, the authors used GPT-4o to generate semantically equivalent responses of different lengths, creating a "cleaner" signal for the training process.

Experimental Results

The effectiveness of the Rc-BT framework was validated across multiple foundational models (Qwen2, Qwen2.5, and Llama-3.1) and preference datasets like OpenAssistant and HH-RLHF.

  • Mitigating Bias: Rc-RM outperformed standard baselines on the length-neutral $D^q_{eval}$ set. For example, on Qwen2-1.5B-Instruct, Rc-RM improved accuracy from 60.75% to 71.47%.
  • Instruction Following: In DPO experiments, Rc-DPO achieved near-perfect (100%) length adherence on several benchmarks while maintaining significantly higher semantic quality ("Quality Win Ratio") than competitors.
  • Robustness: The method proved effective across multiple model families, suggesting the approach is architecture-agnostic. Unlike previous methods that produced "clipped" responses, Rc-DPO maintained the richness of the original LLM's output while strictly adhering to word counts.

Conclusion

By treating length as an explicit instruction, Rc-BT successfully disentangles verbosity from quality. While the data augmentation process increases computational overhead, the gains in both semantic accuracy and instruction following are substantial. Future work may extend this "response-conditioned" framework to other superficial biases, such as politeness or formatting.

Summary updated

BibTeX
@inproceedings{cai2026disentangling,
  author = {Jianfeng Cai and Jinhua Zhu and Ruopei Sun and Yue Wang and Li Li and Wengang Zhou and Houqiang Li},
  title = {{Disentangling Length Bias In Preference Learning Via Response-Conditioned Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=hKxYESOzen},
}
Figure