Abstract
A key challenge in training generally-capable agents is the design of training tasks that facilitate broad generalization and robustness to environment variations. This challenge motivates the problem setting of \emph{Unsupervised Environment Design} (UED), whereby a student agent trains on an adaptive distribution of tasks proposed by a teacher agent. A pioneering approach for UED is PAIRED, which uses reinforcement learning (RL) to train a teacher policy to design tasks from scratch, making it possible to directly generate tasks that are adapted to the agent’s current capabilities. Despite its strong theoretical backing, PAIRED suffers from a variety of challenges that hinder its practical performance. Thus, state-of-the-art methods currently rely on \emph{curation} and \emph{mutation} rather than \emph{generation} of new tasks. In this work, we investigate several key shortcomings of PAIRED and propose solutions for each shortcoming. As a result, we make it possible for PAIRED to match or exceed state-of-the-art methods, producing robust agents in several challenging procedurally-generated environments, including a partially-observed maze navigation task and a continuous-control car racing environment. We believe this work motivates a renewed emphasis on UED methods based on learned models that directly generate challenging environments, potentially unlocking more open-ended RL training and, as a result, more general agents.
Introduction
Training generally-capable agents is a fundamental challenge in reinforcement learning (RL). To achieve broad generalization and robustness, agents must be exposed to a diverse and adaptive curriculum of tasks. This has led to the development of Unsupervised Environment Design (UED), where a teacher agent automatically generates training environments for a student agent. A prominent generative UED algorithm, PAIRED, uses an adversarial framework to design tasks based on the regret between two students. However, PAIRED is notoriously difficult to stabilize, leading many researchers to favor simpler curation-based methods. This paper identifies the core instabilities of PAIRED and introduces simple yet effective modifications to restore its performance.
The PAIRED Framework
PAIRED (Protagonist Antagonist Induced Regret Environment Design) introduces a teacher agent that designs levels to maximize the "relative regret" between two student agents: a protagonist and an antagonist. The teacher aims to create environments where the antagonist succeeds but the protagonist fails, effectively finding the "frontier" of the student's current capabilities.
Despite its theoretical elegance, PAIRED often suffers from two primary issues:
- Entropy Collapse: The teacher's policy quickly becomes deterministic, repeatedly generating the same trivial or unsolvable levels.
- The Fall-Behind Problem: If the protagonist fails to solve a level that the antagonist (perhaps by chance) solves, the teacher continues to generate similar levels. If the protagonist never catches up, the curriculum stalls.
Overcoming Instabilities in Generative UED
The authors propose three key modifications to stabilize the generative process:
High Entropy Regularization (HiEnt)
By adding a significant entropy bonus to the PPO objective for both the teacher and the students, the authors prevent policy collapse. This forces the teacher to continue exploring the design space, ensuring a more diverse curriculum. The paper shows that the teacher's failure to explore the design space is often the primary reason UED fails.
Behavioral Cloning (BC)
To address the "fall-behind" problem, the authors treat the successful antagonist as an expert demonstrator. They introduce UniBC, where the protagonist clones the antagonist's successful actions, and BiBC, where both students clone each other. This acts as a form of "online distillation," allowing the struggling student to learn from the one that found a solution, preventing the curriculum from getting stuck in a cycle of degenerate levels.
Evolutionary Optimizers
The researchers also experimented with replacing the RL-based teacher with search-based or evolutionary editors to determine if the optimization method itself was a bottleneck in environment design.
Experimental Results
The proposed methods were evaluated on several challenging benchmarks, including CarRacing F1, MiniGrid maze navigation, and BipedalWalker terrains.
In the CarRacing environment, the stabilized PAIRED (using BiBC and HiEnt) significantly outperformed previous state-of-the-art curation methods like Robust PLR. The resulting agents demonstrated zero-shot generalization to real-world F1 track layouts they had never seen during training. In MiniGrid, the method matched the performance of ACCEL, the leading curation-based algorithm, while generating significantly more complex and winding corridors than the original PAIRED.
Conclusion
This work demonstrates that the instabilities of generative UED can be overcome with targeted regularizations. By ensuring the teacher continues to explore and the students remain synchronized through behavioral cloning, generative methods can produce more complex, human-like environments that lead to superior agent generalization. These findings motivate a renewed focus on learned models for open-ended RL training, potentially unlocking more general agents.
Summary updated