Abstract
Continual reinforcement learning (CRL) aims to enable agents to learn a sequence of tasks without forgetting previously acquired knowledge. However, CRL often suffers from catastrophic forgetting. We present DISTR (Diffusion-based Trajectory Replay), a novel framework that leverages diffusion models to memorize and replay high-quality trajectories from past tasks. By decoupling policy learning from knowledge distillation and employing a prioritized replay mechanism, DISTR achieves state-of-the-art performance on the Continual World benchmark, effectively balancing plasticity and stability.
Introduction
In real-world applications, autonomous agents must adapt to a stream of tasks. Standard reinforcement learning (RL) algorithms typically fail in this setting due to catastrophic forgetting: as the agent optimizes for a new task, the neural network weights shift, erasing the knowledge required for previous tasks. Existing approaches like regularization, parameter isolation, and generative replay have various drawbacks, such as limited plasticity or poor scalability. Generative replay methods using GANs or VAEs often fail to capture complex, high-dimensional trajectory distributions, leading to "mode collapse" or incoherent sequences.
Methodology: The DISTR Framework
DISTR addresses these challenges through three core components: diffusion-based trajectory replay, a two-folded policy training strategy, and a prioritized replay mechanism.
Diffusion-based Trajectory Replay
Instead of storing raw data, DISTR trains a diffusion model to capture the distribution of successful trajectories for each task. Diffusion models excel at modeling complex distributions, allowing the reconstruction of entire action sequences more faithfully than GANs or VAEs. This approach avoids the compounding error problem common in state-based replay methods.
Two-Folded Policy Training
To mitigate gradient conflict between learning new tasks and retaining old ones, DISTR decouples the agent into two policies:
- Immediate Policy: Focuses on mastering the current task using standard RL (e.g., Soft Actor-Critic).
- General Policy: Distills knowledge from the mastered immediate policy and replayed data from the diffusion model using Behavior Cloning (BC).
Replay Prioritization
To manage computational costs, DISTR prioritizes tasks for replay based on two metrics: vulnerability (sensitivity of success rate to policy noise) and specificity (uniqueness of the task relative to others).
Experimental Evaluation
DISTR was evaluated on the Continual World benchmark, specifically the CW5 and CW10 sequences, which involve various robotic manipulation tasks.
Results
DISTR outperformed several strong baselines, including EWC, PackNet, and the GAN-based RePR. On the CW10 benchmark, DISTR maintained a significant lead in average performance as the number of tasks increased.
Key findings include:
- Superior Success Rates: DISTR achieved an 84.8% success rate on CW5 and 81.2% on CW10.
- Balance of Stability and Plasticity: Unlike isolation methods like PackNet, DISTR demonstrates high "Forward Transfer," where knowledge from previous tasks accelerates the learning of new ones.
- High-Fidelity Replay: Visualization confirms that the diffusion model's generated data closely matches real task distributions, even after multiple subsequent tasks have been learned.
Conclusion
DISTR provides a robust solution for continual reinforcement learning by utilizing the generative power of diffusion models for trajectory replay. By separating learning from distillation and prioritizing critical tasks, it achieves a superior balance between stability and plasticity. Future work will explore scaling to even larger task sets and optimizing the sampling speed of the diffusion models.
Summary updated