[Paper Review] Smaug: Fixing Failure Modes of Preference Optimisation with DPO-Positive
The paper identifies a failure mode of Direct Preference Optimisation (DPO) where fine-tuning can reduce the probability of preferred completions, and introduces DPO-Positive (DPOP) to mitigate it; fine-tuning with DPOP yields Smaug open-source LLMs that achieve state-of-the-art performance among open models.
Direct Preference Optimisation (DPO) is effective at significantly improving the performance of large language models (LLMs) on downstream tasks such as reasoning, summarisation, and alignment. Using pairs of preferred and dispreferred data, DPO models the relative probability of picking one response over another. In this work, first we show theoretically that the standard DPO loss can lead to a reduction of the model's likelihood of the preferred examples, as long as the relative probability between the preferred and dispreferred classes increases. We then show empirically that this phenomenon occurs when fine-tuning LLMs on common datasets, especially datasets in which the edit distance between pairs of completions is low. Using these insights, we design DPO-Positive (DPOP), a new loss function and training procedure which avoids this failure mode. Surprisingly, we find that DPOP outperforms DPO and other fine-tuning procedures across a wide variety of datasets and downstream tasks, including datasets with high edit distances between completions. Furthermore, we find that the DPOP-tuned model outperforms the DPO-tuned model (all else equal) on benchmarks independent of the fine-tuning data, such as MT-Bench. Finally, using DPOP, we create and open-source Smaug-34B and Smaug-72B, with the latter becoming the first open-source LLM to surpass an average accuracy of 80% on the HuggingFace Open LLM Leaderboard.
Motivation & Objective
- Explain and characterize a failure mode of Direct Preference Optimisation (DPO) when fine-tuning with close-edited preference pairs.
- Propose and validate DPO-Positive (DPOP), a loss that mitigates degradation of preferred completions.
- Create and release new open-source LLMs (Smaug-7B, Smaug-34B, Smaug-72B) trained with DPOP on new paired preference datasets.
- Evaluate Smaug models on standard open benchmarks (HuggingFace Open LLM Leaderboard, MT-Bench) to establish state-of-the-art performance among open models.
Proposed method
- Theoretically analyze the DPO loss to show conditions under which the probability of preferred completions can decrease.
- Introduce DPO-Positive (DPOP) by adding a penalty term to the DPO loss to preserve preferred log-likelihoods.
- Derive the gradient behavior of DPOP to show it incentivises tokens toward the preferred completion.
- Create new paired preference datasets based on ARC, HellaSwag, and MetaMath and apply DPOP training.
- Fine-tune Smaug-7B, Smaug-34B, and Smaug-72B using DPOP on the new datasets; report evaluations on standard benchmarks.
Experimental results
Research questions
- RQ1Does standard DPO sometimes reduce the log-likelihood of preferred completions when editing distance is small?
- RQ2Can a modified loss (DPOP) prevent degradation of preferred completions while preserving the DPO framing?
- RQ3Do open-source Smaug models trained with DPOP outperform DPO baselines on popular benchmarks?
- RQ4How does DPOP perform on datasets with varying edit distances (low vs high) between completions?
Key findings
- DPO can catastrophically degrade performance on preference pairs with small edit distance between completions.
- DPOP mitigates this failure mode and often outperforms DPO even on high-edit-distance datasets.
- Smaug-72B achieves an average accuracy of 80.48% on the HuggingFace Open LLM Leaderboard, first open-source model to surpass 80%.
- Smaug-34B achieves best-in-class performance among models of its size class on the Leaderboard.
- DPOP outperforms DPO across ARC, HellaSwag, and MetaMath datasets in ablation studies and across MT-Bench and MMLU benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.