TL;DR
Aligning Large Language Models (LLMs) using preference pairs often fails because the data is "noisy" and the training objectives are too blunt. This paper introduces CLAIR, a method to create "minimally contrastive" preference pairs through AI revisions, and APO, a family of alignment objectives that provide finer control over how a model's likelihoods change during training. Together, these methods improved Llama-3-8B-Instruct’s performance by 7.65%, closing nearly half the gap between it and GPT-4-turbo.
What Problem Does This Paper Address?
Current LLM alignment (making models follow human values/instructions) typically uses Direct Preference Optimization (DPO). However, the authors argue that alignment is currently "underspecified" in two ways:
- Data Underspecification: Standard preference datasets (like choosing between two different model outputs) often contain "irrelevant signal." If two responses differ in length, tone, and factual content, the model struggles with "credit assignment"—it doesn't know exactly which part of the winning response made it better.
- Objective Underspecification: DPO only cares about the relative difference between a winning and losing response. It doesn't account for the absolute quality of the data. If a "winning" response in a dataset is actually worse than what the model can already produce, DPO might inadvertently degrade the model's performance by forcing it to mimic mediocre data.
Methods
The authors propose a two-pronged solution:
1. CLAIR (Contrastive Learning from AI Revisions)
Instead of asking a judge to choose between two independent outputs, CLAIR creates a targeted signal. It takes an output from the target model ($y_l$) and uses a stronger "Reviser" model (like GPT-4) to minimally revise it into a better version ($y_w$). Because the two versions are nearly identical except for specific improvements, the model receives a much clearer learning signal on what exactly to change.
2. APO (Anchored Preference Optimization)
APO is a family of objectives that "anchor" the rewards. Unlike DPO, which only maximizes the gap between winner and loser, APO allows researchers to specify the direction of movement for each:
- APO-zero: Explicitly pushes the likelihood of winning outputs up and losing outputs down. This is ideal when the training data is of higher quality than the model.
- APO-down: Decreases the likelihood of both, but pushes the loser down further. This is useful if even the "winning" response is subpar compared to the model's current capabilities.
Datasets
The study utilizes UltraFeedback (32K prompts) as the base. From this, they generated four comparable preference datasets to test their theories:
- CLAIR: Created via the revision process.
- On-policy Judge: The standard approach (sampling two from the model and picking one).
- Off-policy Judge: Using pre-existing judgments from other models.
- Stronger Preferred: Using a stronger model's output as the winner without minimal revision.
For evaluation, they primarily used MixEval-Hard, a benchmark that correlates highly with human judgments (Chatbot Arena), and LC-AlpacaEval 2.0.
Key Insights and Ideas
- Minimal Contrast is King: The authors found that the "contrastiveness" of the data is the primary driver of performance. CLAIR datasets had much higher Jaccard similarity (token overlap) between pairs than standard datasets, leading to significantly better learning.
- The "Aha" on DPO: DPO's behavior is actually a hybrid; it starts by acting like APO-zero (increasing rewards) and then shifts to acting like APO-down (decreasing rewards). However, because it's a "jack of all trades," it is rarely the optimal choice for any specific dataset.
- Data Quality vs. Model Quality: If you align a strong model using a dataset where the "winners" are actually 6/10 quality, and the model is already at 8/10, standard alignment can actually make the model worse. APO-down mitigates this by "anchoring" the objective to prevent the model from drifting toward mediocre outputs.
Key Results
- Performance Boost: Training Llama-3-8B-Instruct on 32K CLAIR pairs using the APO-zero objective resulted in a 7.65% improvement on MixEval-Hard.
- Closing the Gap: This approach closed the performance gap between the 8B model and GPT-4-turbo by 45%.
- Consistency: APO variants outperformed DPO and other objectives (like KTO) across almost every dataset tested.
- Signal Clarity: CLAIR achieved the highest Jaccard similarity (43.11) and lowest Levenshtein distance (1108) between pairs, proving it creates the most "contrastive" data.
Limitations and Future Work
- Heuristic Selection: Currently, the choice between APO-zero and APO-down is made at the dataset level based on general knowledge of the data quality. The authors suggest that future work could involve using a reward model to select the best APO variant for each individual preference pair.
- Reviser Dependency: CLAIR relies on a "stronger" model to perform revisions. While effective, this introduces a dependency on proprietary models or much larger open-source models for the data-creation phase.
- Complexity: APO adds more hyperparameters and variants to the alignment pipeline, which may increase the engineering overhead compared to the "set and forget" nature of standard DPO.
Summary updated