Cal-DPO: Calibrated Direct Preference Optimization for Language Model Alignment

Teng Xiao, Yige Yuan, Huaisheng Zhu, Mingxiao Li, Vasant G. Honavar

Abstract

We study the problem of aligning large language models (LLMs) with human preference data. Contrastive preference optimization has shown promising results in aligning LLMs with available preference data by optimizing the implicit reward associated with the policy. However, the contrastive objective focuses mainly on the relative values of implicit rewards associated with two responses while ignoring their actual values, resulting in suboptimal alignment with human preferences. To address this limitation, we propose calibrated direct preference optimization (Cal-DPO), a simple yet effective algorithm. We show that substantial improvement in alignment with the given preferences can be achieved simply by calibrating the implicit reward to ensure that the learned implicit rewards are comparable in scale to the ground-truth rewards. We demonstrate the theoretical advantages of Cal-DPO over existing approaches. The results of our experiments on a variety of standard benchmarks show that Cal-DPO remarkably improves off-the-shelf methods.

Introduction

Direct Preference Optimization (DPO) has emerged as a dominant paradigm for aligning Large Language Models (LLMs) with human preferences due to its stability and simplicity, bypassing the need for a separate reward model. However, recent research identifies a critical shortcoming in DPO's contrastive objective. While DPO effectively learns the relative preference between two responses, it often fails to maintain the absolute quality of the preferred response. This phenomenon, termed "likelihood drift," occurs when the model's confidence in chosen responses decreases during training as it aggressively minimizes the likelihood of rejected responses.

The Likelihood Drift Problem

Standard DPO optimizes an implicit reward—the log-likelihood of a response relative to a reference model. Because the objective is purely contrastive, it only maximizes the margin between the chosen and rejected rewards. As training progresses, the model may push the probability of the rejected response toward zero so forcefully that it inadvertently drags down the probability of the chosen response. This drift is particularly detrimental for reasoning and mathematical tasks, where maintaining high confidence in correct logical patterns is essential for performance.

Methodology: Calibrated Direct Preference Optimization (Cal-DPO)

To mitigate likelihood drift, we introduce Cal-DPO, which anchors the implicit rewards to a fixed scale. The core innovation is a "calibrated" objective that ensures learned rewards are comparable to ground-truth reward scales.

  1. Reward Anchoring: We define target reward values (e.g., $+1/2\beta$ for chosen and $-1/2\beta$ for rejected responses).
  2. Calibration Loss: A Squared Loss (MSE) term is added to the standard DPO objective, penalizing deviations from these anchors.
  3. Implementation: Cal-DPO is highly practical, requiring only a single additional line of code in standard DPO pipelines and utilizing the existing $\beta$ hyperparameter.
  4. Theoretical Foundation: Cal-DPO minimizes an upper bound on the standard RLHF objective (Reverse KL divergence), promoting "mode-seeking" behavior that focuses probability mass on high-reward responses.

Experimental Setup

We evaluated Cal-DPO across diverse datasets and benchmarks:

  • Instruction Following & Reasoning: UltraFeedback Binarized, MMLU-PRO, ARC, IFEval, BBH, and GPQA.
  • Mathematics: GSM8K and MATH.
  • Summarization & Dialogue: Reddit TL;DR and Anthropic-HH.
  • Sentiment Control: IMDb dataset.

Results and Discussion

Reward Dynamics and Reasoning Performance

The impact of calibration is most evident in the reward dynamics during training. In standard DPO, the reward for chosen responses often becomes negative. In contrast, Cal-DPO maintains positive and increasing rewards for chosen responses, indicating growing confidence in high-quality outputs.

Comparison of reward dynamics and benchmark performance between DPO and Cal-DPO.

As shown in Figure 1, this calibration leads to significant gains in reasoning. For instance, on the GSM8K math benchmark, Cal-DPO reaches a score of 34.87, compared to DPO's 21.76. On the IFEval instruction-following benchmark, Cal-DPO more than doubles the performance of DPO (21.72 vs. 10.49).

Human Preference Alignment

Cal-DPO consistently outperforms DPO and other variants like CPO and DPOP in human preference evaluations. On the Anthropic-HH dataset, Cal-DPO achieves a 69.07% average win rate against the SFT baseline, significantly higher than DPO's 64.34%.

Win rates of various alignment methods on TL;DR and Anthropic-HH datasets.

Conclusion and Future Work

Cal-DPO offers a simple yet powerful solution to the likelihood drift problem in contrastive preference learning. By anchoring rewards, it bridges the gap between contrastive learning and true reward alignment. While currently focused on offline learning with binary preferences, future work will explore on-policy applications and more complex reward distributions. Cal-DPO stands as a robust, zero-overhead replacement for standard DPO in LLM alignment pipelines.

Summary updated

BibTeX
@inproceedings{xiao2024cal,
  author = {Teng Xiao and Yige Yuan and Huaisheng Zhu and Mingxiao Li and Vasant G. Honavar},
  title = {{Cal-DPO: Calibrated Direct Preference Optimization for Language Model Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=57OQXxbTbY},
}
Figure