Improving Environment Novelty Quantification for Effective Unsupervised Environment Design

Jayden Teoh, Wenjun Li, Pradeep Varakantham

TL;DR

CENIE (Coverage-based Evaluation of Novelty In Environment) is a new framework that boosts the generalizability of Reinforcement Learning (RL) agents by prioritizing "novel" training environments. By using Gaussian Mixture Models (GMMs) to track which parts of the state-action space an agent has already explored, CENIE ensures a diverse curriculum. When combined with traditional regret-based metrics, it achieves state-of-the-art performance across navigation and control tasks.

The Problem: Overfitting and the Limits of Regret

Deep Reinforcement Learning (DRL) agents are notorious for "overfitting" to their training environments. An agent might master a specific maze but fail completely if a single wall is moved. To solve this, researchers use Unsupervised Environment Design (UED), where a "teacher" agent automatically creates a curriculum of levels for a "student" agent.

Most UED methods rely on regret—the difference between how an agent could perform and how it actually performs. While regret is great for finding challenging levels, it often ignores novelty. Without novelty, a teacher might keep generating variations of the same difficult room, leaving the agent unprepared for entirely different scenarios. Previous attempts to measure novelty were either too slow, required human-designed features, or didn't account for the agent's actual experience.

Methods: The CENIE Framework

To address these limitations, the authors introduce CENIE, a framework that is domain-agnostic, scalable, and "curriculum-aware."

CENIE Framework Architecture
  1. State-Action Coverage: Instead of looking at environment parameters (like maze width), CENIE looks at the student's state-action pairs. If the student is executing actions or observing states it hasn't seen before, that environment is considered novel.
  2. Gaussian Mixture Models (GMMs): To make this scalable, CENIE models the agent's past experiences using GMMs. It fits multiple GMMs with different numbers of components and selects the best one using a "silhouette score" to ensure high-quality clustering.
  3. Novelty Scoring: The novelty of a new level is calculated as the negative log-likelihood of the agent's trajectory under the current GMM. Essentially, it asks: "How unlikely is this behavior given everything the agent has seen so far?"
  4. Hybrid Objective: CENIE isn't meant to replace regret; it complements it. The authors integrate CENIE into leading UED algorithms like PLR (Prioritized Level Replay) and ACCEL. The teacher selects levels based on a weighted combination of both regret (learning potential) and novelty (exploration).

Datasets and Evaluation

The researchers evaluated CENIE across three distinct and challenging domains:

  • Minigrid: A discrete navigation task with sparse rewards (mazes).
  • BipedalWalker: A continuous control task where an agent learns to walk over procedurally generated terrain (stumps, pits, stairs).
  • CarRacing: A continuous control task where the teacher designs race tracks using Bézier curves.

For zero-shot transfer benchmarks, agents were tested on human-designed levels they never saw during training, including 20 real-world Formula One track layouts.

Key Insights

  • Novelty as a Catalyst for Regret: One of the most interesting findings is that seeking novelty actually helps find high-regret levels. By pushing the agent into unexplored regions of the state-action space, the teacher discovers new areas where the agent’s performance is sub-optimal, effectively "reigniting" the learning process.
  • Curriculum-Awareness: Unlike static novelty metrics, CENIE uses a FIFO (First-In-First-Out) buffer of recent recent experiences. This prevents the agent from being biased toward outdated data and helps mitigate "catastrophic forgetting."
  • Domain Agnosticism: Because CENIE operates on raw state-action data (or latent representations), it works just as well for a 2D maze as it does for a 3D walking robot without needing any manual tuning of environment features.

Key Results

Empirical evaluations demonstrate that augmenting existing regret-based UED algorithms with CENIE achieves state-of-the-art performance.

Performance across Minigrid environments
  • Superior Generalization: In the Minigrid domain, adding CENIE to the basic PLR algorithm allowed it to match or exceed the performance of ACCEL—a much more complex state-of-the-art algorithm. ACCEL-CENIE further pushed the boundaries of solved rates across complex mazes.
  • State-of-the-Art in Control: In BipedalWalker, ACCEL-CENIE outperformed all baselines, achieving nearly 55% of optimal performance on highly complex terrains where other agents failed.
  • Formula 1 Success: In the CarRacing domain, PLR-CENIE consistently outperformed or matched all baselines across 20 different out-of-distribution (OOD) F1 tracks, proving its robustness in complex, continuous spaces.
  • Quantifiable Exploration: The authors used t-SNE visualizations to show that CENIE-augmented agents covered significantly more of the available state-action space (up to 12% more in BipedalWalker) compared to regret-only methods.

Limitations and Future Work

  • The "Noisy TV" Problem: Like many novelty-seeking methods, CENIE could potentially be distracted by purely random noise in an environment that provides no actual learning value. The authors suggest that balancing novelty with regret helps mitigate this.
  • Generation vs. Selection: Currently, CENIE is primarily used to select levels from a buffer. Future work could involve using GMM likelihood scores to directly generate or mutate novel environments.
  • High-Dimensionality: While GMMs are efficient, they can struggle with the "curse of dimensionality." The authors suggest using latent representations from Variational Autoencoders (VAEs) to handle more complex visual inputs in the future.

Summary updated

BibTeX
@inproceedings{teoh2024improving,
  author = {Jayden Teoh and Wenjun Li and Pradeep Varakantham},
  title = {{Improving Environment Novelty Quantification for Effective Unsupervised Environment Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=UdxpjKO2F9},
}
Figure