atlas

Research map / Optimization / Implicit bias and generalization

One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attention

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

Proves that the global minimizer of the pre-training loss for a one-layer linear self-attention transformer on noisy linear regression implements one step of GD (preconditioned GD under non-isotropic covariates, and still GD on a linear objective under nonlinear targets).

Problem

Understanding theoretically which algorithm a one-layer linear self-attention transformer learns for in-context linear regression, since prior work only observed this empirically.

Approach

Shows via a rotation-invariance and gradient-matching argument that the pre-training loss's global minimizer over (W_K, W_Q, W_V, h) reduces to matching the effective linear predictor to eta * X^T y, i.e., one GD step; extends to preconditioned GD for non-isotropic covariates and to nonlinear rotation-invariant target families.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train on isotropic Gaussian covariates for noisy linear regressionOne-layer linear self-attention · Noisy linear regression, isotropic Gaussian covariateslearned algorithmHelped
Change covariates to a non-isotropic Gaussian with covariance Σ and weights distributed as N(0, Σ⁻¹)One-layer linear self-attention · Noisy linear regression, non-isotropic Gaussian covariateslearned algorithmMixed
Change the response-generating function to a rotation-invariant, sign-symmetric nonlinear targetOne-layer linear self-attention · Nonlinear target functions with isotropic Gaussian covariateslearned algorithmNo clear effect

Surprising findings

Limitations

Experimental setup

Builds on: Akyurek et al. 2023 (transformers learn ridge regression in context) von Oswald et al. 2023 (transformers learn GD in context) Ahn et al. 2023 (linear transformers implement preconditioned GD)

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