Generalized Preference Optimization: A Unified Approach to Offline Alignment

Yunhao Tang, Zhaohan Daniel Guo, Zeyu Zheng, Daniele Calandriello, Remi Munos, Mark Rowland, Pierre Harvey Richemond, Michal Valko, Bernardo Avila Pires, Bilal Piot

Abstract

Aligning Large Language Models (LLMs) with human preferences is a critical step in developing safe and helpful AI. While Reinforcement Learning from Human Feedback (RLHF) has been the standard approach, its complexity has led to the rise of "offline" methods like Direct Preference Optimization (DPO). However, the rapid proliferation of these methods has occurred without a clear understanding of their mathematical relationships. This paper introduces Generalized Preference Optimization (GPO), a framework that unifies popular offline alignment methods—including DPO, IPO, and SLiC—by framing preference learning as a binary classification problem. Our analysis reveals that while different loss functions possess distinct regularization properties, they offer similar performance trade-offs when their hyperparameters are properly calibrated.

Introduction

The canonical approach to LLM alignment typically involves a two-stage process: training a reward model on human preferences and then optimizing a policy using Reinforcement Learning (e.g., PPO). This process is computationally intensive and often unstable. Recently, offline methods have gained traction by skipping the reward modeling stage and training directly on preference pairs.

Despite the success of algorithms like DPO, the field has lacked a cohesive theory explaining how these various losses relate to one another or how they enforce regularization. This research addresses this gap by providing a "Grand Unified Theory" for offline preference losses, demonstrating that many existing algorithms are simply specific instances of a broader class of convex optimization problems.

The GPO Framework

The core of the GPO framework is the parameterization of offline preference optimization using a general class of convex functions ($f$). By selecting different forms for $f$, we can recover several prominent algorithms:

  • Logistic Loss $\rightarrow$ Direct Preference Optimization (DPO)
  • Squared Loss $\rightarrow$ Identity Preference Optimization (IPO)
  • Hinge Loss $\rightarrow$ SLiC

Beyond unifying existing methods, GPO allows for the derivation of novel variants using classic machine learning losses, such as Exponential, Truncated Quadratic, and Savage losses. This perspective shifts the view of LLM alignment from a specialized RL problem to a supervised binary classification task, allowing researchers to leverage decades of insights from classification theory.

Analyzing Regularization via Taylor Expansion

To understand how these losses prevent the model from deviating too far from the reference policy, we employed Taylor expansion to analyze the "offline regularization" provided by GPO. We found that near the reference policy, all these methods approximate a $\mu$-weighted squared loss. This mathematical lens explains how these algorithms implicitly constrain the model's drift, though the strength of this constraint varies significantly based on the specific loss function chosen.

Experimental Methodology

We validated the GPO framework across three distinct environments to capture both theoretical nuances and practical performance:

  1. 3-Action Bandit: A controlled setting used to visualize how different losses influence policy weights.
  2. Mixture of Gaussians: A toy example designed to highlight the discrepancies between "offline regularization" and the intended KL-divergence.
  3. LLM Summarization: A real-world application using T5X models (700M parameters) trained on a human-labeled summarization dataset. Performance was evaluated against a "golden" preference judge (an 11B parameter XXL model).

Key Insights

Tail Behavior and Over-fitting

The "tail" of the chosen convex function $f$ determines the algorithm's regularization strength. Losses with "fast-decaying" or "upwards" tails (like IPO’s squared loss) are naturally more conservative. Conversely, DPO’s logistic loss has a "slow-decaying" tail, which can lead the model to push probabilities to extremes. This can result in over-fitting in scenarios where preferences are highly clear-cut, as the model attempts to maximize the margin indefinitely.

The KL Gap

A critical finding is that the implicit regularization enforced by offline methods is not identical to the KL-divergence typically used in online RLHF. While these two metrics correlate well when the model is close to the reference state, they diverge as optimization progresses. This divergence can lead to instability or "gaming" of the loss function, a practical manifestation of Goodhart’s Law.

Performance Parity and Hyperparameter Sensitivity

Our experiments in the summarization task showed that there is no single "superior" algorithm. Instead, all GPO variants achieved nearly identical peak "golden win rates" (approximately 12-14%) once their regularization coefficients ($\beta$) were tuned. However, the optimal $\beta$ varies by orders of magnitude: Squared and Truncated Squared losses peaked near $\beta \approx 1$, while Logistic (DPO) and Savage losses required $\beta \approx 10$.

Conclusion and Future Work

GPO provides a rigorous foundation for understanding offline alignment. By demonstrating that performance is largely a matter of hyperparameter tuning rather than the specific choice of loss function, we simplify the landscape for practitioners.

However, limitations remain. The current framework assumes a total order of preferences and does not yet account for cyclical or non-transitive preference structures. Additionally, GPO focuses on contrastive losses and does not incorporate the supervised learning components often used to maintain language fluency. Future research will explore how these unified insights can be extended to iterative or online preference optimization settings.

Summary updated

BibTeX
@inproceedings{tang2024generalized,
  author = {Yunhao Tang and Zhaohan Daniel Guo and Zeyu Zheng and Daniele Calandriello and Remi Munos and Mark Rowland and Pierre Harvey Richemond and Michal Valko and Bernardo Avila Pires and Bilal Piot},
  title = {{Generalized Preference Optimization: A Unified Approach to Offline Alignment}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=gu3nacA9AH},
}
Figure