Evolving Curricula with Regret-Based Environment Design

Jack Parker-Holder, Minqi Jiang, Michael Dennis, Mikayel Samvelyan, Jakob N. Foerster, Edward Grefenstette, Tim Rocktäschel · DOI

TL;DR

This paper introduces ACCEL, a novel approach to curriculum learning in reinforcement learning that combines evolutionary methods with regret-based environment design. ACCEL dynamically evolves increasingly complex training environments, pushing agents to develop robust generalization capabilities with significantly less computational cost than prior methods.

What Problem Does This Paper Address?

Training reinforcement learning (RL) agents to be generally capable and robust, meaning they can perform well across a wide range of tasks and environments, remains a significant challenge. A promising direction is curriculum learning, where the agent is trained on a sequence of progressively more difficult tasks. One popular approach is Unsupervised Environment Design (UED), which frames the creation of these tasks as a game between a "teacher" (environment designer) and a "student" (RL agent). UED methods often use regret-based objectives to ensure the generated tasks are challenging but solvable, pushing the agent to its current limits.

However, existing regret-based UED methods, like PAIRED, struggle with designing effective curricula in complex environments. Evolutionary approaches, on the other hand, can generate diverse and open-ended learning experiences but often rely on domain-specific heuristics and require massive computational resources. This paper aims to bridge this gap by combining the principled, regret-based approach with the evolutionary power to create increasingly complex environments efficiently.

Methods

The core contribution is the Adversarially Compounding Complexity by Editing Levels (ACCEL) algorithm. ACCEL works by:

  1. Maintaining a Level Replay Buffer: High-regret levels (tasks that are challenging for the current agent) are stored in a buffer.
  2. Evolutionary Editing: Instead of generating entirely new levels from scratch (like in domain randomization), ACCEL edits existing high-regret levels from the buffer. These edits are small mutations (e.g., adding/removing obstacles, altering goal locations).
  3. Regret-Based Curation: Edited levels are evaluated for their regret. Only those that remain challenging (i.e., have high regret) are added back to the replay buffer.
  4. Student Training: The RL agent (student) is trained exclusively on levels sampled from the replay buffer.

This process creates a curriculum that starts with simple levels and dynamically evolves towards more complex ones, driven by the agent's performance and the pursuit of high-regret tasks. ACCEL leverages the theoretical benefits of regret-based methods while incorporating the exploratory power of evolution without requiring domain-specific knowledge or large agent populations.

Datasets

The paper evaluates ACCEL on several environments:

  • MiniHack (Lava Grid): A simple 7x7 grid environment where agents must reach a goal while avoiding lava blocks. This serves as a proof-of-concept.
  • MiniGrid Mazes: A suite of partially observable navigation tasks, including human-designed and procedurally generated mazes.
  • BipedalWalker: A continuous-control environment requiring agents to walk on challenging terrain, with variations like stumps, gaps, stairs, and roughness.
  • POET-generated levels: The authors also test ACCEL on challenging levels generated by the POET algorithm to assess its performance on highly specialized tasks.

No new benchmarks were introduced; instead, existing environments were used to compare ACCEL against state-of-the-art UED methods.

Key Insights and Ideas

  • Evolutionary Editing as a Curriculum Driver: The key insight is that small, iterative edits to existing challenging levels can efficiently generate new, even more challenging tasks. This is more efficient than random generation and allows for a smoother progression of difficulty.
  • Regret as a Domain-Agnostic Fitness Function: Regret naturally guides the evolutionary process towards tasks that are at the frontier of the agent's capabilities, eliminating the need for hand-crafted heuristics or domain-specific knowledge.
  • Starting Simple is Beneficial: The experiments suggest that starting with simple environments and gradually increasing complexity (as ACCEL does) leads to better performance, particularly in environments like BipedalWalker.
  • Generalist Agents Outperform Specialists: ACCEL trains a single, generalist agent that performs well across a diverse set of tasks. This contrasts with methods like POET, which train specialized agents for specific tasks, highlighting a trade-off between specialization and generalization.
  • Computational Efficiency: ACCEL achieves comparable or superior performance to other methods while requiring a fraction of the computational resources (e.g., less than 0.05% of environment interaction samples compared to POET).

Key Results

  • Strong Zero-Shot Transfer: ACCEL consistently achieved state-of-the-art zero-shot transfer performance on challenging, out-of-distribution MiniGrid mazes, outperforming baselines like PLR by a significant margin. For example, ACCEL achieved a near-perfect solved rate on some mazes, while PLR was below 80%.
  • Robustness in BipedalWalker: In the BipedalWalker environment, ACCEL achieved nearly 75% of optimal performance, significantly outperforming baselines like PLR (around 25%) and other methods that struggled with the complexity of the design space.
  • Emergent Complexity: ACCEL successfully generated increasingly complex levels, as evidenced by higher block counts, longer path lengths, and the emergence of multiple challenges (stumps, stairs, etc.) in the BipedalWalker environment.
  • Efficiency: ACCEL achieved these results with substantially less computational cost and fewer environment interaction samples compared to methods like POET.
  • Ablation Studies: Editing levels was found to be crucial for ACCEL's performance, and starting with simple levels was beneficial for certain environments.

Limitations and Future Work

  • Starting Simple Inductive Bias: ACCEL's reliance on starting with simple environments might not be universally applicable. In some domains, simple levels might be inherently complex (e.g., Hide-and-Seek games).
  • Level Diversity: For very large design spaces, actively promoting level diversity might be necessary, potentially through population-based methods.
  • Agent Adaptation: While ACCEL focuses on environment design, adapting agent architectures or hyperparameters could further enhance performance in open-ended scenarios.
  • Editing Mechanisms: The paper explored simple editing mechanisms. Future work could investigate more advanced techniques like learned editors or neural cellular automata for editing.
  • Open-Endedness: While ACCEL moves towards open-ended learning, achieving truly unbounded invention remains a grand challenge.

The authors suggest exploring more sophisticated editing mechanisms, methods to encourage level diversity, and investigating how agent adaptation can complement ACCEL's curriculum generation for truly open-ended learning.

Summary updated

BibTeX
@inproceedings{parkerholder2022evolving,
  author = {Jack Parker-Holder and Minqi Jiang and Michael Dennis and Mikayel Samvelyan and Jakob N. Foerster and Edward Grefenstette and Tim Rocktäschel},
  title = {{Evolving Curricula with Regret-Based Environment Design}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=mM8Z0yGfdpp},
}
Figure