Introduction
Reinforcement Learning (RL) agents often exhibit significant brittleness, mastering specific training environments but failing when faced with even minor variations. This paper, presented at IJCAI-23, introduces DIPLR (Diversity Induced Prioritized Level Replay), a framework designed to enhance generalization by training agents on a curriculum that emphasizes environmental diversity alongside difficulty.
The Challenge of Redundancy in UED
Unsupervised Environment Design (UED) aims to automate curriculum generation using a "teacher" to create levels. Existing methods like Prioritized Level Replay (PLR) typically select levels based on "regret"—the difference between an agent's current performance and its potential optimal performance. However, high-regret levels can often be structurally redundant. Training on multiple nearly identical high-regret scenarios is inefficient and fails to prepare the agent for truly novel challenges. To achieve robust generalization, an agent must encounter a wide breadth of distinct environmental features.
The DIPLR Framework
The core innovation of DIPLR is a diversity metric based on the Wasserstein distance between occupancy distributions of agent trajectories. Rather than comparing raw environment parameters, which may not reflect actual task difficulty or behavioral requirements, DIPLR analyzes how the agent moves and acts within a level.
As shown in the framework diagram, DIPLR maintains a Level Buffer (L) and a Trajectory Buffer (Γ). The process involves:
- Measuring Similarity: Trajectories are collected from the student agent. The Wasserstein distance (Earth Mover's Distance) is used to compare state-action distributions across levels.
- Diversity-Driven Selection: When generating new levels or replaying existing ones, the system prioritizes those that are most "distant" (diverse) from the current training set.
- Hybrid Prioritization: DIPLR combines this diversity score with traditional regret metrics, ensuring the agent focuses on levels that are both novel and challenging.
Experimental Evaluation
The authors evaluated DIPLR across three domains: Minigrid (discrete navigation), Bipedal-Walker (continuous control), and Car-Racing (zero-shot transfer to real F1 tracks).
Key Results
DIPLR consistently outperformed state-of-the-art baselines like PLR$^{\perp}$ and PAIRED. In Minigrid, DIPLR achieved a significantly higher solved rate across various out-of-distribution (OOD) levels, such as "Labyrinth" and "Large Corridor."
Statistical analysis using Inter-Quartile Mean (IQM) and Optimality Gap confirmed these findings. In the Car-Racing domain, DIPLR was uniquely successful in transferring skills from simple procedurally generated tracks to complex, real-world F1 layouts, while other methods struggled to generalize.
Conclusion
DIPLR demonstrates that behavioral diversity is a critical component of effective environment design. By shifting focus from purely high-regret levels to a diverse set of challenges, DIPLR significantly improves the zero-shot generalization of RL agents. Future work may involve integrating human-in-the-loop design or exploring more stable, policy-independent distance measures.
Summary updated