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:
- Local Correlation: Adhering to the Markov Decision Process (MDP), the next state is theoretically determined only by the current state and action.
- 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.
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.
- 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