Abstract
Reinforcement Learning from Human Feedback (RLHF) often suffers from reward over-optimization, where a policy exploits flaws in the reward model. While ensembling multiple reward models can mitigate this, it is computationally expensive. We present a multi-head reward modeling approach that shares a single model backbone across multiple reward heads. This method achieves robustness comparable to full-model ensembles at a fraction of the memory and compute cost.
Introduction: The Challenge of Reward Hacking
In Reinforcement Learning from Human Feedback (RLHF), a "proxy" reward model is trained to mimic human preferences. This model then guides the optimization of an AI policy. However, as the policy improves, it often discovers "blind spots"—mathematical loopholes where the proxy model assigns high rewards to outputs that humans would actually dislike. This phenomenon, known as reward over-optimization or reward hacking, causes the model's true utility to plummet even as proxy rewards increase.
Traditional solutions involve using an ensemble of several full-parameter reward models and taking a conservative estimate (e.g., the minimum) of their scores. While effective, running multiple large models (like 7B parameter LLMs) simultaneously is prohibitively expensive in terms of VRAM and compute, making it impractical for most research settings.
Proposed Method: Multi-Head Reward Learning
To address the efficiency gap, we propose Multi-Head Reward Learning. Instead of training $N$ separate full models, we utilize a shared pretrained backbone and attach multiple independent linear "heads" to the final layer.
The process involves:
- Shared Backbone: A single pretrained model (e.g., OPT) serves as the feature extractor.
- Independent Heads: Multiple linear layers ($H_1, H_2, \dots, H_n$) are initialized differently and trained on preference data.
- Pessimistic Reward Calculation: During the RL phase (using PPO), the reward is defined as the minimum score across all heads: $\hat{r}(x) = \min_i (H_i(F(x)))$.
This "min" operation acts as a safety mechanism. High disagreement between heads indicates uncertainty, leading the system to assign a lower reward and preventing the policy from exploiting these uncertain regions.
Experimental Setup
We evaluated our method using the AlpacaFarm framework and the Alpaca Instructions dataset (52,000 samples). The data was split into 10k samples for supervised fine-tuning (SFT), 10k for reward model training (Preference Split), and 20k unlabeled samples for the PPO phase.
Key Results and Insights
The multi-head approach successfully mitigates the "crash" in true utility typically seen during over-optimization.
Mitigating the Crash
As shown in the results, standard PPO eventually suffers a decline in "gold" reward (ground truth utility) as it over-optimizes the proxy. Both the full ensemble and our multi-head approach maintain high gold rewards throughout training, effectively "bridging the gap" between proxy and true preferences.
Efficiency and Diversity
Surprisingly, the diversity provided by different initializations of the linear heads is sufficient to capture epistemic uncertainty. The multi-head model achieved performance parity with full ensembles while requiring significantly fewer parameters. Furthermore, the multi-head version reached peak performance in just one epoch, whereas full ensembles often required three.
Limitations and Future Directions
While promising, this study focused on the AlpacaFarm dataset and models up to 6.7B parameters. Future work should explore:
- Scaling: Testing the behavior on 70B+ parameter models.
- Dataset Diversity: Evaluating performance on broader datasets like Stanford Human Preferences (SHP).
- Optimal Head Count: Determining the point of diminishing returns for the number of heads to avoid over-conservatism that might stifle learning.
Summary updated