atlas

Research map / Large language models / Language, safety and interpretability

Understanding In-Context Learning from Repetitions

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Studies in-context learning through surface repetitions, establishing a token co-occurrence reinforcement effect in LLMs and showing it both helps (output-space constraint, format following) and harms (spurious connections) ICL.

Problem

The working mechanism of in-context learning in LLMs is unclear, and existing explanations do not account for how surface textual features and repetition patterns in demonstrations drive ICL behavior and its failures.

Approach

Frames ICL through self-reinforcement of surface repetitions, showing that the probability of generating a token rises with the number of its contextual co-occurrences with another token (token co-occurrence reinforcement), even for random tokens, and that this mechanism both enables and undermines ICL.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add a non-informative phrase before Answer: in D-answer demonstrationsLLaMA-65B · MMLUD accuracy: 59.53 -> 61.64Helped
Add a non-informative phrase before Answer: in D-answer demonstrationsLLaMA-65B · MMLUAvg. [A,B,C] accuracy: 64.37 -> 63.47Hurt
Replace all demonstrated answers with D and swap the corresponding option contentsLLaMA-65B · MMLUD accuracy: 59.53 -> 77.19Helped
Replace all demonstrated answers with D and swap the corresponding option contentsLLaMA-65B · MMLUAvg. [A,B,C] accuracy: 64.37 -> 58.05Hurt
Replace 75% of demonstrated answers with D and swap the corresponding option contentsLLaMA-65B · MMLUD accuracy: 59.53 -> 66.90Helped
Replace 75% of demonstrated answers with D and swap the corresponding option contentsLLaMA-65B · MMLUAvg. [A,B,C] accuracy: 64.37 -> 62.34Hurt
Mask question and option contents in demonstrations while retaining formatting words and final answers (ablation)LLaMA-65B · MMLUprobability of choosing a label in ABCDNo clear effect
Replace option names and answer indicators with semantically equivalent substitutes (ablation)LLaMA-65B · MMLUprobability of choosing a label in ABCDHurt
Mask the repeated // separator in chain-of-thought demonstrations (ablation)LLaMA · GSM8Kprobability of generating the CoT patternHurt
Mask the question content in chain-of-thought demonstrations (ablation)LLaMA · GSM8Kprobability of generating the CoT patternHurt
Prevent each token from attending to its preceding token (ablation)LLaMA-65B · Successive token reinforcementreinforcement strength: a factor of tenHurt

Surprising findings

Limitations

Experimental setup

Datasets: Wikitext-103 BookCorpus GSM8K MMLU wikipedia-english-2022

Benchmarks: MMLU GSM8K

Metrics: token probability accuracy probability of label space probability of CoT pattern improved ratio

Baselines: zero-shot prompting standard ICL with balanced demonstrations

Builds on: self-reinforcement effect chain-of-thought prompting induction heads

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy