Learning with AMIGo: Adversarially Motivated Intrinsic Goals

Andres Campero, Roberta Raileanu, Heinrich Küttler, Joshua B. Tenenbaum, Tim Rocktäschel, Edward Grefenstette

Abstract

Deep Reinforcement Learning (RL) often struggles in environments with sparse rewards, where agents must perform long sequences of actions before receiving feedback. We present AMIGo (Adversarially Motivated Intrinsic Goals), a meta-learning framework designed to overcome this challenge. AMIGo utilizes a "teacher" network to generate a self-improving curriculum for a "student" agent. By employing a constructively adversarial objective—where the teacher is rewarded for proposing goals that are difficult but reachable—the system enables the learning of complex skills without manual reward shaping.

Introduction

While RL has achieved remarkable success in domains like board games and video games, these successes often rely on dense reward signals or perfect environment models. In real-world scenarios, rewards are frequently sparse. An agent might need to navigate a complex maze, find a key, and unlock a door before receiving any signal of success. Standard exploration methods, such as random walks or basic curiosity-driven approaches, are often insufficient for these "needle-in-a-haystack" problems.

Humans and animals solve this by setting internal, intrinsic goals—playing to learn how the world works. AMIGo bridges this gap by creating an autonomous system where an agent proposes its own intermediate goals, effectively building its own training curriculum from scratch.

Methodology: The Teacher-Student Dynamic

The AMIGo architecture is composed of two primary sub-systems:

  1. The Student: A goal-conditioned policy network that learns to take actions to reach a target coordinate $(x, y)$.
  2. The Teacher: A goal-generating network that observes the environment and selects a target coordinate for the student.

The innovation lies in the "constructively adversarial" reward structure. Unlike traditional GANs where the generator tries to make the discriminator fail, the AMIGo teacher is rewarded based on the student's effort.

The AMIGo architecture: A teacher network proposes a goal location, which is fed as an extra channel into the student's policy network.

The teacher receives a positive reward if the student reaches the goal, but only if it takes more than a specific number of steps ($t^*$). If the student reaches the goal too quickly, the goal is deemed too easy, and the teacher is penalized. Conversely, if the student fails to reach the goal within the time limit, the goal is considered too hard, and the teacher is also penalized. As the student's performance improves, the system dynamically increases the difficulty threshold $t^*$, forcing the teacher to propose increasingly distant or complex targets.

Experimental Setup

The framework was evaluated using MiniGrid, a suite of procedurally generated grid-world environments. MiniGrid is particularly challenging because the layout—including walls, doors, and key locations—changes every episode. This prevents the agent from memorizing specific paths and forces it to learn the underlying logic of the environment.

The researchers focused on six tasks of varying difficulty, ranging from medium (KCmedium, OMmedium) to hard (KCharder, OMhard). The "hard" tasks involve multi-room navigation and complex object interactions, such as finding a key in one room to open a door in another.

Key Insights: Emergent Curricula

AMIGo's design leads to several critical emergent behaviors:

  • The Zone of Proximal Development: By penalizing the teacher for goals that are too simple or impossible, AMIGo ensures the student always operates at the edge of its current capabilities.
  • Architecture Agnostic: The teacher acts as a "bolt-on" component. It can be integrated with various policy gradient-based agents (e.g., IMPALA) by adding a goal-conditioning layer to the student's input.
  • Natural Progression: The system naturally evolves through phases. It begins by proposing nearby tiles, then moves to tiles in adjacent rooms (requiring door-opening), and eventually targets goals that require interacting with objects like keys or chests.
Visualization of the curriculum phases on the OMhard task.

Results

AMIGo established a new state-of-the-art on the most difficult MiniGrid benchmarks. On tasks like KCharder and OMhard, standard intrinsic motivation methods such as Random Network Distillation (RND) and RIDE failed to achieve any reward. In contrast, AMIGo consistently solved these tasks, achieving a mean extrinsic reward of 0.44 on KCharder. While AMIGo requires significant sample sizes (hundreds of millions of frames for the hardest tasks), its ability to converge where other methods fail demonstrates the power of self-motivated exploration.

Limitations and Future Work

Despite its success, AMIGo has limitations. The current implementation assumes full observability for the teacher to define absolute coordinates. Future work could adapt this for partially observed environments. Additionally, goals are currently limited to $(x, y)$ coordinates; expanding this to abstract goals (e.g., linguistic instructions) or sequences of subgoals could further enhance the agent's capabilities. Finally, extending the adversarial teacher-student dynamic to continuous control tasks, such as robotics, remains a promising research direction.

Summary updated

BibTeX
@inproceedings{campero2021learning,
  author = {Andres Campero and Roberta Raileanu and Heinrich Küttler and Joshua B. Tenenbaum and Tim Rocktäschel and Edward Grefenstette},
  title = {{Learning with AMIGo: Adversarially Motivated Intrinsic Goals}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=ETBc_MIMgoX},
}
Figure