Meta-Reward-Net: Implicitly Differentiable Reward Learning for Preference-based Reinforcement Learning

Runze Liu, Fengshuo Bai, Yali Du, Yaodong YangNeurIPS 2022

TL;DR

Meta-Reward-Net (MRN) is a new framework for preference-based reinforcement learning (PbRL) that significantly reduces the amount of human feedback needed to train an agent. By using a bi-level optimization strategy, MRN treats reward learning as a "meta" task, updating the reward function specifically to improve the agent's internal value estimates (the Q-function). This approach leads to state-of-the-art performance in complex robotic tasks with very few human labels.

What Problem Does This Paper Address?

Reinforcement learning (RL) usually requires a carefully engineered reward function—a mathematical formula telling the agent what is "good" or "bad." However, designing these functions is notoriously difficult and prone to "reward hacking," where an agent finds a loophole to get a high score without actually completing the intended task.

Preference-based RL (PbRL) solves this by asking humans to compare pairs of video clips and indicate which one looks better. While this avoids manual reward engineering, human feedback is expensive and slow to collect. Most current PbRL methods are data-hungry; if you only have a few hundred labels, the agent often fails to learn anything useful. The authors tackle this data efficiency gap, aiming to make PbRL work even when human feedback is extremely scarce.

Methods

The core innovation of Meta-Reward-Net is its bi-level optimization approach. Instead of just training a reward function to match human labels (the standard way), MRN looks one step ahead.

Meta-Reward-Net Architecture
  1. The Inner Loop: The agent tries to learn a policy and a Q-function (which estimates the long-term value of actions) based on the current, imperfect reward function.
  2. The Outer Loop: The system evaluates how well that Q-function actually aligns with human preferences. If the Q-function is bad at predicting which clip a human would prefer, the system uses implicit differentiation to "backpropagate" through the learning process and update the reward function.

Essentially, the reward function is trained with a specific goal: "Give the agent rewards that will make its internal value estimates align with what humans want." This creates a much tighter coupling between the reward signal and the agent's actual learning progress. To ensure stability, they also include a standard supervised loss to keep the reward function grounded in the provided labels.

Datasets

The authors evaluated MRN on two popular benchmarks for continuous control:

  • Meta-world: A suite of robotic manipulation tasks (e.g., Hammer, Door Open, Button Press). These are challenging because they require precise coordination.
  • DeepMind Control Suite (DMControl): Locomotion tasks (e.g., Walker, Cheetah, Quadruped) where the agent must learn to run or walk efficiently.

They compared MRN against top-tier baselines like PEBBLE and SURF, specifically testing how these algorithms perform as the number of available human labels decreases.

Key Insights and Ideas

  • The Q-Function as a Mirror: The authors realized that a "good" reward function should naturally lead to a Q-function that reflects human preferences. By using the Q-function's performance as a meta-learning signal, the reward function becomes "aware" of how it affects the agent's training.
  • Implicit Differentiation: To make the bi-level optimization work, they use a "pseudo-update" step. They simulate a gradient descent step for the Q-function and then calculate how the reward parameters influenced that result. This allows the reward function to be updated via the chain rule, even though the relationship between rewards and the final Q-function is complex.
  • Efficiency in Scarcity: The "aha moment" is that this meta-signal is most valuable when data is thin. When you have 10,000 labels, standard supervised learning works fine. But when you only have 100 labels, the meta-signal provides the extra guidance needed to keep the agent on track.

Key Results

Performance on Meta-world Tasks
  • Superior Data Efficiency: In Meta-world tasks, MRN outperformed previous state-of-the-art methods (like SURF) by a large margin when feedback was limited. For example, on the "Hammer" task with limited labels, MRN reached near-perfect success rates while others lagged significantly.
  • Robustness to Low Feedback: In ablation studies on the "Walker" and "Door Open" tasks, MRN maintained high performance even as labels were slashed from 2,000 down to 100. Other methods saw their performance collapse in these low-data regimes.
  • More Accurate Value Estimates: Quantitative analysis showed that MRN learns a Q-function that is significantly closer to the "ground truth" value function compared to baselines. This suggests the bi-level approach truly helps the agent understand the underlying task better.

Limitations and Future Work

  • Quality of Feedback: Like all PbRL methods, MRN is sensitive to the quality of human labels. If the human provides inconsistent or "noisy" preferences, the meta-learning signal might become unreliable.
  • Intra-trajectory Discrimination: The current model struggles to distinguish between "good" and "bad" actions within a single trajectory; it mostly looks at the trajectory as a whole.
  • Visual Complexity: The experiments were largely conducted in simulated environments. The authors note that scaling this to high-dimensional visual inputs (like raw camera feeds in the real world) would require more complex representation learning, which they leave for future research.

Summary updated

BibTeX
@inproceedings{liu2022meta,
  author = {Runze Liu and Fengshuo Bai and Yali Du and Yaodong Yang},
  title = {{Meta-Reward-Net: Implicitly Differentiable Reward Learning for Preference-based Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=TFl8bKBez0m},
}
Figure