TL;DR
This paper proposes using latent world models, specifically DreamerV2, as a surprisingly effective and simple baseline for continual reinforcement learning (CRL). By leveraging experience replay and uncertainty-driven exploration, these models can learn new tasks sequentially while retaining performance on old ones, outperforming existing task-agnostic CRL methods on challenging benchmarks.
What Problem Does This Paper Address?
Continual Reinforcement Learning (CRL) aims to build agents that can learn a sequence of tasks without forgetting previously learned skills. This is crucial for developing truly intelligent and scalable systems that can adapt to new environments and challenges over time. The core challenge in CRL is the "catastrophic forgetting" problem: when an agent learns a new task, it often loses the ability to perform previously learned tasks. Existing methods often require explicit task identification or complex regularization schemes. This paper investigates whether a task-agnostic approach using world models can provide a simpler and more effective solution to CRL.
Methods
The authors leverage DreamerV2, a state-of-the-art model-based reinforcement learning agent that learns a latent state-space world model (RSSM). The key ideas for CRL are:
- Task-Agnostic World Model: The world model learns to predict environment dynamics (observations, rewards, discounts) from past experiences. It doesn't need to know when a task changes.
- Experience Replay Persistence: Crucially, the experience replay buffer used to train the world model is persisted across tasks. This means data from previous tasks is continuously replayed, helping to prevent forgetting in the world model itself.
- Imagination-Based Policy Learning: The agent's policy is trained within the imagined trajectories generated by the world model. This makes the learning process sample-efficient.
- Task-Agnostic Exploration: The uncertainty in the world model's predictions (specifically, the disagreement between predictions from an ensemble of models) is used as an intrinsic reward signal. This encourages the agent to explore novel or uncertain parts of the environment without needing explicit task information. This is implemented using the Plan2Explore method.
Datasets
The experiments were conducted on two sets of benchmarks:
- Minigrid: A suite of 3 challenging, partially observable, sparse-reward environments.
- Minihack: A set of 8 diverse, image-based, sparse-reward tasks derived from the Nethack game, designed to test more complex exploration and memory capabilities.
Key Insights and Ideas
- World Models as a Natural CRL Fit: The paper demonstrates that the inherent properties of world models—sample efficiency, ability to learn from past data, and task-agnostic nature—make them a strong foundation for CRL.
- Persistence is Key for Forgetting Prevention: Simply persisting the experience replay buffer across tasks is a surprisingly effective way to prevent the world model from forgetting past dynamics.
- Uncertainty-Driven Exploration is Task-Agnostic: Using the world model's prediction uncertainty for exploration is a powerful mechanism that doesn't require explicit task identifiers, a significant advantage for CRL.
- "Surprising Effectiveness": The authors highlight that this simple, task-agnostic approach, built on existing powerful RL components, outperforms more complex, state-of-the-art task-agnostic CRL methods.
Key Results
- Outperforms Baselines: DreamerV2, especially when augmented with Plan2Explore for exploration, significantly outperforms baselines like Impala and CLEAR on both Minigrid and Minihack benchmarks in terms of average performance and forward transfer.
- Strong Forward Transfer: The methods show strong forward transfer, indicating that knowledge gained from previous tasks helps in learning new ones.
- Sample Efficiency: Training the policy within the world model's imagination leads to high sample efficiency, requiring fewer interactions than some baselines.
- Minigrid Success: DreamerV2 + Plan2Explore successfully solves difficult exploration tasks in Minigrid, like DoorKey-9x9, which involve complex sequences of actions.
- Minihack Performance: While DreamerV2 alone shows some forgetting on Minihack, the Plan2Explore version achieves competitive performance and can solve harder tasks than CLEAR, though it can still exhibit some forgetting of earlier tasks.
Limitations and Future Work
- Forgetting Still Exists: While significantly reduced, forgetting is not entirely eliminated, particularly on more challenging Minihack tasks. The authors suggest that increasing the replay buffer size can further reduce forgetting but at the cost of forward transfer (the stability-plasticity trade-off).
- Future Work: The authors suggest exploring ways to make world models less susceptible to forgetting, potentially through architectural changes or more advanced replay mechanisms. They also note that the current approach still relies on a fixed replay buffer size, and exploring dynamic buffer management could be beneficial.
Summary updated