mlsanityData to 24 Nov 2026

Multi-State Linear Attention with Generalized Second-Order Routing

arXiv 2610.37645 ↗Submitted 27 Oct 2026cs.CLcited by 0

On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language

Abstract (arXiv)

Self-attention plays a key role in long-sequence modeling, but its quadratic time complexity fundamentally limits the scaling of Large Language Models. Recently, Multi-State Linear Attention (MSLA) mechanisms have been proposed to make sequence modeling more efficient by splitting the context into segments and compressing each in its own memory state. MSLA aggregates the information extracted from each memory state using only the mean alignment between a query and each segment's keys, ignoring how the alignment is distributed within the segment. In order to model the relevance of a segment to a query more comprehensively and incorporate the variance of the alignment in the aggregation, we propose MERLIN (MomEnt Routing for multi-state LINear attention), a method that tracks the first and second moments of each segment's keys. Using the moments of keys, a query can recover both the mean and the variance of its alignment with each segment to perform a more content-aware aggregation of per-state readouts. Experiments on multi-state variants of Gated DeltaNet-1.3B and Mamba-2-780M show that MERLIN consistently outperforms existing aggregation methods on various long-context tasks. In particular, MERLIN outperforms baselines on RULER needle-in-a-haystack and long-context QA (+8.3% for Gated DeltaNet-1.3B and +7.0% for Mamba-2-780M) and diverse subtasks in LongBench (+13.5% and +12.0%). It even outperforms baselines that consume 4x more memory. MERLIN provides a simple and general routing mechanism for improving long-context capabilities of MSLA models.

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 35 of its 38 references that are in the map. Submitted 27 Oct 2026.

Builds on

35 of 38 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
  2. 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
  3. 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
  4. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec

Other references · 31

  1. 2017Attention Is All You Needcited by 62,125
  2. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,767
  3. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,272
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,575
  5. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,130
  6. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,932
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
  8. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,557
  9. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,356
  10. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 884
  11. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 798
  12. 2014Neural Turing Machinescited by 693
19 more
  1. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
  2. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 662
  3. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 554
  4. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 455
  5. 2022Memorizing Transformerscited by 247
  6. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 247
  7. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 245
  8. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 236
  9. 2022Recurrent Memory Transformercited by 220
  10. 2022On The Computational Complexity of Self-Attentioncited by 146
  11. 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 85
  12. 2024Understanding Factual Recall in Transformers via Associative Memoriescited by 65
  13. 2025MoM: Linear Sequence Modeling with Mixture-of-Memoriescited by 52
  14. 2025Log-Linear Attentioncited by 46
  15. 2026Addressable Memory for Video World Modelscited by 23
  16. 2026Memory Caching: RNNs with Growing Memorycited by 19
  17. 2025Scaling Linear Attention with Sparse State Expansioncited by 14
  18. 2026Dynamic Linear Attentioncited by 8
  19. 2026Reinforced Fast Weights via Next-Sequence Predictioncited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Subquadratic Attention with a Hierarchical Tree-Structured Indexer
  2. 2026MKA: Memory-Keyed Attention for Efficient Long-Context Reasoning
  3. 2024Unlocking the Secrets of Linear Complexity Sequence Model from A Unified Perspective
  4. 2026Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration
  5. 2022Mega: Moving Average Equipped Gated Attention
  6. 2026Bilateral Log-Linear Attention
  7. 2024LongVQ: Long Sequence Modeling with Vector Quantization on Structured Memory
  8. 2025Sparse Attention across Multiple-context KV Cache