atlas

Research map / Architectures and efficiency / Attention and transformers

Linear attention is (maybe) all you need (to understand Transformer optimization)

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 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.

Shows that a shallow linear Transformer trained on random linear regression reproduces the known distinctive features of full Transformer optimization (Adam>SGD gap, heavy-tailed gradient noise, ill-conditioned robust condition number, directional smoothness, generalized smoothness) and uses it to probe effects of covariate tails and depth.

Problem

Transformer training is notoriously difficult and full-scale Transformers are too complex to analyze, so the paper asks whether a simpler model can capture the distinctive features of Transformer optimization.

Approach

Replace full Transformers with a linearized multi-layer linear self-attention model (no softmax, no feedforward layers, single key-query matrix Q) trained on random linear regression, and show it reproduces the known Transformer optimization phenomena.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Adam instead of SGD with momentum3-layer linear Transformer · Random linear regression, Settings 1–3training loss / optimization speedHelped
Use spherical (light-tailed) covariates instead of Gamma-scaled heavy-tailed covariates (ablation)3-layer linear Transformer · Random linear regressionoptimization speedHelped
Use spherical (light-tailed) covariates instead of Gamma-scaled heavy-tailed covariates (ablation)3-layer linear Transformer · Random linear regressionrelative optimization-speed gap between Adam and SGDNo clear effect
Increase Transformer depth from 2 layers to 4, 6, or 8 layers (ablation)Linear Transformer · Random linear regression, Setting 1Adam–SGD training-loss gapMixed
Increase Transformer depth (ablation)Linear Transformer trained with SGD or Adam · Random linear regression, Setting 1absolute training lossHelped
Increase Transformer depth from 2 layers to 4, 6, or 8 layers (ablation)Linear Transformer · Random linear regression, Setting 1SGD–Adam robust-condition-number gapMixed

Surprising findings

Limitations

Experimental setup

Datasets: synthetic random linear regression (Gaussian covariates) heavy-tailed Gamma-scaled spherical covariates MLP-distorted nonlinear regression

Benchmarks: synthetic linear regression training loss (Settings 1-3)

Metrics: training loss (log loss) stochastic gradient noise tail (q-q plot) robust condition number directional smoothness generalized smoothness

Baselines: SGD with momentum Adam

Builds on: linear Transformer in-context learning (von Oswald et al. 2023) Ahn et al. 2023 linear attention Adam vs SGD for attention models (L0,L1)-smoothness directional smoothness

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