mlsanityData to 14 Oct 2026

Learning to Adapt: In-Context Learning Beyond Stationarity

arXiv 2604.10946 ↗First posted 13 Apr 2026cs.LG math.OCcited by 2

Not on the map. Why?

Abstract (arXiv)

Transformer models have become foundational across a wide range of scientific and engineering domains due to their strong empirical performance. A key capability underlying their success is in-context learning (ICL): when presented with a short prompt from an unseen task, transformers can perform per-token and next-token predictions without any parameter updates. Recent theoretical efforts have begun to uncover the mechanisms behind this phenomenon, particularly in supervised regression settings. However, these analyses predominantly assume stationary task distributions, which overlook a broad class of real-world scenarios where the target function varies over time. In this work, we bridge this gap by providing a theoretical analysis of ICL under non-stationary regression problems. We study how the gated linear attention (GLA) mechanism adapts to evolving input-output relationships and rigorously characterize its advantages over standard linear attention in this dynamic setting. To model non-stationarity, we adopt a first-order autoregressive process and show that GLA achieves lower training and testing errors by adaptively modulating the influence of past inputs -- effectively implementing a learnable recency bias. Our theoretical findings are further supported by empirical results, which validate the benefits of gating mechanisms in non-stationary ICL tasks.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 41 of its 55 references that are in the map. First posted on arXiv 13 Apr 2026.

Builds on

41 of 55 references.

References · 41

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  6. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  7. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
  8. 2022Transformers learn in-context by gradient descentcited by 732
  9. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  10. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  11. 2019Multimodal Transformer for Unaligned Multimodal Language Sequencescited by 645
  12. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 644
29 more
  1. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  2. 2017Deep Interest Network for Click-Through Rate Predictioncited by 544
  3. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  4. 2021MetaICL: Learning to Learn In Contextcited by 454
  5. 2023Trained Transformers Learn Linear Models In-Contextcited by 337
  6. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
  7. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  8. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  9. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 170
  10. 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
  11. 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
  12. 2019Behavior Sequence Transformer for E-commerce Recommendation in Alibabacited by 130
  13. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
  14. 2023The Learnability of In-Context Learningcited by 127
  15. 2023In-Context Convergence of Transformerscited by 115
  16. 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 74
  17. 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 49
  18. 2023GateLoop: Fully Data-Controlled Linear Recurrence for Sequence Modelingcited by 46
  19. 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
  20. 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 38
  21. 2023CausalLM is not optimal for in-context learningcited by 26
  22. 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyondcited by 24
  23. 2023On the Convergence of Encoder-only Shallow Transformerscited by 13
  24. 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 12
  25. 2024Unraveling the Gradient Descent Dynamics of Transformerscited by 11
  26. 2023Tomography of Quantum States from Structured Measurements via quantum-aware transformercited by 8
  27. 2025From Compression to Expression: A Layerwise Analysis of In-Context Learningcited by 6
  28. 2025On the Convergence of Gradient Descent on Learning Transformers with Residual Connectionscited by 6
  29. 2025In-Context Learning for Non-Stationary MIMO Equalizationcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.