Towards Improved Preference Optimization Pipeline: from Data Generation to Budget-Controlled Regularization

Zhuotong Chen, Fang Liu, Jennifer Zhu, Wanyu Du, Yanjun QiarXiv 2024

TL;DR

Direct Preference Optimization (DPO) is a powerful tool for aligning Large Language Models (LLMs), but it is often bottlenecked by noisy preference data and training instability. This paper introduces a two-pronged fix: Iterative Pairwise Ranking (IPR) to generate high-quality preference data via sequential tournament-style LLM judgments, and Budget-Controlled Regularization (BCR) to stabilize training by allowing a controlled, optimal amount of likelihood reduction on preferred samples. Together, these methods significantly boost alignment performance, outperforming existing state-of-the-art approaches on popular benchmarks like Alpaca-Eval 2.0 and Arena-Hard.

What Problem Does This Paper Address?

Aligning LLMs with human preferences typically relies on DPO or its variants because they bypass the need to train a separate reward model during optimization. However, the standard DPO pipeline faces two major hurdles:

  1. Noisy Data Generation: Traditional preference data generation relies on scoring-based reward models to evaluate prompt-completion pairs. These models introduce significant noise and generalize poorly to out-of-distribution (OOD) tasks.
  2. The DPO Failure Mode (Training Instability): DPO optimizes the relative probability between preferred and dispreferred completions. Because it only cares about the gap, it can inadvertently drive down the absolute log-likelihood of preferred completions below the reference model's baseline, degrading model capabilities. While existing regularizers (like DPOP) completely forbid any likelihood reduction, the authors discover that this strict constraint actually hurts final model performance.
Figure 1: Overview for DPO pipeline. Preference data gen- eration: existing scoring-based methods select preferred and dispreferred completions based on a single score, our proposed iterative pairwise ranking uses pairwise comparison signals to construct preference data. Regularizing preference opti- mization: we propose a budget-controlled regularization that balances training stability and model alignment performance.

Methods

1. Iterative Pairwise Ranking (IPR) via Dueling Bandits

Instead of using a reward model to assign absolute scores to completions, the authors treat data generation as a dueling bandits problem. Given $M$ candidate completions generated by a base LLM, a strong LLM judge sequentially compares the current "winning" completion against a new candidate. By assuming transitivity and symmetry, IPR finds the optimal completion using just $M-1$ pairwise comparisons. This approach drastically reduces noise and improves robustness on out-of-distribution tasks.

2. Budget-Controlled Regularization (BCR)

The authors uncover a fascinating nuance in DPO training: a slight reduction in the log-likelihood of preferred samples actually helps the model achieve a higher reward margin and better downstream convergence.

To exploit this, they introduce BCR. Unlike previous regularizers that penalize any drop in preferred sample likelihood, BCR introduces a non-negative "budget" hyperparameter ($\delta$). The regularization penalty only kicks in if the likelihood reduction exceeds this budget:

$$\mathcal{L}_{\text{DPOBCR}}(\pi_\theta, \pi_{\text{ref}}) = \mathcal{L}_{\text{DPO}}(\pi_\theta, \pi_{\text{ref}}) + \lambda \mathbb{E}_{(x,y_w) \sim \mathcal{D}} \max \left( 0, \log \frac{\pi_{\text{ref}}(y_w|x)}{\pi_\theta(y_w|x)} - \delta \right)$$

This allows the model to safely navigate the trade-off between maximizing the preference gap and maintaining absolute generation capabilities.

Datasets

  • UltraFeedback: Prompts from this dataset were used to generate candidate completions from base models (Llama-3.1-8B-Instruct and Mistral-Instruct-7B).
  • OOD Evaluation: MsMarco and PubMedQA were leveraged to test how well the preference data generation methods generalize to out-of-distribution domains.
  • Downstream Benchmarks: The final aligned models were evaluated on Alpaca-Eval 2.0 and Arena-Hard.

Key Insights and Ideas

  • A Little Degradation is Good: Completely locking down the log-likelihood of preferred completions (as DPOP does) over-constrains the model. Allowing a small, controlled drop (a "budget") yields a significantly higher win rate.
  • Scoring Models Fail OOD: On out-of-distribution tasks like MsMarco, standard open-source reward models achieve around 50% agreement with a gold-standard judge—essentially random guessing. In contrast, the pairwise IPR approach maintains over 81% agreement, demonstrating superior generalization.
Figure 2: Training progresses of DPO and DPOP. (a) Reward margin: Measures the difference in rewards between preferred and dispreferred completions, which is the main objective in DPO training. (b) Reward accuracy: Shows the percentage of preferred completions that have higher rewards than their dispreferred ones. (c) Log probability: Indicates the average log-likelihood of preferred completions.

Key Results

  • IPR Boosts Alignment: Replacing standard reward-model-generated data with IPR data dramatically improved downstream performance. On Alpaca-Eval 2.0, a Llama-3.1-8B model aligned via SimPO saw its win rate jump from 65.16% (using ArmoRM data) to 85.32% (using IPR data).
  • BCR Maximizes Efficiency: Applying BCR to SimPO (SimPOBCR) pushed the Alpaca-Eval 2.0 win rate to a state-of-the-art 85.90% while significantly conserving the optimization budget (preventing excessive likelihood drops).

Limitations and Future Work

  • Computational Cost: The primary drawback of IPR is its computational footprint. Running multiple sequential inference steps with a large LLM judge (like Llama-3.1-70B) for every single prompt is far more expensive than a single pass through a standard reward model.
  • Future Directions: The authors aim to extend this pipeline from the current offline setup to an online alignment setting, where candidate completions are generated and evaluated dynamically by the target model during the training loop.

Summary updated

BibTeX
@misc{chen2024towards,
  author = {Zhuotong Chen and Fang Liu and Jennifer Zhu and Wanyu Du and Yanjun Qi},
  title = {{Towards Improved Preference Optimization Pipeline: from Data Generation to Budget-Controlled Regularization}},
  year = {2024},
  eprint = {2411.05875},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.05875},
}
Figure