mlsanityData to 7 Oct 2026

MesaNet: Sequence Modeling by Locally Optimal Test-Time Training

arXiv 2506.05233 ↗First posted 5 Jun 2025cs.LG cs.AI cs.CLcited by 37

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  4. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
  9. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  10. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  11. 2020Longformer: The Long-Document Transformercited by 3,362
  12. 2016Pointer Sentinel Mixture Modelscited by 2,992
38 more
  1. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  3. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  4. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  5. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  6. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  7. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  8. 2020Rethinking Attention with Performerscited by 1,584
  9. 2019Root Mean Square Layer Normalizationcited by 1,425
  10. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  11. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  12. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  13. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
  14. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
  15. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  16. 2022Transformers learn in-context by gradient descentcited by 714
  17. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  18. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
  19. 2019Deep Equilibrium Modelscited by 603
  20. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  21. 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 588
  22. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
  23. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  24. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  25. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
  26. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
  27. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  28. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  29. 2021Random Feature Attentioncited by 350
  30. 2021Efficient Attentions for Long Document Summarizationcited by 342
  31. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  32. 2024xLSTM: Extended Long Short-Term Memorycited by 320
  33. 2024Titans: Learning to Memorize at Test Timecited by 303
  34. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
  35. 2019Risks from Learned Optimization in Advanced Machine Learning Systemscited by 250
  36. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
  37. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  38. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197

50 most cited of 82 All 82 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 12; 2026: 25.

37 papers.

Sort:

By area:

  1. 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
  2. 2025End-to-End Test-Time Training for Long Contextcited by 53
  3. 2025Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrencecited by 41
  4. 2026tttLRM: Test-Time Training for Long Context and Autoregressive 3D Reconstructioncited by 10
  5. 2025Gated KalmaNet: A Fading Memory Layer Through Test-Time Ridge Regressioncited by 9
  6. 2025Learning on the Job: Test-Time Curricula for Targeted Reinforcement Learningcited by 8
  7. 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Trackingcited by 7
  8. 2025Fast weight programming and linear transformers: from machine learning to neurobiologycited by 6
  9. 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Modelscited by 5
  10. 2025Do Depth-Grown Models Overcome the Curse of Depth? An In-Depth Analysiscited by 5
  11. 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regressioncited by 4
  12. 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 4
25 more
  1. 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principlecited by 3
  2. 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attentioncited by 3
  3. 2025Higher-order Linear Attentioncited by 2
  4. 2026What a Deletion Certificate Covers, and Where It Expires: Auditable Removal from a Support-Vector Memorycited by 2
  5. 2026Dissecting Linear Recurrent Models: How Different Gating Strategies Drive Selectivity and Generalizationcited by 1
  6. 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 1
  7. 2026Online Vector Quantized Attentioncited by 1
  8. 2026Learning to Remember, Learn, and Forget in Attention-Based Modelscited by 1
  9. 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
  10. 2026Echo: KV-Cache-Free Associative Recall with Spectral Koopman Operatorscited by 1
  11. 2026Parallax: Parameterized Local Linear Attention for Language Modelingcited by 1
  12. 2026Blurry Window Attentioncited by 1
  13. 2026SHiPPO: Recurrent Memory with Transported Polynomial Projectionscited by 1
  14. 2025Enhancing Linear Attention with Residual Learningcited by 0
  15. 2026Improved state mixing in higher-order and block diagonal linear recurrent networkscited by 0
  16. 2026Small Models, Strong Priors: Architectural Inductive Bias for Parameter-Efficient Neural PDE Solverscited by 0
  17. 2026Memory by Design: Probabilistic Sequence Layerscited by 0
  18. 2026Kolmogorov-Arnold Reservoir Computingcited by 0
  19. 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attentioncited by 0
  20. 2026The Orthogonalized Read Is a Removable Training Scaffold for Recurrent Memorycited by 0
  21. 2026Uncheatable Eval: Dynamic Compression-Based Evaluation of Language Modelscited by 0
  22. 2026GradLev: Token-Parallel Test-Time Training Via Costate Predictioncited by 0
  23. 2026Adapting Linear-Time Architectures for Tabular In-Context Learningcited by 0
  24. 2026Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modelingcited by 0
  25. 2026Switching Linear Attentioncited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025SequenceLayers: Sequence Processing and Streaming Neural Networks Made Easy
  2. 2025ParaRNN: Unlocking Parallel Training of Nonlinear RNNs for Large Language Models
  3. 2025Numerical Investigation of Sequence Modeling Theory using Controllable Memory Functions
  4. 2023Resurrecting Recurrent Neural Networks for Long Sequences
  5. 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba
  6. 2026When Perplexity Lies: Generation-Focused Distillation of Hybrid Sequence Models
  7. 2026A Single-Layer Model Can Do Language Modeling
  8. 2024RotRNN: Modelling Long Sequences with Rotations