Bridging and Modeling Correlations in Pairwise Data for Direct Preference Optimization

Yuxin Jiang, Bo Huang, Yufei Wang, Xingshan Zeng, Liangyou Li, Yasheng Wang, Xin Jiang, Lifeng Shang, Ruiming Tang, Wei Wang

TL;DR

BMC (Bridging and Modeling Correlations) is a novel framework designed to significantly boost Direct Preference Optimization (DPO) by addressing a fundamental flaw: the lack of correlation between "winning" and "losing" training examples. By synthesizing "pseudo-winning" responses that are nearly identical to the losing ones—except for critical corrections—and applying a dynamic token-level weighting system during training, BMC helps Large Language Models (LLMs) focus on nuanced reasoning rather than stylistic noise.

The Problem with Standard DPO

Direct Preference Optimization (DPO) has become the go-to method for aligning LLMs with human values because it bypasses the need for a complex, separate reward model. However, DPO relies heavily on pairwise data consisting of a "winning" response ($y_w$) and a "losing" response ($y_l$).

The authors identify a major bottleneck in this approach: in most datasets, these two responses are generated in isolation. Because they often differ drastically in style, length, and structure, the model struggles to identify the exact reason why one is better. Instead of learning core logic or values, the model gets distracted by "noise" like verbosity or formatting. Furthermore, standard DPO treats every token in a sequence as equally important, which is rarely true in complex reasoning tasks where a single word can change the entire meaning of a sentence.

The BMC Framework: A Two-Stage Solution

To solve these alignment inefficiencies, the authors propose a two-stage framework called BMC.

Overview of the BMC framework, illustrating the Bridging Phase (targeted modification) and the Modeling Phase (dynamic token-level weighting).

1. The Bridging Phase

Instead of using the original, unrelated winning response, BMC utilizes an off-the-shelf LLM (like GPT-4 or Llama-3-70B) to perform "targeted modifications." The LLM takes the losing response ($y_l$) and edits only the incorrect parts, using the original winning response as a reference. This creates a pseudo-winning response ($\tilde{y}_w$). This step ensures high consistency; the two responses are now highly correlated, making the "signal" of what needs to be improved much clearer to the model.

2. The Modeling Phase (DPO-BMC)

The authors introduce a new loss function that moves away from DPO’s uniform treatment of tokens. They use the Levenshtein Distance (edit distance) to identify exactly which tokens differ between the newly correlated pair. They then apply dynamic token-level weighting. If the model is "unconfident" about a critical token during training (i.e., it assigns it a low probability), the weight for that token is increased. This forces the model to focus its learning energy on the most challenging and nuanced distinctions.

Key Insights and Ideas

  • Consistency is King: The core "Aha!" moment is that a model learns better from a "near-miss" than from a completely different correct answer. By keeping the style of the losing response but fixing the logic, the model isn't distracted by stylistic differences.
  • Dynamic Weighting vs. Fixed Rewards: Previous attempts at token-level DPO used fixed values (e.g., +1 for good, -1 for bad). BMC’s innovation is making this weight dynamic based on the model's current confidence, allowing the training to adapt as the model improves.
  • Brevity as a Side Effect: Interestingly, BMC-trained models produce responses that are ~25% shorter than standard DPO models. Because the training data focuses on precise edits rather than verbose "winning" examples, the model learns to be more concise and factually dense.
  • Versatility: The BMC framework isn't just for DPO; the authors demonstrated that it can be successfully integrated into other variants like IPO, SimPO, and ORPO.

Key Results

The researchers evaluated BMC across three diverse domains (Question Answering, Mathematical Reasoning, and Instruction Following) using 10 different datasets. BMC consistently outperformed standard DPO and other competitive baselines:

  • QA & Math: DPO-BMC outperformed standard DPO by 3.8 absolute points on QA tasks and 1.3 points on math tasks.
  • Instruction Following: On AlpacaEval 2, BMC achieved a significantly higher length-controlled win rate compared to DPO (e.g., 22.4% vs 16.0% on Llama-3-8B).
  • Scaling Up: The gains were even more pronounced on larger models. When applied to Qwen2.5-14B, BMC saw a massive +8.8 jump on AlpacaEval 2 compared to standard DPO.
  • Efficiency: Despite the extra steps, the training time for the Modeling Phase increased by less than 1% compared to vanilla DPO.

Limitations and Future Work

While highly effective, BMC has a few limitations:

  • Dependency on Teacher Models: The Bridging Phase requires a powerful "off-the-shelf" LLM to generate the pseudo-winning responses. While open-source models work well, the method still relies on a superior model to "clean" the data.
  • Offline Nature: Currently, data modification happens offline before training starts. A potential future direction is an "online" version where the model generates and corrects its own responses in a loop.
  • Threshold Sensitivity: The method introduces a hyperparameter $\delta$ (an upper limit for token weighting). Finding the optimal $\delta$ for entirely new tasks might require some tuning.

Summary updated

BibTeX
@inproceedings{jiang2025bridging,
  author = {Yuxin Jiang and Bo Huang and Yufei Wang and Xingshan Zeng and Liangyou Li and Yasheng Wang and Xin Jiang and Lifeng Shang and Ruiming Tang and Wei Wang},
  title = {{Bridging and Modeling Correlations in Pairwise Data for Direct Preference Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=hRwxZmcvW9},
}
Figure