mlsanityData to 7 Oct 2026

From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and When

arXiv 2406.00131 ↗First posted 31 May 2024cs.LG cs.CL stat.MLcited by 3

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  5. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  7. 2022In-context Learning and Induction Headscited by 930
  8. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  9. 2022Transformers learn in-context by gradient descentcited by 714
  10. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  11. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  12. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
38 more
  1. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  2. 2023Function Vectors in Large Language Modelscited by 292
  3. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  4. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  5. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  6. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
  7. 2023Birth of a Transformer: A Memory Viewpointcited by 154
  8. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  9. 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
  10. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
  11. 2023The Learnability of In-Context Learningcited by 126
  12. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
  13. 2023In-Context Convergence of Transformerscited by 112
  14. 2023Finding Support Examples for In-Context Learningcited by 104
  15. 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
  16. 2023A Theory of Emergent In-Context Learning as Implicit Structure Inductioncited by 86
  17. 2024In-Context Language Learning: Architectures and Algorithmscited by 86
  18. 2023In-Context Learning through the Bayesian Prismcited by 78
  19. 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
  20. 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
  21. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
  22. 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 71
  23. 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
  24. 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
  25. 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
  26. 2024Identifying Semantic Induction Heads to Understand In-Context Learningcited by 46
  27. 2023Pretraining Data Mixtures Enable Narrow Model Selection Capabilities in Transformer Modelscited by 45
  28. 2024Dual Operating Modes of In-Context Learningcited by 42
  29. 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
  30. 2023Understanding In-Context Learning via Supportive Pretraining Datacited by 41
  31. 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
  32. 2024Linear Transformers are Versatile In-Context Learnerscited by 28
  33. 2023Understanding In-Context Learning from Repetitionscited by 27
  34. 2023CausalLM is not optimal for in-context learningcited by 26
  35. 2024Parallel Structures in Pre-training Data Yield In-Context Learningcited by 26
  36. 2023A Closer Look at In-Context Learning under Distribution Shiftscited by 25
  37. 2023Understanding Emergent In-Context Learning from a Kernel Regression Perspectivecited by 23
  38. 2024In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitznesscited by 22

50 most cited of 58 All 58 (JSON)

Built on by

Cited by year

Citing papers per year: 2025: 3.

3 papers.