atlas

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

Dual Operating Modes of In-Context Learning

ICML 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 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.

Proposes a Gaussian-mixture pretraining-data model for linear-regression ICL that yields closed-form Bayes-optimal predictions, explaining task retrieval vs. task learning, the early-ascent phenomenon, and bounded efficacy of biased-label/zero-shot ICL.

Problem

Existing theoretical models of in-context learning cannot fully explain its dual operating modes (task retrieval vs. task learning), the early-ascent risk curve, or the bounded efficacy of biased-label ICL.

Approach

Model pretraining tasks as a Gaussian mixture over linear-regression parameters (with task-dependent input distributions), so the Bayes-optimal next-token predictor has a closed-form Gaussian-mixture posterior; ICL then decomposes into component re-weighting (retrieval) and component shifting (learning).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase biased-label examples from k=0 to k=2GPT-4 biased-label ICL evaluated on biased + · GPT-4 biased-label ICLerror rate: 75.0% -> 33.9%Helped
Increase biased-label examples from k=2 to k=16GPT-4 biased-label ICL evaluated on biased + · GPT-4 biased-label ICLerror rate: 33.9% -> 85.1%Hurt
Increase biased-label examples from k=0 to k=16GPT-4 biased-label ICL evaluated on addition (+) · GPT-4 biased-label ICLerror rate: 100.0% -> 16.8%Helped
Add one in-context exampleGPT-3 on LAMBADA · LAMBADAaccuracy: 76.2% -> 72.5%Hurt
Increase from one-shot to few-shot promptingGPT-3 on LAMBADA · LAMBADAaccuracy: 72.5% -> 86.4%Helped
Use more in-context examples when retrieving a misleading prior task before learning the target taskICL under the early-ascent setting · Early ascent settingICL riskMixed
Increase the number of random-label examplesLLM ICL with random labels · Biased-label ICLerror rateHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic linear regression pretraining data from the Gaussian mixture model

Benchmarks: synthetic linear regression ICL biased addition task (GPT-4) random-label ICL in LLMs

Metrics: ICL risk (squared loss) error rate

Baselines: ridge regression Bayes-optimal predictor

Builds on: Garg et al. in-context learning of linear functions Xie et al. implicit Bayesian inference in ICL Min et al. rethinking role of demonstrations

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