mlsanityData to 14 Oct 2026

Switching Linear Attention

arXiv 2609.39034 ↗First posted 30 Sep 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Designing expressive sequence layers with efficient inference remains a central challenge in modern machine learning. Standard softmax attention achieves excellent sequence modeling performance through rich nonlinear token interactions, but it requires a key-value cache that grows linearly with sequence length, limiting its scalability. Linear attention enables efficient recurrent computation with a constant memory footprint, yet its reduced expressivity often yields inferior modeling performance. We introduce Switching Linear Attention (SwiLA), a novel sequence layer that bridges this gap by enhancing representational capacity while retaining the fixed-size recurrent state of linear attention. We derive the SwiLA recurrence from the test-time regression framework, casting the state update rule as online expectation-maximization in a mixture of linear regressions model. At test time, each output dimension dynamically selects among multiple linear attention components based on the input. Across associative recall, in-context language learning, and language modeling benchmarks, SwiLA shows strong performance and narrows the gap to softmax attention, even surpassing it in several settings.

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

Builds on

77 of 98 references.

References · 77

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  7. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  8. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,386
  9. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  10. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  11. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  12. 2016Pointer Sentinel Mixture Modelscited by 3,096
38 more
  1. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  2. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  3. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  4. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  5. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  6. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  7. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  8. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  9. 2016HyperNetworkscited by 1,027
  10. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  11. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
  12. 2022Simplified State Space Layers for Sequence Modelingcited by 788
  13. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  14. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  15. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  16. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  17. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  18. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
  19. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
  20. 2024Titans: Learning to Memorize at Test Timecited by 328
  21. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
  22. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  23. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
  24. 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 127
  25. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 122
  26. 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 120
  27. 2023Parallel Sampling of Diffusion Modelscited by 112
  28. 2023Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakescited by 111
  29. 2023Uncovering mesa-optimization algorithms in Transformerscited by 100
  30. 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
  31. 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 89
  32. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
  33. 2024Transformers to SSMs: Distilling Quadratic Knowledge to Subquadratic Modelscited by 67
  34. 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 66
  35. 2025End-to-End Test-Time Training for Long Contextcited by 62
  36. 2024Just read twice: closing the recall gap for recurrent language modelscited by 60
  37. 2024Longhorn: State Space Models are Amortized Online Learnerscited by 59
  38. 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53

50 most cited of 77 All 77 (JSON)

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Adaptive Memory Decay for Log-Linear Attention
  2. 2026Multi-Mixer Models: Flexible Sequence Modeling with Shared Representations
  3. 2026Sliding-window beats linear attention
  4. 2026GLIDE: Guided Layerwise Hybrid Attention for Efficient LLM Inference
  5. 2026RunningTensor: Generalizing Linear Attention to Higher-Order Recurrent States
  6. 2026State Rank Dynamics in Linear Attention LLMs
  7. 2025LoLA: Low-Rank Linear Attention With Sparse Caching
  8. 2026Online Vector Quantized Attention