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