atlas

Research map / Optimization / Implicit bias and generalization

Training Dynamics of In-Context Learning in Linear Attention

ICML 2025 · Optimization › Implicit bias and generalization · approach: In-context learning as gradient descent · 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.

Studies gradient-flow training dynamics of multi-head linear self-attention on in-context linear regression, comparing merged vs separate key-query parametrizations, deriving a single abrupt loss drop for merged and saddle-to-saddle (principal component regression) dynamics for separate.

Problem

How linear self-attention acquires in-context learning through gradient descent training, and how the key/query parametrization (merged vs separate, and rank) shapes the loss landscape and training dynamics.

Approach

Shows merged-key-query linear attention equals a two-layer linear network on cubic features, giving an analytical sigmoidal time course with one abrupt drop; separate key/query linear attention equals sums of three-layer convolutional linear networks, with exponentially many fixed points and saddle-to-saddle dynamics that reduce to scalar ODEs, progressively learning principal components.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use merged rather than separate key and query weightsLinear attention trained from small initialization · In-context linear regressionloss dynamicsMixed
Use separate rank-one key and query weightsLinear attention · In-context linear regressionloss dynamicsHelped
Use rank 2 for separate key and query weights (ablation)ATTN_S · In-context linear regression, D=8plateau patternMixed
Use rank 4 for separate key and query weights (ablation)ATTN_S · In-context linear regression, D=8plateau patternMixed
Increase the rank of separate key and query weights (ablation)ATTN_S · In-context linear regression, D=8plateau durationHelped
Increase initialization scale (ablation)ATTN_M · In-context linear regressionplateau durationHelped
Increase initialization scale (ablation)ATTN_S · In-context linear regressionplateau durationHelped
Add softmax attention to ATTN_MLinear ATTN_M · In-context linear regressionloss dynamicsNo clear effect
Add softmax attention to ATTN_SLinear ATTN_S · In-context linear regressionloss dynamicsNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic in-context linear regression data

Metrics: squared loss loss plateau values

Baselines: softmax attention

Builds on: linear attention deep linear networks in-context linear regression

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