All models

decision_mamba_policy

A Decision Transformer-style reinforcement learning model with Mamba blocks in place of causal self-attention.

Reinforcement learning and control · 1,269 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
877.3K
Operations
1,269
Framework
PyTorch
Recurrent
No
Published
2024
Cited by
37 (as of 12 November 2026)
Authors
Toshihiro Ota
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m4122
Graph hash
ffd4ed6840397405d6da74897801ce7c896e71dc698708e6e4d46fdd0c224711
Skeleton hash
d6cde98fa92d9965a093d8e64fb81f5172b875f2035876e8b11387b212464c04
Architecture hash
cf226a12c02e1020b58000106aba5f45d72edc9202adb4efde49e1a69f787568
Diagram SHA-256
5c67161d740884247c936583d49000e7a9d10e221a2d942ecf08c0ce58b3a79f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Decision Mamba (DMamba) is a model for reinforcement learning treated as sequence modeling: it is Decision Transformer with Mamba substituted for causal self-attention. Decision Transformer relies on causal self-attention to model sequences of states, actions and rewards, and the paper asks what changes when Mamba, a sequence modeling framework built on a selective structured state space model, takes over that role.

The model is fed the last K timesteps of a trajectory, for a total of 3K tokens. An embedding layer turns these into token embeddings, and a stack of Mamba layers processes them; each layer consists of a token-mixing block and a channel-mixing block. Given the current state and the return-to-go, the model predicts the next action.

The paper evaluates DMamba on continuous OpenAI Gym and discrete Atari control tasks and reports that it is competitive to existing DT-type models. An ablation finds comparable performance without the channel-mixing layers. The paper also notes that merely applying the Mamba block to DT-type networks does not enhance efficiency for the RL tasks it considers.

Key idea. Decision Mamba puts the Mamba block, based on the selective SSM, into the Decision Transformer-type architecture and is reported as competitive to existing DT-type models.

  • decision mamba
  • dmamba
  • offline reinforcement learning
  • reinforcement learning via sequence modeling
  • selective state spaces
  • state space model
  • return-to-go
  • d4rl
  • atari

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ota2024decisionmambareinforcementlearning,
      title={Decision Mamba: Reinforcement Learning via Sequence Modeling with Selective State Spaces}, 
      author={Toshihiro Ota},
      year={2024},
      eprint={2403.19925},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2403.19925}, 
}