Understanding In-Context Learning from Repetitions
Not on the map. Why?
Abstract (arXiv)
This paper explores the elusive mechanism underpinning in-context learning in Large Language Models (LLMs). Our work provides a novel perspective by examining in-context learning via the lens of surface repetitions. We quantitatively investigate the role of surface features in text generation, and empirically establish the existence of token co-occurrence reinforcement, a principle that strengthens the relationship between two tokens based on their contextual co-occurrences. By investigating the dual impacts of these features, our research illuminates the internal workings of in-context learning and expounds on the reasons for its failures. This paper provides an essential contribution to the understanding of in-context learning and its potential limitations, providing a fresh perspective on this exciting capability.
Key facts. Cited by 29 papers in the map (data through 14 Oct 2026). Builds on 38 of its 47 references that are in the map. First posted on arXiv 30 Sep 2023.
Builds on
38 of 47 references.
References · 38
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
26 more
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 968
- 2022In-context Learning and Induction Headscited by 964
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 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
- 2019Text Summarization with Pretrained Encoderscited by 556
- 2019Neural Text Generation with Unlikelihood Trainingcited by 503
- 2023Larger language models do in-context learning differentlycited by 394
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 152
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2022Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generationcited by 94
- 2023A Theory of Emergent In-Context Learning as Implicit Structure Inductioncited by 86
- 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 83
- 2016A Simple, Fast Diverse Decoding Algorithm for Neural Generationcited by 58
- 2023How Do In-Context Examples Affect Compositional Generalization?cited by 51
- 2023Measuring Inductive Biases of In-Context Learning with Underspecified Demonstrationscited by 49
- 2021Long Text Generation by Modeling Sentence-Level and Discourse-Level Coherencecited by 45
- 2021Straight to the Gradient: Learning to Use Novel Tokens for Neural Text Generationcited by 19
Built on by
Citing papers per year: 2023: 1; 2024: 13; 2025: 8; 2026: 7.
29 papers.
Sort:
By area:
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 60
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2024The broader spectrum of in-context learningcited by 35
- 2024Parallel Structures in Pre-training Data Yield In-Context Learningcited by 26
- 2024Repetition Neurons: How Do Language Models Produce Repetitions?cited by 23
- 2025S2-MAD: Breaking the Token Barrier to Enhance Multi-Agent Debate Efficiencycited by 22
- 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compressioncited by 18
- 2026FIRE-Bench: Evaluating AI Agents on the Rediscovery of Scientific Insightscited by 16
- 2025Unveiling Attractor Cycles in Large Language Models: A Dynamical Systems View of Successive Paraphrasingcited by 15
- 2025Enhancing Latent Computation in Transformers with Latent Tokenscited by 14
- 2024CoPS: Empowering LLM Agents with Provable Cross-Task Experience Sharingcited by 12
- 2024RefuteBench: Evaluating Refuting Instruction-Following for Large Language Modelscited by 11
17 more
- 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language modelscited by 10
- 2026Counterfactual Trace Auditing of LLM Agent Skillscited by 10
- 2024Unraveling the Mechanics of Learning-Based Demonstration Selection for In-Context Learningcited by 9
- 2024ELICIT: LLM Augmentation via External In-Context Capabilitycited by 7
- 2025Understanding and Controlling Repetition Neurons and Induction Heads in In-Context Learningcited by 5
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and Whencited by 3
- 2025Task Schema and Binding: A Double Dissociation Study of In-Context Learningcited by 3
- 2024Identifying and Analyzing Performance-Critical Tokens in Large Language Modelscited by 2
- 2024From Jack of All Trades to Master of One: Specializing LLM-based Autoraters to a Test Setcited by 2
- 2025Review of Hallucination Understanding in Large Language and Vision Modelscited by 2
- 2024Crafting a Good Prompt or Providing Exemplary Dialogues? A Study of In-Context Learning for Persona-based Dialogue Generationcited by 1
- 2026Enhancing Large Language Models for Time-Series Forecasting via Vector-Injected In-Context Learningcited by 1
- 2024Composited-Nested-Learning with Data Augmentation for Nested Named Entity Recognitioncited by 0
- 2026LiFT: How to Enable In-Context Learning for Longitudinal Modellingcited by 0
- 2026Patterns of Priming in Production: Lexical, Semantic and Structural Alignment in Language Model Generationcited by 0
- 2026Gains and Collapse in On-Policy Distillation:A Reinforcement Learning Perspectivecited by 0
- 2026Not All Answers Are Contextually Persuadable: Inference Dynamics in Large Language Models under Contextual Influencecited by 0
- 2026Not All Answers Are Contextually Persuadable: Inference Dynamics in Large Language Models under Contextual Influence3 Oct 2026
- 2026Gains and Collapse in On-Policy Distillation:A Reinforcement Learning Perspective2 Oct 2026
- 2026Patterns of Priming in Production: Lexical, Semantic and Structural Alignment in Language Model Generation3 Sep 2026
- 2026Counterfactual Trace Auditing of LLM Agent Skills12 May 2026
- 2026LiFT: How to Enable In-Context Learning for Longitudinal Modelling25 Mar 2026
- 2026FIRE-Bench: Evaluating AI Agents on the Rediscovery of Scientific Insights2 Feb 2026
- 2026Enhancing Large Language Models for Time-Series Forecasting via Vector-Injected In-Context Learning12 Jan 2026
- 2025Task Schema and Binding: A Double Dissociation Study of In-Context Learning19 Dec 2025
- 2025Review of Hallucination Understanding in Large Language and Vision Models26 Sep 2025
- 2025Understanding and Controlling Repetition Neurons and Induction Heads in In-Context Learning10 Jul 2025
- 2025Enhancing Latent Computation in Transformers with Latent Tokens19 May 2025
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMs5 Apr 2025
17 more
- 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language models1 Apr 2025
- 2025Unveiling Attractor Cycles in Large Language Models: A Dynamical Systems View of Successive Paraphrasing21 Feb 2025
- 2025S2-MAD: Breaking the Token Barrier to Enhance Multi-Agent Debate Efficiency7 Feb 2025
- 2024The broader spectrum of in-context learning5 Dec 2024
- 2024From Jack of All Trades to Master of One: Specializing LLM-based Autoraters to a Test Set23 Nov 2024
- 2024CoPS: Empowering LLM Agents with Provable Cross-Task Experience Sharing22 Oct 2024
- 2024Repetition Neurons: How Do Language Models Produce Repetitions?17 Oct 2024
- 2024ELICIT: LLM Augmentation via External In-Context Capability12 Oct 2024
- 2024Composited-Nested-Learning with Data Augmentation for Nested Named Entity Recognition18 Jun 2024
- 2024Unraveling the Mechanics of Learning-Based Demonstration Selection for In-Context Learning14 Jun 2024
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and When31 May 2024
- 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compression30 Mar 2024
- 2024RefuteBench: Evaluating Refuting Instruction-Following for Large Language Models21 Feb 2024
- 2024Parallel Structures in Pre-training Data Yield In-Context Learning19 Feb 2024
- 2024Crafting a Good Prompt or Providing Exemplary Dialogues? A Study of In-Context Learning for Persona-based Dialogue Generation15 Feb 2024
- 2024Identifying and Analyzing Performance-Critical Tokens in Large Language Models20 Jan 2024
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuning20 Dec 2023
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 60
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2024The broader spectrum of in-context learningcited by 35
- 2024Parallel Structures in Pre-training Data Yield In-Context Learningcited by 26
- 2024Repetition Neurons: How Do Language Models Produce Repetitions?cited by 23
- 2025Unveiling Attractor Cycles in Large Language Models: A Dynamical Systems View of Successive Paraphrasingcited by 15
- 2025Enhancing Latent Computation in Transformers with Latent Tokenscited by 14
- 2024RefuteBench: Evaluating Refuting Instruction-Following for Large Language Modelscited by 11
- 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language modelscited by 10
- 2024Unraveling the Mechanics of Learning-Based Demonstration Selection for In-Context Learningcited by 9
- 2024ELICIT: LLM Augmentation via External In-Context Capabilitycited by 7
- 2025Understanding and Controlling Repetition Neurons and Induction Heads in In-Context Learningcited by 5
12 most cited of 23 All 23 (JSON)
- 2026Not All Answers Are Contextually Persuadable: Inference Dynamics in Large Language Models under Contextual Influence3 Oct 2026
- 2026Patterns of Priming in Production: Lexical, Semantic and Structural Alignment in Language Model Generation3 Sep 2026
- 2026LiFT: How to Enable In-Context Learning for Longitudinal Modelling25 Mar 2026
- 2026Enhancing Large Language Models for Time-Series Forecasting via Vector-Injected In-Context Learning12 Jan 2026
- 2025Task Schema and Binding: A Double Dissociation Study of In-Context Learning19 Dec 2025
- 2025Review of Hallucination Understanding in Large Language and Vision Models26 Sep 2025
- 2025Understanding and Controlling Repetition Neurons and Induction Heads in In-Context Learning10 Jul 2025
- 2025Enhancing Latent Computation in Transformers with Latent Tokens19 May 2025
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMs5 Apr 2025
- 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language models1 Apr 2025
- 2025Unveiling Attractor Cycles in Large Language Models: A Dynamical Systems View of Successive Paraphrasing21 Feb 2025
- 2024The broader spectrum of in-context learning5 Dec 2024
12 newest of 23 All 23 (JSON)