MesaNet: Sequence Modeling by Locally Optimal Test-Time Training
Not on the map. Why?
Abstract (arXiv)
Sequence modeling is currently dominated by causal transformer architectures that use softmax self-attention. Although widely adopted, transformers require scaling memory and compute linearly during inference. A recent stream of work linearized the softmax operation, resulting in powerful recurrent neural network (RNN) models with constant memory and compute costs such as DeltaNet, Mamba or xLSTM. These models can be unified by noting that their recurrent layer dynamics can all be derived from an in-context regression objective, approximately optimized through an online learning rule. Here, we join this line of work and introduce a numerically stable, chunkwise parallelizable version of the recently proposed Mesa layer (von Oswald et al., 2024), which could only run sequentially in time and was therefore not scalable. This layer again stems from an in-context loss, but which is now minimized to optimality at every time point using a fast conjugate gradient solver. Through an extensive suite of experiments study up to the billion-parameter scale, we show that optimal test-time training enables reaching lower language modeling perplexity and higher downstream benchmark performance than previous RNNs, especially on tasks requiring long context understanding. This performance gain comes at the cost of additional flops spent during inference time. Our results are therefore intriguingly related to recent trends of increasing test-time compute to improve performance -- here by spending compute to solve sequential optimization problems within the neural network itself.
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Builds on 82 of its 112 references that are in the map. First posted on arXiv 5 Jun 2025.
Builds on
82 of 112 references.
References · 82
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
38 more
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2022Transformers learn in-context by gradient descentcited by 714
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
- 2019Deep Equilibrium Modelscited by 603
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 588
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2021Random Feature Attentioncited by 350
- 2021Efficient Attentions for Long Document Summarizationcited by 342
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
- 2019Risks from Learned Optimization in Advanced Machine Learning Systemscited by 250
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
50 most cited of 82 All 82 (JSON)
Built on by
Citing papers per year: 2025: 12; 2026: 25.
37 papers.
Sort:
By area:
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
- 2025End-to-End Test-Time Training for Long Contextcited by 53
- 2025Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrencecited by 41
- 2026tttLRM: Test-Time Training for Long Context and Autoregressive 3D Reconstructioncited by 10
- 2025Gated KalmaNet: A Fading Memory Layer Through Test-Time Ridge Regressioncited by 9
- 2025Learning on the Job: Test-Time Curricula for Targeted Reinforcement Learningcited by 8
- 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Trackingcited by 7
- 2025Fast weight programming and linear transformers: from machine learning to neurobiologycited by 6
- 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Modelscited by 5
- 2025Do Depth-Grown Models Overcome the Curse of Depth? An In-Depth Analysiscited by 5
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regressioncited by 4
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 4
25 more
- 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principlecited by 3
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attentioncited by 3
- 2025Higher-order Linear Attentioncited by 2
- 2026What a Deletion Certificate Covers, and Where It Expires: Auditable Removal from a Support-Vector Memorycited by 2
- 2026Dissecting Linear Recurrent Models: How Different Gating Strategies Drive Selectivity and Generalizationcited by 1
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 1
- 2026Online Vector Quantized Attentioncited by 1
- 2026Learning to Remember, Learn, and Forget in Attention-Based Modelscited by 1
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026Echo: KV-Cache-Free Associative Recall with Spectral Koopman Operatorscited by 1
- 2026Parallax: Parameterized Local Linear Attention for Language Modelingcited by 1
- 2026Blurry Window Attentioncited by 1
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projectionscited by 1
- 2025Enhancing Linear Attention with Residual Learningcited by 0
- 2026Improved state mixing in higher-order and block diagonal linear recurrent networkscited by 0
- 2026Small Models, Strong Priors: Architectural Inductive Bias for Parameter-Efficient Neural PDE Solverscited by 0
- 2026Memory by Design: Probabilistic Sequence Layerscited by 0
- 2026Kolmogorov-Arnold Reservoir Computingcited by 0
- 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attentioncited by 0
- 2026The Orthogonalized Read Is a Removable Training Scaffold for Recurrent Memorycited by 0
- 2026Uncheatable Eval: Dynamic Compression-Based Evaluation of Language Modelscited by 0
- 2026GradLev: Token-Parallel Test-Time Training Via Costate Predictioncited by 0
- 2026Adapting Linear-Time Architectures for Tabular In-Context Learningcited by 0
- 2026Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modelingcited by 0
- 2026Switching Linear Attentioncited by 0
- 2026Switching Linear Attention30 Sep 2026
- 2026Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling29 Sep 2026
- 2026Adapting Linear-Time Architectures for Tabular In-Context Learning28 Sep 2026
- 2026GradLev: Token-Parallel Test-Time Training Via Costate Prediction28 Sep 2026
- 2026Uncheatable Eval: Dynamic Compression-Based Evaluation of Language Models23 Sep 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026What a Deletion Certificate Covers, and Where It Expires: Auditable Removal from a Support-Vector Memory13 Jul 2026
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projections3 Jul 2026
- 2026The Orthogonalized Read Is a Removable Training Scaffold for Recurrent Memory2 Jul 2026
- 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention24 Jun 2026
- 2026Kolmogorov-Arnold Reservoir Computing18 Jun 2026
- 2026Blurry Window Attention31 May 2026
25 more
- 2026Memory by Design: Probabilistic Sequence Layers29 May 2026
- 2026Parallax: Parameterized Local Linear Attention for Language Modeling27 May 2026
- 2026Small Models, Strong Priors: Architectural Inductive Bias for Parameter-Efficient Neural PDE Solvers25 May 2026
- 2026Echo: KV-Cache-Free Associative Recall with Spectral Koopman Operators7 May 2026
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attention7 May 2026
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning10 Mar 2026
- 2026tttLRM: Test-Time Training for Long Context and Autoregressive 3D Reconstruction23 Feb 2026
- 2026Improved state mixing in higher-order and block diagonal linear recurrent networks12 Feb 2026
- 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Tracking11 Feb 2026
- 2026Learning to Remember, Learn, and Forget in Attention-Based Models9 Feb 2026
- 2026Online Vector Quantized Attention3 Feb 2026
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models3 Feb 2026
- 2026Dissecting Linear Recurrent Models: How Different Gating Strategies Drive Selectivity and Generalization18 Jan 2026
- 2025End-to-End Test-Time Training for Long Context29 Dec 2025
- 2025Do Depth-Grown Models Overcome the Curse of Depth? An In-Depth Analysis9 Dec 2025
- 2025Gated KalmaNet: A Fading Memory Layer Through Test-Time Ridge Regression26 Nov 2025
- 2025Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence10 Nov 2025
- 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principle2 Nov 2025
- 2025Higher-order Linear Attention31 Oct 2025
- 2025Learning on the Job: Test-Time Curricula for Targeted Reinforcement Learning6 Oct 2025
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regression1 Oct 2025
- 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Models29 Sep 2025
- 2025Enhancing Linear Attention with Residual Learning24 Sep 2025
- 2025Fast weight programming and linear transformers: from machine learning to neurobiology11 Aug 2025
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention16 Jun 2025
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
- 2025Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrencecited by 41
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026Echo: KV-Cache-Free Associative Recall with Spectral Koopman Operatorscited by 1
- 2026Echo: KV-Cache-Free Associative Recall with Spectral Koopman Operators7 May 2026
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning10 Mar 2026
- 2025Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence10 Nov 2025
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention16 Jun 2025
- 2026Blurry Window Attentioncited by 1
- 2026Blurry Window Attention31 May 2026
- 2025End-to-End Test-Time Training for Long Contextcited by 53
- 2026tttLRM: Test-Time Training for Long Context and Autoregressive 3D Reconstructioncited by 10
- 2025Gated KalmaNet: A Fading Memory Layer Through Test-Time Ridge Regressioncited by 9
- 2025Learning on the Job: Test-Time Curricula for Targeted Reinforcement Learningcited by 8
- 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Trackingcited by 7
- 2025Fast weight programming and linear transformers: from machine learning to neurobiologycited by 6
- 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Modelscited by 5
- 2025Do Depth-Grown Models Overcome the Curse of Depth? An In-Depth Analysiscited by 5
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regressioncited by 4
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 4
- 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principlecited by 3
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attentioncited by 3
12 most cited of 32 All 32 (JSON)
- 2026Switching Linear Attention30 Sep 2026
- 2026Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling29 Sep 2026
- 2026Adapting Linear-Time Architectures for Tabular In-Context Learning28 Sep 2026
- 2026GradLev: Token-Parallel Test-Time Training Via Costate Prediction28 Sep 2026
- 2026Uncheatable Eval: Dynamic Compression-Based Evaluation of Language Models23 Sep 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026What a Deletion Certificate Covers, and Where It Expires: Auditable Removal from a Support-Vector Memory13 Jul 2026
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projections3 Jul 2026
- 2026The Orthogonalized Read Is a Removable Training Scaffold for Recurrent Memory2 Jul 2026
- 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention24 Jun 2026
- 2026Kolmogorov-Arnold Reservoir Computing18 Jun 2026
- 2026Memory by Design: Probabilistic Sequence Layers29 May 2026
12 newest of 32 All 32 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025SequenceLayers: Sequence Processing and Streaming Neural Networks Made Easy
- 2025ParaRNN: Unlocking Parallel Training of Nonlinear RNNs for Large Language Models
- 2025Numerical Investigation of Sequence Modeling Theory using Controllable Memory Functions
- 2023Resurrecting Recurrent Neural Networks for Long Sequences
- 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba
- 2026When Perplexity Lies: Generation-Focused Distillation of Hybrid Sequence Models
- 2026A Single-Layer Model Can Do Language Modeling
- 2024RotRNN: Modelling Long Sequences with Rotations