atlas

Research map / Architectures and efficiency / Attention and transformers

Transformers Get Stable: An End-to-End Signal Propagation Theory for Language Models

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Efficient language transformers · 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.

Develops an end-to-end signal propagation theory giving closed-form forward/backward moment formulas for transformer components and blocks, and uses it to design DeepScaleLM, an initialization/residual-scaling scheme that trains very deep (up to ~192-1000 layer) transformers that beat shallower baselines.

Problem

Deep transformers suffer from vanishing/exploding gradients, rank collapse, and instability from large QK values, and prior signal-propagation analyses rely on simplifying assumptions (IID inputs, uncorrelated outputs, ignored QK init, simplified nonlinearities).

Approach

Derive closed-form mean/variance/correlation propagation formulas for each transformer component (including input token correlation via Zipf, dropout, ReLU/GeLU, softmax, LayerNorm) and blocks, then use them to set per-layer initialization and residual scaling (lambda, beta with beta^2 = k/N) so forward and backward signal variances stay near unit across depth.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply DeepScaleLM to the deeper 48/512 modelBERT, Post-LN · Pile-CC MLM, 48/512perplexity: 14.8 -> 13.1Helped
Apply DeepScaleLM to the deeper 192/256 modelBERT, Post-LN · Pile-CC MLM, 192/256perplexity: 17.2 -> 12.9Helped
Apply DeepScaleLM to the shallow 12/1024 modelBERT, Post-LN · Pile-CC MLM, 12/1024perplexity: 14.2 -> 15.5Hurt
Apply DeepScaleLM to the deeper Pre-LN modelBERT · Pre-LN BERT MLM, 96/512perplexity: 20.6 -> 15.4Helped
Use the 4x deeper DSLM modelBERT-base · MNLIaccuracy: 82.4 -> 83.7Helped
Use the 4x deeper DSLM modelBERT-base · QQPaccuracy: 90.8 -> 91.1Helped
Apply DeepScaleLMGPT, Pre-LN · GPT, 48/512perplexity: Baseline 12/1024: 11.6; DSLM 48/512: 11.2Helped
Apply DeepScaleLMSpeech encoder-decoder Transformer, Pre-LN · MuST-C en→deBLEU: 24.9 -> 25.6Helped
Apply DeepScaleLMViT · ImageNet, 90-epochaccuracy: 76.5 -> 77.2Helped
Apply DeepScaleLMViT · ImageNet-v2, 90-epochaccuracy: 63.7 -> 65.2Helped
Remove residual scaling from DSLM (ablation)96-layer Post-LN BERT · BERT MLM, 96/512perplexity: 11.7 -> divergeHurt
Make β learnable instead of fixed (ablation)DSLM-Init + β²=2/N, 96-layer Post-LN BERT · BERT MLM, 96/512performance: 11.7 -> 12.2Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Pile-CC Wikipedia RACE-M RACE-H MNLI QQP MuST-C ImageNet-1k

Benchmarks: MNLI QQP RACE-Middle RACE-High MuST-C en-de ImageNet ImageNet-v2 ImageNet-R ImageNet-Sketch

Metrics: perplexity accuracy BLEU forward/backward variance relative error

Baselines: Vanilla Pre-LN Vanilla Post-LN DSInit ADMIN SkipInit ReZero LayerScale DeepNet Bamboo Value-SkipInit muP

Builds on: Xavier initialization DeepNet DSInit ADMIN Fixup

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