Effective Theory of Transformers at Initialization
Emily Dinan, Sho Yaida, Susan Zhang
TL;DR
The paper develops an effective theory of Transformers at initialization to characterize forward-backward signal propagation in wide, deep models built from stem, LN, MHSA, and MLP blocks. By deriving blockwise preactivation statistics and NTK dynamics, it yields width-dependent initialization and per-parameter learning-rate scalings for SGD and AdamW, ensuring order-one behavior of the neural tangent kernel during training. The authors validate these insights with practical experiments on Vision Transformers for ImageNet-1k and encoder-decoder Language Transformers on span denoising, observing improved stability and, in some cases, performance gains under NTK-guided scaling. Collectively, the work bridges theoretical criticality and practical training in large-scale Transformers, offering concrete guidelines to scale initialization and optimization with model width and depth.
Abstract
We perform an effective-theory analysis of forward-backward signal propagation in wide and deep Transformers, i.e., residual neural networks with multi-head self-attention blocks and multilayer perceptron blocks. This analysis suggests particular width scalings of initialization and training hyperparameters for these models. We then take up such suggestions, training Vision and Language Transformers in practical setups.
