atlas

Research map / Optimization / Implicit bias and generalization

Unraveling the Gradient Descent Dynamics of Transformers

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

Analyzes gradient descent on a single multi-head Transformer layer with Softmax or Gaussian attention, proving global convergence under large embedding dimension and careful initialization, and showing Softmax can get stuck at non-optimal stationary points while Gaussian kernel attention converges.

Problem

Which Transformer architectures and initial conditions let gradient descent provably reach global optima of training loss, given the non-convexity introduced by softmax attention.

Approach

Derives GD convergence for a one-layer multi-head attention regression model (no layer norm, no MLP) with Softmax or Gaussian kernels; shows that updating only W^V gives linear convergence, and that with only W^Q updated, Gaussian kernel attention keeps a PL-type guarantee while Softmax admits vanishing-gradient stationary points.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Gaussian kernel attention instead of Softmax attention2-layer Transformer · IMDb review text classification and Pathfindertest accuracyHelped
Use Gaussian kernel attention instead of Softmax attention2-layer Transformer · Pathfinder test, after 20,000 epochstest accuracy: around 0.58 -> 0.62Helped
Use Softmax attention instead of Gaussian kernel attention2-layer Transformer · Pathfindertest accuracy varianceHurt
Use Softmax attention instead of Gaussian kernel attention2-layer Transformer · IMDb review text classification and Pathfinderconvergence speedHurt
Use Softmax attention instead of Gaussian kernel attention2-layer Transformer · IMDb review text classification and Pathfinderoptimization landscape complexityHurt

Surprising findings

Limitations

Experimental setup

Datasets: IMDb Pathfinder

Benchmarks: IMDb Pathfinder

Metrics: test accuracy test loss loss landscape

Baselines: Softmax attention

Builds on: Softmax attention Transformer over-parameterized neural network convergence 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