Improving Reinforcement Learning from Human Feedback with Efficient Reward Model Ensemble

Shun Zhang, Zhenfang Chen, Sunli Chen, Yikang Shen, Zhiqing Sun, Chuang GanarXiv 2024 · DOI

Introduction: The Challenge of Reward Hacking

Reinforcement Learning from Human Feedback (RLHF) is the current gold standard for making Large Language Models (LLMs) helpful and safe. In the standard RLHF pipeline, a Reward Model (RM) is trained to mimic human preferences. An LLM is then optimized via Reinforcement Learning (specifically PPO) to maximize the scores provided by this RM.

However, the RM is often a weak point. Because it is trained on a finite dataset, it has "blind spots." During optimization, the RL agent may find ways to get a high score by generating text that the RM thinks is good but a human would find undesirable—a phenomenon known as reward overoptimization or reward hacking. While ensembling multiple RMs can reduce this uncertainty, loading several full-sized LLMs into memory is computationally prohibitive for most researchers.

Proposed Ensemble Architectures

To address the efficiency gap, the authors propose and compare three ensemble architectures that vary in their diversity and computational cost:

  1. Ensemble of Single Reward Models: The "brute force" approach. Train $k$ independent reward models. It is accurate but requires $k$ times the memory and compute.
  2. Linear-layer Ensemble: All ensemble members share the same Transformer backbone. Only the final "head" (a simple linear layer) is unique to each member. This is extremely fast but often lacks the diversity needed to capture complex uncertainties.
  3. LoRA-based Ensemble: A middle ground. All members share a frozen Transformer backbone, but each has its own LoRA (Low-Rank Adaptation) modules and linear head. This allows for more functional diversity than the linear-layer approach while remaining much cheaper than a full ensemble.
Comparison of the three proposed reward model ensemble architectures: (a) Full Ensemble, (b) Linear-layer Ensemble, and (c) LoRA-based Ensemble.

The authors also tested two ways to aggregate scores: Mean (averaging) and Lower Confidence Bound (LCB), which subtracts the standard deviation from the mean to produce a conservative reward estimate.

Key Results and Insights

The study utilized the AlpacaFarm ecosystem for training and evaluation, focusing on AlpacaEval (win rate) and MT-Bench (1-10 scale).

Performance Gains

  • Best-of-n Performance: On AlpacaEval, both the full ensemble and the LoRA-based ensemble significantly outperformed the single reward model. For $n=200$, the win rate jumped from ~46% (single) to ~48% (ensemble).
  • PPO Improvements: In the more complex PPO training, the LoRA-based ensemble achieved a win rate of 39.5%, compared to just 32.1% for the standard single reward model.
  • MT-Bench: The LoRA-based ensemble achieved an average score of 4.35, outperforming the single model's 4.16.
Performance comparison on AlpacaEval: (a) Best-of-n results showing win rate vs. sample size, and (b) PPO results showing win rate across training steps.

The Diversity-Efficiency Trade-off

The results highlight that the Linear-layer ensemble is often "too shared"—the models end up being too similar to provide a meaningful ensemble benefit. In contrast, LoRA-based ensembles provide the necessary functional diversity to catch reward hacking without needing a massive GPU cluster. Interestingly, the authors found that LCB and Mean predictions performed similarly, suggesting that simply reducing the variance of the reward signal via averaging is the primary driver of improvement.

Conclusion

Efficient reward model ensembles, particularly those utilizing LoRA, offer a practical path toward more robust LLM alignment. By providing diversity at a fraction of the cost of full ensembles, these methods make uncertainty-aware RLHF accessible for standard research hardware, significantly mitigating the risks of reward hacking.

Summary updated

BibTeX
@misc{zhang2024improving,
  author = {Shun Zhang and Zhenfang Chen and Sunli Chen and Yikang Shen and Zhiqing Sun and Chuang Gan},
  title = {{Improving Reinforcement Learning from Human Feedback with Efficient Reward Model Ensemble}},
  year = {2024},
  eprint = {2401.16635},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.16635},
}
Figure