TL;DR
This paper identifies excessive dispersion in hidden state norms as the root cause of over-optimization in reward models (RMs) used for LLM alignment. They propose a simple regularization technique, Batch-wise Sum-to-Zero (BSR), which significantly improves RM robustness and leads to better alignment in downstream RLHF tasks, even reducing generation length while increasing win rates.
What Problem Does This Paper Address?
Reinforcement Learning from Human Feedback (RLHF) is a key technique for aligning Large Language Models (LLMs) with human preferences. A crucial component of RLHF is the reward model (RM), which learns to predict human preferences. The standard approach for training RMs uses the Bradley-Terry (BT) model. However, RMs trained with the BT loss are prone to "over-optimization," meaning they become overly specialized to the training data and lose their ability to generalize to unseen inputs or scenarios. This lack of robustness can hinder the effectiveness of RLHF, leading to suboptimal LLM behavior. This paper investigates the cause of this over-optimization and proposes a solution to improve RM robustness.
Methods
The authors hypothesize that the excessive dispersion of hidden state norms within the RM is the primary driver of over-optimization. They analyze the training dynamics of the standard BT loss (LBT) and show how it can lead to an increase in the variance of these hidden state norms.
To combat this, they introduce Batch-wise Sum-to-Zero Regularization (BSR). BSR is an add-on to the standard LBT loss. It enforces that the sum of rewards for all responses within a batch, for a given prompt, should be centered around zero. This effectively penalizes reward outliers with extreme magnitudes, thereby constraining the dispersion of hidden state norms.
They also compare BSR against several baseline regularization methods:
- LBT-Hinge: Uses a hinge loss to set a hardbound on the reward margin.
- LBT-Norm: Normalizes the logits to mitigate overconfidence.
- LBT-DR: A method that amplifies the margin by adding separate logistic losses.
Datasets
The paper uses the UltraFeedback (UF) dataset for training and evaluating reward models. UF is a large-scale dataset containing preference data generated by 17 different LLMs.
For evaluation, they create four distinct validation sets based on UF to assess different generalization scenarios:
- In-Domain (DID): Same prompts and response models as training.
- Prompt-disjoint (D~Prompt): Unseen prompts but same response models.
- Response-disjoint (D~Response): Same prompts but unseen response models.
- Mutual-disjoint (D~Mutual): Unseen prompts and unseen response models.
They also use Skywork-Reward-Preference-80K-v0.2 for experiments with larger models and AlpacaEval 2.0 for evaluating the impact on generation quality.
Key Insights and Ideas
- Hidden State Norm Dispersion is the Culprit: The paper convincingly argues that the uncontrolled growth and variance of hidden state norms in RMs is the core reason for over-optimization, not just the BT loss itself.
- BSR is a Simple Yet Effective Fix: The proposed BSR regularization is straightforward to implement and directly addresses the identified problem of norm dispersion.
- Robust RMs Lead to Robust RLHF: A key takeaway is that improving RM robustness directly translates to better alignment and more stable training in the downstream RLHF process.
- Verbosity Bias Mitigation: BSR helps in reducing verbosity in generated text during RLHF, which is a known issue with LLMs.
Key Results
- Improved Robustness Across Scenarios: BSR consistently outperforms baseline methods across all four generalization scenarios (In-Domain, Prompt-disjoint, Response-disjoint, Mutual-disjoint) in terms of accuracy and Kendall's τ. For instance, in the Mutual-disjoint scenario, BSR achieves higher scores than standard LBT.
- Better Alignment in RLHF: When used in RLHF training (RLOO), RMs trained with BSR show better alignment with the gold preference model (ArmoRM), as evidenced by higher reward scores from the gold RM.
- Reduced Generation Length and Increased Win Rate: In experiments with 8B models on AlpacaEval 2.0, BSR-trained RMs led to a 40% reduction in generation length while achieving a 7% increase in win rate, indicating more efficient and preferred outputs.
- Scalability: The benefits of BSR are observed even with larger models (8B scale), suggesting its practical applicability.
Limitations and Future Work
- Hyperparameter Tuning: While BSR is presented as a simple add-on, the paper mentions that the hyperparameter λ for BSR needs to be tuned, as shown in Table 2 where different values of λ are explored.
- Further Exploration of Regularization: The paper suggests that while explicit logit normalization (LBT-Norm) underperformed, the necessity of soft regularization that doesn't exclude hidden state norms highlights the need for further research into effective regularization strategies.
- Real-world Human Preferences: The current evaluation relies heavily on synthetic preference data. Future work could explore the impact of BSR on RMs trained with actual human annotations.
Summary updated