Sequential Correlations Change In-Context Learning: Effective Context Length and Architectural Mismatch
Not on the map. Why?
Abstract (arXiv)
Modern sequence models have a striking capacity for in-context learning (ICL); they can perform new tasks based only on examples given in the prompt. Understanding how this ability emerges requires theory that captures important properties of natural data. Linear regression has served as a useful sandbox for ICL theory, but existing work has largely focused on prompts with independent examples. In this work, we extend this setting to sequentially correlated data, a basic feature of real sequences. We present a solvable model based on linear attention and test our predictions on realistic transformer architectures. We identify two distinct effects: First, when the query token is independent of the context, within-context correlations induce an effective context length: correlated prompts behave like shorter i.i.d. prompts. Second, when the query is also correlated with its context, test error is reduced, particularly for softmax attention when compared to linear attention. These results suggest that correlated prompts alter not only the effective sample size of in-context learning, but also which attention architectures are best matched to the task.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 48 of its 57 references that are in the map. First posted on arXiv 4 Jul 2026.
Builds on
48 of 57 references.
References · 48
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2022In-context Learning and Induction Headscited by 964
- 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
- 2023Larger language models do in-context learning differentlycited by 394
36 more
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 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
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 118
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
- 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 118
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
- 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 105
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 96
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
- 2024Asymptotic theory of in-context learning by linear attentioncited by 55
- 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 54
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 49
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2024Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic taskscited by 40
- 2024LLMs learn governing principles of dynamical systems, revealing an in-context neural scaling lawcited by 32
- 2024Pretrained transformer efficiently learns low-dimensional target functions in-contextcited by 31
- 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyondcited by 24
- 2025Test-Time Training Provably Improves Transformers as In-context Learnerscited by 16
- 2025When can in-context learning generalize out of task distribution?cited by 16
- 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Timecited by 16
- 2025Understanding In-Context Learning on Structured Manifolds: Bridging Attention to Kernel Methodscited by 15
- 2024Transformers Learn Low Sensitivity Functions: Investigations and Implicationscited by 14
- 2024MLPs Learn In-Context on Regression and Classification Taskscited by 13
- 2024What Do Language Models Learn in Context? The Structured Task Hypothesiscited by 13
- 2024Risk and cross validation in ridge regression with correlated samplescited by 8
- 2025Pretrain-Test Task Alignment Governs Generalization in In-Context Learningcited by 8
- 2025(How) Can Transformers Predict Pseudo-Random Numbers?cited by 6
- 2024Asymptotics of Linear Regression with Linearly Dependent Datacited by 5
- 2025Distinct Computations Emerge From Compositional Curricula in In-Context Learningcited by 5
- 2025Transformers Provably Learn Algorithmic Solutions for Graph Connectivity, But Only with the Right Datacited by 2
- 2026Multi-layer Cross-attention is Provably Optimal for Multi-modal In-context Learningcited by 2
- 2025Probing In-Context Learning: Impact of Task Complexity and Model Architecture on Generalization and Efficiencycited by 1
- 2025How Data Mixing Shapes In-Context Learning: Asymptotic Equivalence for Transformers with MLPscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.