AIPO: Improving Training Objective for Iterative Preference Optimization

Yaojie Shen, Xinyao Wang, Yulei Niu, Ying Zhou, Lexin Tang, Libo Zhang, Fan Chen, Longyin WenarXiv 2024 · DOI

Abstract

Aligning Large Language Models (LLMs) with human preferences often relies on iterative training using synthetic data. However, standard objectives like Direct Preference Optimization (DPO) frequently suffer from "length exploitation," where models learn to generate excessively long responses to inflate scores from automated judges. We propose Agreement-aware Iterative Preference Optimization (AIPO), a novel training objective that incorporates a dynamic reward margin based on reference model agreement and Negative Log Likelihood (NLL) regularization. Our results demonstrate that AIPO effectively mitigates runaway verbosity while achieving state-of-the-art performance on major benchmarks, outperforming proprietary models like GPT-4 Omni and Claude 3.5 Sonnet on Arena-Hard.

Introduction

Reinforcement Learning from Human Feedback (RLHF) has become the standard for LLM alignment. While DPO simplified this process, the field has shifted toward Iterative Preference Optimization (IPO). In this paradigm, a model generates its own training data, which is then ranked by a "judge" model (e.g., GPT-4 or a reward model) to create preference pairs for the next training round.

A persistent challenge in this iterative loop is length exploitation. Automated judges often exhibit a bias toward longer responses, leading to a feedback loop where models become increasingly verbose without improving actual quality. AIPO addresses this by introducing a "length tax" directly into the optimization objective.

Methodology: The AIPO Pipeline

The AIPO framework consists of a multi-stage iterative pipeline designed for stability and efficiency.

Synthetic Data Generation

AIPO utilizes a "Self-Instruct" approach. For each iteration $t$:

  1. The current model $\theta_t$ generates new instructions from a prompt pool.
  2. The model generates multiple candidate responses for each instruction.
  3. An external reward model (PairRM) ranks these responses to identify "chosen" and "rejected" pairs.

The AIPO Objective

The core of AIPO is a modified DPO loss function that introduces an Agreement-Aware Margin ($\alpha$-DPO). Standard DPO assumes a uniform margin; AIPO introduces a dynamic margin $\alpha$ that scales based on the reference model's confidence. If the reference model already strongly prefers the chosen response, a larger margin is enforced. This prevents the model from further optimizing already "solved" pairs by simply adding length. Additionally, NLL Regularization is added to maintain stability across many iterations, preventing the model's output distribution from drifting too far from its base instruction-following capabilities.

Experimental Results

We evaluated AIPO across several model families, including Mistral, Llama-3, and Gemma-2.

Figure 2: Performance comparison of AIPO against DPO, SimPO, and other variants over 15 iterations. AIPO maintains high performance while controlling response length.
  • Benchmark Performance: AIPO-tuned models consistently outperformed baseline DPO and SimPO. Notably, a Mistral-Large-Instruct-2407 model trained with AIPO achieved an 81.6% win rate on Arena-Hard, surpassing Claude 3.5 Sonnet (79.3%) and GPT-4 Omni (79.2%).
  • Efficiency and Length: On AlpacaEval 2.0, AIPO reached a 70.8% win rate. Crucially, AIPO maintains a much better Pareto frontier of performance vs. length than competing methods. As shown in Figure 5, AIPO achieves higher win rates with significantly shorter responses compared to SimPO and DPO.
Figure 5: Win rate vs. average response length. AIPO (purple) demonstrates superior efficiency, achieving higher win rates with fewer tokens than other methods.

Key Insights

  • The Synthetic Advantage: Training on a model's own generated responses leads to better performance than training on external data, but it accelerates length exploitation. AIPO's objective is specifically designed to harness this synthetic data safely.
  • Iterative Stability: Smaller, more frequent updates (more iterations with less data per iteration) lead to higher performance ceilings. AIPO provides the stability needed to scale these iterations without the model diverging or becoming overly verbose.

Conclusion

AIPO provides a robust recipe for scaling LLM alignment using purely synthetic data. By addressing length exploitation at the objective level and ensuring iterative stability through NLL regularization, AIPO allows models to reach higher performance ceilings while remaining concise and efficient.

Summary updated

BibTeX
@misc{shen2024aipo,
  author = {Yaojie Shen and Xinyao Wang and Yulei Niu and Ying Zhou and Lexin Tang and Libo Zhang and Fan Chen and Longyin Wen},
  title = {{AIPO: Improving Training Objective for Iterative Preference Optimization}},
  year = {2024},
  eprint = {2409.08845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.08845},
}
Figure