mlsanityData to 14 Oct 2026

Gated Associative Memory: A Parallel O(N) Architecture for Efficient Sequence Modeling

arXiv 2509.00605 ↗First posted 30 Aug 2025cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

The Transformer architecture, underpinned by the self-attention mechanism, has become the de facto standard for sequence modeling tasks. However, its core computational primitive scales quadratically with sequence length (O(N^2)), creating a significant bottleneck for processing long contexts. In this paper, we propose the Gated Associative Memory (GAM) network, a novel, fully parallel architecture for sequence modeling that exhibits linear complexity (O(N)) with respect to sequence length. The GAM block replaces the self-attention layer with two parallel pathways: a causal convolution to efficiently capture local, position-dependent context, and a parallel associative memory retrieval mechanism to model global, content-based patterns. These pathways are dynamically fused using a gating mechanism, allowing the model to flexibly combine local and global information for each token. We implement GAM from scratch and conduct a rigorous comparative analysis against a standard Transformer model and a modern linear-time baseline (Mamba) on the WikiText-2 benchmark, as well as against the Transformer on the TinyStories dataset. Our experiments demonstrate that GAM is consistently faster, outperforming both baselines on training speed, and achieves a superior or competitive final validation perplexity across all datasets, establishing it as a promising and efficient alternative for sequence modeling.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 6 of its 10 references that are in the map. First posted on arXiv 30 Aug 2025.

Builds on

6 of 10 references.

References · 6

  1. 2017Attention Is All You Needcited by 60,361
  2. 2016Pointer Sentinel Mixture Modelscited by 3,096
  3. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  4. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  5. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
  6. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Test-time regression: a unifying framework for designing sequence models with associative memory
  2. 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing
  3. 2026Breaking the KV Cache Bottleneck: Fan Duality Model Achieves O(1) Decode Memory with Superior Associative Recall
  4. 2026Parallel Causal Associative Fields: Gated Sparse Memory for Long-Context Language Modeling
  5. 2025SequenceLayers: Sequence Processing and Streaming Neural Networks Made Easy
  6. 2024Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulation
  7. 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Training
  8. 2025Numerical Investigation of Sequence Modeling Theory using Controllable Memory Functions