atlas

Research map / Architectures and efficiency / Attention and transformers

Infinite Limits of Multi-head Transformer Dynamics

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 4 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.

Derives DMFT-based infinite-limit descriptions of feature-learning multi-head transformer training as key/query dimension, head count, and depth go to infinity, and checks convergence numerically on vision and causal LM experiments.

Problem

Which parameterizations of transformers admit well-defined infinite width (key/query dimension, heads) and depth limits in which attention layers still learn features during training, and what statistical description do these limits have?

Approach

Applies dynamical mean field theory (MSR path integral) to randomly initialized multi-head transformers trained with SGD, identifying admissible scalings (mu-P attention scaling for N to infinity; head-averaged kernels for H to infinity; L^{-alpha_L} residual scaling for depth) and showing N to infinity collapses heads while H to infinity keeps a distribution over attention heads.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase the attention head countVision Transformer · CIFAR-5Mtest lossHelped
Increase the attention head countVision Transformer · CIFAR-5Mlogit convergence to the infinite-head proxyMixed
Use μP attention scaling (alpha_A = 1) instead of alpha_A = 1/2Multi-head Transformer · CIFAR-5M, 2500 training stepsvariance of attention matrices across headsHurt
Use alpha_A = 1/2 instead of alpha_A = 1Multi-head Transformer · CIFAR-5M, 2500 training stepsdiversity of attention variables across headsHelped
Increase the key/query dimension N while using alpha_A = 1/2Causal Transformer · C4final lossHelped
Increase the key/query dimension N while using alpha_A = 1Causal Transformer · C4final lossHelped
Increase the attention head countCausal Transformer · C4final lossHelped
Use alpha_A = 1/2 instead of alpha_A = 1Causal Transformer · C4final lossHelped
Increase depth L at fixed N and HCausal Transformer · C4final lossNo clear effect
Use residual branch scaling alpha_L = 1 instead of alpha_L = 1/2Transformer · CIFAR-5M, large-depth limitlossHelped
Use residual branch scaling alpha_L = 1 instead of alpha_L = 1/2Transformer · Infinite-depth limitattention-layer feature learningHelped
Use residual branch scaling alpha_L = 1/2 instead of alpha_L = 1Transformer · Infinite-depth limitattention-layer feature learningHurt

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-5M C4

Benchmarks: CIFAR-5M C4

Metrics: test loss mean square difference of output logits kernel convergence

Baselines: standard 1/sqrt(N) attention scaling mu-P attention (alpha_A=1) alpha_L=1/2 residual scaling

Builds on: mu-P Tensor Programs DMFT for feature learning in infinite width networks

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