Clear Preferences Leave Traces: Reference Model-Guided Sampling for Preference Learning

Nirav Diwan, Tolga Ergen, Dongsub Shim, Honglak Lee

TL;DR

Direct Preference Optimization (DPO) learns best when preferred and rejected responses have clear quality differences, but curating such pairs typically requires costly manual reviews or expensive LLM-as-a-judge calls. The authors discover that an SFT reference model’s log-probability gaps naturally identify high-clarity preference pairs without extra annotations. By training on only the 30%–50% subset of data with the largest reference probability margins, models achieve higher MT-Bench scores—particularly in math, coding, and reasoning—than training on the full dataset.

What Problem Does This Paper Address?

Direct Preference Optimization (DPO) aligns large language models with human intent using paired responses: one preferred ($y_w$) and one rejected ($y_l$). However, noisy or subtle preference pairs—where the two options are almost indistinguishable in quality—degrade training performance.

While filtering for "preference clarity" (a wide margin in response quality) improves alignment, existing solutions are bottlenecked by high annotation costs. Teams either rely on expensive external LLMs (e.g., GPT-4) or tedious human review to score response clarity. This paper tackles how to identify high-quality, clear preference pairs for DPO cheaply and without relying on auxiliary models or extra labels.

Methods

The authors introduce a simple, reference-model-guided data filtering heuristic:

  1. Length-Normalized Reference Probabilities: For a given prompt $x$, preferred completion $y_w$, and rejected completion $y_l$, they compute the average per-token log-likelihood under the supervised fine-tuned (SFT) reference policy $\pi_{\text{ref}}$: $$\left| \frac{\log \pi_{\text{ref}}(y_w \mid x)}{|y_w|} - \frac{\log \pi_{\text{ref}}(y_l \mid x)}{|y_l|} \right| \ge \delta$$
  2. Margin-Based Sampling: Response pairs are retained only if the absolute gap between these length-normalized log-probabilities meets or exceeds a predefined threshold $\delta$.
  3. Standard DPO Training: The policy is fine-tuned via standard DPO exclusively on this filtered subset, downweighting pairs where the reference model views both completions as similarly likely.

Datasets

  • Training: Ultrafeedback (binarized version with 64k samples). Response quality scalar ratings in Ultrafeedback (assigned by GPT-4) served as the ground truth benchmark for preference clarity ($|s_1 - s_2|$).
  • Supervised Fine-Tuning: Ultrachat was used for base SFT checkpoints.
  • Evaluation: MT-Bench, a multi-turn evaluation benchmark graded by GPT-4 across eight categories: writing, roleplay, extraction, reasoning, math, coding, STEM knowledge, and humanities/social sciences.
  • No new datasets were introduced.

Key Insights and Ideas

  • The Reference Model as an Implicit Judge: A strong divergence in reference probabilities between two completions strongly correlates with ground-truth preference clarity.
  • Symmetry of Clarity: Interestingly, this holds true even if the reference model incorrectly assigns higher probability to the worse response. The magnitude of the probability gap indicates that the two responses are qualitatively distinct, making it an effective proxy for informative training pairs.
  • Less Data, Better Models: Pruning 50% to 70% of ambiguous pairs yields better post-alignment performance than training on the complete dataset.
  • Technical Tasks Benefit the Most: Tasks with clear correctness criteria (coding, math, logic) display the greatest sensitivity to preference clarity, whereas open-ended tasks (creative writing, roleplay) show less dramatic movement, partly due to benchmark score saturation.

Key Results

Experiments evaluated Mistral-7B, LLaMA-3-8B, and LLaMA-3.1-8B using DPO ($\beta = 0.01$):

  • Overall MT-Bench Gains:
  • LLaMA-3-8B: Reached 7.80 ($\delta \ge 2$, retaining just 31% of data) vs. 7.40 on the full dataset (+0.40) and 6.55 for SFT.
  • LLaMA-3.1-8B: Improved from 7.74 to 7.88 (+0.14) using 57% of the data ($\delta \ge 1$).
  • Mistral-7B: Improved from 6.96 to 7.13 (+0.17) retaining 70% of data ($\delta \ge 0.5$).
  • Gains on Technical Tasks: MT-Bench technical subsets (math, coding, reasoning) saw improvements of +0.40 to +0.98, with LLaMA-3-8B gaining nearly a full point on technical queries.

Limitations and Future Work

  • Optimal Threshold Selection: The ideal threshold $\delta$ varies by base model (e.g., $\delta=0.5$ for Mistral-7B vs. $\delta=2$ for LLaMA-3-8B); setting it too high aggressively cuts sample size and harms performance.
  • Narrow Evaluation Suite: Testing was largely restricted to MT-Bench. The authors note that MT-Bench has known judge biases and recommend validation on broader benchmarks like Arena-Hard.
  • Scope of Architectures & Pre-training: Experiments were limited to 7B/8B models trained on Ultrafeedback/Ultrachat; scaling behavior on larger models or alternative preference datasets remains untested.
  • Theoretical Foundations: Future work is needed to provide formal theoretical justification for why reference probability divergence acts as an effective signal for preference clarity.

Summary updated

BibTeX
@inproceedings{diwan2024clear,
  author = {Nirav Diwan and Tolga Ergen and Dongsub Shim and Honglak Lee},
  title = {{Clear Preferences Leave Traces: Reference Model-Guided Sampling for Preference Learning}},
  booktitle = {GoodData @ AAAI},
  year = {2024},
  url = {https://openreview.net/forum?id=Cu7uQgBM5G},
}
Figure