atlas

Research map / Architectures and efficiency / Attention and transformers

The mechanistic basis of data dependence and abrupt learning in an in-context classification task

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 2 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.

Shows that in a minimal two-layer attention-only network trained on a Gaussian-mixture ICL/IWL classification task, ICL arises from an abruptly formed induction head, and a phenomenological three-nested-logit model explains the abrupt transition.

Problem

What data distributional and architectural factors favor in-context versus in-weights learning, and what mechanism produces the abrupt emergence of in-context learning in transformers?

Approach

Reproduces data-dependence results (burstiness, number of classes, within-class variability, Zipf exponent) in a minimal attention-only network on Gaussian-mixture inputs; identifies induction-head formation as the driver of the abrupt transition via progress measures and ablations; and explains the abruptness with a phenomenological loss of three nested logits learned sequentially, producing clif

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase burstiness BTwo-layer attention-only network · In-context classification taskICL accuracyHelped
Increase burstiness BTwo-layer attention-only network · In-context classification taskIWL accuracyHurt
Increase the number of classes KTwo-layer attention-only network · In-context classification taskICL accuracyHelped
Increase the number of classes KTwo-layer attention-only network · In-context classification taskIWL accuracyHurt
Increase within-class variability εTwo-layer attention-only network · In-context classification taskICL accuracyHelped
Increase within-class variability εTwo-layer attention-only network · In-context classification taskIWL accuracyHurt
Use a Zipfian rank-frequency distribution (α = 1)Two-layer attention-only network · In-context classification taskICL accuracyHelped
Use a Zipfian rank-frequency distribution (α = 1)Two-layer attention-only network · In-context classification taskIWL accuracyMixed
Train with a fraction of in-context sequences (0 < p_C < 1) while 0 ≤ p_B < 1Two-layer attention-only network · In-context and in-weights classificationICL and IWL accuracyHelped
Set β₂ to 0, preventing extra target attention to contextual labels (ablation)Three-parameter induction-head model · In-context classification taskICL accuracyNo clear effect
Set L = N and B = 1, removing the slow contextual-label-picking phase (ablation)Full attention-only network · In-context classification taskICL accuracy: two of the six seedsHurt
Set L = N rather than L > N (ablation)Full attention-only network · In-context classification taskICL accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian mixture item-label sequences Omniglot (referenced in prior work)

Benchmarks: synthetic in-context and in-weights accuracy on controlled Gaussian-mixture tasks

Metrics: in-weights accuracy in-context accuracy swapped-label accuracy progress measures (ILA1, TILA2, CLA, TLA2) loss curves

Baselines: 12-layer transformer from prior ICL/IWL study

Builds on: induction heads Chan et al. data distributional properties of ICL

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