mlsanityData to 7 Oct 2026

Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regression

arXiv 2510.01450 ↗First posted 1 Oct 2025cs.LG cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

Transformer architectures have achieved remarkable success in various domains. While efficient alternatives to Softmax Attention have been widely studied, the search for more expressive mechanisms grounded in theoretical insight-even at greater computational cost-has been relatively underexplored. In this work, we bridge this gap by proposing Local Linear Attention (LLA), a novel attention mechanism derived from nonparametric statistics through the lens of test-time regression. First, we show that LLA offers theoretical advantages over Linear and Softmax Attention for associative memory via a bias-variance trade-off analysis. Next, we address its computational challenges and propose two memory-efficient primitives to tackle the Theta(n2 d) and Theta(n d2) complexity. We then introduce FlashLLA, a hardware-efficient, blockwise algorithm that enables scalable and parallel computation on modern accelerators. In addition, we implement and profile a customized inference kernel that significantly reduces memory overheads. Finally, we empirically validate the advantages and limitations of LLA on test-time regression, in-context regression, associative recall and state tracking tasks. Experiment results demonstrate that LLA effectively adapts to non-stationarity, outperforming strong baselines in test-time training and in-context learning, and exhibiting promising evidence for its scalability and applicability in large-scale models. Code is available at https://github.com/Yifei-Zuo/Flash-LLA.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 47 of its 57 references that are in the map. First posted on arXiv 1 Oct 2025.

Builds on

47 of 57 references.

References · 47

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  5. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  6. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  7. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  8. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  9. 2024Chameleon: Mixed-Modal Early-Fusion Foundation Modelscited by 904
  10. 2022Transformers learn in-context by gradient descentcited by 714
  11. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  12. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
35 more
  1. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  2. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  3. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  4. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  5. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  6. 2020Hopfield Networks is All You Needcited by 461
  7. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  8. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
  9. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  10. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  11. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
  12. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  13. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
  14. 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
  15. 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 191
  16. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
  17. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
  18. 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 182
  19. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
  20. 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
  21. 2018Online normalizer calculation for softmaxcited by 154
  22. 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 134
  23. 2022How to Train Your HiPPO: State Space Models with Generalized Orthogonal Basis Projectionscited by 121
  24. 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 121
  25. 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 102
  26. 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
  27. 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 69
  28. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
  29. 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 60
  30. 2024Longhorn: State Space Models are Amortized Online Learnerscited by 58
  31. 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 50
  32. 2024Megalodon: Efficient LLM Pretraining and Inference with Unlimited Context Lengthcited by 46
  33. 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 37
  34. 2025Understanding Transformer from the Perspective of Associative Memorycited by 31
  35. 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.