Decision Mamba: A Multi-Grained State Space Model with Self-Evolution Regularization for Offline RL

Qi Lv, Xiang Deng, Gongwei Chen, Michael Y Wang, Liqiang Nie

Introduction

Offline Reinforcement Learning (RL) involves learning optimal policies from fixed datasets of historical transitions without further environment interaction. Recent advancements have treated this as a sequence-modeling problem, most notably with the Decision Transformer (DT). However, Transformer-based architectures face three primary challenges: inefficient long-range temporal modeling, neglect of local causal structures within individual timesteps, and a tendency to overfit suboptimal or "noisy" data in offline datasets.

To address these gaps, we introduce Decision Mamba (DM), a novel backbone for offline RL that replaces the standard Transformer with a multi-grained State Space Model (SSM). DM explicitly models both long-range temporal dependencies and fine-grained relationships within individual timesteps while employing a self-evolution strategy to refine noisy training data.

The Decision Mamba Architecture

Multi-Grained Temporal Modeling

Unlike standard models that flatten trajectories into a simple sequence of tokens, Decision Mamba recognizes the intrinsic relationship between the Return-to-go (RTG), the current state, and the resulting action—the RSA triplet—within a single timestep.

Decision Mamba architecture highlighting the grouping of Return-to-go, State, and Action triplets.

As shown in the architecture overview, DM groups these elements to preserve their local causal structure. The model utilizes two distinct scanning mechanisms within its encoder to capture information at different scales:

  1. Coarse-Grained Scan: This module handles inter-step relationships, modeling how the hidden state evolves across the entire trajectory to capture long-range dependencies.
  2. Fine-Grained Scan: This module extracts local features from the RSA triplet within each timestep, ensuring the model understands the immediate relationship between goals, environment states, and actions.

Inverse Training Goals

To further enhance robustness, DM is trained with auxiliary "inverse" goals. In addition to predicting the next action, the model predicts the next state and the next RTG. This multi-task objective forces the agent to internalize environment dynamics, improving its ability to handle out-of-distribution states encountered during deployment.

Progressive Self-Evolution Regularization (PSER)

Offline datasets are frequently contaminated with suboptimal trajectories or failed attempts. Standard Behavioral Cloning forces models to mimic these bad examples. DM introduces Progressive Self-Evolution Regularization (PSER) to combat this. PSER leverages the principle that deep learning models often capture clean, optimal patterns early in training before memorizing noise. As training progresses, the model gradually shifts its trust from the dataset labels to its own predicted actions, using its evolving knowledge to "clean" the training signal and prevent overfitting to poor demonstrations.

Experimental Evaluation

Datasets and Performance

Decision Mamba was evaluated on the standard D4RL benchmark, including Gym-MuJoCo control tasks (HalfCheetah, Hopper, Walker2d) and the challenging AntMaze navigation task.

  • State-of-the-Art Results: DM outperformed major baselines, including Decision Transformer and CQL, by an average of 8% across MuJoCo tasks.
  • Robustness to Noise: On "Medium-Replay" datasets, which contain significant amounts of suboptimal data, DM showed substantial improvements, validating the effectiveness of the PSER strategy.
  • Efficiency: Built on the Mamba architecture, DM scales linearly ($O(n)$) with sequence length. This provides a significant computational advantage over the quadratic scaling ($O(n^2)$) of Transformers, especially for long-horizon tasks.

Conclusion

Decision Mamba provides a robust and efficient alternative to Transformer-based sequence modeling in offline RL. By integrating multi-grained SSMs with self-evolutionary regularization, it successfully captures complex temporal dynamics while filtering out dataset noise. Future research will focus on scaling DM to high-dimensional, multi-agent environments and more complex robotic manipulation scenarios.

Summary updated

BibTeX
@inproceedings{lv2024decision,
  author = {Qi Lv and Xiang Deng and Gongwei Chen and Michael Y Wang and Liqiang Nie},
  title = {{Decision Mamba: A Multi-Grained State Space Model with Self-Evolution Regularization for Offline RL}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=dc4xbVfdzy},
}
Figure