Drama: Mamba-Enabled Model-Based Reinforcement Learning Is Sample and Parameter Efficient

Wenlong Wang, Ivana Dusparic, Yucheng Shi, Ke Zhang, Vinny Cahill

Model-based reinforcement learning (MBRL) is highly sample-efficient but typically relies on computationally heavy sequence models like Transformers or RNNs. To address this, researchers have introduced Drama, an MBRL agent that uses the Mamba-2 State Space Model (SSM) to achieve linear $O(n)$ scaling, allowing for efficient long-sequence modeling. Combined with a novel sampling strategy, Drama achieves competitive performance on the Atari100k benchmark using a remarkably small 7-million-parameter world model that can be trained on a standard laptop.

The Bottleneck in World Models

Deep Reinforcement Learning (RL) is notorious for requiring millions of interactions with an environment to learn effective policies. Model-based RL (MBRL) tackles this by learning a "world model" that simulates the environment's dynamics. The agent can then train inside this "imagined" world, drastically improving sample efficiency.

However, building a robust world model requires a powerful sequence model to predict future states, which presents two major challenges:

  1. Architectural Bottlenecks: RNNs (like the GRUs used in DreamerV3) struggle with vanishing gradients and capturing long-term dependencies. Transformers (used in IRIS or STORM) capture long-term dependencies well but scale quadratically $O(n^2)$ in memory and compute, making long sequences prohibitively expensive.
  2. The "Hallucination" Problem: Early in training, the world model is inaccurate. If the agent trains on these flawed "imagined" rollouts, it learns suboptimal behaviors, and detecting these model errors is incredibly difficult.

Methods: Mamba-2 and Smart Sampling

To solve the architectural bottleneck, the authors propose Drama, which replaces traditional RNNs or Transformers with Mamba-2, a structured State Space Model (SSM).

Mamba-2 World Model Architecture
  • Mamba-2 World Model: Mamba-2 processes sequences using semi-separable matrix multiplications. This allows it to scale linearly $O(n)$ with sequence length while maintaining the ability to capture long-term dependencies. The world model uses a Discrete Variational Autoencoder (VAE) to compress raw image frames into latent vectors, which Mamba-2 then uses to predict future latent states, rewards, and episode terminations.
  • Dynamic Frequency-Based Sampling (DFS): To solve the early-stage hallucination problem, the authors introduce DFS. This replay buffer sampling method tracks two metrics for every transition: how many times it was used to train the world model, and how many times it was used to train the behavior policy. DFS dynamically prioritizes sampling transitions that the world model has already learned well, preventing the agent from training on unreliable, under-trained parts of the environment.

Key Insights and Results

The primary evaluation suite for Drama is the Atari100k Benchmark, consisting of 26 Atari games where the agent is strictly limited to 100,000 environment steps. The authors also utilized a custom grid world to test geometric and logical long-sequence prediction capabilities.

Atari100k Benchmark Results
  • High Performance, Tiny Footprint: Drama achieves a 105% normalized mean score on the Atari100k benchmark using an extra-small (XS) model with only 7 million parameters.
  • Pound-for-Pound Superiority: When compared to a similarly sized 12M-parameter version of the state-of-the-art DreamerV3, Drama vastly outperforms it (105% normalized mean score vs. DreamerV3-XS's 37%).
  • DFS Impact: Using Dynamic Frequency-based Sampling boosted Drama's normalized mean score from 80% (with standard uniform sampling) to 105%.
  • Hardware Accessibility: Thanks to the $O(n)$ complexity of Mamba-2 and the small parameter count, Drama is lightweight enough to be trained entirely on a standard consumer laptop (tested on an NVIDIA RTX 2000 Ada Mobile GPU).
  • Faster "Imagination": Because Mamba updates its inference parameters independently of sequence length, the autoregressive "imagination" phase—which is usually the computational bottleneck in MBRL—is significantly accelerated compared to Transformer-based models.

Limitations and Future Work

While Drama is incredibly parameter-efficient and enables longer sequences, it does not decisively beat the absolute top scores of massive models (like the 200M-parameter standard DreamerV3) across the entire benchmark. Furthermore, Drama struggles in games where tiny pixel-level details are crucial but easily lost by a lightweight autoencoder. For example, in Breakout, the 7M parameter model sometimes fails to reconstruct the ball during "imagination," leading to poor policy performance. Scaling up the autoencoder fixes this, but adds parameters.

Future work will explore environments where ultra-long sequence modeling is the primary bottleneck for success. The authors also propose investigating how Mamba architectures can be leveraged for long-horizon planning and informed exploration in RL.

Summary updated

BibTeX
@inproceedings{wang2025drama,
  author = {Wenlong Wang and Ivana Dusparic and Yucheng Shi and Ke Zhang and Vinny Cahill},
  title = {{Drama: Mamba-Enabled Model-Based Reinforcement Learning Is Sample and Parameter Efficient}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=7XIkRgYjK3},
}
Figure