Introduction
Reinforcement Learning from Human Feedback (RLHF) has become the cornerstone of aligning Large Language Models (LLMs) with human values and preferences. This process relies heavily on a Reward Model (RM), which acts as a proxy for human judgment by scoring model-generated responses. However, a persistent challenge in RLHF is "reward hacking" or overoptimization. This occurs when the policy model exploits flaws and inaccuracies in the RM to achieve high scores without actually improving the quality of its outputs.
Recent research suggests that this failure to generalize stems from the standard practice of training RMs. Typically, a randomly initialized linear "reward head" is appended to a pretrained backbone. During fine-tuning, this new head can distort the rich, general-purpose features learned during pretraining, leading to poor performance on Out-of-Distribution (OOD) data. This paper introduces the Generalizable Reward Model (GRM), a novel training framework that regularizes hidden states using text-generation losses to preserve feature integrity and enhance generalization.
Methodology: The Generalizable Reward Model (GRM)
The core philosophy of GRM is that a good reward model should not forget how to be a good language model. To prevent the "washing away" of pretrained features, the authors propose a multi-task learning objective that simultaneously trains the reward head and maintains the original language modeling (LM) head.
Multi-Task Objective
The GRM objective consists of two primary components:
- Reward Loss ($L_{reward}$): The standard Bradley-Terry preference loss, which trains the model to assign higher scores to the "chosen" (preferred) response over the "rejected" response.
- Text-Generation Regularization ($L_{reg}$): A suite of losses designed to ensure the hidden states remain representative of coherent language.
The authors explored three specific regularization strategies:
- SFT Regularization: This approach maximizes the log-probability of the tokens in the "chosen" response. It was found to be the most stable and effective method.
- DPO Regularization: This applies the Direct Preference Optimization objective as a regularizer.
- DPO-noref: A more memory-efficient variant of DPO that eliminates the need for a reference model during training.
By sharing hidden states between the reward task and the generation task, the model is forced to learn preference features that are grounded in its fundamental understanding of language, rather than finding superficial statistical shortcuts.
Experimental Setup
The researchers evaluated GRM across several rigorous benchmarks to test its robustness and generalization capabilities.
- Training Data: The models were trained on the Unified-Feedback dataset, using both a full 400K sample set and a reduced 40K set to test data efficiency.
- Evaluation Benchmarks:
- In-Distribution (ID): A hold-out set from Unified-Feedback.
- Out-of-Distribution (OOD): The HHH-Alignment (Helpful, Honest, Harmless) dataset and MT-Bench.
- RewardBench: A comprehensive, state-of-the-art benchmark specifically designed to evaluate reward model safety, reasoning, and chat capabilities.
- RLHF Simulation: To observe overoptimization in real-time, the authors conducted PPO and Best-of-n sampling experiments using gemma-2B-it as the policy model and a Mistral-7B model as a "gold" reward reference.
Key Results and Insights
Superior OOD Generalization
GRM demonstrated a significant advantage in generalizing to unseen data. On the HHH-Alignment task, a GRM based on a 7B parameter backbone improved accuracy from 73.4% (the standard baseline) to 79.8%. This suggests that the regularization helps the model capture more universal concepts of "goodness" rather than overfitting to specific dataset biases.
State-of-the-Art Performance on RewardBench
A GRM utilizing the Llama-3-8B backbone achieved a remarkable score of 87.0% on RewardBench. This performance surpassed significantly larger models, including Starling-RM-34B (82.7%) and even the proprietary GPT-4-0125-preview (85.9%). The improvement was most notable in the "Reasoning" category, where GRM reached 92.3% compared to the baseline's 86.4%.
Robustness to Data Scarcity and Noise
One of the most striking findings was GRM's stability under suboptimal conditions:
- Small Data: When training data was reduced from 400K to 40K samples, the baseline model's performance dropped sharply. In contrast, GRM remained stable, showing that regularization compensates for limited supervision.
- Label Noise: In experiments where 25% of training labels were intentionally flipped, GRM maintained high alignment with the "gold" reward. The baseline model, however, suffered from severe overfitting to the noisy labels, leading to a collapse in real-world performance during RLHF.
Mitigating Overoptimization
In the RLHF loop, the authors observed that as the policy model was optimized against a standard RM, the "true" (gold) reward eventually began to decline—a classic sign of reward hacking. With GRM, the proxy reward and the gold reward remained closely aligned throughout the optimization process, effectively shielding the training pipeline from the overoptimization trap.
Conclusion
The Generalizable Reward Model (GRM) demonstrates that the key to better alignment is not necessarily more data or larger models, but better preservation of the features already present in pretrained LLMs. By integrating a simple text-generation regularizer (SFT loss), GRM creates a more robust and honest judge for RLHF. This approach not only sets new benchmarks for reward modeling but also provides a practical path toward more stable and reliable AI alignment, even in the presence of noisy data or limited human feedback.
Summary updated