From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and When
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) like transformers demonstrate impressive in-context learning (ICL) capabilities, allowing them to make predictions for new tasks based on prompt exemplars without parameter updates. While existing ICL theories often assume structured training data resembling ICL tasks (e.g., x-y pairs for linear regression), LLMs are typically trained unsupervised on unstructured text, such as web content, which lacks clear parallels to tasks like word analogy. To address this gap, we examine what enables ICL in models trained on unstructured data, focusing on critical sequence model requirements and training data structure. We find that many ICL capabilities can emerge simply from co-occurrence of semantically related word pairs in unstructured data; word analogy completion, for example, can provably arise purely through co-occurrence modeling, using classical language models like continuous bag of words (CBOW), without needing positional information or attention mechanisms. However, positional information becomes crucial for logic reasoning tasks requiring generalization to unseen tokens. Finally, we identify two cases where ICL fails: one in logic reasoning tasks that require generalizing to new, unseen patterns, and another in analogy completion where relevant word pairs appear only in fixed training positions. These findings suggest that LLMs' ICL abilities depend heavily on the structural elements within their training data.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 58 of its 70 references that are in the map. First posted on arXiv 31 May 2024.
Builds on
58 of 70 references.
References · 58
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022In-context Learning and Induction Headscited by 930
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
38 more
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2023Function Vectors in Large Language Modelscited by 292
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
- 2023The Learnability of In-Context Learningcited by 126
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
- 2023In-Context Convergence of Transformerscited by 112
- 2023Finding Support Examples for In-Context Learningcited by 104
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
- 2023A Theory of Emergent In-Context Learning as Implicit Structure Inductioncited by 86
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
- 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
- 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 71
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
- 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2024Identifying Semantic Induction Heads to Understand In-Context Learningcited by 46
- 2023Pretraining Data Mixtures Enable Narrow Model Selection Capabilities in Transformer Modelscited by 45
- 2024Dual Operating Modes of In-Context Learningcited by 42
- 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
- 2023Understanding In-Context Learning via Supportive Pretraining Datacited by 41
- 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
- 2024Linear Transformers are Versatile In-Context Learnerscited by 28
- 2023Understanding In-Context Learning from Repetitionscited by 27
- 2023CausalLM is not optimal for in-context learningcited by 26
- 2024Parallel Structures in Pre-training Data Yield In-Context Learningcited by 26
- 2023A Closer Look at In-Context Learning under Distribution Shiftscited by 25
- 2023Understanding Emergent In-Context Learning from a Kernel Regression Perspectivecited by 23
- 2024In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitznesscited by 22
50 most cited of 58 All 58 (JSON)
Built on by
Citing papers per year: 2025: 3.
3 papers.