Abstract
This work tackles the problem of overoptimization in reinforcement learning from human feedback (RLHF), a prevalent technique for aligning models with human preferences. RLHF relies on reward or preference models trained on fixed preference datasets, and these models are unreliable when evaluated outside the support of this preference data, leading to the common reward or preference hacking phenomenon. We propose novel, pessimistic objectives for RLHF which are provably robust to overoptimization through the use of pessimism in the face of uncertainty, and design practical algorithms, P3O and PRPO, to optimize these objectives. Our approach is derived for the general preference optimization setting, but can be used with reward models as well. We evaluate P3O and PRPO on the tasks of fine-tuning language models for document summarization and creating helpful assistants, demonstrating remarkable resilience to overoptimization.
Introduction
Reinforcement Learning from Human Feedback (RLHF) has become the standard methodology for aligning Large Language Models (LLMs) with human intent. However, a significant hurdle in this process is "preference hacking" or overoptimization. This occurs when a policy exploits inaccuracies in a reward model—typically trained on a fixed, limited dataset—to achieve high scores through low-quality or nonsensical behaviors. For instance, a model might learn that being overly verbose or repetitive consistently triggers higher rewards from a brittle model, even if the actual quality of the response is poor.
While standard techniques like KL-regularization attempt to mitigate this by penalizing deviations from a reference model, they act as a blunt tool that does not account for the reward model's specific uncertainties. This paper proposes a more targeted approach: incorporating pessimism directly into the optimization objective to ensure models stay within the reliable bounds of their training data.
Methods
The authors frame RLHF as a game between a policy (the "max" player) and an adversary (the "min" player). A key theoretical insight of the paper is that naive pessimism in preference-based RL can fail; if an adversary is unrestricted, it can choose unknown responses to "defeat" any policy, leading to a model that simply hedges its bets and fails to learn useful behaviors.
To address this, the authors introduce the Restricted Nash Formulation. By restricting the adversary to the support of the training data, the policy is forced to be robust against uncertainty without being paralyzed by it. This theoretical framework leads to two practical algorithms:
- P3O (Pessimistic Preference-based Policy Optimization): Designed for general pairwise preference models, P3O uses a variational upper bound to transform the minimax game into a practical gradient-based optimization.
- PRPO (Pessimistic Reward-based Policy Optimization): A simplified variant optimized for standard reward-based settings, such as those using the Bradley-Terry model.
Both algorithms utilize a self-play dynamic, where the policy competes against an exponentially moving average (EMA) of its own past versions, naturally incorporating pessimism into the training loop.
Results and Key Insights
The researchers evaluated P3O and PRPO against common baselines like DPO and REINFORCE on two primary tasks: TL;DR Document Summarization and Anthropic Helpfulness. Performance was judged using Gemini 1.5 Flash as an objective auto-evaluator.
Stability and Performance
As shown in the evaluation plots, P3O and PRPO consistently outperformed baselines. Notably, while DPO's performance often degraded as training progressed—a clear sign of overoptimization—the pessimistic methods reached a high performance plateau and remained stable.
Resisting Length Hacking
A classic example of preference hacking in summarization is "length hacking," where models produce longer summaries to game the reward function. P3O and PRPO naturally converged to summary lengths consistent with human-preferred data. In contrast, DPO and REINFORCE produced significantly longer outputs that were ultimately judged as lower quality by the auto-evaluator.
Qualitative Improvements
On the Helpfulness task, non-pessimistic baselines like REINFORCE and Nash-EMA often degenerated into producing list-heavy, repetitive responses. P3O and PRPO maintained higher stylistic variety and stayed closer to the formatting and tone seen in the actual human preference data. Furthermore, P3O achieved higher win rates while maintaining a lower KL-divergence from the reference model than REINFORCE, suggesting it learns more efficient and "smarter" updates.
Conclusion
By incorporating pessimism and restricting the adversary to known data support, P3O and PRPO provide a robust solution to the problem of preference hacking in RLHF. These methods allow models to deviate from their starting points where the reward model is certain, while preventing them from exploiting "holes" in the reward function. Future work will focus on refining the definition of data support in high-dimensional text spaces and applying these pessimistic principles to iterative, online RLHF settings.
Summary updated