TL;DR
Traditional Unsupervised Environment Design (UED) relies on open-ended, stochastically generated curricula that require an impractical number of teacher-student interactions. This paper introduces SHED (Synthetically-enhanced Hierarchical Environment Design), a framework that models environment design as a hierarchical MDP and leverages a conditional diffusion model to generate synthetic student training trajectories. By doing so, SHED successfully develops robust, generally capable RL agents under strict resource and interaction budgets.
What Problem Does This Paper Address?
A core goal of Reinforcement Learning (RL) is training agents that can generalize to completely unseen environments—a property known as zero-shot transfer. Unsupervised Environment Design (UED) tackles this by introducing an automated "teacher" agent that generates a curriculum of training environments to challenge a "student" agent.
However, existing UED algorithms operate under an idealized assumption: they assume the teacher has unlimited opportunities to interact with and test the student. In real-world scenarios or computationally heavy simulations, running a full student training loop for every newly generated environment configuration is prohibitively expensive. This paper addresses the challenge of training robust student agents under strict environmental budgets and practical training constraints.
Methods
The authors propose SHED, which introduces two key innovations to make UED sample-efficient:
- Hierarchical MDP with Policy Representations: Instead of using simple scalar metrics like "regret" to guide the teacher, SHED formulates a two-level hierarchy. The upper-level teacher agent observes the student's current capabilities, represented as a performance vector $s^u = p(\pi)$ across a fixed set of diverse evaluation environments. The teacher then maps this policy representation directly to environment parameters ($\vec{\theta}$) to generate the next tailored challenge.
- Diffusion-Based World Model: To overcome the computational burden of collecting real teacher-student transitions (where each step requires training a student agent over a full horizon), SHED trains a conditional diffusion model. This model acts as a world model, learning the student's policy evolution trajectories to generate realistic synthetic experiences. The teacher can then be trained off-policy using a blend of real and synthetic data.
Additionally, the teacher's reward function is carefully designed to balance overall student learning progress with a fairness metric (coefficient of variation), ensuring the student develops well-rounded capabilities rather than specializing in a few scenarios at the expense of others.
Datasets
The authors evaluated SHED across three distinct simulation domains:
- Lunar Lander: The student must safely land a vehicle while the teacher controls environmental parameters like gravity, wind power, and turbulence.
- BipedalWalker: The student guides a walker across 2D terrain, with the teacher adjusting eight parameters controlling obstacle features (e.g., stump height, ground roughness).
- Maze: A discrete navigation task. To bypass high-dimensional layout spaces, the authors used ChatGPT via Retrieval-Augmented Generation (RAG) to generate feasible mazes based on high-level feature descriptions (size, structure) specified by the teacher.
Key Insights and Ideas
- Policies as Environmental States: Treating a student's multi-environment performance vector as the state allows the teacher to actively predict student progression rather than merely reacting to historical performance.
- Amortizing the Setup Cost: While training the teacher and the diffusion model requires an initial investment (~2500 environments across 50 episodes), the resulting specialized teacher policy can subsequently train new student agents from scratch using a budget of just 50 environments.
- Diffusion for Policy Evolution: Using conditional diffusion models to simulate how a neural network's performance vector changes over training steps proves to be a highly effective way to build world models for meta-RL.
Key Results
Under strict resource constraints (limiting the teacher to generating only 50 environments per episode), SHED consistently outperformed leading baselines, including Domain Randomization (DR), PAIRED, and ACCEL.
- Stable Performance: In the Lunar Lander and BipedalWalker domains, SHED avoided the mid-training performance drops experienced by baseline methods, maintaining a stable, upward trajectory in zero-shot transfer performance.
- Consistency and Efficiency: In the Maze domain, SHED achieved the highest Interquartile Mean (IQM) and the lowest Optimality Gap, demonstrating exceptional consistency across different random seeds compared to the highly volatile performance of PAIRED.
Limitations and Future Work
- High-Dimensional Action Spaces: The authors note that SHED's RL-based teacher might lose efficiency if the environment parameter space (the teacher's action space) becomes extremely high-dimensional. In such cases, simpler domain randomization techniques might scale better.
- Sim-to-Real Dynamics: For sim-to-real deployment, the framework assumes that learning dynamics are comparable between simulated and real environments. The authors highlight this as an assumption requiring further empirical investigation.
Summary updated