Introduction
Reinforcement Learning (RL) agents often struggle in environments with "sparse rewards," where they only receive feedback after completing a complex task—such as navigating a convoluted maze or manipulating an object into a precise location. To overcome this, researchers employ Curriculum Reinforcement Learning (CRL), a technique that provides the agent with a sequence of increasingly difficult intermediate goals to progressively build its skills.
Despite its potential, existing CRL methods have significant limitations. Many require extensive human domain knowledge to manually define what constitutes an "easy" or "hard" task. Others rely on naive distance metrics, like Euclidean (straight-line) distance, to measure progress. In a maze, two points might be physically close but separated by an impenetrable wall, making Euclidean distance a highly misleading guide. Finally, balancing exploration (pushing the agent into new territory) with exploitation (setting achievable tasks) remains a persistent challenge.
To address these flaws, this paper introduces DiCuRL (Diffusion Curriculum Reinforcement Learning). DiCuRL uses conditional diffusion models to automatically generate a sequence of increasingly difficult goals. By combining a $Q$-function for feasibility and Adversarial Intrinsic Motivation (AIM) for target-directedness, it creates a "Goldilocks" curriculum—goals that are challenging enough to promote learning but easy enough to be achievable—without requiring any prior domain knowledge.
Methodology
DiCuRL introduces a novel framework that treats goal generation as a generative modeling problem, moving away from traditional heuristic-based goal setting.
- Conditional Diffusion Models: Instead of generating images, DiCuRL uses diffusion models to model the distribution of states the agent has already visited. The inherent "noising and denoising" process of diffusion allows the model to naturally suggest goals that are slightly outside the agent's current "comfort zone," acting as a powerful exploration engine.
- The "Feasibility" Filter ($Q$-function): To ensure the generated goals are actually reachable, the authors incorporate the agent’s $Q$-function into the diffusion model's loss. This biases the generator toward goals where the agent expects to receive a reward, preventing the curriculum from becoming impossibly hard.
- The "Directional" Guide (AIM): To ensure the curriculum leads toward the final target, DiCuRL uses Adversarial Intrinsic Motivation (AIM). This provides a reward signal based on the Wasserstein distance between the current state and the final goal. By respecting the "manifold" of the environment, it effectively pulls the curriculum toward the desired outcome, recognizing that a goal on the other side of a wall is "far" even if physically close.
- Bipartite Graph Optimization: Once the diffusion model generates a set of candidate goals, DiCuRL uses a "Minimum Cost Maximum Flow" algorithm to select the optimal goal that maximizes the agent's learning progress.
Unlike many recent "Diffusion-RL" papers that rely on static, pre-collected offline datasets, DiCuRL is trained online, meaning it learns and adjusts its curriculum dynamically as the agent interacts with the environment.
Experiments and Key Results
The authors evaluated DiCuRL on two main types of benchmarks simulated in MuJoCo:
- Maze Environments: PointUMaze, PointNMaze, and PointSpiralMaze. These are classic "hard exploration" tasks where the agent must navigate complex geometry.
- Robotic Manipulation: FetchPush and FetchPickAndPlace. These tasks require the agent to manipulate objects in a 3D space with sparse rewards.
DiCuRL was compared against nine state-of-the-art baselines, including popular algorithms like HGG, GoalGAN, and OUTPACE.
Key Findings: * Superior Performance in Complex Mazes: In the most difficult task, the PointSpiralMaze, almost all baseline algorithms failed completely, yielding a success rate near zero. DiCuRL, however, achieved a perfect 1.0 success rate in roughly 300,000 timesteps. * Faster Convergence: In simpler mazes like PointUMaze, DiCuRL reached full success significantly faster (~28k steps) than the next best competitor, OUTPACE (~30k steps), and was nearly 10x faster than traditional methods like GRADIENT. * Robustness: DiCuRL matched or outperformed the best-known algorithms across all five tested environments, demonstrating that it is truly environment-agnostic. Ablation studies further confirmed that both the $Q$-function and the AIM reward are strictly necessary; removing either causes the agent to pick impossible goals or wander aimlessly.
Limitations and Future Work
While highly effective, the authors identify two primary areas for future improvement. First, while diffusion models excel at image generation, the AIM reward mechanism might struggle to scale to raw pixel inputs in very high-dimensional spaces. Second, the use of the Minimum Cost Maximum Flow algorithm for goal selection is computationally heavy. Exploring simpler, more efficient selection strategies could significantly reduce the overhead of the curriculum generation process.
Summary updated