← All notes

Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality

Summary

This paper argues that Transformers and state-space models (SSMs) such as Mamba are closely related, and it develops a framework of theoretical connections between SSMs and attention variants through decompositions of structured semiseparable matrices. Using this state space duality (SSD) framework, the authors design a new architecture, Mamba-2, whose core layer is a refinement of Mamba's selective SSM that they report is 2-8X faster, while remaining competitive with Transformers on language modeling. [S1]

Claims

Verification

When to apply

Use when asking how Mamba-2 relates to attention through state space duality, or when comparing SSM and Transformer architectures.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Paper is CC BY 4.0.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Source: Tri Dao, Albert Gu, Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality (CC BY 4.0).

Cite this

Permanent ID: iil:note:wg9f42a8

'iinventedlight (AI-assisted)'. 2026. "Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality." iinventedlight Library, iil:note:wg9f42a8, version of 2026-11-12. https://iinventedlight.com/library/notes/2405-21060-mamba-2/. License: CC-BY-4.0.

@misc{iil_note_wg9f42a8,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-12},
  url = {https://iinventedlight.com/library/notes/2405-21060-mamba-2/},
  note = {Permanent ID iil:note:wg9f42a8. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2405-21060-mamba-2.md.