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

On The Fragility of Learned Reward Functions

Lev E McKinney, Yawen Duan, David Krueger, Adam Gleave · DOI

TL;DR

This paper reveals a critical flaw in how we evaluate learned reward functions: simply checking if a policy trained with the reward function performs well isn't enough. The authors demonstrate that these learned rewards can be surprisingly fragile, failing to train new policies from scratch, even when the original training policy performed well. This highlights the need for more rigorous "relearning" evaluations to ensure learned rewards truly capture desired behaviors.

What Problem Does This Paper Address?

Specifying reward functions for complex tasks is notoriously difficult. Reward learning aims to solve this by inferring rewards from human feedback, often in the form of preferences between trajectory segments. A common practice is to train a "sampler" policy alongside the reward function, and then evaluate the reward function based on the sampler's performance. However, this approach might overlook a crucial issue: the learned reward function might not be robust enough to train a different policy from scratch. This means the reward function might not accurately represent the intended task, even if it was sufficient to guide the initial sampler policy. The authors investigate this "relearning failure" phenomenon in preference-based reward learning.

Methods

The core of the paper's methodology involves a "relearning" evaluation. After a reward function is learned using a sampler policy, the learned reward function is frozen. Then, a new, randomly initialized "relearner" policy is trained from scratch using only this frozen reward function. The performance of this relearner policy is then evaluated under the ground truth reward function. This allows the researchers to directly assess if the learned reward function can generalize and induce the correct behavior in a new agent.

The authors conduct experiments in both tabular and continuous control environments. They systematically vary factors such as:

  • RL Budget: The total amount of interaction data available to the sampler policy.
  • Reward Model Design: Specifically, they explore the use of "reward ensembles" (averaging predictions from multiple reward models trained on bootstrapped data) versus a single reward model.
  • Trajectory Dataset Composition: How the distribution of preference data (e.g., concentrated in high-reward regions vs. more diverse) affects relearning.

Datasets

The paper uses synthetic data generated from a ground truth reward function. Experiments are conducted in:

  • Tabular Environments: Including a custom "stay inside" environment and a "tiny room" environment.
  • Continuous Control Environments: Specifically, the HalfCheetah environment from the seals benchmark suite, which is a modification of HalfCheetah-v3.

Key Insights and Ideas

  • The "Sampler Performance" Trap: The most significant insight is that a high-performing sampler policy does not guarantee a good learned reward function. The learned reward might be brittle and only work for the specific policy that helped generate its training data.
  • Relearning Failures are Real: The experiments clearly demonstrate that relearner policies often perform significantly worse than the sampler policies, sometimes achieving very low ground truth returns, indicating the learned reward function failed to capture the intended task.
  • Dataset Imbalance is a Culprit: Concentrating preference data in high-reward regions can lead to reward functions that overfit to those areas, causing relearning failures. A more diverse dataset covering a wider range of reward values is crucial for robust reward learning.
  • Reward Ensembles Offer Resilience: In tabular settings, using reward ensembles (multiple reward models) significantly mitigates relearning failures. This is attributed to reduced variance in the off-distribution behavior of the ensemble, preventing spurious high rewards that can lead to reward hacking.

Key Results

  • In the HalfCheetah environment, increasing the RL budget (more training data for the sampler) surprisingly decreased relearner performance, while sampler performance improved. This suggests that more data can sometimes lead to a worse learned reward function if not handled carefully.
  • In the "stay inside" tabular environment, using a reward ensemble of five members eliminated relearning failures, with all relearners performing as well as or better than their respective samplers. In contrast, single reward models showed inconsistent relearner performance, with many performing substantially worse.
  • The paper notes that in tabular settings, the effect was less pronounced than in continuous control, sometimes showing a dichotomy of either success or complete failure, leaving less room for subtle degradation.

Limitations and Future Work

The authors acknowledge several limitations:

  • Environment Simplicity: Their experiments are primarily conducted in relatively simple environments with ground truth reward functions that are often linear or state-dependent. While relearning failures have been observed in more complex tasks, it's unclear if the underlying causes are identical.
  • Scale of Solutions: Design choices that improve relearning performance in small-scale experiments (like reward ensembles or less sampler training) might not directly translate to larger, more complex problems.

Future work could explore:

  • Investigating these relearning failures in more complex tasks and environments.
  • Developing and evaluating new reward learning algorithms that are more robust to these failures.
  • Exploring how to design reward learning systems that are less sensitive to dataset composition and reward model design choices.
  • The authors strongly advocate for the inclusion of relearning evaluations in future reward learning research to better understand the quality of learned reward functions.

Summary updated

BibTeX
@misc{mckinney2022fragility,
  author = {Lev E McKinney and Yawen Duan and David Krueger and Adam Gleave},
  title = {{On The Fragility of Learned Reward Functions}},
  year = {2022},
  eprint = {2301.03652},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.03652},
}
Figure