TL;DR
This paper introduces Pairwise Proximal Policy Optimization (P3O), a novel reinforcement learning framework for aligning Large Language Models (LLMs) with human preferences. P3O addresses an inconsistency in existing methods by directly using comparative feedback during the policy update phase, leading to more stable and effective alignment than traditional approaches like PPO.
What Problem Does This Paper Address?
Large Language Models (LLMs) are powerful but can exhibit undesirable behaviors like generating harmful or biased content. The standard approach to align LLMs with human values is Reinforcement Learning from Human Feedback (RLHF). RLHF typically involves two stages: first, training a reward model using human-ranked responses, and second, fine-tuning the LLM using this reward signal with a reinforcement learning algorithm like Proximal Policy Optimization (PPO).
The core problem identified by the authors is an inconsistency between these two stages. While the reward model learns by comparing different responses, the subsequent RL fine-tuning stage often treats these rewards as absolute values. This disconnect can lead to instability in the RL training process. For instance, PPO might produce different updates even for identical preference data, making the alignment process fragile and sensitive to various hyperparameters. The authors argue that this makes PPO less efficient at learning from preference data.
Methods
The paper proposes a new framework called Reinforcement Learning with Comparative Feedback. Within this framework, they introduce Pairwise Proximal Policy Optimization (P3O), a policy gradient algorithm designed to learn directly from pairwise comparisons of generated responses.
Key aspects of P3O:
- Direct Comparison: Instead of relying on an absolute reward signal, P3O directly uses the difference in rewards between two generated responses to update the policy.
- No Value Function: Unlike PPO, P3O does not require learning a separate value function. This simplifies the algorithm and reduces engineering effort.
- Theoretical Invariance: P3O is theoretically shown to be invariant to additive shifts in reward functions that are equivalent in terms of preference information. This means that if two reward models encode the same preferences, P3O will produce the same policy updates, contributing to stability.
- Two Versions: The paper presents two versions of P3O: P3O-V1 (separate clipping) and P3O-V2 (joint clipping), with P3O-V2 generally showing better performance.
Datasets
The authors use the following datasets for evaluation:
- TL;DR dataset: Used for summarization tasks, where forum posts are paired with summaries.
- Anthropic Helpful and Harmless (HH) dataset: Used for question-answering tasks, focusing on helpful and harmless responses.
Key Insights and Ideas
- The "Absolute vs. Comparative" Disconnect: The fundamental insight is that the inconsistency between learning a comparative reward model and using an absolute reward signal in RL is a major source of instability in LLM alignment.
- P3O's Invariance Property: The theoretical proof that P3O is invariant to reward shifts is crucial. It explains why P3O is more robust than PPO, which is shown to be non-invariant. This invariance is key to achieving stable alignment.
- Simplification through Direct Comparison: Eliminating the need for a value function and advantage estimation simplifies the P3O algorithm, making it more efficient and less prone to errors.
- Comparative RL as a Strong Candidate: The empirical results strongly suggest that comparative reinforcement learning is a more suitable paradigm for aligning LLMs with human preferences than traditional methods.
Key Results
- Superior KL-Reward Frontier: P3O consistently outperforms PPO and Direct Preference Optimization (DPO) in achieving a better trade-off between the KL-divergence from the reference policy (SFT model) and the achieved reward. This means P3O can align the model more effectively without deviating too much from its initial capabilities.
- Higher GPT-4 Win Rate: In head-to-head comparisons evaluated by GPT-4, P3O demonstrates a significantly higher win rate against PPO and SFT, and a competitive win rate against DPO, often with less KL divergence.
- Improved Response Quality: Qualitative evaluations (Tables 2, 3, and 4) show that P3O generates more comprehensive, informative, and helpful responses compared to baselines, which sometimes provide vague answers, ask clarifying questions, or even discourage the user. For example, in one case, P3O provided three specific city suggestions, while DPO asked for more information.
Limitations and Future Work
- Hyperparameter Sensitivity: While P3O is more stable than PPO, the paper notes that learning rate and batch size are still critical factors affecting performance.
- Future Directions:
- Investigate the impact of reward over-optimization on trajectory-based and token-based RL algorithms.
- Generalize P3O to handle more than two ranked responses, potentially reducing human effort.
- Explore applying P3O in contexts beyond LLM alignment, such as robotics or other sequential decision-making tasks.
Summary updated