Abstract
Traditional alignment methods for Large Language Models (LLMs) often rely on the Bradley-Terry model, which assumes preferences can be reduced to a single scalar reward. This approach struggles with complex, non-transitive human preferences and is prone to reward hacking. We present Direct Nash Optimization (DNO), a post-training algorithm that treats alignment as a game-theoretic problem. By iteratively finding the Nash equilibrium of a two-player game, DNO enables smaller models to self-improve. Our 7B-parameter model, Orca-2.5, trained with DNO, achieves state-of-the-art performance, outperforming significantly larger models like GPT-4 (0314) and 70B-parameter LMs on benchmarks such as AlpacaEval 2.0.
Introduction
The alignment of Large Language Models (LLMs) with human preferences is typically framed as a reward-maximization task. However, human preferences are frequently messy, intransitive, or cyclic—characteristics that a single scalar reward function cannot capture. Forcing models into this framework often leads to "reward hacking," where models generate excessively long or repetitive text to maximize scores without improving actual utility.
To address these limitations, we introduce Direct Nash Optimization (DNO). DNO shifts the paradigm from reward maximization to finding a Nash equilibrium in a preference game. This approach allows models to learn from complex feedback and even surpass the performance of the "teacher" models used to judge them.
Methodology
DNO models the alignment process as a two-player game where the payoff is the probability that one model's response is preferred over another's.
Key Technical Innovations
- Batched On-Policy Learning: Unlike static offline methods, DNO is iterative. It samples new responses from the current model version, preventing the training data from becoming stale and ensuring continuous improvement.
- Regression-Based Objective: DNO utilizes a stable contrastive loss to align the model's internal reward with the expected win rate against itself.
- Large-Margin Filtering: To reduce noise, the training process focuses on preference pairs where the judge (GPT-4-Turbo) expresses a clear, high-margin preference.
- Student-vs-Teacher Comparisons: DNO facilitates "self-improvement" by comparing student outputs directly against "gold" teacher outputs, allowing the smaller model to identify and adopt superior formatting and information density.
Experimental Setup
The primary training was conducted using the UltraFeedback dataset (60k prompts). For scaled-up experiments, a mixture of 600k prompts was used, including Anthropic HH, UltraChat, MetaMathQA, EvolInstruct, and Orca-2. GPT-4-Turbo served as the oracle judge for preference annotations.
Results
The application of DNO to the Orca-2.5 (7B) model yielded significant performance gains. On AlpacaEval 2.0, the model achieved a 33% win rate against GPT-4-Turbo, a substantial increase from the base model's 7% win rate.
As shown in the figure above, the 7B DNO model outperforms several much larger competitors, including Mistral Large and GPT-4 (0314). Notably, DNO maintains reasoning stability, showing consistent improvements across benchmarks like ARC-Challenge, GSM8K, and MMLU without the degradation often seen in other alignment methods.
Discussion and Conclusion
DNO demonstrates that smaller models can effectively "outplay" their teachers by focusing on high-quality, on-policy feedback. While the method is currently dependent on expensive oracle judges like GPT-4, it provides a robust framework for iterative self-improvement. Future research will explore "Self-Rewarding" mechanisms within the DNO framework to reduce reliance on external proprietary models.
Summary updated