Energy-Based Preference Model Offers Better Offline Alignment than the Bradley-Terry Preference Model
Yuzhong Hong, Hanshan Zhang, Junwei Bao, Hongfei Jiang, Yang Song
TL;DR
This work identifies a fundamental flaw in offline RLHF using Bradley-Terry-based formulations: the MLE can be non-unique in the infinite space of responses, preventing the required slope-1 relationship between learned log-ratio rewards and true rewards. To address this, the authors introduce the Infinite Preference Model (IPM), an Energy-Based Model with a guaranteed unique MLE, and develop Energy Preference Alignment (EPA), a practical contrastive loss that approximates the IPM MLE using offline data. Theoretical results tie the IPM MLE to the RLHF minimizer under slope-1 linearity, while an energy-discrepancy-based offline scheme enables tractable training. Empirically, EPA delivers state-of-the-art offline alignment on open benchmarks, outperforming DPO and related baselines, with a favorable KL-reward tradeoff and beneficial effects from combining strong and weak negatives. The work highlights the potential of EBMs for offline RLHF and points to future work on efficiency and loss-trick design to further close the gap with online RL methods.
Abstract
Since the debut of DPO, it has been shown that aligning a target LLM with human preferences via the KL-constrained RLHF loss is mathematically equivalent to a special kind of reward modeling task. Concretely, the task requires: 1) using the target LLM to parameterize the reward model, and 2) tuning the reward model so that it has a 1:1 linear relationship with the true reward. However, we identify a significant issue: the DPO loss might have multiple minimizers, of which only one satisfies the required linearity condition. The problem arises from a well-known issue of the underlying Bradley-Terry preference model: it does not always have a unique maximum likelihood estimator (MLE). Consequently,the minimizer of the RLHF loss might be unattainable because it is merely one among many minimizers of the DPO loss. As a better alternative, we propose an energy-based model (EBM) that always has a unique MLE, inherently satisfying the linearity requirement. To approximate the MLE in practice, we propose a contrastive loss named Energy Preference Alignment (EPA), wherein each positive sample is contrasted against one or more strong negatives as well as many free weak negatives. Theoretical properties of our EBM enable the approximation error of EPA to almost surely vanish when a sufficient number of negatives are used. Empirically, we demonstrate that EPA consistently delivers better performance on open benchmarks compared to DPO, thereby showing the superiority of our EBM.
