NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Eliminating Biased Length Reliance of Direct Preference Optimization via Down-Sampled KL Divergence

Junru Lu, Jiazheng Li, Siyu An, Meng Zhao, Yulan He, Di Yin, Xing Sun

Abstract

Direct Preference Optimization (DPO) has emerged as a prominent algorithm for the direct and robust alignment of Large Language Models (LLMs) with human preferences, offering a more straightforward alternative to the complex Reinforcement Learning from Human Feedback (RLHF). Despite its promising efficacy, DPO faces a notable drawback: “verbosity”, a common over-optimization phenomenon also observed in RLHF. While previous studies mainly attributed verbosity to biased labels within the data, we propose that the issue also stems from an inherent algorithmic length reliance in DPO. Specifically, we suggest that the discrepancy between sequence-level Kullback–Leibler (KL) divergences between chosen and rejected sequences, used in DPO, results in overestimated or underestimated rewards due to varying token lengths. Empirically, we utilize datasets with different label lengths to demonstrate the presence of biased rewards. We then introduce an effective downsampling approach, named SamPO, to eliminate potential length reliance. Our experimental evaluations, conducted across three LLMs of varying scales and a diverse array of conditional and open-ended benchmarks, highlight the efficacy of SamPO in mitigating verbosity, achieving improvements of 5% to 12% over DPO through debaised rewards.

Introduction

Aligning Large Language Models (LLMs) with human preferences is a critical step in making them useful and safe. While Reinforcement Learning from Human Feedback (RLHF) was the standard, Direct Preference Optimization (DPO) has gained popularity due to its simplicity and stability. However, DPO frequently leads to "verbosity," where models generate excessively long responses to maximize rewards, often at the expense of conciseness and sometimes quality.

The Algorithmic Root of Verbosity

While human preference for longer answers in training data is a known factor, this research identifies a fundamental algorithmic bias in DPO. DPO’s implicit reward is calculated using sequence-level Kullback–Leibler (KL) divergence, which is essentially a summation over token-level log-probability ratios.

Analysis of reward bias in DPO (a) vs. normalization (b) and SamPO (c).

As shown in Figure 2(a), when a "chosen" response is significantly longer than a "rejected" one, the cumulative reward is overestimated. Conversely, shorter chosen responses are underestimated. This creates a mathematical shortcut where the model learns that length itself is a proxy for preference, leading to the observed verbosity.

SamPO: Down-Sampled Preference Optimization

To decouple reward from response length, we introduce SamPO (Down-Sampled DPO). Instead of calculating KL divergence over the full length of both responses, SamPO identifies the minimum length $T_m$ between the chosen and rejected pair. It then uniformly down-samples tokens from both responses to match this minimum length.

By computing the DPO loss using these equal-length token-level probability features, SamPO preserves the variance of token-level signals better than simple mean-normalization (Averaging), which tends to over-simplify responses.

Experimental Results

We evaluated SamPO across three LLMs (including Llama3-8B and Qwen1.5-72B) and various benchmarks.

Performance comparison across multiple benchmarks showing SamPO's consistent improvement over DPO.

Performance Gains

As illustrated in Figure 1, SamPO consistently outperforms standard DPO across a wide range of tasks, including mathematical reasoning (GSM8K), instruction following (IFEval), and general knowledge (MMLU). Performance improvements typically range from 5% to 12%.

Verbosity Mitigation

On the HH-RLHF dataset, standard DPO produced responses with an average length of approximately 250 tokens. SamPO successfully reduced this to roughly 113 tokens while simultaneously achieving higher win rates in preference evaluations. Unlike other length-reduction methods like SimPO, which can lead to overly brief "one-word" answers, SamPO maintains a balance, providing concise yet informative responses.

Conclusion

SamPO addresses the inherent length bias in DPO by using a simple yet effective down-sampling strategy. By aligning the sequence lengths during training, it eliminates the algorithmic incentive for verbosity, leading to models that are not only more efficient but also more performant across diverse benchmarks. This work suggests that refining the mathematical foundations of preference optimization is as crucial as improving data quality for effective LLM alignment.

Summary updated

BibTeX
@inproceedings{lu2024eliminating,
  author = {Junru Lu and Jiazheng Li and Siyu An and Meng Zhao and Yulan He and Di Yin and Xing Sun},
  title = {{Eliminating Biased Length Reliance of Direct Preference Optimization via Down-Sampled KL Divergence}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=2CUeAwXRuZ},
}
Figure