atlas

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

Towards Auto-Regressive Next-Token Prediction: In-context Learning Emerges from Generalization

ICLR 2025 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 0 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 PAC-Bayesian theory of in-context learning under auto-regressive next-token prediction, with two-level (sequence and topic) expectations, arguing ICL emerges from generalization of sequences and topics, and checks it on linear dynamic systems, GINC, and real-world GPT-2 experiments.

Problem

Existing ICL theory assumes i.i.d. prompt input-label pairs and explains what ICL computes (implicit optimization) rather than how ICL emerges from pre-training under realistic token-dependent auto-regressive next-token prediction.

Approach

Models pre-training and ICL under AR-NTP with a layer-wise topic/sequence structure and a two-level expectation (over sequences and topics), then derives data-dependent, topic-dependent, and optimization-dependent PAC-Bayesian bounds on the population loss, using ghost sequences to handle token dependency.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase pre-training sequences per topicGPT-2 on GINC · GINCgeneralization performanceHelped
Increase pre-training sequence lengthGPT-2 on GINC · GINCgeneralization performanceHelped
Increase the number of pre-training topicsGPT-2 on GINC · GINCgeneralization performanceHelped
Increase ICL prompt lengthGPT-2 on GINC · GINCgeneralization performanceHelped
Increase vocabulary sizeGPT-2 on GINC · GINCICL prediction accuracyHelped
Use random transitions in pre-training dataGPT-2 on GINC · GINCICL abilityHurt
Increase the number of pre-training topicsGPT-2 on a linear dynamic system · Linear dynamic systemICL lossHelped
Increase the number of sequences per topicGPT-2 on a linear dynamic system · Linear dynamic systemICL lossHelped
Increase pre-training sequence lengthGPT-2 on a linear dynamic system · Linear dynamic systemICL lossHelped
Train with a subset of topics to obtain the topic-dependent prior instead of using the complete topic setGPT-2 on a linear dynamic system · Linear dynamic systemsteady-state training lossNo clear effect
Increase the number of training sequencesGPT2-large on real-world language datasets · Real-world language datasetsconvergence speedHelped
Increase the number of pre-training sequence tokensGPT2-large on real-world language datasets · Real-world language datasetsgeneralization performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: GINC linear dynamic system synthetic data 20 real-world language pre-training datasets (sentiment analysis, question answering, reasoning)

Benchmarks: GINC linear dynamic system real-world language datasets

Metrics: ICL loss overall prediction loss ICL accuracy training time

Baselines: algorithm stability meta-learning bound

Builds on: PAC-Bayesian generalization bounds GINC in-context learning dataset data-dependent prior

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