atlas

Research map / Architectures and efficiency / Attention and transformers

On the Training Convergence of Transformers for In-Context Classification of Gaussian Mixtures

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 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.

Proves that a single-layer linear-attention transformer trained by gradient descent converges linearly to a global minimizer for in-context binary and multi-class classification of Gaussian mixtures, and bounds the ICL inference error in terms of training and test prompt lengths.

Problem

Theoretical understanding of training dynamics of transformers for in-context classification is limited; prior work mostly covers linear regression or binary classification with finite/special data patterns.

Approach

Analyze a simplified single-layer linear-attention transformer with sparse parameters on Gaussian mixture ICL tasks; show the expected loss is strongly convex and smooth on compact sets, so GD converges linearly, and the global minimizer is a constant (2Λ^{-1} or cΛ^{-1}) plus an O(1/N) error, which approximates LDA/softmax regression in context.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase training prompt length N and test prompt length M1-layer and 3-layer transformers · Gaussian mixture classificationinference errorHelped
Increase the number of classes c1-layer and 3-layer transformers · Gaussian mixture classificationinference errorHurt
Use component means with equal rather than unequal Λ⁻¹-weighted norms1-layer and 3-layer transformers · Gaussian mixture classification; norm conditionin-context classification performanceHelped
Train with unequal Λ⁻¹-weighted norms1-layer versus 3-layer transformers · Gaussian mixture classification; norm shiftin-context classification performanceMixed
Train with varying covariances rather than a fixed covariance1-layer versus 3-layer transformers · Gaussian mixture classification; covariance shiftin-context classification performanceMixed
Use transformer models instead of classical methods1-layer, sparse; 1-layer, full; and 3-layer transformers · Three Gaussian mixturesICL performanceHelped

Surprising findings

Limitations

Experimental setup

Metrics: total variation distance inference error

Baselines: softmax regression linear discriminant analysis 3-layer softmax transformer

Builds on: Zhang et al. 2024 training dynamics of linear transformers for in-context linear Huang et al. 2023 training dynamics of single-layer transformer for in-context c

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