NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Surprising Effectiveness of Latent World Models for Continual Reinforcement Learning

Samuel Kessler, Piotr Milos, Jack Parker-Holder, Stephen J. Roberts · DOI

TL;DR

This paper introduces "Continual-Dreamer," a novel approach that leverages world models for continual reinforcement learning (CRL). By adapting experience replay strategies, Continual-Dreamer effectively balances learning new tasks with remembering old ones, outperforming existing state-of-the-art methods on challenging benchmarks.

What Problem Does This Paper Address?

Traditional reinforcement learning (RL) agents excel at mastering single tasks. However, real-world intelligent systems need to learn and adapt continuously to new tasks without forgetting previously acquired skills – a challenge known as continual learning (CL). Continual Reinforcement Learning (CRL) specifically aims to equip agents with this lifelong learning capability. A major hurdle in CRL is catastrophic forgetting, where learning a new task overwrites knowledge of older tasks. This paper addresses the question of whether world models, which have shown great promise in single-task RL for their sample efficiency, can be effectively adapted for CRL, particularly in a task-agnostic manner.

Methods

The core of this work is the Continual-Dreamer framework, built upon the DreamerV2 algorithm, a state-of-the-art model-based RL agent. The key innovations lie in how experience replay and exploration are handled for CRL:

  • World Model as a Foundation: DreamerV2's recurrent world model (RSSM) learns a latent representation of the environment, allowing for "dreaming" or generating simulated experiences. This is crucial for sample efficiency.
  • Extended Experience Replay: The standard replay buffer in DreamerV2 is extended to persist across tasks. The paper systematically investigates various selective experience replay methods to manage this buffer and prevent forgetting. These include:
  • Reservoir Sampling (rs): Ensures a uniform distribution of experience from all tasks seen so far.
  • Coverage Maximization (cm): Selects experiences based on their novelty or distance to existing trajectories.
  • Uncertainty Sampling (us): Prioritizes samples where the world model is uncertain about its predictions.
  • Reward Sampling (rwd): Samples based on the reward received in the environment.
  • 50:50 Sampling: A mix of recent and older experiences.
  • Task-Agnostic Exploration: The paper leverages Plan2Explore, which uses the disagreement in the world model's predictions as an intrinsic reward signal for exploration. This is inherently task-agnostic, meaning the agent doesn't need explicit task IDs to explore effectively.
  • Continual-Dreamer Configuration: The best performing configuration, named Continual-Dreamer, combines DreamerV2 with reservoir sampling and a 50:50 sampling strategy for the replay buffer, along with Plan2Explore for exploration.

Datasets

The experiments were conducted on two benchmark environments:

  • Minigrid: A suite of challenging, image-based, partially observable, and sparse reward environments. The paper uses three specific tasks: DoorKey-9x9-v0, LavaCrossingS9N1-v0, and SimpleCrossingS9N1-v0.
  • Minihack: A more complex set of environments based on the game of Nethack, offering larger state spaces and requiring more difficult skills. The paper uses subsets of these tasks, including four tasks (Room-Random-15x15-v0, Room-Trap-15x15-v0, River-Narrow-v0, River-Monster-v0) and later eight tasks (including Room-Monster-15x15-v0, Room-Ultimate-15x15-v0, River-v0, and HideNSeek-v0).

Key Insights and Ideas

  • World Models are Naturally Suited for CRL: The paper demonstrates that the inherent sample efficiency and generative capabilities of world models make them a strong foundation for CRL, especially when combined with appropriate replay strategies.
  • Selective Replay is Crucial: Simply using a FIFO replay buffer leads to forgetting. Reservoir sampling, in particular, proved effective in maintaining a balanced representation of past experiences, mitigating catastrophic forgetting.
  • Task-Agnostic Exploration is Powerful: Using uncertainty from the world model for exploration (Plan2Explore) allows agents to adapt to new tasks without explicit task identification, a significant advantage in many CRL scenarios.
  • Stability-Plasticity Trade-off: The paper highlights the classic trade-off in continual learning. Larger replay buffers improve stability (reduce forgetting) but can hinder plasticity (learning new tasks quickly). Reservoir sampling helps to navigate this trade-off.
  • Interference is Still a Challenge: While the proposed methods mitigate forgetting, interference (where past samples hinder learning new tasks) remains a problem, particularly in environments with changing reward functions or goal locations.

Key Results

  • Continual-Dreamer Outperforms Baselines: The proposed Continual-Dreamer method (DreamerV2 with reservoir sampling and 50:50 sampling) significantly outperforms state-of-the-art task-agnostic CRL baselines like CLEAR on both Minigrid and Minihack benchmarks in terms of average performance.
  • Sample Efficiency: Continual-Dreamer is more sample efficient than CLEAR, solving tasks with fewer environment interactions.
  • Reduced Forgetting: Reservoir sampling effectively reduces forgetting compared to standard FIFO replay.
  • Strong Forward Transfer: The world model approach demonstrates good forward transfer, meaning knowledge learned from previous tasks aids in learning new ones.
  • Task-Agnostic Success: The method achieves strong performance without requiring explicit task identification, a key requirement for flexible lifelong learning agents.

Limitations and Future Work

  • Interference: The paper acknowledges that Continual-Dreamer does not explicitly prevent interference from past samples, which can still hinder learning new tasks in certain scenarios (e.g., changing reward functions).
  • Task Data Imbalances: The selective replay methods explored are not specifically designed to handle severely imbalanced task data distributions, where one task might have significantly more data than others.
  • Future Work: The authors suggest exploring other world models, applying the Continual-Dreamer approach to continuous control CRL benchmarks, and further investigating methods to address task data imbalances.

Summary updated

BibTeX
@inproceedings{kessler2023surprising,
  author = {Samuel Kessler and Piotr Milos and Jack Parker-Holder and Stephen J. Roberts},
  title = {{The Surprising Effectiveness of Latent World Models for Continual Reinforcement Learning}},
  booktitle = {CoLLAs},
  year = {2023},
  url = {https://openreview.net/forum?id=t5pG6L3Vwf},
}
Figure