TL;DR
Direct Preference Optimization (DPO) teaches language models which answers are better, but it doesn't control how confident the model should be when generating them—often resulting in overly sharp, overconfident token distributions. Target-Entropy DPO (TE-DPO) adds a simple, two-sided penalty that nudges the model's average predictive entropy on preferred responses toward a chosen target level. Without needing any extra reward models, data, or forward passes, TE-DPO consistently outperforms DPO and stronger baselines on both Mistral-7B and Llama-3-8B.
What Problem Does This Paper Address?
When aligning large language models (LLMs) with human preferences, DPO has become a go-to method because it skips the complex reward-modeling and reinforcement learning stages of traditional RLHF. Instead, it directly optimizes a model on pairs of preferred and rejected responses by widening the relative likelihood margin between them.
Here's the catch: learning which response is better is not the same as controlling how sharply the model commits to it. Two models can achieve the exact same DPO preference margin while having completely different token-level probability distributions—one might keep a healthy uncertainty among plausible next words, while the other piles nearly all its probability mass onto a single token. In practice, DPO tends to drift toward overly sharp, overconfident distributions.
A classic fix is to add a one-sided "entropy bonus" (maximum-entropy regularization) to encourage uncertainty. But as the authors point out, that's like pressing the gas pedal without a speedometer: it pushes entropy up indiscriminately, even when the model is already plenty uncertain, which can dilute the preference signal and hurt coherence. What's needed is a thermostat, not just a heater.
Methods
The authors propose Target-Entropy DPO (TE-DPO), a lightweight modification to standard DPO that acts as a two-sided uncertainty controller.
Instead of maximizing entropy indefinitely, TE-DPO measures the average token-level predictive entropy $H_i^+(\theta)$ along the teacher-forced preferred response (masking out prompt and padding tokens) and penalizes its squared deviation from a target entropy $H^\star$:
$$\mathcal{R}_{\text{TE}, i}(\theta) = \lambda_{\text{ent}} \left( H_i^+(\theta) - H^\star \right)^2$$
This penalty is simply added to the standard DPO loss. Because it is quadratic:
- If the model's entropy drops below $H^\star$, the regularizer pushes it back up.
- If the entropy rises above $H^\star$, the regularizer pulls it back down.
- Near $H^\star$, the regularization gradient vanishes, letting the DPO objective take the wheel.
Two design choices make this especially practical. First, the penalty is applied only to preferred responses—there's no reason to enforce a specific uncertainty level on rejected responses that the model is trying to avoid. Second, the squared penalty is applied after averaging entropy across the response's tokens, which regulates overall trajectory uncertainty while still letting individual tokens be naturally easier or harder to predict. Best of all, it reuses the policy logits already computed during DPO, adding no extra forward passes or reference-model overhead.
Datasets
- Training: Full-parameter preference fine-tuning on UltraFeedback-derived, on-policy preference datasets:
mistral-instruct-ultrafeedbackfor Mistral-7B-Instruct-v0.2, andllama3-ultrafeedback-armormfor Meta-Llama-3-8B-Instruct. - Evaluation: The 805 prompts from AlpacaEval 2, using both reference-based comparisons (against GPT-4-Turbo) across four local judge models (Qwen2.5-72B, Qwen3-235B-Int4, Qwen3-32B, and Qwen3-Next-80B-FP8) and direct head-to-head comparisons.
Key Insights and Ideas
- Preference margins underdetermine uncertainty: The authors prove that two policies can share the exact same DPO preference margin yet have different predictive entropies—meaning standard DPO leaves predictive confidence as an uncontrolled degree of freedom.
- Moderate entropy is the sweet spot: Across backbones and hyperparameters, AlpacaEval 2 performance peaks at an intermediate entropy level. Both overly sharp distributions (standard DPO) and overly diffuse ones (MaxEnt-DPO) underperform.
- Control without compromise: Unlike one-sided maximum-entropy regularization—which weakens the validation preference margin—TE-DPO tightly stabilizes entropy around $H^\star$ while preserving a strong preference margin.
- Quality, not verbosity: TE-DPO's gains on length-controlled win rate (LC) are actually larger than its raw win rate (WR) gains, and average response length stays flat or slightly decreases.
Key Results
Averaged across four random seeds and four judge models on AlpacaEval 2, TE-DPO ranks first across all backbone–metric combinations:
- Mistral-7B-Instruct-v0.2: Achieves 29.16% LC / 32.39% WR, outperforming standard DPO (26.28% / 30.11%) by +2.88 LC / +2.28 WR points, and beating the strongest baseline, RE-PO (27.44% / 31.26%), by +1.72 LC / +1.13 WR points.
- Llama-3-8B-Instruct: Achieves 45.31% LC / 43.17% WR, outperforming DPO (41.52% / 40.23%) by +3.79 LC / +2.94 WR points, and RE-PO (43.15% / 41.71%) by +2.16 LC / +1.46 WR points.
- Diversity & Repetition: On both backbones, TE-DPO improves lexical diversity (higher Distinct-2 and TTR) and reduces repetition (lower Rep4).
Limitations and Future Work
The experiments are limited to two instruction-tuned backbones (7B and 8B), UltraFeedback-derived data, and automatic evaluation on AlpacaEval 2. Generalizing these findings to larger model scales, different domains, and human evaluations remains open. Additionally, the target entropy $H^\star$ and regularization strength $\lambda_{\text{ent}}$ were tuned on held-out development sets and may require retuning for new models or tasks.
Summary updated