Supervised fine-tuning (SFT) and preference alignment represent the standard two-stage training paradigm for post-training large language models. While SFT establishes foundational task adherence by minimizing cross-entropy loss against target references, it suffers from two structural limitations: it cannot surpass the quality ceiling of its training demonstrations, and it lacks an explicit mechanism to penalize near-correct outputs that contain subtle hallucinations or omissions.
Direct Preference Optimization (Rafailov et al., 2023) addressed these limitations by directly optimizing policy probabilities on paired preference data without training an explicit reward model. However, standard DPO introduces two major operational bottlenecks: it requires maintaining an active reference policy in GPU memory (doubling memory overhead and forward pass compute), and it exhibits a vulnerability termed "likelihood displacement," where the model satisfies the pairwise preference margin by decreasing the probability of both outputs rather than actively boosting the preferred sequence.
To resolve these challenges, Xu et al. (ICML 2024) introduced Contrastive Preference Optimization (CPO). CPO mathematically reformulates preference optimization by deriving a reference-free upper bound on ideal preference loss and augmenting it with an exact behavior cloning (BC) regularizer. This architecture eliminates the need for an explicit reference model while guaranteeing that the absolute likelihood of high-quality generations remains strictly anchored during alignment.
1. The Limitations of SFT and the DPO Likelihood Displacement Problem
Supervised Fine-Tuning and the Quality Ceiling
In standard supervised fine-tuning over a dataset , the model parameters are optimized via empirical risk minimization of the negative log-likelihood (NLL):
This objective forces the policy to match the empirical data distribution . In precision-critical domains such as machine translation, formal mathematics, and code synthesis, human-generated references frequently contain subtle noise, non-standard phrasing, or omissions. Research by Freitag et al. (2023) and Xu et al. (2023) demonstrated that strong generative models regularly produce candidate outputs with higher semantic fidelity than human gold references.
Because cross-entropy treats every target token in the dataset as ground truth, SFT cannot penalize outputs that are grammatically coherent but factually incomplete, nor can it exceed the average quality of the demonstration set.
Likelihood Displacement in Direct Preference Optimization
DPO derives a closed-form substitution for the Bradley-Terry reward model:
Under a dataset of pairwise preferences , where denotes the preferred completion and denotes the dispreferred completion, the standard DPO objective is:
Let $\Delta r(x, y_w, y_l) = \beta \left( \log \frac{\pi_\theta(y_w|x)}{\pi_{\text{ref}}(y_w|x)} - \log \frac{\pi_\theta(y_l|x)}{\pi_{\text{ref}}(y_l|x)} \right)$. The loss is minimized when .
However, inspecting the argument of the sigmoid function reveals a mathematical vulnerability:
The optimization objective only constrains the relative difference between the log-ratios. If the optimizer encounters a trajectory where decreases by units while simultaneously decreases by units, the net margin increases by units. Consequently, decreases significantly even though the model is actively assigning lower probability to the correct sequence .
In unstructured dialogue, this likelihood displacement often manifests as subtle stylistic shifts. In structured tasks, it leads to severe out-of-distribution hallucinations, repetition loops, and syntax degeneration because the policy drifts away from the valid generation manifold.
2. Mathematical Derivation of the CPO Objective
Contrastive Preference Optimization resolves likelihood displacement by redesigning the objective around two mathematical pillars: a uniform reference upper bound and behavior cloning regularization.
Theorem 1: Uniform Reference Policy as an Upper Bound
Let denote an ideal oracle policy that perfectly reflects the ground-truth distribution of optimal responses, such that and for all .
Substituting into the DPO loss yields:
Since , the expression simplifies to:
Expanding the logistic sigmoid :
Because is fixed and independent of the policy parameters , the term acts as a constant offset :
where $C = \mathbb{E}_{(x, y_l) \sim \mathcal{D}_{\text{pref}}} [\beta \log \pi_w(y_l|x)]$.
Because , we have $\pi_\theta(y_w|x)^\beta \cdot \pi_w(y_l|x)^\beta \le \pi_\theta(y_w|x)^\beta \cdot 1$. Applying this inequality directly:
Reversing the algebraic expansion:
Defining as the reference-free preference loss under a uniform prior :
Thus, minimizing directly minimizes an upper bound on the ideal preference loss . This eliminates the requirement to store or evaluate a separate reference model during training.
3. Behavior Cloning Regularization via Constrained KL Duality
Minimizing alone still permits relative margin maximization at the expense of absolute probability density. To ensure that remains strictly bound to the target distribution, CPO introduces a constrained optimization problem:
Using Lagrangian duality, this constrained optimization translates to:
Expanding the Kullback-Leibler divergence over the preferred data distribution:
Under the ideal oracle distribution where :
Substituting this result directly into the Lagrangian objective produces the final Contrastive Preference Optimization (CPO) loss:
where controls the sensitivity of the contrastive preference boundary and represents the weighting coefficient for the behavior cloning regularizer (typically set to ).
4. Gradient Flow and Non-Degenerate Policy Updates
To understand why CPO mathematically guarantees non-vanishing probabilities for preferred completions, consider the analytical gradient of with respect to the network weights .

Let $h_\theta(x, y_w, y_l) = \beta \log \pi_\theta(y_w|x) - \beta \log \pi_\theta(y_l|x)$. The derivative of the sigmoid log-loss with respect to is:
Differentiating :
Differentiating the behavior cloning term :
Combining the two components yields the complete CPO gradient:
Analytical Properties of the CPO Gradient
- Guaranteed Positive Gradient on Winning Completions: In standard DPO, the gradient coefficient on is simply . If becomes large (the model already favors ), the gradient scales toward zero, leaving the sequence unprotected against drift. Under CPO, the gradient magnitude for the winning completion is lower-bounded by :
This ensures that every training step continues to reinforce valid token transitions in the preferred sequence.
- Asymmetric Error Penalization: When the model makes an incorrect prediction (), . The gradient weight on the preferred completion rises to , while the repulsive gradient on the dispreferred completion reaches .
- Prevention of Likelihood Collapse: Because the positive update coefficient strictly exceeds the negative update coefficient by exactly , the net probability mass allocated to the target data distribution is strictly preserved throughout fine-tuning.
5. Triplet Preference Construction and Rejection Learning
CPO operates on curated preference datasets designed to isolate hard negatives. In tasks where human references may be imperfect, relying solely on human comparisons can introduce noisy gradient signals.
Source Input Sentence (x)
|
+-------------+-------------+
| |
v v
ALMA-13B-LoRA (y_alma) GPT-4 (y_gpt4) Human Gold (y_ref)
| | |
+-------------+-------------+------------------------+
|
v
Reference-Free Neural Ensembles
- Unbabel/wmt23-cometkiwi-da-xxl (10B)
- Unbabel/XCOMET-XXL (10B)
|
v
Quality Score Vector s = (s_alma, s_gpt4, s_ref)
|
+-------------+-------------+
| |
v v
Highest Score Lowest Score Middle Score
y_w (Preferred) y_l (Dispreferred) (Discarded)For each source sentence , three candidate outputs are assembled:
- The human reference translation:
- A high-capacity open-weights model generation: (e.g., ALMA-13B-LoRA)
- A frontier proprietary model generation: (e.g., GPT-4)
The triplet is scored using reference-free metric ensembles such as COMETKiwi-XXL (Rei et al., 2023) and XCOMET-XXL (Guerreiro et al., 2023).
The candidates with the maximum and minimum evaluation scores are designated as and , respectively:
The intermediate candidate is discarded. This triplet filtering strategy provides two operational benefits:
- Hard Negative Mining: The dispreferred candidate is frequently a high-quality, fluent sentence containing minor omissions or morphological inaccuracies rather than incoherent text. Training against near-miss candidates forces the model's self-attention layers to distinguish subtle semantic errors.
- Reference Overcoming: When model generations score higher than human references, is designated as . This allows the model to surpass human reference noise rather than overfitting to flawed annotations.
6. Comparative Architecture Analysis across Direct Alignment Methods
To contextualize CPO within the broader direct alignment ecosystem, consider how its formulation contrasts with alternative closed-form objectives:
- Direct Preference Optimization (DPO) (Rafailov et al., 2023): Operates on pairwise Bradley-Terry log-ratios relative to a reference policy . Requires policy VRAM overhead and dual forward passes per step. Lacks explicit likelihood anchoring, making it vulnerable to probability decay on winning tokens.
- Identity Preference Optimization (IPO) (Azar et al., 2023): Adds a quadratic regularization term around a fixed target margin to prevent unbounded log-ratio growth. Still requires an active reference model and dual forward passes.
- Kahneman-Tversky Optimization (KTO) (Ethayarajh et al., 2024): Applies prospect-theoretic subjective utility curves to unpaired binary feedback (). Anchors rewards against an implicit reference point , but still evaluates probability shifts against .
- Simple Preference Optimization (SimPO) (Meng et al., 2024): Eliminates by calculating length-normalized average log-likelihood margins with an explicit target hyperparameter . Focuses primarily on mitigating length exploitation in conversational instructions.
- Odds Ratio Preference Optimization (ORPO) (Hong et al., 2024): Combines standard SFT cross-entropy with a reference-free odds ratio penalty in a single training stage, optimizing token prediction and pairwise contrast simultaneously.
- Contrastive Preference Optimization (CPO) (Xu et al., 2024): Derives an analytical upper bound on ideal oracle preference loss (eliminating ) and couples it with a behavior cloning Negative Log-Likelihood regularizer on winning completions. Guarantees non-vanishing gradients on preferred sequences with memory footprint and forward pass FLOPs.
7. Empirical Performance and Systems Efficiency
In empirical benchmarks across the WMT'21, WMT'22, and WMT'23 test suites spanning 10 translation directions (English to/from German, Czech, Icelandic, Chinese, and Russian), CPO fine-tuning demonstrates significant gains over standard SFT and DPO:
- Surpassing Human References and Competition Winners: Fine-tuning ALMA-13B-LoRA with CPO using only 22,000 preference pairs (updating 12M parameters, or 0.1% of base weights) created ALMA-13B-R. On WMT'22, ALMA-13B-R achieved an average XCOMET score of 94.05 on English-to-foreign tasks, surpassing GPT-4 (93.23) and specialized WMT competition winning models (93.78).
- Mitigating Negative DPO Transfer: Applying standard DPO to machine translation without an explicit NLL regularizer resulted in negative transfer, reducing average KIWI-XXL scores from 82.66 (baseline ALMA-13B-LoRA) to 82.07 due to likelihood displacement. Adding the behavior cloning regularizer () increased the score to 85.74.
- Memory Footprint and Training Throughput: Because CPO optimizes an analytical upper bound that cancels out the reference policy , it completely eliminates the need to host reference weights in VRAM. This reduces per-device memory allocation by 50% compared to DPO and cuts forward-pass latency in half, allowing full parameter preference optimization on standard commodity GPU hardware.
Sources
- Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation (Xu et al., ICML 2024)
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model (Rafailov et al., NeurIPS 2023)
- A General Theoretical Paradigm to Understand Learning from Human Preferences (Azar et al., 2023)
- KTO: Model Alignment as Prospect Theoretic Optimization (Ethayarajh et al., 2024)
- SimPO: Simple Preference Optimization with a Reference-Free Objective (Meng et al., NeurIPS 2024)
- ORPO: Monolithic Preference Optimization without Reference Model (Hong et al., 2024)
- A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models (Xu et al., ICLR 2024)
- Results of WMT23 Metrics Shared Task (Freitag et al., WMT 2023)
- COMET-22: Unbabel-IST 2022 Submission for the Metrics Shared Task (Rei et al., WMT 2022)
- XCOMET: Using Cross-lingual Encoders to Predict Segment-level Quality (Guerreiro et al., 2023)



