mlsanityData to 7 Oct 2026

Learning to Remember, Learn, and Forget in Attention-Based Models

arXiv 2602.09075 ↗First posted 9 Feb 2026cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

In-Context Learning (ICL) in transformers acts as an online associative memory and is believed to underpin their high performance on complex sequence processing tasks. However, in gated linear attention models, this memory has a fixed capacity and is prone to interference, especially for long sequences. We propose Palimpsa, a self-attention model that views ICL as a continual learning problem that must address a stability-plasticity dilemma. Palimpsa uses Bayesian metaplasticity, where the plasticity of each attention state is tied to an importance state grounded by a prior distribution that captures accumulated knowledge. We demonstrate that various gated linear attention models emerge as specific architecture choices and posterior approximations, and that Mamba2 is a special case of Palimpsa where forgetting dominates. This theoretical link enables the transformation of any non-metaplastic model into a metaplastic one, significantly expanding its memory capacity. Our experiments show that Palimpsa consistently outperforms baselines on the Multi-Query Associative Recall (MQAR) benchmark and on Commonsense Reasoning tasks.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 49 of its 66 references that are in the map. First posted on arXiv 9 Feb 2026.

Builds on

49 of 66 references.

References · 49

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  9. 2022RT-1: Robotics Transformer for Real-World Control at Scalecited by 2,007
  10. 2017Gradient Episodic Memory for Continual Learningcited by 1,871
  11. 2016Progressive Neural Networkscited by 1,332
  12. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
37 more
  1. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  2. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  3. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  4. 2020Dark Experience for General Continual Learning: a Strong, Simple Baselinecited by 895
  5. 2022Transformers learn in-context by gradient descentcited by 714
  6. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  7. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  8. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  9. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  10. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
  11. 2024xLSTM: Extended Long Short-Term Memorycited by 320
  12. 2024Titans: Learning to Memorize at Test Timecited by 303
  13. 2019Continual learning with hypernetworkscited by 267
  14. 2018Molecular Transformer - A Model for Uncertainty-Calibrated Chemical Reaction Predictioncited by 225
  15. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
  16. 2024How to Train Long-Context Language Models (Effectively)cited by 141
  17. 2023The Learnability of In-Context Learningcited by 126
  18. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
  19. 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
  20. 2023A Theory of Emergent In-Context Learning as Implicit Structure Inductioncited by 86
  21. 2023Full Stack Optimization of Transformer Inference: a Surveycited by 79
  22. 2022CLIP model is an Efficient Continual Learnercited by 64
  23. 2024Longhorn: State Space Models are Amortized Online Learnerscited by 58
  24. 2024Self-Expansion of Pre-trained Models with Mixture of Adapters for Continual Learningcited by 53
  25. 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 51
  26. 2021Understanding Catastrophic Forgetting and Remembering in Continual Learning with Optimal Relevance Mappingcited by 47
  27. 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 37
  28. 2020Task Agnostic Continual Learning Using Online Variational Bayes with Fixed-Point Updatescited by 34
  29. 2024Bayesian scaling laws for in-context learningcited by 18
  30. 2017Continual Learning Through Synaptic Intelligencecited by 13
  31. 2023Learning to (Learn at Test Time)cited by 12
  32. 2024Enabling High-Sparsity Foundational Llama Models with Efficient Pretraining and Deploymentcited by 10
  33. 2023Design Principles for Lifelong Learning AI Acceleratorscited by 9
  34. 2025Bayesian continual learning and forgetting in neural networkscited by 8
  35. 2024Mamba-CL: Optimizing Selective State Space Model in Null Space for Continual Learningcited by 5
  36. 2024Regularization-Based Efficient Continual Learning in Deep State-Space Modelscited by 4
  37. 2024Remembering Transformer for Continual Learningcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026A Comparative Analysis of Attention versus State-Space Models for In-Context Learning
  2. 2026Adaptive Memory Decay for Log-Linear Attention
  3. 2025LoLA: Low-Rank Linear Attention With Sparse Caching
  4. 2025Forgetting Transformer: Softmax Attention with a Forget Gate
  5. 2026Anatomy of Associative Recall in Fixed-State Recurrences: A Matched-State Decomposition, an Interference Wall, and a Curriculum That Breaks It
  6. 2026On-Policy Attention Linearization
  7. 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention
  8. 2026A Hippocampus for Linear Attention: An Exact Memory for What the Recurrent State Forgets