Unsupervised Meta-Learning for Reinforcement Learning

Abhishek Gupta, Benjamin Eysenbach, Chelsea Finn, Sergey LevinearXiv 2018

Abstract

Meta-reinforcement learning (meta-RL) has emerged as a powerful paradigm for enabling agents to adapt quickly to new tasks. However, its success typically hinges on a manually designed distribution of training tasks, which is often impractical to construct for complex environments. This paper introduces Unsupervised Meta-Learning (UML), a framework that automates task acquisition by maximizing mutual information between latent skills and states. By training on these self-generated tasks, agents develop environment-specific learning procedures that enable rapid adaptation to novel, reward-driven tasks without any human-provided task definitions.

Introduction

Reinforcement learning (RL) agents typically begin learning from scratch for every new objective, a process that is notoriously sample-inefficient. Meta-RL addresses this by training agents across a distribution of related tasks, allowing them to "learn how to learn" and adapt to unseen tasks in just a few episodes.

Despite its benefits, meta-RL introduces a significant "hidden cost": the manual design of the training task distribution. For instance, training a robot to navigate a home requires a human to define hundreds of specific sub-tasks. This shifts the burden from algorithm design to task engineering. UML seeks to eliminate this burden by allowing an agent to explore an environment autonomously and emerge with a learning procedure ready to solve any future task.

Methodology

The UML framework follows a two-stage "General Recipe" to bridge the gap between unsupervised exploration and meta-adaptation:

  1. Task Acquisition (Unsupervised Exploration): The agent interacts with the environment without an external reward function. It employs an information-theoretic objective, specifically Diversity is All You Need (DIAYN), to discover a set of diverse skills. DIAYN trains a discriminator to identify which latent "skill code" ($z$) produced a specific state sequence. To maximize this objective, the agent must visit distinct regions of the state space for different codes, effectively creating a synthetic task distribution.
  2. Meta-Learning: Once these synthetic tasks are defined, the agent applies a meta-RL algorithm, such as Model-Agnostic Meta-Learning (MAML). This optimizes the initial policy parameters such that a small number of gradient steps on a new task's reward leads to high performance.
The Unsupervised Meta-Learning pipeline: from environment interaction to fast adaptation on reward-maximizing policies.

Theoretical analysis suggests that for certain problem classes, such as goal-reaching, a task distribution that is uniform over the state space is optimal for minimizing worst-case regret. Maximizing mutual information serves as a practical approximation of this uniform coverage.

Experimental Results

The researchers evaluated UML on three simulated continuous control environments: 2D Point Navigation, HalfCheetah (2D locomotion), and Ant (3D locomotion). The performance of the unsupervised meta-learned agent (UML-DIAYN) was compared against learning from scratch (REINFORCE/VPG), exploration-based pre-training (VIME), and a supervised "Oracle" meta-RL agent.

Key Findings

  • Significant Speedup: In all tested environments, UML-DIAYN adapted to new tasks significantly faster than learning from scratch.
  • Superiority over Pure Exploration: UML-DIAYN consistently outperformed VIME, demonstrating that meta-learning for adaptation is more effective than simple pre-training for exploration.
  • Closing the Gap: In 2D Navigation and HalfCheetah, the unsupervised method performed nearly as well as the Oracle, which had access to human-designed tasks.

Discussion and Insights

UML leverages the inductive bias of dynamics; even without rewards, the physics of the environment provide a rich structure. By meta-learning on self-proposed tasks, the agent learns the fundamental "rules of the world" and how to manipulate its body within those constraints. This results in an environment-specific learning procedure, turning the agent into a specialist for that particular domain.

However, limitations remain. Current skill-discovery methods like DIAYN may not yet capture the full complexity of human-defined tasks in highly intricate environments like the "Ant." Furthermore, while UML excels at adaptation once a reward is found, it does not explicitly solve the "hard exploration" problem of locating sparse, distant goals for the first time.

Conclusion

Unsupervised Meta-Learning represents a significant step toward truly autonomous agents. By automating the task design process, UML allows agents to prepare for a wide range of future objectives through self-supervised interaction, significantly reducing the human effort required to deploy efficient RL systems in new environments.

Summary updated

BibTeX
@misc{gupta2018unsupervised,
  author = {Abhishek Gupta and Benjamin Eysenbach and Chelsea Finn and Sergey Levine},
  title = {{Unsupervised Meta-Learning for Reinforcement Learning}},
  year = {2018},
  eprint = {1806.04640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.04640},
}
Figure