Introduction
Reinforcement learning (RL) often struggles in environments with sparse rewards, where an agent might wander for thousands of steps without accidentally stumbling upon a "win." Traditionally, researchers solve this by hand-crafting a curriculum—starting with easy tasks and gradually increasing difficulty. However, hand-designing these steps is time-consuming and requires deep domain expertise. Furthermore, most existing automatic curriculum methods assume the environment is static. In the real world, achievable goals change based on context (e.g., you cannot fetch a coffee if there is no coffee machine in the room).
DeepMind researchers have developed a "Setter-Solver" framework that automatically generates a curriculum for RL agents in dynamic, variable environments. By training a generative model (the "Setter") to propose goals that are valid, diverse, and at the "Goldilocks" level of difficulty for the current agent (the "Solver"), they enabled agents to master complex 3D manipulation tasks that are otherwise unlearnable through standard exploration.
The Setter-Solver Architecture
The authors propose a tripartite architecture to automate curriculum generation:
- The Solver: The RL agent being trained to perform tasks.
- The Setter: A generative model (specifically a Real-NVP) that creates goals for the Solver.
- The Judge: A discriminator that learns to predict whether the Solver is currently capable of achieving a specific goal.
The Setter is trained using a combination of distinct losses to ensure high-quality goal generation:
- Validity: Ensures the setter proposes goals that are physically possible, learned via a hindsight-like mechanism from goals the agent actually achieved.
- Feasibility: Uses the Judge’s feedback to pick goals that match a desired success rate (e.g., tasks the agent has a 50% chance of completing), keeping the agent in the optimal learning zone.
- Coverage: An entropy-based loss that forces the setter to propose a wide variety of goals, preventing it from getting stuck on a single "easy" task.
- Desirability (Optional): For tasks with a specific end-goal, a Wasserstein discriminator nudges the curriculum toward a target distribution of tasks.
Environments and Evaluation
The researchers evaluated their method on challenging, custom-built environments where the "possible" goals change based on the context:
- 3D Color-finding (Unity): A rich 3D room where an agent (with a 46D action space) must move, pick up, and manipulate objects to create specific color combinations in its field of view.
- Grid-world Alchemy: A 2D environment where the agent must collect and combine colored objects. The "recipe" for combining colors changes every episode, requiring the agent to experiment and adapt.
- Variable Versions: "Recolored" versions of these worlds were introduced where available colors and object properties change every episode, forcing the Setter and Judge to condition their behavior on environmental observations.
Key Insights and Results
- The Necessity of the Trio: Removing any one of the three setter losses (Validity, Feasibility, or Coverage) caused learning to fail in complex 3D tasks. All three are needed to ensure goals are possible, appropriately difficult, and diverse.
- Conditioning is King: In dynamic worlds, the Setter must "look" at the environment before proposing a goal. A goal that is easy in one room layout might be impossible in another. This paper successfully demonstrates goal-conditioning in varying environments.
- Stability over Adversarialism: Unlike approaches like "Goal GAN" that rely on a purely adversarial relationship (which can be unstable), the Setter-Solver-Judge framework uses a more cooperative supervised signal from the Judge, leading to more consistent training.
- Mastering Complexity: In the 3D color-finding task, the Setter-Solver approach learned to perform complex object manipulations (like picking up a blue object and moving it near a yellow one to create a green patch) that baseline RL agents failed to learn entirely. It significantly outperformed baselines like Goal GAN and uniform sampling.
- Targeted Learning: By using the "Desirability" loss, the agent learned to achieve rare, difficult goals much faster than through undirected curriculum generation.
Limitations and Future Work
While highly effective, the framework has limitations. If the "rules" of the environment are hidden in complex visual features, the Setter struggles to extract those latent variables from raw pixels alone. Additionally, while the agent can manipulate objects, it still struggles with deep relational reasoning in highly combinatorial spaces (e.g., complex Alchemy recipes). Finally, scaling this approach from 3D Unity environments to physical robotics will require handling noisier sensors and even more unpredictable environment variations.
Summary updated