TL;DR
This paper introduces Goal GAN, a framework that automatically generates a curriculum of tasks for Reinforcement Learning (RL) agents. By using a Generative Adversarial Network to propose goals that are "just right"—neither too easy nor too hard—the method allows agents to efficiently learn a wide range of skills in complex environments with sparse rewards, without any human-engineered curriculum.
What Problem Does This Paper Address?
Standard Reinforcement Learning is excellent at mastering a single, well-defined task. However, in the real world, we often want agents (like robots) to be "generalists" capable of reaching many different goals.
The challenge is twofold:
- Sparse Rewards: In many environments, an agent only gets a reward when it successfully reaches a goal. If the goal is far away, the agent might wander aimlessly for millions of steps, never receiving a single "success" signal to learn from.
- Curriculum Design: To solve the sparse reward problem, researchers often hand-design a curriculum—starting with easy, nearby goals and gradually increasing difficulty. This is tedious, environment-specific, and doesn't scale.
The authors seek a way for the agent to automatically discover and master the full range of feasible tasks in its environment.
Methods
The core of the approach is a "Goal GAN" that works in a loop with the RL agent:
- Goal Labeling: The agent tries to reach a set of goals. These goals are labeled based on the agent's success rate. The authors define Goals of Intermediate Difficulty (GOID) as those where the agent succeeds between 10% and 90% of the time. These are the "Goldilocks" tasks—the agent is learning them but hasn't mastered them yet.
- Adversarial Generation: A GAN is trained using these labels. The Generator creates new goals, while the Discriminator tries to distinguish between generated goals and the "real" GOID goals. This forces the generator to produce new tasks that sit right at the frontier of the agent's current capabilities.
- Policy Optimization: The agent is trained on these new, appropriately difficult goals using a standard RL algorithm (TRPO).
- Replay Buffer: To prevent "catastrophic forgetting" (where the agent forgets how to do old, easy tasks while learning new, hard ones), a portion of training time is dedicated to goals sampled from a replay buffer of previously mastered tasks.
Datasets
The authors evaluated their method on several simulated robotic environments built in MuJoCo:
- Ant Locomotion: A high-dimensional (41D state space) quadruped robot. Tasks include reaching any $(x, y)$ coordinate in a free space or navigating a U-shaped maze.
- Multi-path Point-mass Maze: A 2D environment designed to test if the GAN can handle multi-modal goal distributions (i.e., tracking multiple "frontiers" at once).
- N-dimensional Point Mass: A scalability test where the agent must find a narrow feasible region within a high-dimensional hypercube.
Key Insights and Ideas
- The Learning Frontier: The most important insight is that the GAN effectively tracks the agent's "learning frontier." As the agent gets better, the GAN naturally pushes the goals further away.
- Automatic Feasibility Discovery: The GAN learns to ignore unfeasible goals (like those inside walls). Since the agent's success rate for a goal inside a wall will always be 0%, it never enters the GOID set, and the GAN stops generating samples there.
- Adversarial Curriculum vs. Intrinsic Motivation: Unlike methods that reward "surprise" or "exploration," Goal GAN explicitly targets the specific success probability that maximizes the learning signal for a goal-conditioned policy.
Key Results
- Superior Efficiency: In the Ant environments, Goal GAN achieved significantly higher "coverage" (the percentage of the environment the agent can reliably reach) much faster than uniform sampling or other curriculum methods like SAGG-RIAC.
- Solving the U-Maze: Standard RL methods typically fail to navigate the U-maze because the reward is too sparse. Goal GAN successfully creates a curriculum that leads the agent around the bend.
- High-Dimensional Scalability: In the N-dimensional point mass test, Goal GAN's performance remained stable even as the embedding dimension increased to 6D, whereas uniform sampling's success rate plummeted because it spent all its time proposing impossible goals.
Limitations and Future Work
- Continuous Goal Space: The method currently requires a continuous representation of the goal space (e.g., $x, y$ coordinates). It's unclear how well this would work for discrete or purely visual goal specifications.
- Reachability Assumption: The method assumes that if a goal is reachable, a policy exists to reach it reliably. In highly stochastic or partially observable environments, this might be harder to guarantee.
- Future Directions: The authors suggest combining Goal GAN with Hindsight Experience Replay (HER), which could further improve sample efficiency by allowing the agent to learn from "failed" attempts that reached a different goal than intended.
Summary updated