Dynamical Memory Transformer: Selective Recurrent Memories with Constant Cost Attention
On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language
Abstract (arXiv)
Transformers retain an explicit history of the sequence, allowing attention to directly retrieve past representations. However, the size of the KV-Cache and the cost of a new token increase with the context length. State Space Models compress the past into a fixed-size recurrent state, at the cost of reduced addressability. We present the Dynamical Memory Transformer (DMT), a hybrid architecture that separates sequence encoding from information reading. The encoder uses several memory units, each implemented by a dynamical system with a complex diagonal recurrent matrix. An input-dependent leak rate controls their updates. The decoder then uses attention to read and combine their outputs, without going through the token history. The formulation of the recurrence allows an associative scan with O(T ) total work and O(log T ) parallel depth, with fixed dimensions. During autoregressive inference, the recurrent states and the convolution cache remain fixed in size. We compare DMT with Mamba and Transformer on cognitive and language modeling tasks, and show its strengths and limitations: DMT achieves the best results on several cognitive tasks and language modeling performance close to that of Transformer, but remains behind Mamba in language modeling. On selective copy, DMT also shows stronger length extrapolation than Mamba and Transformer. These results demonstrate that parallel dynamical memory units are a promising mechanism for retaining and using information over sequences.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 18 of its 29 references that are in the map. Submitted 30 Oct 2026.
Builds on
18 of 29 references.
Closest ancestors · 3
Same direction, newest first
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
- 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct
Other references · 15
- 2017Attention Is All You Needcited by 62,125
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,388
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2016Pointer Sentinel Mixture Modelscited by 3,344
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 3,052
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,284
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,130
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 1,077
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 884
- 2017Crowdsourcing Multiple Choice Science Questionscited by 823
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 662
3 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026The Recurrent Transformer: Greater Effective Depth and Efficient Decoding
- 2025Forgetting Transformer: Softmax Attention with a Forget Gate
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Models
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors
- 2026MemOnce: A Scalable Memory Architecture for Large Language Models
- 2024RecurFormer: Not All Transformer Heads Need Self-Attention
- 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
- 2026Architectures and KV Replay for Depth-Recurrent Language Models