atlas

Research map / Architectures and efficiency / Attention and transformers

Strategy Coopetition Explains the Emergence and Transience of In-Context Learning

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and circuits

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 after ICL transience in a 2-layer attention-only transformer, the asymptotic strategy is context-constrained in-weights learning (CIWL), and that ICL emerges via cooperative sharing of Layer 2 circuits with CIWL, explained by a toy model of strategy coopetition.

Problem

Why in-context learning emerges during training if it is not the asymptotically preferred strategy, and what the asymptotic strategy is after ICL transience disappears.

Approach

Identifies a hybrid asymptotic strategy (CIWL) that requires the correct label in context and in-weights knowledge, and shows ICL and CIWL share Layer 2 circuits so that competition (Layer 1) and cooperation (Layer 2) jointly produce transient ICL ("strategy coopetition"); a toy tensor-product loss model reproduces these dynamics and guides a data change (exact context-query matching) that makes I

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
ablate L1 → output connections while preserving patterns (ablation)2-layer attention-only transformer · CIWL evaluatoraccuracy: 98.7% to 98.5%No clear effect
ablate L1 outputs' influence on L2 values (ablation)2-layer attention-only transformer · CIWL evaluatoraccuracy: 98.7% to 59.3%Hurt
ablate L1 outputs' influence on L2 keys (ablation)2-layer attention-only transformer · CIWL evaluatoraccuracy: 98.7% to 57.5%Hurt
ablate L1 outputs' influence on L2 queries (ablation)2-layer attention-only transformer · CIWL evaluatoraccuracy: 98.7% to 95.4%No clear effect
ablate all attention heads (ablation)2-layer attention-only transformer · CIWL evaluatorin-context accuracy: 98.74% to 62.46%Hurt
zero the embedding → unembedding pathway (ablation)2-layer attention-only transformer · CIWL evaluatoraccuracy: 98.74% to 96.72%No clear effect
use learned absolute positional embeddings instead of sinusoidal or rotary embeddings (ablation)2-layer attention-only transformer · synthetic few-shot task; ICL emergenceICL emergenceHelped
reduce classes and exemplars to 1600 classes and 5 exemplars (ablation)2-layer attention-only transformer · synthetic few-shot task; ICL evaluatorICL emergenceHurt
make the context exemplar exactly match the query exemplar (ablation)2-layer attention-only transformer · Flip evaluator; matched-exemplar trainingaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: Omniglot ImageNet (ResNet18 pretraining)

Benchmarks: ICL evaluator IWL evaluator CIWL evaluator Flip evaluator (synthetic OOD sets on Omniglot)

Metrics: accuracy in-context accuracy attention delta Flip evaluator accuracy

Baselines: Chan et al. 2022 bursty setup standard training without intervention

Builds on: induction heads Omniglot bursty training (Chan et al. 2022) progress measures minimal phase change model (Saxe et al.)

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