atlas

Research map / Architectures and efficiency / Attention and transformers

Breaking through the learning plateaus of in-context learning in Transformer

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

Studies learning plateaus in in-context learning via a weights/context component decomposition on a synthetic Shapes3D task, and proposes weights warm-up, mixed training, and extra weights loss to shorten plateaus, validated on SST-ICL and WordSelection tasks.

Problem

Transformers take a long time to acquire in-context learning because of learning plateaus with little progress; the mechanism behind these plateaus is unclear and the usual remedy (scaling the model) is computationally costly.

Approach

Conceptually decompose the Transformer's prediction into a weights component (encoding per-example factor values) and a context component (inferring the hidden factor from examples); show plateau length correlates with dysfunction of the weights component, and speed learning by explicitly improving the weights component via warm-up on a fixed-mapping task, mixed training, or an auxiliary factor-pr

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Warm up on D_fix before training on D_rndTransformer · Shape3D D_rndaccuracyHelped
Warm up on D_fix before training on D_rndTransformer · Shape3D D_rndplateau lengthHelped
Train on half D_fix and half D_rnd dataTransformer · Shape3D D_rndaccuracy: 6.69M; 20 epochs; 13.88M; 50 epochsHelped
Train on half D_fix and half D_rnd dataTransformer · Shape3D D_rndplateau lengthHelped
Add extra weights lossTransformer · Shape3D D_rndaccuracy: λ = 0.1Helped
Add extra context loss instead of extra weights loss (ablation)Transformer · Shape3D D_rndaccuracy: λ = 0.1No clear effect
Add extra weights lossTransformer · Shape3D D_rndweights comp. score: λ = 0.1Helped
Increase mapping-function entropy (ablation)Transformer · Shape3Dplateau lengthHurt
Increase mapping-function entropy (ablation)Transformer · Shape3Dweights comp. scoreHurt
Train on mixed D_fix and D_rnd dataTransformer · SST-ICLaccuracy: less than 30 epochs; after the 35 epochsMixed
Add extra weights lossGPT2 · WordSelectionaccuracyHelped
Add extra weights loss6-layer Transformer · SimpleFunction (d > 30)test accuracy: d > 30; 50 epochsHelped

Surprising findings

Limitations

Experimental setup

Datasets: Shapes3D SST WordSelection (constructed from 2000 words) Pile (Pythia pretraining data, referenced) SimpleFunction (Gaussian linear sign task)

Benchmarks: Shapes3D in-context task SST-ICL WordSelection SimpleFunction

Metrics: in-context accuracy weights component score context component score MSE_p

Baselines: D_rnd training without intervention

Builds on: Shapes3D VAE

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