atlas

Research map / Optimization / Implicit bias and generalization

On Mesa-Optimization in Autoregressively Trained Transformers: Emergence and Capability

NeurIPS 2024 · 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.

Analyzes gradient-flow training of a one-layer linear causal self-attention transformer on first-order AR data, proving it implements one step of OLS gradient descent in-context under a moment condition, but that the learned mesa-optimizer only recovers the distribution under stronger conditions.

Problem

Whether the non-convex training dynamics of autoregressively trained transformers converge to the mesa-optimizer that performs in-context gradient descent, and what capability limits such a mesa-optimizer has.

Approach

Studies gradient flow of a one-layer linear causal self-attention model on a unitary-diagonal first-order AR process without the strong diagonal-structure assumption of prior work; shows convergence to one-step GD on OLS under a moment condition on the initial token, and derives necessary and sufficient moment conditions for distribution recovery.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a Gaussian initial token distribution instead of a distribution satisfying the success conditionOne-layer linear transformer trained on an AR process · AR process, Gaussian initial tokenexpected prediction-to-target ratio: 1/5Hurt
Use a sparse initial token distribution from Example (sparse vector)One-layer linear transformer trained on an AR process · AR process, sparse initial tokenprediction recoveryHelped
Mask non-diagonal gradients of W^KQ_32 and W^PV_12 during training (ablation)One-layer linear transformer with fixed all-ones initial token · AR process, fixed all-ones initial tokenvanilla gradient-descent mesa-optimization: ã b̃ = 1/(1 + (d-1)/(T-2) ∑_{t=2}^{T-1} 1/(t-1))Helped
Remove non-diagonal gradient masking (ablation)One-layer linear transformer with fixed all-ones initial token · AR process, fixed all-ones initial tokenvanilla gradient-descent mesa-optimizationHurt
Use standard Gaussian initialization instead of diagonal initialization (ablation)One-layer linear transformer · AR process, Gaussian initializationtest results (ratio or MSE loss)No clear effect
Vary diagonal initialization (a₀,b₀) among (0.1,0.1), (0.5,1.5), and (2,2) (ablation)One-layer linear transformer · AR process, Gaussian and sparse initial tokenslearned parameter product ab: {1}/{5σ^2}; {1}/{c^2}No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic first-order AR process x_{t+1}=W x_t with unitary diagonal W

Benchmarks: synthetic AR process simulations

Metrics: convergence of ab product prediction ratio to true next token MSE loss

Baselines: Zhang et al. 2024 (diagonal-structure AR transformer loss landscape)

Builds on: mesa-optimization hypothesis in-context learning for linear regression theory Ahn et al. 2023 linear transformer global minima analysis

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