NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

WARM: On the Benefits of Weight Averaged Reward Models

Alexandre Ramé, Nino Vieillard, Léonard Hussenot, Robert Dadashi, Geoffrey Cideron, Olivier Bachem, Johan Ferret

Abstract

Aligning large language models (LLMs) with human preferences through reinforcement learning (RLHF) can lead to reward hacking, where LLMs exploit failures in the reward model (RM) to achieve seemingly high rewards without meeting the underlying objectives. We identify two primary challenges when designing RMs to mitigate reward hacking: distribution shifts during the RL process and inconsistencies in human preferences. As a solution, we propose Weight Averaged Reward Models (WARM), first fine-tuning multiple RMs, then averaging them in the weight space. This strategy follows the observation that fine-tuned weights remain linearly mode connected when sharing the same pre-training. By averaging weights, WARM improves efficiency compared to the traditional ensembling of predictions, while improving reliability under distribution shifts and robustness to preference inconsistencies. Our experiments on summarization tasks, using best-of-N and RL methods, shows that WARM improves the overall quality and alignment of LLM predictions; for example, a policy RL fine-tuned with WARM has a 79.4% win rate against a policy RL fine-tuned with a single RM.

Introduction

Reinforcement Learning from Human Feedback (RLHF) has become the standard paradigm for aligning Large Language Models (LLMs) with human values and intent. However, the efficacy of RLHF is often limited by "reward hacking." This phenomenon occurs when the policy model (the LLM being trained) discovers and exploits flaws or shortcuts in the Reward Model (RM) to maximize its score without actually improving the quality of its output.

Reward hacking typically stems from two sources: distribution shifts, where the policy generates text outside the RM's training distribution, and noisy labels, where human preference data is inconsistent or biased toward superficial features like length. While ensembling multiple RMs can mitigate these issues, the computational overhead of running multiple models during RL training is often prohibitive. WARM (Weight Averaged Reward Models) addresses these challenges by merging multiple fine-tuned RMs into a single, robust model.

Methodology

WARM leverages the concept of Linear Mode Connectivity (LMC), which suggests that models fine-tuned from the same pre-trained initialization reside in the same low-loss region of the weight space. This allows their weights to be averaged without destroying the functional capabilities of the model.

The WARM framework consists of four primary stages:

  1. Shared Initialization: All reward models begin from the same pre-trained LLM checkpoint.
  2. Diverse Fine-tuning: Multiple RMs are trained on the preference dataset using varying hyperparameters and data orderings to capture different facets of the data.
  3. Baklava Diversity: To further enhance diversity, the researchers utilize the "Baklava" strategy, initializing RMs from different checkpoints along the Supervised Fine-Tuning (SFT) trajectory. This creates a more diverse "convex hull" in the weight space.
  4. Weight Averaging: The weights of these diverse models are linearly averaged to create a single "soup" model.

Theoretical Insights

WARM provides several advantages over standard single-model RMs and traditional prediction ensembling (ENS):

  • The Invariance Principle: Weight averaging acts as a form of regularization. It reinforces features that are consistently learned across different training runs (invariant features) while suppressing "run-specific" noise or memorized patterns from corrupted labels.
  • Improved Smoothness: WARM results in a reward function with higher Lipschitzness. In the context of RL, a smoother reward signal prevents the policy from making drastic, unstable updates, leading to more reliable convergence.
  • Computational Efficiency: Unlike prediction ensembling, which requires $N$ forward passes for $N$ models, WARM results in a single set of weights. This provides the benefits of an ensemble with zero additional inference overhead.

Experimental Results

The researchers evaluated WARM on the TL;DR summarization benchmark using a PaLM-L "oracle" to provide ground-truth quality metrics.

Performance and Alignment

In RL experiments, WARM demonstrated significant performance gains. A policy fine-tuned using WARM achieved a 79.4% win rate against a policy trained with a single standard RM. Furthermore, WARM proved to be more effective than prediction ensembling in out-of-distribution (OOD) scenarios, as it was better at ignoring memorized noise in the training data.

Mitigating Reward Hacking

WARM significantly delays the onset of reward hacking. In standard RLHF, performance often peaks and then collapses as the model begins to exploit the RM. WARM models maintained high-quality outputs for significantly more training steps, showing greater resilience to the distribution shifts inherent in the RL process.

Robustness to Label Noise

To test robustness, the researchers intentionally corrupted 25% of the training labels. WARM remained remarkably robust to this noise, whereas standard ensembling methods began to memorize and incorporate the errors into the reward signal.

Conclusion and Future Work

WARM offers a computationally efficient and robust solution to the reward hacking problem in LLM alignment. By averaging weights in a shared weight space, it captures the collective knowledge of multiple models while filtering out individual failures.

Future research directions include applying WARM to Direct Preference Optimization (DPO) and exploring its utility in personalizing LLMs by interpolating between reward models trained on different user preference profiles. However, WARM remains limited by its requirement for shared architectures and its inability to correct for biases present across the entire pre-training or fine-tuning dataset.

Summary updated

BibTeX
@inproceedings{rame2024warm,
  author = {Alexandre Ramé and Nino Vieillard and Léonard Hussenot and Robert Dadashi and Geoffrey Cideron and Olivier Bachem and Johan Ferret},
  title = {{WARM: On the Benefits of Weight Averaged Reward Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=s7RDnNUJy6},
}
Figure