Abstract
In the field of reinforcement learning (RL), agents often face the "plasticity-stability dilemma": the need to learn new tasks rapidly (plasticity) without losing previously acquired knowledge (stability). This challenge is particularly acute in continual offline RL, where agents must learn from a sequence of static datasets. We introduce the Continual Diffuser (CoD), a framework that leverages the high expressive power of diffusion probabilistic models (DPMs) combined with a simple yet effective experience rehearsal mechanism. By replaying a small fraction of data from previous tasks, CoD effectively mitigates catastrophic forgetting. Our evaluation on a newly proposed 90-task benchmark, CORL, demonstrates that CoD significantly outperforms existing baselines, achieving near-multitask performance levels.
Introduction
Standard reinforcement learning research typically assumes access to static, well-defined datasets. However, real-world applications often require agents to learn tasks sequentially. Traditional diffusion-based planners, while excellent at modeling complex data distributions, suffer from severe catastrophic forgetting; performance on Task A often plummets as soon as training on Task B begins.
To address this, we propose the Continual Diffuser (CoD). CoD treats reinforcement learning as a sequential modeling problem, utilizing a diffusion model to generate entire trajectories of future states and actions. By integrating a rehearsal buffer, CoD maintains a "memory" of past experiences, allowing it to balance the acquisition of new skills with the retention of old ones.
The Continual Diffuser Framework
The CoD architecture is built upon a Temporal Unet with 1D convolutions, designed to capture the complex temporal dependencies inherent in RL trajectories.
Key Technical Components
- Trajectory Diffusion: Unlike traditional policies that map single states to actions, CoD generates complete sequences of future states and actions, modeling the entire data manifold.
- Experience Rehearsal: To maintain stability, CoD utilizes a rehearsal buffer that stores approximately 10% of the data from previous tasks. During the training of a new task, these samples are mixed into the training batches, mimicking biological memory consolidation.
- Task Conditioning: The model employs classifier-free guidance. Environment-specific information is processed through a Task MLP to create embeddings that guide the diffusion process toward the desired task goal.
- Inference Acceleration: To ensure real-time applicability, we implement DDIM sampling, which provides a 19.043x speedup over standard sampling methods without significant loss in performance.
The CORL Benchmark
To rigorously test continual offline RL agents, we introduced the CORL (Continual Offline RL) benchmark. This comprehensive suite consists of 90 tasks, including 88 robotic manipulation tasks from Continual World (CW) and two locomotion tasks from Gym-MuJoCo (Ant-dir and Cheetah-dir). The benchmark includes both 'medium' and 'expert' quality datasets to evaluate an agent's ability to learn from sub-optimal demonstrations across diverse domains.
Experimental Results
Our experiments demonstrate that CoD achieves a superior plasticity-stability trade-off compared to both online and offline baselines.
Success Rates and Stability
On the CW20 benchmark (20 sequential tasks), CoD maintained a consistent ~98% success rate. In contrast, established baselines like EWC, MAS, and PackNet struggled to maintain performance above 50% as the number of tasks increased. Notably, CoD exhibited near-zero or even negative forgetting, suggesting that learning new tasks occasionally improved its performance on previous ones.
Locomotion Performance
In the Ant-dir environment, CoD achieved a mean return of 478.19, nearly matching the multitask upper bound of 485.15. This confirms that the generative replay approach is highly effective at preserving the complex distributions required for locomotion tasks.
Discussion and Future Work
Our findings suggest that diffusion models are inherently better suited for continual learning than traditional policy-gradient methods because they model the entire data manifold rather than just a local policy. While experience rehearsal is highly effective, future work will explore more storage-efficient methods for managing thousands of tasks. Additionally, we observed sensitivity to noise in sub-optimal datasets; incorporating explicit denoising modules could further enhance robustness. We view CoD as a foundational step toward creating robotic systems capable of lifelong learning in dynamic environments.
Summary updated