TL;DR
Modern model-based reinforcement learning (MBRL) agents struggle to adapt to local environmental changes because their monolithic models and replay buffers suffer from catastrophic interference and forgetting. This paper introduces partial models, a modular architecture that partitions the state space into distinct regions, allowing agents to "surgically" update only the affected parts of their model for rapid, robust adaptation without losing prior knowledge.
What Problem Does This Paper Address?
In neuroscience, a hallmark of model-based behavior is the ability to adapt quickly to local changes—like a mouse realizing a specific path no longer leads to food. However, state-of-the-art deep MBRL agents (like PlaNet and Dreamer) are surprisingly bad at this.
The authors identify three primary hurdles caused by the standard "monolithic" design of these agents:
- The Interference-Forgetting Dilemma: Large replay buffers lead to "interference," where stale data from before a change dilutes new learning. Small buffers lead to "forgetting," where the agent loses useful information about unchanged parts of the world.
- Proper Model Update Challenge: Random sampling from a buffer often results in a biased model skewed toward the most frequent (but not necessarily most important) transitions.
- Quick Adaptation Challenge: Updating a single, massive neural network to reflect a small local change is computationally slow and inefficient.
Methods
The core proposal is to replace the single model/buffer pair with a collection of partial models. The process involves three main steps:
- State Space Partitioning: During an initial exploration phase, the agent learns a neural embedding of states using contrastive learning, ensuring states with similar rewards are close together. It then uses k-means clustering to partition the state space into $n$ regions.
- Simple vs. Scalable Implementation:
- The Simple version maintains $n$ completely separate pairs of parametric models (neural networks) and non-parametric models (replay buffers).
- The Scalable version (illustrated in Figure 3) uses a single shared neural network body but employs multiple reward heads and multiple index lists within a single replay buffer. This achieves modularity without the linear memory overhead of multiple full networks.
- Adaptive Updating: The agent monitors for "anomalous" rewards. When a local change is detected, it identifies which cluster the change belongs to, clears the corresponding index list (removing stale data), and freezes the rest of the model while updating only the relevant reward head.
Datasets
The authors evaluate their approach using the Local Change Adaptation (LoCA) setup across several domains:
- MountainCarLoCA & MiniGridLoCA: Classic control and grid-world tasks modified to include two rewarding regions (T1 and T2) where the reward at T1 changes between training phases.
- ReacherLoCA & RandomReacherLoCA: Pixel-based continuous control tasks using the MuJoCo physics engine.
- New Benchmarks: The authors introduced LoCA1 (adding stochastic reward functions) and LoCA2 (adding non-stationary transition distributions, such as making a specific zone "slippery" in Phase 2) to provide a more rigorous test of adaptivity.
Key Insights and Ideas
- Modularity is the Antidote to Interference: By isolating data and model parameters into regions, a change in one area of the map doesn't "pollute" the agent's understanding of the rest of the world.
- Surgical Updates: Instead of a global gradient descent that might shift weights unpredictably, the agent performs targeted updates. This allows for much faster convergence to the new optimal policy.
- Reward as a Natural Clusterer: In many RL tasks, rewards provide a strong signal for how to partition the world. Using reward-based embeddings effectively groups functionally similar states.
- Scalability via Multi-Head Architectures: You don't need a fleet of separate neural networks to get the benefits of modularity. A shared backbone with specialized heads is sufficient and computationally efficient.
Key Results
The researchers compared their Partial Model (PM) agents against a standard monolithic agent (REG) and a specialized replay buffer baseline (LOFO).
- Adaptation Speed: In MountainCar and MiniGrid, the PM agents reached near-optimal performance in Phase 2 significantly faster than LOFO, while the REG agent failed to adapt entirely.
- Qualitative Accuracy: Visualization of reward predictions (Figure 6) shows that the PM agent correctly identifies the new reward values in the changed region while maintaining perfect knowledge of the unchanged regions. The REG agent, by contrast, produces a "blurry" and inaccurate reward map.
- Generality: The benefits held true even when partial models were integrated into complex, pixel-based agents like PlaNet and Dreamer, proving the technique is architecture-agnostic.
Limitations and Future Work
- Exploration Dependency: The method assumes a "good initial exploration phase" to identify clusters. If the agent hasn't seen enough of the world, the initial partitioning may be flawed.
- Clustering Criteria: The current approach relies heavily on reward similarity. The authors note that future work could explore clustering based on transition dynamics or other environmental features.
- Fixed Cluster Count: The agent currently needs to determine the number of clusters early on. A more flexible system that can discover and add new partial models dynamically would be a significant step toward true lifelong learning.
Summary updated