Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention
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
- 2017Attention Is All You Needcited by 59,932
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2018Experience Replay for Continual Learningcited by 1,074
- 2023Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecturecited by 982
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
25 more
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2024LoRA Learns Less and Forgets Lesscited by 313
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2020The Hardware Lotterycited by 160
- 2020Continual Lifelong Learning in Natural Language Processing: A Surveycited by 152
- 2025Test-Time Training Done Rightcited by 121
- 2024Modular Duality in Deep Learningcited by 71
- 2025Nested Learning: The Illusion of Deep Learning Architecturescited by 69
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
- 2025Deep Research: A Survey of Autonomous Research Agentscited by 63
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 60
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 57
- 2024Just read twice: closing the recall gap for recurrent language modelscited by 55
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 37
- 2025Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon Layerscited by 32
- 2025Understanding Transformer from the Perspective of Associative Memorycited by 31
- 2025The Sparse Frontier: Sparse Attention Trade-offs in Transformer LLMscited by 28
- 2023Embodied Lifelong Learning for Task and Motion Planningcited by 17
- 2022Kernel Memory Networks: A Unifying Framework for Memory Modelingcited by 11
- 2022Designing Robust Transformers using Robust Kernel Density Estimationcited by 11
- 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
- 2026When Continual Learning Moves to Memory: A Study of Experience Reuse in LLM Agents
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmap
- 2025Continual Learning for Generative AI: From LLMs to MLLMs and Beyond
- 2026Position: Modular Memory is the Key to Continual Learning Agents
- 2026When Does Continual Learning Require Learning
- 2025Towards Continuous Intelligence Growth: Self-Training, Continual Learning, and Dual-Scale Memory in SuperIntelliAgent
- 2026The Optimization Landscape of Learning Compacted Context Models
- 2026Dynamic Mixture of Latent Memories for Self-Evolving Agents