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