NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mamba as Decision Maker: Exploring Multi-scale Sequence Modeling in Offline Reinforcement Learning

Jiahang Cao, Qiang Zhang, Ziqing Wang, Jingkai Sun, Jiaxu Wang, Hao Cheng, Yecheng Shao, Wen Zhao, Gang Han, Yijie Guo, Renjing Xu

Here is a blog-style summary of the paper.

TL;DR

The paper introduces Mamba Decision Maker (MambaDM), a novel sequence modeling framework for offline reinforcement learning (RL) that captures both immediate Markovian transitions and long-term historical dependencies. Crucially, the authors discover that scaling laws in offline RL diverge from natural language processing: increasing model size yields diminishing returns, whereas scaling the dataset size acts as the primary driver for dramatic performance gains.

What Problem Does This Paper Address?

Treating reinforcement learning as a sequence modeling problem—pioneered by the Decision Transformer (DT)—has shifted how we approach offline RL. However, RL trajectories are fundamentally different from text or audio. They possess a dual nature:

  1. Local Correlation: Adhering to the Markov Decision Process (MDP), the next state is theoretically determined only by the current state and action.
  2. Global Correlation: Because trajectories are continuous over time, an agent's current situation is heavily influenced by long-term historical context.

Existing architectures struggle to balance both. Transformers capture global context well but scale quadratically and can overlook fine-grained local transitions. Conversely, local-focused architectures (like CNN-hybrid transformers) often sacrifice global context. Naive applications of State Space Models (SSMs) like Mamba also fail to explicitly exploit this multi-scale structure.

Methods

To address this dual nature, the authors propose MambaDM, featuring a novel Global-local Fusion Mamba (GLoMa) mixer module.

Fig. 1: Overview of our proposed MambaDM. The input RL trajectory is first processed by the embedding layers, and these embeddings are then passed through both local and global branches to extract multi-scale features. Subsequently, the combined information from these branches is fed into a feed-forward network (FFN). After passing through N layers, the final action sequence is obtained by the action predictor.

Instead of passing the trajectory through a single sequence model, GLoMa splits the workload into two parallel branches:

  • The Global-Scale Branch: Processes the entire trajectory sequence directly using a standard Mamba block to track long-term history.
  • The Local-Scale Branch: Evenly divides the trajectory into shorter sub-sequences, processing them through a separate Mamba block to capture immediate, localized state-action dynamics.

The features from both branches are fused using a dropout-reinforced addition step and then passed through a Feed-Forward Network (FFN) before predicting the next action sequence.

Datasets

The model was evaluated on two standard offline RL benchmarks:

  • Atari Games: Evaluated on discrete control tasks (e.g., Breakout, Qbert, Pong, Asterix).
  • D4RL Benchmark: Evaluated on continuous control MuJoCo environments (HalfCheetah, Hopper, and Walker2d) across various data quality tiers (Medium, Medium-Replay, Medium-Expert).

Key Insights and Ideas

  • RL Scaling Laws Diverge from NLP: In language modeling, bigger models consistently yield better results. MambaDM flips this script for RL. As shown in the scaling factor visualization, increasing context length, layer count, or embedding dimensions caused performance to fluctuate rather than improve. However, doubling the dataset size unlocked massive performance leaps.
Fig. 2: Visualization of the scaling factors impact on MambaDM’s performances in reinforcement learning tasks, where color red and blue denote different RL domains. We find that MambaDM does not demonstrate a definitive scaling law when scaling the model size, but increasing the dataset size can significantly improve the model’s performance.
  • Complementary Mathematical Dynamics: By analyzing the eigenvalues of Mamba's core transition matrix ($A$), the authors found that the Global Mamba branch progressively accentuates long-range dependencies as the network deepens. Meanwhile, the Local Mamba branch maintains a stable, balanced distribution of short- and long-range weights across all layers.
  • Mamba Beats Convolutions Locally: In ablation studies, replacing the local Mamba branch with a standard convolutional layer (a common trick for local features) caused a performance drop. This proves that Mamba’s selective scan mechanism is inherently superior at modeling even localized sub-sequences in RL.

Key Results

MambaDM achieved state-of-the-art results across both benchmarks, consistently outperforming Decision Transformer (DT) and prior SSM-based approaches like DS4 and DMamba:

  • Atari: On Qbert, MambaDM improved scores by 45.6% compared to DT and 32.1% compared to DMamba. It achieved the top score in 6 out of 8 Atari games tested.
  • D4RL: In the Hopper-Medium task, MambaDM achieved an average return of 85.7, significantly outperforming DT (68.4) and DS4 (54.2).
  • Context Length Robustness: When testing varying context lengths in Atari Breakout, MambaDM maintained stable performance and outperformed DMamba by an average of 75.2 points.

Limitations and Future Work

The primary limitation of MambaDM is its sensitivity to the initial Return-to-Go (RTG) hyperparameter. RTG dictates the target reward the agent attempts to achieve. The authors noted that while higher target RTGs generally improve performance, setting them excessively high causes performance to collapse (as seen in Breakout).

Currently, finding the optimal RTG requires brute-force experimentation. The authors highlight the automated, efficient determination of optimal RTG targets as a critical direction for future research.

Summary updated

BibTeX
@misc{cao2024mamba,
  author = {Jiahang Cao and Qiang Zhang and Ziqing Wang and Jingkai Sun and Jiaxu Wang and Hao Cheng and Yecheng Shao and Wen Zhao and Gang Han and Yijie Guo and Renjing Xu},
  title = {{Mamba as Decision Maker: Exploring Multi-scale Sequence Modeling in Offline Reinforcement Learning}},
  year = {2024},
  eprint = {2406.02013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.02013},
}
Figure