mlsanityData to 7 Oct 2026

Why Larger Language Models Do In-context Learning Differently?

arXiv 2405.19592 ↗First posted 30 May 2024cs.LG cs.AI cs.CLcited by 44

Not on the map. Why?

Abstract (arXiv)

Large language models (LLM) have emerged as a powerful tool for AI, with the key ability of in-context learning (ICL), where they can perform well on unseen tasks based on a brief series of task examples without necessitating any adjustments to the model parameters. One recent interesting mysterious observation is that models of different scales may have different ICL behaviors: larger models tend to be more sensitive to noise in the test context. This work studies this observation theoretically aiming to improve the understanding of LLM and ICL. We analyze two stylized settings: (1) linear regression with one-layer single-head linear transformers and (2) parity classification with two-layer multiple attention heads transformers (non-linear data and non-linear model). In both settings, we give closed-form optimal solutions and find that smaller models emphasize important hidden features while larger ones cover more hidden features; thus, smaller models are more robust to noise while larger ones are more easily distracted, leading to different ICL behaviors. This sheds light on where transformers pay attention to and how that affects ICL. Preliminary experimental results on large base and chat models provide positive support for our analysis.

Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). Builds on 84 of its 105 references that are in the map. First posted on arXiv 30 May 2024.

Builds on

84 of 105 references.

References · 84

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  7. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  9. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  10. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  11. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  12. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
38 more
  1. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  2. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  3. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  4. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  5. 2022Emergent Abilities of Large Language Modelscited by 2,483
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  7. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  8. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  9. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  10. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  11. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  12. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
  13. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  14. 2023LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attentioncited by 776
  15. 2022Transformers learn in-context by gradient descentcited by 714
  16. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  17. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
  18. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  19. 2023LLaMA-Adapter V2: Parameter-Efficient Visual Instruction Modelcited by 602
  20. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  21. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  22. 2021MetaICL: Learning to Learn In Contextcited by 450
  23. 2023Larger language models do in-context learning differentlycited by 386
  24. 2023Fine-Tuning Language Models with Just Forward Passescited by 337
  25. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  26. 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 316
  27. 2018SentEval: An Evaluation Toolkit for Universal Sentence Representationscited by 294
  28. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  29. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  30. 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 254
  31. 2022OPT-IML: Scaling Language Model Instruction Meta Learning through the Lens of Generalizationcited by 235
  32. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  33. 2023Improving Language Model Negotiation with Self-Play and In-Context Learning from AI Feedbackcited by 202
  34. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  35. 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 184
  36. 2022In-context Examples Selection for Machine Translationcited by 172
  37. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
  38. 2023Birth of a Transformer: A Memory Viewpointcited by 154

50 most cited of 84 All 84 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 11; 2025: 23; 2026: 10.

44 papers.

Sort:

By area:

  1. 2024Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalabilitycited by 39
  2. 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
  3. 2025Beyond Prompt Engineering: Robust Behavior Control in LLMs via Steering Target Atomscited by 23
  4. 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
  5. 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
  6. 2024Looped ReLU MLPs May Be All You Need as Practical Programmable Computerscited by 19
  7. 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
  8. 2024Toward Understanding In-context vs. In-weight Learningcited by 19
  9. 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
  10. 2025Your Vision-Language Model Can't Even Count to 20: Exposing the Failures of VLMs in Compositional Countingcited by 17
  11. 2024Provable Differentially Private Computation of the Cross-Attention Mechanismcited by 14
  12. 2025Short-length Adversarial Training Helps LLMs Defend Long-length Jailbreak Attacks: Theoretical and Empirical Evidencecited by 13
32 more
  1. 2025Learning to Inference Adaptively for Multimodal Large Language Modelscited by 12
  2. 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
  3. 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
  4. 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
  5. 2026V0: A Generalist Value Model for Any Policy at State Zerocited by 7
  6. 2024Continual Learning Using Only Large Language Model Promptingcited by 5
  7. 2026Large Language Model Agents Are Not Always Faithful Self-Evolverscited by 5
  8. 2025Thinking with Nothinking Calibration: A New In-Context Learning Paradigm in Reasoning Large Language Modelscited by 4
  9. 2025Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?cited by 3
  10. 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?cited by 3
  11. 2026Pragma-VL: Towards a Pragmatic Arbitration of Safety and Helpfulness in MLLMscited by 3
  12. 2024Differentially Private Kernel Density Estimationcited by 2
  13. 2025StaICC: Standardized Evaluation for Classification Task in In-context Learningcited by 2
  14. 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learningcited by 2
  15. 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learnerscited by 2
  16. 2025Unveiling Effective In-Context Configurations for Image Captioning: An External & Internal Analysiscited by 2
  17. 2025Bounds of Chain-of-Thought Robustness: Reasoning Steps, Embed Norms, and Beyondcited by 2
  18. 2025Facilitating Cognitive Accessibility with LLMs: A Multi-Task Approach to Easy-to-Read Text Generationcited by 2
  19. 2025Large Language Models Develop Novel Social Biases Through Adaptive Explorationcited by 2
  20. 2025Plant in Cupboard, Orange on Rably, Inat Aphone. Benchmarking Incremental Learning of Situation and Language Model using a Text-Simulated Situated Environmentcited by 1
  21. 2025Diverse In-Context Example Selection After Decomposing Programs and Aligned Utterances Improves Semantic Parsingcited by 1
  22. 2025Multi-Layer Attention is the Amplifier of Demonstration Effectivenesscited by 1
  23. 2026Understanding and Improving Continuous Adversarial Training for LLMs via In-context Learning Theorycited by 1
  24. 2025CCQA: Generating Question from Solution Can Improve Inference-Time Reasoning in SLMscited by 0
  25. 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspectivecited by 0
  26. 2025Can Language Models Compose Skills In-Context?cited by 0
  27. 2026Federated Customization of Large Models: Approaches, Experiments, and Insightscited by 0
  28. 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learningcited by 0
  29. 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encodingcited by 0
  30. 2026Contrast Matters: Understanding Robustness of In-Context Fine-Tuning to Target-Context Relatednesscited by 0
  31. 2026When Correct Demonstrations Hurt: Rethinking the Role of Exemplars in In-Context Learningcited by 0
  32. 2026Focusing Condition: Inference-Time Self-Contrastive Steering Elicits Better Conditional Text Embeddings in LLMscited by 0