t-DGR: A Trajectory-Based Deep Generative Replay Method for Continual Learning in Decision Making

William Yue, Bo Liu, Peter Stone

Abstract

Continual learning in decision-making tasks requires agents to learn sequential tasks without catastrophic forgetting. Traditional Deep Generative Replay (DGR) methods often struggle with either inefficient i.i.d. state sampling or compounding errors in autoregressive generation. We present t-DGR (Trajectory-based Deep Generative Replay), a non-autoregressive approach that conditions a diffusion-based generative model on trajectory timesteps. This ensures uniform coverage of past experiences and eliminates error accumulation. Evaluated on the Continual World benchmarks, t-DGR achieves state-of-the-art performance, demonstrating robustness to long task sequences and blurry task boundaries.

Introduction

In robotics and other decision-making domains, data is naturally structured as trajectories—sequences of states and actions. When learning new tasks, agents must retain knowledge of previous ones. A common approach is Deep Generative Replay (DGR), which uses a generative model to produce synthetic data from past tasks for "rehearsal."

However, existing DGR methods face a critical trade-off. i.i.d. sampling of individual states ignores temporal structure and requires excessive samples for full coverage. Conversely, autoregressive models that predict the next state based on the current one suffer from compounding errors, where small initial mistakes lead to unrealistic state sequences that fail to represent the original task distribution accurately.

The t-DGR Method

t-DGR addresses these issues by adopting a non-autoregressive generation strategy. Instead of sequential prediction, the generator is conditioned directly on the trajectory timestep ($j$). This allows the model to generate any point in a past trajectory independently, effectively bypassing the "compounding error" trap.

Comparison of trajectory reconstruction methods. t-DGR (ours) maintains high coverage and follows the ground truth structure without the compounding errors seen in CRIL or the sparsity of standard DGR.

The core components of t-DGR include:

  1. Diffusion-Based Generation: t-DGR utilizes Diffusion Probabilistic Models (specifically a U-Net architecture), which offer superior stability and handle distributional shifts better than GANs in continual learning settings.
  2. Timestep Conditioning: By asking the generator "What does the state look like at time $j$?", the model ensures uniform coverage of the entire trajectory, solving the "Double Dixie Cup" problem of inefficient sampling.
  3. Pseudo-Labeling: Generated states are paired with actions from the agent's previous policy to create complete transitions for replay.

A key insight of this work is that for reinforcement and imitation learning, coverage of the state-action distribution is more critical than the temporal smoothness of generated trajectories. While t-DGR might produce "jittery" paths, it accurately covers the necessary regions of the state space to prevent forgetting.

Experimental Evaluation

The method was evaluated on the Continual World benchmark using the Meta-World environment, where a Sawyer robotic arm performs various manipulation tasks.

The robotic manipulation task environment used in the Continual World benchmarks, showing a sequence of states in a trajectory.

Experiments included:

  • CW10 & CW20: Sequential learning of 10 and 20 tasks to test long-term stability.
  • BB10 (Blurry Boundaries): A realistic scenario where task transitions are gradual rather than discrete, testing the model's robustness to overlapping data distributions.

Key Results

t-DGR achieved state-of-the-art (SOTA) results across all tested benchmarks:

  • Success Rate: On CW10, t-DGR reached 81.9%, outperforming the best previous diffusion-based DGR (75.0%) and significantly beating autoregressive methods like CRIL (28.4%).
  • Long-term Stability: On CW20, it maintained an 83.9% success rate, showing minimal degradation over long sequences.
  • Forward Transfer: t-DGR showed a high Average Forward Transfer (30.6), indicating that replaying past trajectories facilitates faster learning of new tasks.
  • Robustness: In the BB10 setting, t-DGR remained stable (81.7%), whereas parameter-isolation methods like PackNet saw performance plummet (from 81.4% to 26.9%).

Conclusion

t-DGR provides a robust framework for continual learning in decision-making by prioritizing state-space coverage through timestep-conditioned diffusion. While computationally more intensive than autoregressive methods—taking approximately 3 days for CW20—its performance and stability make it a powerful tool for long-term robotic learning. Future work will explore reducing computational costs and implementing selective replay mechanisms to prioritize critical memories.

Summary updated

BibTeX
@inproceedings{yue2024t,
  author = {William Yue and Bo Liu and Peter Stone},
  title = {{t-DGR: A Trajectory-Based Deep Generative Replay Method for Continual Learning in Decision Making}},
  booktitle = {CoLLAs},
  year = {2024},
}
Figure