atlas

Research map / Architectures and efficiency / Attention and transformers

Differential learning kinetics govern the transition from memorization to generalization during in-context learning

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

Shows via a one-layer transformer and a minimal additive model that the memorization-to-generalization (IWL-to-ICL) transition in in-context learning is governed by differential learning rates of memorization vs. generalization sub-circuits, with a memorization scaling law explaining the task diversity threshold.

Problem

Understanding why in-context learning (ICL) emerges sharply versus in-weights memorization as task diversity increases, and whether this is due to limited network capacity or relative learning dynamics.

Approach

Models the one-layer transformer as two independent sub-circuits (an MLP for memorization and an attention head for ICL) whose logits add; the transition depends on the relative rates at which they learn, not on memorization capacity, yielding exponential sensitivity to initialization, a memorization scaling law I_K ~ K^nu, and the power law K* ~ N^{1/nu}.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase context length NOne-layer transformer · Task-diversity threshold K*scaling exponent: predicted 1/ν ≈ 1.43; measured exponent ≈ 1.41Mixed
Increase context length NOriginal transformer model · ICL acquisitiontime to acquire ICL (t_ICL): t_ICL ∼ NMixed
Use contexts with exactly N/2 positive and N/2 negative labels instead of standard contexts (ablation)One-layer transformer · ICL acquisitionprobability of acquiring ICLHurt
Apply L2 regularization to attention parameter w (ablation)Minimal model · ICL transienceICL accuracy over trainingHurt
Remove L2 regularization from attention parameter w (ablation)Minimal model · ICL transienceICL accuracy over trainingHelped
Increase weight decay λ_w on the self-attention layer (ablation)One-layer transformer · ICL transiencetime to transienceHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic in-context classification dataset (Gaussian items, random binary labels)

Metrics: ICL accuracy IWL accuracy time to ICL acquisition ICL loss vs IWL loss

Baselines: capacity-constrained hypothesis

Builds on: Chan et al. ICL data distributional properties

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