Knowledge Retention for Continual Model-Based Reinforcement Learning

Yixiang Sun, Haotian Fu, Michael Littman, George Konidaris

TL;DR

DRAGO is a novel framework for continual model-based reinforcement learning that prevents world models from forgetting past environments without storing any raw historical data. By combining generative replay (dreaming up past transitions) with an intrinsic reward mechanism that actively guides exploration toward familiar past states, DRAGO builds a cohesive, long-term world model capable of rapid, few-shot transfer to new tasks.

What Problem Does This Paper Address?

Model-Based Reinforcement Learning (MBRL) relies on a "world model"—a neural network trained to simulate environment dynamics—to predict future states and plan actions. In a continual learning setup, an agent encounters a sequence of different tasks or environments over time. Ideally, it should incrementally expand its world model to cover them all.

However, standard neural networks suffer from catastrophic forgetting: when trained on a new task, they overwrite previously learned dynamics. For instance, a robot learning to navigate a living room might completely forget how to navigate the kitchen it mastered last week. While saving past interaction data (experience replay) can mitigate this, real-world constraints like strict privacy regulations (e.g., in healthcare), storage limits on edge devices, or proprietary data locks often make archiving raw data impossible. This paper addresses the challenge of building a complete, non-forgetting world model under a strict zero-past-data constraint.

Figure 1. Comparison between the world model learned by naive continual MBRL and MBRL without forgetting. Each task requires the agent to move from the corner of one room to a specific point in the same room. Shaded areas represent the world model’s coverage after finishing each task. Naively continually training MBRL (Left) tends to suffer the catastrophic forgetting problem—the agent forgets almost everything about the first room after training in the second room (our experimental results support this claim). Our project identifies a method (Right) that helps the world model preserve the knowledge of previous tasks even when the old data is no longer available.

Methods

The authors introduce DRAGO, a framework built on top of the state-of-the-art TDMPC architecture. DRAGO prevents forgetting and unifies disjoint task spaces using two core components:

  1. Synthetic Experience Rehearsal (Generative Replay): Instead of storing real transition data, DRAGO continually trains a Variational Autoencoder (VAE) to capture the joint distribution of states and actions from past tasks. When learning a new task, the VAE generates synthetic state-action pairs. These pairs are fed into a frozen copy of the previous world model to predict the next state, allowing the agent to internally "dream" and rehearse old dynamics alongside new ones.
  2. Regaining Memories Through Exploration: Generative models are prone to errors and cannot inherently discover physical connections between separate tasks. DRAGO introduces a separate "reviewer" policy driven by a novel intrinsic reward. This reward incentivizes the agent to visit states where the previous world model was highly accurate (familiar territory) but the current world model is still uncertain. This guides the agent to physically explore and discover pathways (like doorways or transition states) that stitch the new environment together with the old ones.
The two-step process of DRAGO: Synthetic Experience Rehearsal and Regaining Memories Through Exploration.

Datasets

DRAGO was evaluated across three distinct continual learning domains:

  • MiniGrid: A $27 \times 27$ gridworld where the agent sequentially learns to reach goals in four separate rooms. The test tasks evaluate transfer performance by requiring the agent to navigate between rooms (e.g., starting in Room 1 and ending in Room 3).
  • DeepMind Control Suite (Cheetah & Walker): Continuous control environments where the agent undergoes a sequence of locomotion tasks (e.g., running, jumping, walking backward) that share identical physics but feature different reward functions.
Figure 3. Visualization of the evaluated domains. Task names in

Key Insights and Ideas

  • Decoupling Learner vs. Reviewer: A common pitfall in exploratory RL is that intrinsic curiosity rewards can distract an agent from its actual goal. DRAGO solves this by maintaining two separate policies that share the same world model: a "learner" policy focused purely on maximizing the environmental task reward, and a "reviewer" policy dedicated to exploring and reconnecting old memories.
  • Stitching Disjoint Spaces: Generative replay keeps neural network weights from degrading, but physical exploration is required to actually connect distinct environments. The intrinsic reward acts as a bridge, forcing the agent to discover the physical boundaries and transitions between separate tasks.

Key Results

DRAGO was compared against standard baselines, including naive continual TDMPC, Elastic Weight Consolidation (EWC), and limited-storage replay methods.

  • Superior Knowledge Retention: Qualitative heatmaps of prediction errors demonstrated that DRAGO successfully maintained high accuracy across all previously visited rooms in MiniGrid, whereas naive MBRL completely lost its accuracy for earlier rooms after moving to a new one.
  • Effective Few-Shot Transfer: In the DeepMind Control Suite, DRAGO achieved the highest average cumulative reward in 6 out of 8 few-shot transfer tasks. For example, when transitioning from a jumping task to a combined jump-and-run task, DRAGO adapted significantly faster within just 20 episodes because it successfully preserved the "running" dynamics learned early in its training sequence.

Limitations and Future Work

  • Generative Model Scaling: DRAGO relies on a single VAE to capture the state-action distributions of all past tasks. As the number of tasks scales up significantly, the VAE faces the risk of mode collapse, causing generated memories to become "blurry."
  • High-Dimensional Scaling: While the benchmarks used are standard, they are relatively low-dimensional. The authors note that integrating more sophisticated generative architectures, such as diffusion models, will be an important step for scaling DRAGO to complex, pixel-based visual environments.

Summary updated

BibTeX
@inproceedings{sun2025knowledge,
  author = {Yixiang Sun and Haotian Fu and Michael Littman and George Konidaris},
  title = {{Knowledge Retention for Continual Model-Based Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=DiqeZY27XK},
}
Figure