TL;DR
This paper demonstrates that combining model-based reinforcement learning—specifically MuZero—with self-supervised auxiliary losses and procedural data diversity leads to state-of-the-art generalization in complex environments. While these techniques significantly boost performance on "procedural generalization" (adapting to new levels of the same task), the authors find that "task generalization" (adapting to entirely new goals) remains a much steeper challenge.
What Problem Does This Paper Address?
Reinforcement Learning (RL) agents are notorious for "overfitting." An agent might become a grandmaster at a specific video game level but fail miserably if the floor color changes or the walls move. This phenomenon is known as the generalization gap.
Historically, research into generalization has focused on model-free agents, which map observations directly to actions. Model-based agents, which learn an internal "world model" to predict the future, are theoretically better suited for generalization because they "understand" the underlying logic of the environment. However, this hypothesis hasn't been rigorously tested on standardized benchmarks.
The authors set out to answer two main questions: Do model-based agents actually generalize better? And which factors—planning, self-supervision, or data diversity—matter most?
Methods
The researchers use MuZero as their primary agent. MuZero is a state-of-the-art model-based algorithm that learns an implicit model of the world and uses Monte Carlo Tree Search (MCTS) to plan its moves.
To isolate what drives generalization, they tested several modifications:
- Planning vs. Model-Free: They compared MuZero against a "stripped-down" Q-learning baseline that uses the same architecture but lacks the planning and model-learning components.
- Self-Supervised Learning (SSL): They added auxiliary losses to MuZero to force the agent to learn better representations of the world. These included:
- Reconstruction: Forcing the agent to "draw" the pixels of future states.
- Contrastive Learning: Teaching the agent to distinguish between related and unrelated frames in time.
- Self-Predictive Representations (SPR): Predicting its own future latent states.
- Procedural Data Diversity: They varied the number of unique training levels (from 10 to "infinite") to see how environment variety interacts with the algorithm.
Datasets
The study utilizes two major benchmarks designed to test different flavors of generalization:
- Procgen: A suite of 16 Atari-like games where every level is procedurally generated. This tests procedural generalization—can the agent handle a new layout of a game it already knows how to play?
- Meta-World: A robotic manipulation benchmark (using a simulated Sawyer arm). Specifically, they used ML-1, ML-10, and ML-45. These test task generalization—can an agent that learned to open a door quickly learn to press a button or pick up a block?
Key Insights and Ideas
- The Synergy of Planning and SSL: Planning alone helps, but planning on top of a self-supervised world model is a game-changer. SSL helps the agent "see" important entities (like small bullets or distant keys) that a standard reward-only model might ignore.
- The Diversity Threshold: A fascinating finding was that self-supervision only provides a significant boost when the training data is sufficiently diverse. If the agent only sees 10 levels, SSL doesn't help much. Once it sees 100+ levels, the benefits of SSL explode.
- Procedural $\neq$ Task Generalization: The "secret sauce" for Procgen (planning + SSL) didn't translate perfectly to Meta-World's test tasks. This suggests that "learning the physics" of a world (procedural) is a different skill than "adapting to a new goal" (task), which likely requires more sophisticated exploration or meta-learning.
- Efficiency Matters: MuZero achieved state-of-the-art results on Procgen using only 30 million frames, whereas previous model-free leaders often required 200 million frames.
Key Results
- Procgen SOTA: MuZero with self-supervision (specifically the SPR variant) achieved a mean normalized score of 0.64, significantly outperforming the previous state-of-the-art (UCB-DrAC at 0.48) while being much more data-efficient.
- Model-Free vs. Model-Based: The vanilla MuZero (0.50) comfortably beat the controlled Q-learning baseline (0.36), proving that the model-based approach has an inherent edge in generalization.
- Meta-World: MuZero achieved near-perfect performance on training tasks and showed "weak positive transfer" to unseen tasks, outperforming model-free baselines in fine-tuning speed, though it didn't "solve" the test tasks zero-shot.
Limitations and Future Work
The primary limitation highlighted by the study is the ongoing struggle with task generalization. Even with a highly accurate world model, the agent doesn't automatically know what to do when the reward function changes entirely.
The authors suggest that future work should focus on:
- Exploration: Developing better ways to explore new tasks to quickly identify the reward structure.
- Task-Agnostic Pre-training: Learning a "global" world model through pure exploration before even seeing a reward.
- Stochasticity: Improving how world models handle randomness, which remains a challenge for MuZero-style architectures.
In short: We've figured out how to make agents that don't get confused by a change of scenery; now we need to make agents that don't get confused by a change of plans.
Summary updated