Abstract
We investigate Reinforcement Learning from Human Feedback (RLHF) in the context of a general preference oracle. In particular, we do not assume the existence of a reward function and an oracle preference signal drawn from the Bradley-Terry model as most of the prior works do. We consider a standard mathematical formulation, the reverse-KL regularized minimax game between two LLMs for RLHF under general preference oracle. The learning objective of this formulation is to find a policy so that it is consistently preferred by the KL-regularized preference oracle over any competing LLMs. We show that this framework is strictly more general than the reward-based one, and propose sample-efficient algorithms for both the offline learning from a pre-collected preference dataset and online learning where we can query the preference oracle along the way of training. Empirical studies verify the effectiveness of the proposed framework.
Introduction
Standard Reinforcement Learning from Human Feedback (RLHF) pipelines typically rely on the Bradley-Terry (BT) model. This model assumes that human preferences can be reduced to a scalar reward function where preferences are transitive (if A > B and B > C, then A > C). However, human preferences are often intransitive or context-dependent, making scalar rewards an oversimplification. Furthermore, standard RLHF often suffers from "reward over-optimization," where models exploit flaws in the reward model rather than improving performance.
This paper proposes a shift toward a General Preference Oracle, framing RLHF as a reverse-KL regularized minimax game between two Large Language Models (LLMs). By moving beyond scalar rewards, the authors introduce sample-efficient offline and online algorithms that outperform standard methods, especially in complex reasoning tasks.
Methodology
The core of the proposed approach is to find a "Nash Equilibrium" policy—one that is consistently preferred over any competing policy under a KL-regularized preference oracle. Two primary frameworks are introduced:
- Pessimistic Equilibrium Learning from Human Feedback (PELHF): Designed for offline settings, this method employs the principle of pessimism. It constructs a version space of possible preference models and selects the most conservative estimation to prevent the model from exploiting data uncertainties or "hallucinating" to achieve high predicted preferences.
- Online Iterative RLHF: This framework allows for active querying of a preference oracle during training. It utilizes a "Main Agent" to exploit current knowledge and an "Enhancer" policy to explore. The Enhancer identifies responses with high uncertainty, forcing the oracle to provide highly informative feedback.
A practical "Self-play IPO" (Iterative Preference Optimization) loss function is implemented to approximate the Nash Equilibrium efficiently.
Experimental Setup
The framework was evaluated using LLaMA3-8B and Gemma-2B base architectures across several benchmarks:
- Ultra-feedback: 60k training prompts for initial preference modeling.
- Reward-Bench: Comparison of general preference models against standard BT reward models.
- AlpacaEval 2.0: Testing generalization on out-of-distribution prompts.
Key Results
The empirical results demonstrate the superiority of general preference modeling over the traditional BT approach. A key finding is the significant advantage in reasoning tasks (math and coding). While scalar rewards may fail to capture subtle logical nuances, pairwise preference models can distinguish between complex proofs more effectively.
As shown in the table above, the preference-based model consistently outperforms the BT model in the "Reasoning" category. For instance, the LLaMA3-8B-it model achieved a reasoning accuracy of 94.8% using the preference method, compared to 87.8% with the BT method. Similar trends are observed for the Gemma-2B-it model.
In head-to-head comparisons on AlpacaEval 2.0, the Online-ELHF-IPO model reached a win rate of 17.67%, nearly doubling the performance of the standard Offline DPO baseline (9.33%).
Discussion and Conclusion
The proposed framework offers a more robust and flexible approach to LLM alignment by accounting for the complexities of human preference. The use of "pessimism" in offline learning acts as a safety rail against hallucinations, while the "Enhancer" in online learning drives continuous improvement in weak areas.
Despite its success, challenges remain regarding the computational cost of iterative online training and the reliance on heuristic exploration methods like rejection sampling. Future research will focus on scaling these methods to larger models and optimizing the efficiency of oracle queries.
Summary updated