atlas

Research map / Architectures and efficiency / Attention and transformers

In-context Convergence of Transformers

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 3 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 GD training dynamics of a one-layer softmax-attention transformer for in-context linear regression, proving convergence for balanced features (two phases) and stage-wise convergence for imbalanced features (four phases for under-represented features).

Problem

Understanding how softmax-attention transformers trained by gradient descent learn in-context, since prior theory of in-context learning dynamics only covered linear transformers; the setting includes balanced and imbalanced feature distributions.

Approach

Tracks bilinear attention weights (query-target feature weight A_k vs. off-target weights B_{k,n}) under GD to show finite-time convergence of softmax attention for in-context linear regression, and decomposes imbalanced-feature training into stage-wise phases determined by which weight dominates.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train the one-layer softmax transformer by GD on balanced-feature promptsOne-layer softmax transformer · Balanced featurespopulation loss suboptimality: L(\theta^{(T^*)})-L^* \leq \epsilonHelped
Train the one-layer softmax transformer by GD on balanced-feature promptsOne-layer softmax transformer · Balanced featurestarget-feature attention error: (1-\Attn_k^{(T^*)})^2 \leq O(\epsilon)Helped
Train the one-layer softmax transformer by GD on imbalanced-feature promptsOne-layer softmax transformer · Imbalanced features, dominant feature v_1conditional prediction error: \cL_1(\theta^{(T_1)})\leq \cL_{1}^{*}+\epsilonHelped
Train the one-layer softmax transformer by GD on imbalanced-feature promptsOne-layer softmax transformer · Imbalanced features, under-represented featuresconditional prediction error: \cL_k(\theta^{(T_k)})\leq \cL_{k}^{*}+\epsilonHelped
Train on imbalanced-feature prompts, including under-represented featuresOne-layer softmax transformer · Imbalanced features, under-represented featurestarget-feature attention error: (1-\Attn^{(T_{k})}_k)^2 \leq O(\epsilon)Helped
Use imbalanced rather than balanced feature frequenciesOne-layer softmax transformer trained by GD · Imbalanced features, dominant versus under-represented featuresGD iterations to convergence: T_1=O(\frac{\log(\epsilon^{-\frac{1}{2}})}{\eta\epsilon}); T_k=O(\frac{\log(K)K^2}{\eta}+\frac{K \log\left(K\epsilon^{-\Mixed

Surprising findings

Limitations

Experimental setup

Datasets: synthetic linear regression prompts with orthonormal feature tokens

Metrics: squared prediction loss per-feature prediction error attention score concentration

Baselines: linear self-attention training dynamics analyses

Builds on: linear transformer in-context learning dynamics (gradient flow analyses) GPT-2 in-context learning framework (Garg et al.) Ahn et al. transformers as GD learners

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