Abstract
A key challenge in model-based reinforcement learning (RL) is to synthesize computationally efficient and accurate environment models. We show that carefully designed generative models that learn and operate on compact state representations, so-called state-space models, substantially reduce the computational costs for predicting outcomes of sequences of actions. Extensive experiments establish that state-space models accurately capture the dynamics of Atari games from the Arcade Learning Environment from raw pixels. The computational speed-up of state-space models while maintaining high accuracy makes their application in RL feasible: We demonstrate that agents which query these models for decision making outperform strong model-free baselines on the game MSPACMAN, demonstrating the potential of using learned environment models for planning.
Introduction
Model-based Reinforcement Learning (RL) promises better sample efficiency by allowing an agent to learn from a "mental model" of the world. However, most environment models are computationally expensive because they try to predict every single pixel in future frames. This creates a bottleneck: if your "imagination" is as slow as the real world, you can't simulate enough futures to make better decisions. Furthermore, many models are deterministic, failing to capture the inherent uncertainty of complex environments. This paper introduces fast, accurate, and useful state-space models (SSMs) for planning.
Methods: Architecture and Abstraction
The researchers compared several architectures for environment modeling, focusing on the trade-off between speed and accuracy.
Model Architectures
- Recurrent Auto-Regressive (RAR) Models: These predict the next frame pixel-by-pixel based on previous frames. While accurate, they are notoriously slow due to the high-dimensional output space.
- State-Space Models (SSMs): These map observations to a compact, hidden "latent state" $s_t$. Transitions happen entirely within this latent space. Crucially, the model only "renders" pixels $o_t$ if specifically asked, making "rollouts" (simulated sequences of actions) much faster.
- Stochastic vs. Deterministic: The authors tested deterministic SSMs (dSSMs) against stochastic ones (sSSMs) that use latent variables $z_t$ to capture multiple possible futures.
Temporal Abstraction
To save even more time, "jumpy" models learn to predict transitions at a coarser time scale (e.g., every 4th frame), providing temporal abstraction.
Planning with Imagination
To use these models, the authors employed the Imagination-Augmented Agent (I2A). This agent combines a standard model-free path with a model-based path that queries the SSM to "look ahead." They also introduced a "Learning to Query" approach, where the agent learns how to choose internal actions for its simulations by backpropagating through the differentiable environment model.
Experimental Setup
The models were evaluated using the Arcade Learning Environment (ALE).
- MS PACMAN: The primary testbed for RL performance.
- BOWLING, CENTIPEDE, and SURROUND: Used to compare the predictive accuracy and speed of different model architectures.
Key Results and Insights
- Latent Space Speedups: The biggest performance gains come from avoiding pixel rendering. By performing rollouts in the latent state $s_t$, the agent can simulate deep into the future without the overhead of generating images at every step. The "jumpy" sSSM achieved a 13.6x speedup compared to standard auto-regressive models.
- Stochasticity vs. Utility: While stochastic models (sSSMs) achieved higher log-likelihoods (better data modeling), RL agents performed better when using deterministic models. The authors hypothesize that the high variance of stochastic samples makes it harder for the agent to extract a clean signal for decision-making.
- Visual Quality: Deterministic models often produce blurry, "melted" predictions when uncertain (averaging possible outcomes), whereas stochastic models produce distinct, plausible "samples" of the future.
- RL Performance: On MS PACMAN, the I2A agent using an SSM significantly outperformed the model-free baseline. The "Learning to Query" (backprop) method yielded the best results, showing that the strategy for querying the model is critical.
Conclusion
State-space models offer a path toward efficient model-based RL by abstracting the environment both spatially and temporally. By operating in a compact latent space, these models enable fast rollouts that significantly improve planning performance in complex environments like Atari games. Future work will focus on joint online learning of the model and policy, as well as more sophisticated methods for aggregating information from stochastic futures.
Summary updated