Abstract
Aligning Large Language Models (LLMs) with human preferences typically relies on static Reward Models (RM) trained on fixed datasets. However, as the LLM improves, a distribution shift occurs between the training data and the model's evolving outputs, leading to performance plateaus. We present Adversarial Preference Optimization (APO), a framework that treats alignment as a min-max game. By iteratively updating the RM to distinguish between "golden" responses and the LLM's current outputs, APO maintains an effective evaluator throughout the training process, significantly enhancing model performance without continuous human intervention.
The Challenge of Distribution Shift
The standard recipe for LLM alignment—collecting human rankings, training an RM, and optimizing via RLHF or DPO—faces a critical bottleneck: distribution shift. As the LLM is optimized, it begins to generate high-quality responses that differ significantly from the static dataset used to train the RM. Consequently, the RM loses its ability to provide nuanced feedback on these improved outputs, causing alignment performance to plateau. Traditionally, overcoming this requires expensive and slow rounds of human re-annotation.
Methodology: The APO Framework
Adversarial Preference Optimization (APO) addresses this by framing alignment as an iterative "game" between the generator (LLM) and the evaluator (RM), similar to the dynamics of Generative Adversarial Networks (GANs).
The process consists of two alternating steps:
- The RM Step: The Reward Model is trained to distinguish between "golden" responses (high-quality references) and the responses currently sampled from the LLM. This forces the RM to adapt to the LLM's current distribution and identify its specific current weaknesses.
- The LLM Step: The LLM is updated to maximize the scores provided by the newly "sharpened" RM. APO is algorithm-agnostic and can be integrated with various alignment methods such as Rejection Sampling (RJS), Rank Responses to align Human Feedback (RRHF), or Direct Preference Optimization (DPO).
To ensure stability, KL-divergence regularizers are employed to prevent the RM from forgetting general human preferences and the LLM from drifting too far from its base linguistic capabilities.
Experimental Setup
The framework was evaluated using the Helpful & Harmless (HH) dataset from Anthropic. The researchers utilized GPT-4 to generate "golden" responses for the RM training set, serving as a scalable proxy for ideal human output. Experiments were conducted using Alpaca-7B and LLaMA-2-7B as base models.
Key Results and Insights
APO consistently outperformed standard alignment baselines. A key finding is that the RM should not be a static judge but an active adversary that evolves alongside the LLM.
- Multi-round Gains: Unlike standard methods that often plateau after one round, APO showed continued performance improvements over multiple training epochs. As shown in the figure above, the average RM score for APO models (APO-v1, v2, v3) increases steadily compared to baselines like RJS.
- Win Rates: In head-to-head evaluations, the Alpaca2-APO-DPO model achieved a 74.22% win rate against the base Alpaca2 model.
- Efficiency: By leveraging synthetic "golden" data from a teacher model (GPT-4), APO enables iterative RM updates without the need for new human labels.
Conclusion and Future Work
Adversarial Preference Optimization provides a robust solution to the distribution shift problem in LLM alignment. By narrowing the gap between the evaluator's training data and the generator's output, APO achieves superior helpfulness and safety. Future research will explore scaling APO to "online" RLHF methods like PPO and investigating stylistic biases potentially inherited from teacher models like GPT-4.
Summary updated