Accelerating Model-Based Reinforcement Learning with State-Space World Models

Elie Aljalbout, Maria Krinner, Angel Romero, Davide Scaramuzza

TL;DR

Model-based reinforcement learning (MBRL) delivers impressive sample efficiency, but training recurrent world models sequentially creates severe computational bottlenecks. S5WM replaces recurrent backbones with parallelizable state-space models (SSMs) and introduces privileged state decoding, slashing world model training time by up to 10× and overall training time by up to 4× without sacrificing task performance in high-speed, real-world drone racing.

What Problem Does This Paper Address?

Reinforcement learning on physical robots faces a fundamental trade-off: model-free methods (like PPO) waste vast amounts of interaction data, while model-based methods (like DreamerV3) drastically cut data requirements by learning a predictive "world model" of environment dynamics.

However, MBRL methods are notoriously slow to train. Traditional architectures rely on Recurrent State-Space Models (RSSMs). Because recurrent neural networks (RNNs) must process transitions step-by-step across the sequence length, world model updates become a massive computational bottleneck—especially for complex, long-horizon real-world tasks.

Methods

The authors introduce S5WM, a Dreamer-style MBRL architecture where the sequential dynamics backbone is replaced with S5—a modern linear state-space model that computes sequence updates in parallel:

  • Parallelized Sequence Modeling via Parallel Scan: Instead of stepping sequentially through transitions, S5 uses an associative binary operator to compute hidden states across the entire sequence length in parallel ($O(\log(L))$ parallel steps).
  • Boundary-Aware State Resets: Real RL trajectories contain episode resets. S5WM adapts associative operators to incorporate episode continuation flags ($c_k$), resetting the hidden state cleanly across episode boundaries without breaking parallel computation.
  • Feedforward Stochastic Latents: Standard RSSMs compute the posterior latent state $z_t$ conditioned on recurrent states $y_t$, enforcing sequential dependence. S5WM computes $z_t \sim q_\phi(\cdot|o_t)$ directly from observations, preserving parallelization while injecting temporal context by appending recent action histories.
  • Privileged World Model Decoders: In vision-based settings, reconstructing full $64 \times 64 \times 3$ images using heavy convolutional decoders is slow and noisy. In simulation, S5WM swaps the image decoder for an MLP decoder that predicts privileged ground-truth state vectors ($s \in \mathbb{R}^{24}$), offering stronger supervision with minimal compute.
  • Decoupled Reward Smoothing: To ensure smooth commands for physical drones without forcing the world model to constantly unlearn changing reward targets, action-rate penalty terms are learned from scratch but only injected into the policy loss midway through training.

Datasets

The authors evaluate on agile autonomous drone flight using the Flightmare simulator, Agilicious control stack, and real hardware:

  • State-Based Split-S: Full state observations ($\mathbb{R}^{24}$) on an acrobatic racing track requiring high-speed descent and tight gate alignment.
  • Vision-Based Figure-8: Partially observable flight driven by $64 \times 64 \times 3$ RGB camera frames and historical actions.
  • Real-World Quadrotor Flights: Real flight validation using high-performance racing drones (including Hardware-in-the-Loop vision rendering).

(No standard static benchmark datasets were used; environments were simulated dynamically with physical robot rollouts).

Key Insights and Ideas

  • SSMs remove the sequential penalty in training: Because training data comes from replay buffers, sequence transitions are already recorded. Leveraging linear SSMs allows the dynamics model to train entirely in parallel over time, turning the primary MBRL bottleneck into a fast matrix-parallel operation.
  • Compact privileged states provide cleaner gradients than pixel reconstruction: Rather than wasting network capacity trying to reconstruct complex camera frames, decoding privileged vehicle states trains more informative latent dynamics for downstream control.
  • Actor-critic rollouts remain the final sequential frontier: While world model training parallelizes easily over recorded sequences, policy imagination still requires sequential rollouts because action $a_t$ depends on policy $\pi_\theta(y_t, z_t)$.

Key Results

  • Speedup: S5WM speeds up the world model training phase by up to 10× in state-based tasks and up to 4× in visual tasks. Total end-to-end MBRL training time is cut by up to 4× (state-based) and 2× (vision-based).
  • Performance Parity: S5WM achieves identical sample efficiency and task rewards compared to standard DreamerV3, reaching a 100% success rate and equivalent lap times in simulation (~4.82s vs. 4.79s for Split-S; ~3.77s vs. 3.87s for Figure-8). PPO struggled significantly, managing only a 44% success rate on the visual task.
  • Real-World Transfer: Deployed zero-shot on an agile physical quadrotor, S5WM maintained top speeds above 15 m/s through aggressive maneuvers (4.87s real lap time on Split-S).

Limitations and Future Work

  • Actor-Critic Bottleneck: Latent imagination during actor-critic optimization cannot be parallelized with associative scans because future inputs depend on current policy evaluations. Policy imagination now accounts for the majority of remaining training time.
  • Hyperparameter Sensitivity: S5WM is currently more sensitive to hyperparameter choices (such as learning rate and state dimensions) than mature RSSM-based Dreamer baselines.
  • Task Scope: Experiments focus strictly on quadrotor racing; validating S5WM across diverse domains like legged locomotion or dexterous manipulation remains unexplored.

Summary updated

BibTeX
@inproceedings{aljalbout2025accelerating,
  author = {Elie Aljalbout and Maria Krinner and Angel Romero and Davide Scaramuzza},
  title = {{Accelerating Model-Based Reinforcement Learning with State-Space World Models}},
  booktitle = {World Models @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=q5s1aRmRQm},
}
Figure