Abstract
Traditional language model alignment methods, such as Direct Preference Optimization (DPO), are limited by their dependence on static, pre-collected paired preference data, which hampers their adaptability and practical applicability. To overcome this limitation, we introduce Self-Augmented Preference Optimization (SAPO), an effective and scalable training paradigm that does not require existing paired data. Building on the self-play concept, which autonomously generates negative responses, we further incorporate an off-policy learning pipeline to enhance data exploration and exploitation. Specifically, we employ an Exponential Moving Average (EMA) model in conjunction with a replay buffer to enable dynamic updates of response segments, effectively integrating real-time feedback with insights from historical data. Our comprehensive evaluations of the LLaMA3-8B and Mistral-7B models across benchmarks, including the Open LLM Leaderboard, IFEval, AlpacaEval 2.0, and MT-Bench, demonstrate that SAPO matches or surpasses established offline contrastive baselines, such as DPO and Odds Ratio Preference Optimization, and outperforms offline self-play methods like SPIN.
Introduction
Aligning Large Language Models (LLMs) with human preferences typically requires "preference pairs"—data consisting of a prompt, a "chosen" (good) response, and a "rejected" (bad) response. Popular methods like Direct Preference Optimization (DPO) rely on static, pre-collected datasets, which are expensive to build and do not adapt as the model improves. While "self-play" methods like SPIN allow models to generate their own rejected samples, they usually operate in an offline, batch-wise manner, creating a lag between data generation and model updates.
Self-Augmented Preference Optimization (SAPO) bridges this gap by creating a dynamic, off-policy pipeline that integrates real-time feedback with historical data, allowing models to improve themselves without needing pre-collected rejected responses.
Methodology
SAPO introduces a general self-play preference learning algorithm inspired by off-policy Reinforcement Learning. Its architecture consists of three main components:
- The Current Policy ($\pi_\theta$): The model being actively trained.
- The EMA Model ($\pi_{EMA}$): A smoothed version of the policy model used to generate "rejected" segments. This provides a stable target for data generation, preventing the training volatility often seen in pure on-policy methods.
- Replay Buffer: A first-in-first-out (FIFO) queue that stores (prompt, chosen, rejected) triplets.
Segment-Level Supervision
A key innovation in SAPO is segment-level supervision. Instead of generating an entire response from scratch, SAPO takes a "chosen" response from a Supervised Fine-Tuning (SFT) dataset, truncates it at a random point, and has the EMA model generate a new middle segment ($B'$). This creates a "rejected" response that is structurally similar to the "chosen" one but contains model-generated errors, making for a much more effective contrastive signal.
Experimental Setup
The authors evaluated SAPO using LLaMA3-8B and Mistral-7B models trained on the Distilabel-Capybara dataset (7.6k entries). Performance was measured across several rigorous benchmarks:
- Open LLM Leaderboard: ARC, GSM8K, MMLU, etc.
- IFEval: Adherence to formatting and length instructions.
- MT-Bench & AlpacaEval 2.0: Conversational skills and win-rate comparisons against GPT-4.
Results and Discussion
SAPO consistently outperformed or matched established baselines across multiple benchmarks. Notably, it significantly outperformed SPIN, which requires much longer training times due to its offline nature.
As shown in the performance table, SAPO-ORPO-LLaMA3-8B achieved an average score of 67.36 on the Open LLM Leaderboard, a notable improvement over standard ORPO (66.57) and the self-play SPIN method (65.24). In conversational benchmarks, SAPO-DPO-LLaMA3-8B reached a score of 7.38 on MT-Bench, surpassing the SFT baseline (6.80).
Key Insights
- Natural Curriculum Learning: Because the replay buffer is FIFO, the model initially trains on "easy" mistakes from earlier versions. As the EMA model improves, the generated rejected samples become more sophisticated, naturally increasing task difficulty.
- Stability via EMA: On-policy sampling can lead to performance declines due to rapid policy changes. The EMA model acts as a stabilizer, ensuring the training signal remains consistent.
- Efficiency of Local Edits: By focusing on segment-level changes, SAPO produces challenging negative pairs that force the model to distinguish subtle nuances in logic or factuality.
Conclusion
SAPO provides a scalable, off-policy framework for LLM alignment that eliminates the need for pre-collected rejected responses. While it still requires high-quality "chosen" responses, it demonstrates that self-augmentation through EMA-based generation and a replay buffer is a highly effective path toward autonomous model improvement. Future work may extend this paradigm to specialized domains like complex reasoning and code generation.
Summary updated