mlsanityData to 7 Oct 2026

Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention

arXiv 2606.25342 ↗First posted 24 Jun 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Lifelong continual learning remains an obstacle on the path to human-like intelligence. Modern transformers show sparks of intelligence with in-context learning. The quadratic nature of attention, however, prohibits transformers from performing this process on arbitrarily long sequences. In this work, we argue that extending in-context learning to lifelong settings is a practical solution for continual learning in AI agents. In particular, we argue that parametric forms of attention are needed to understand a lifetime of context with transformers on a fixed hardware budget. These attention mechanisms learn the relationship between keys and their associated values at test-time with parametric regression. Our generalization of parametric approaches (linear attention, state-space models, fast weight programmers, and test-time training layers) contrasts with nonparametric counterparts like softmax attention. They replace the ever-growing key-value cache with an online-trainable neural network, maintaining a constant memory footprint. We highlight how parametric attention currently fall short of lifelong learning due to limited memory capacity or costly online updates. To address these issues, we pose a set of open questions with novel insights to guide the field toward long-horizon agents.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 37 of its 50 references that are in the map. First posted on arXiv 24 Jun 2026.

Builds on

37 of 50 references.

References · 37

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  5. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  6. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  7. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  8. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  9. 2018Experience Replay for Continual Learningcited by 1,074
  10. 2023Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecturecited by 982
  11. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  12. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
25 more
  1. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  2. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  3. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  4. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  5. 2024xLSTM: Extended Long Short-Term Memorycited by 320
  6. 2024LoRA Learns Less and Forgets Lesscited by 313
  7. 2024Titans: Learning to Memorize at Test Timecited by 303
  8. 2020The Hardware Lotterycited by 160
  9. 2020Continual Lifelong Learning in Natural Language Processing: A Surveycited by 152
  10. 2025Test-Time Training Done Rightcited by 121
  11. 2024Modular Duality in Deep Learningcited by 71
  12. 2025Nested Learning: The Illusion of Deep Learning Architecturescited by 69
  13. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
  14. 2025Deep Research: A Survey of Autonomous Research Agentscited by 63
  15. 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 60
  16. 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 57
  17. 2024Just read twice: closing the recall gap for recurrent language modelscited by 55
  18. 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 37
  19. 2025Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon Layerscited by 32
  20. 2025Understanding Transformer from the Perspective of Associative Memorycited by 31
  21. 2025The Sparse Frontier: Sparse Attention Trade-offs in Transformer LLMscited by 28
  22. 2023Embodied Lifelong Learning for Task and Motion Planningcited by 17
  23. 2022Kernel Memory Networks: A Unifying Framework for Memory Modelingcited by 11
  24. 2022Designing Robust Transformers using Robust Kernel Density Estimationcited by 11
  25. 2025LoLA: Low-Rank Linear Attention With Sparse Cachingcited by 10

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026When Continual Learning Moves to Memory: A Study of Experience Reuse in LLM Agents
  2. 2025Lifelong Learning of Large Language Model based Agents: A Roadmap
  3. 2025Continual Learning for Generative AI: From LLMs to MLLMs and Beyond
  4. 2026Position: Modular Memory is the Key to Continual Learning Agents
  5. 2026When Does Continual Learning Require Learning
  6. 2025Towards Continuous Intelligence Growth: Self-Training, Continual Learning, and Dual-Scale Memory in SuperIntelliAgent
  7. 2026The Optimization Landscape of Learning Compacted Context Models
  8. 2026Dynamic Mixture of Latent Memories for Self-Evolving Agents