On the Benefit of Optimal Transport for Curriculum Reinforcement Learning

Pascal Klink, Carlo D'Eramo, Jan Peters, Joni Pajarinen · OpenReview

Abstract

Curriculum reinforcement learning (CRL) allows solving complex tasks by generating a tailored sequence of learning tasks, starting from easy ones and subsequently increasing their difficulty. Although the potential of curricula in RL has been clearly shown in various works, it is less clear how to generate them for a given learning environment, resulting in various methods aiming to automate this task. In this work, we focus on framing curricula as interpolations between task distributions, which has previously been shown to be a viable approach to CRL. Identifying key issues of existing methods, we frame the generation of a curriculum as a constrained optimal transport problem between task distributions. Benchmarks show that this way of curriculum generation can improve upon existing CRL methods, yielding high performance in various tasks with different characteristics.

Introduction

Reinforcement Learning (RL) agents often struggle with "sparse reward" tasks—scenarios where an agent might wander aimlessly for thousands of steps without ever stumbling upon a reward signal. Curriculum Reinforcement Learning (CRL) addresses this by starting the agent on easy tasks and gradually increasing the difficulty. However, existing CRL methods often suffer from "geometry blindness" and a phenomenon known as "splitting behavior."

Comparison of curriculum paths for CURROT and SPRL. SPRL exhibits "splitting behavior," sampling tasks that are either too easy or too hard, whereas CURROT maintains a focused progression through the "Goldilocks zone."

Most current methods rely on Kullback-Leibler (KL) divergence to move between task distributions. KL-divergence is insensitive to the underlying "distance" between tasks in the physical world, focusing only on probability overlap. This can lead to sudden jumps in difficulty or the sampling of a mix of trivial and impossible tasks, skipping the intermediate "Goldilocks zone" of difficulty that drives progress.

Methodology: CURROT and Optimal Transport

To overcome these limitations, we introduce CURROT, a framework that treats curriculum generation as a constrained optimal transport problem. By replacing KL-divergence with the Wasserstein distance (Earth Mover's Distance), we explicitly account for a "ground distance" between tasks—such as the physical distance between goal locations in a maze.

CURROT restricts the task distribution to a "feasible set" where the agent's predicted performance meets a minimum threshold. It then identifies the distribution within this set that is closest to the final target distribution in a Wasserstein sense. This approach ensures a smoother, geometry-aware transition through the task space. To maintain computational efficiency, we utilize particle-based approximations and kernel regression to estimate agent performance without requiring a perfect environment model.

Key Insights: Why Metric and Constraints Matter

A critical insight of this work is that the effectiveness of a curriculum depends heavily on the ground metric used to define task similarity. When the metric reflects the true difficulty of transitioning between tasks, the curriculum becomes significantly more robust.

Optimization under performance constraints. Minimizing KL-divergence (top) leads to distribution splitting, while Wasserstein distance (bottom) results in a more localized and effective task distribution.

Furthermore, by avoiding expected (average) performance constraints in favor of a threshold-based approach, CURROT eliminates the "splitting behavior" seen in methods like SPRL. As shown in the figure above, KL-divergence optimization tends to split the distribution between easy and hard tasks to satisfy an average performance constraint, whereas Wasserstein distance maintains a concentrated mass on the most beneficial tasks.

Experimental Evaluation

We evaluated CURROT across several diverse benchmarks, including discrete grid worlds (E-Maze, Minigrid Unlock-Pickup), continuous point-mass environments, and high-dimensional bipedal walker tasks (Teach My Agent).

  • Superior Performance: In the Teach My Agent benchmark, CURROT achieved the highest performance across all scenarios, outperforming popular baselines like ALP-GMM and RIAC.
  • Complexity and Precision: In the Unlock-Pickup task, featuring over 80,000 configurations, CURROT was one of the few methods to consistently master the target. In Sparse Goal-Reaching, it successfully navigated environmental obstacles while increasing precision requirements, a feat other methods failed to replicate.

Conclusion and Future Work

CURROT demonstrates that framing CRL through the lens of optimal transport provides a more principled and effective way to navigate task difficulty. While the current approach requires a predefined ground metric, future work will explore learning this distance function directly from agent experience. This would allow agents to autonomously discover task relationships, further reducing the need for human engineering in complex RL environments.

Summary updated

BibTeX
@article{klink2024benefit,
  author = {Pascal Klink and Carlo D'Eramo and Jan Peters and Joni Pajarinen},
  title = {{On the Benefit of Optimal Transport for Curriculum Reinforcement Learning}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  doi = {10.1109/tpami.2024.3390051},
}
Figure