Knowledge Retention in Continual Model-Based Reinforcement Learning

Haotian Fu, Yixiang Sun, Michael Littman, George Konidaris

TL;DR

DRAGO is a novel framework for continual model-based reinforcement learning designed to prevent "catastrophic forgetting." By combining generative "dreaming" of past experiences with an intrinsic reward system that nudges agents to revisit familiar-yet-forgotten states, DRAGO builds a comprehensive world model across a sequence of tasks without needing to store any raw data from the past.

What Problem Does This Paper Address?

In Model-Based Reinforcement Learning (MBRL), an agent learns a "world model"—a mathematical representation of how the environment works (e.g., "if I move left, I hit a wall"). This allows the agent to plan and imagine future scenarios. However, when an agent learns a sequence of different tasks (Continual Learning), it often suffers from catastrophic forgetting: as it learns the dynamics of a new room or task, it overwrites the knowledge of the previous one.

Comparison of naive continual RL (left) which suffers from forgetting, versus continual RL without forgetting (right).

While we could theoretically store all the data from every task ever performed, real-world constraints like limited storage, privacy regulations, and proprietary data often make this impossible. The core challenge is figuring out how an agent can build a complete, "universal" world model incrementally without keeping a massive archive of past interactions.

The DRAGO Framework

The authors introduce DRAGO, which tackles the problem using two clever mechanisms built on top of TDMPC, a state-of-the-art MBRL algorithm:

1. Synthetic Experience Rehearsal

Instead of storing raw data, the agent trains a generative model (a Variational Autoencoder, or VAE) to capture the distribution of state-action pairs it has seen. When moving to a new task, the agent "dreams" up synthetic experiences from the past using this VAE and passes them through a frozen copy of the previous world model to generate "next-state" transitions. This allows the current world model to be "rehearsed" on old knowledge while learning the new.

2. Regaining Memories Through Exploration

Generative models aren't perfect and can have errors. To fix this, DRAGO uses an intrinsic reward (a "curiosity" signal). It rewards the agent for finding states where the previous world model was very accurate but the current model is struggling. This effectively "reconnects" the agent's current experience with its past knowledge through real-world interaction, filling in the gaps that synthetic dreaming might miss.

To prevent this exploration drive from interfering with the agent's primary goals, DRAGO splits its policy: a "Learner" solves the current task, while a dedicated "Reviewer" explores and maintains the world model.

Experimental Setup

The researchers evaluated DRAGO on three primary domains:

  • MiniGrid: A 27x27 gridworld where the agent must navigate through four rooms. Tasks involve moving within a single room, while "transfer tasks" require moving between rooms (testing if the agent remembers the doorways it learned earlier).
  • DeepMind Control Suite (Cheetah & Walker): High-dimensional physics simulations. The agent learns a sequence of locomotion tasks (e.g., Run, then Jump, then Backward).
  • Transfer Benchmarks: Specific "test tasks" that require a combination of skills (e.g., jump2run), which can only be solved if the agent retains knowledge from multiple previous training stages.

Key Results and Insights

DRAGO demonstrated a clear advantage over standard continual learning baselines (like EWC) and naive MBRL:

  • Models are Cheaper than Data: A key insight validated by the framework is that storing the weights of a neural network (the generative model and the frozen world model) is significantly more memory-efficient than storing millions of raw transition frames.
  • Knowledge Retention: In MiniGrid, heatmaps of prediction accuracy showed that while naive agents completely "forgot" the layout of previous rooms, DRAGO maintained high accuracy across the entire map.
  • Few-Shot Transfer: In the Cheetah and Walker domains, DRAGO outperformed other methods in 6 out of 8 complex transfer tasks. For example, in the Cheetah jump2back task, DRAGO achieved a reward of ~331, while the next best continual learning baseline (Continual TDMPC) only managed ~73.
  • Ablation Success: The authors showed that both components are necessary. Removing the "Rehearsal" component led to a noticeable drop in performance, proving that "dreaming" and "exploring" are complementary.

Limitations and Future Work

The authors acknowledge a few hurdles for the future. As the number of tasks increases, the generative model (VAE) might eventually suffer from "mode collapse" or become "blurry," losing the fine details of early tasks. Furthermore, while successful on MiniGrid and DM Control, these environments have relatively consistent dynamics. Testing DRAGO in environments where the physics themselves change significantly remains an open challenge. Finally, the current exploration mechanism requires prior knowledge of which tasks might be related to optimize rewards, which isn't always available in real-world scenarios.

Summary updated

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