MURAL: Meta-Learning Uncertainty-Aware Rewards for Outcome-Driven Reinforcement Learning

Kevin Li, Abhishek Gupta, Ashwin Reddy, Vitchyr Pong, Aurick Zhou, Justin Yu, Sergey Levine

TL;DR

This paper introduces MURAL, a novel reinforcement learning (RL) framework that tackles challenging exploration problems by learning reward functions from examples of successful outcomes. MURAL uses a meta-learning approach to efficiently train uncertainty-aware classifiers, enabling agents to explore more effectively and find rewards even when they are not explicitly provided.

What Problem Does This Paper Address?

Reinforcement learning agents often struggle with exploration, especially when rewards are sparse or hidden. Manually designing reward functions is difficult and requires domain expertise. While providing examples of successful outcomes can help, standard methods for learning rewards from these examples often lead to poor exploration or misleading reward signals. This paper addresses the challenge of learning effective reward functions from success examples in a way that promotes both directed exploration towards goals and the discovery of potentially "hidden" rewards.

Methods

The core of MURAL lies in learning an uncertainty-aware success classifier. Instead of a standard classifier that might be overly confident or pessimistic, MURAL uses a classifier trained with Conditional Normalized Maximum Likelihood (CNML). CNML provides a principled way to quantify uncertainty, which is crucial for exploration.

However, CNML is computationally expensive. To overcome this, MURAL introduces meta-NML, a novel approach that uses meta-learning to amortize the cost of CNML computation. Meta-learning trains a model that can quickly adapt to new data points, allowing MURAL to approximate CNML probabilities with just a few gradient steps. This meta-learned classifier then provides the reward signal for the RL agent.

MURAL connects to count-based exploration methods, especially in tabular settings, and offers advantages in generalization and task-directed exploration when using function approximators.

Datasets

The paper evaluates MURAL on several benchmark environments:

  • Mazes: Zigzag Maze and Spiral Maze (2D navigation tasks).
  • Robotic Manipulation: Sawyer Push, Sawyer Pick, Sawyer Door Opening, and Dexterous Hand Repositioning tasks.
  • Locomotion: Ant Locomotion task.

The success examples for training are provided by the user for each task.

Key Insights and Ideas

  • Uncertainty is Key for Exploration: CNML's ability to quantify uncertainty is crucial for incentivizing exploration, preventing agents from getting stuck in local optima due to premature confidence.
  • Meta-Learning for Efficiency: Meta-learning is a powerful tool to make computationally intensive methods like CNML practical for RL by amortizing the cost of adaptation.
  • Bridging Exploration and Reward Shaping: MURAL effectively combines exploration (discovering novel states) with reward shaping (guiding towards success), a combination that is often difficult to achieve.
  • Beyond Explicit Goals: MURAL's exploration mechanism allows it to discover rewards that are not explicitly part of the provided success examples, a significant advantage over methods that solely rely on the given goals.

Key Results

  • MURAL significantly outperforms prior goal-reaching and exploration methods on challenging navigation and robotic manipulation tasks, often reaching better asymptotic performance and doing so more efficiently.
  • In a 2D maze example, MURAL's rewards are shown to be accurate and well-shaped, unlike standard maximum likelihood classifiers which can be misleading or sparse.
  • MURAL demonstrates the ability to find "hidden" rewards in a double-sided maze task, where other methods get stuck in local optima near the provided goal examples.
  • Meta-NML provides a substantial speedup (1600x-2300x) compared to naive CNML for inference, making it feasible for RL.

Limitations and Future Work

  • Simulation to Real World: The authors acknowledge that while MURAL is effective in simulation, scaling it to real-world problems remains an interesting future direction.
  • Generalization in Tabular Settings: While MURAL connects to count-based exploration in tabular settings, its primary advantage lies in environments where generalization is possible.
  • Hyperparameter Tuning: As with most RL methods, MURAL's performance can be sensitive to hyperparameter choices, though the paper provides extensive details on tuning.

Summary updated

Abstract

Exploration in reinforcement learning is a challenging problem: in the worst case, the agent must search for high-reward states that could be hidden anywhere in the state space. Can we define a more tractable class of RL problems, where the agent is provided with examples of successful outcomes? In this problem setting, the reward function can be obtained automatically by training a classifier to categorize states as successful or not. If trained properly, such a classifier can provide a well-shaped objective landscape that both promotes progress toward good states and provides a calibrated exploration bonus. In this work, we show that an uncertainty aware classifier can solve challenging reinforcement learning problems by both encouraging exploration and provided directed guidance towards positive outcomes. We propose a novel mechanism for obtaining these calibrated, uncertainty-aware classifiers based on an amortized technique for computing the normalized maximum likelihood (NML) distribution. To make this tractable, we propose a novel method for computing the NML distribution by using meta-learning. We show that the resulting algorithm has a number of intriguing connections to both count-based exploration methods and prior algorithms for learning reward functions, while also providing more effective guidance towards the goal. We demonstrate that our algorithm solves a number of challenging navigation and robotic manipulation tasks which prove difficult or impossible for prior methods.
BibTeX
@inproceedings{li2021mural,
  author = {Kevin Li and Abhishek Gupta and Ashwin Reddy and Vitchyr Pong and Aurick Zhou and Justin Yu and Sergey Levine},
  title = {{MURAL: Meta-Learning Uncertainty-Aware Rewards for Outcome-Driven Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=os3lKch4WC0},
}
Figure