Geometric dynamics of signal propagation predict trainability of transformers

We investigate forward signal propagation and gradient back propagation in deep, randomly initialized transformers, and we use our analysis to propose simple and geometrically meaningful criteria for hyperparameter initialization that ensures trainability of deep transformers. Our approach leverages a dynamical perspective in which we regard the token vectors as particles evolving according to the layerwise map of the transformer. We derive simple update equations for the ensemble-averaged geometry of this many-particle configuration starting from a permutation-symmetric simplex. Our analysis reveals an order-chaos phase transition in the forward direction, which corresponds to converging/diverging token angles, and another transition in the backwards direction between exploding/vanishing gradients. We derive the phase boundaries as a function of the initialization hyperparameters, such as the variance of the weights and the strength of attentional and MLP residual branches. We analytically derive two Lyapunov exponents: a token angle exponent that governs the departure from the edge of chaos and a gradient exponent that governs the rate of exponential growth or decay of backpropagated gradients. We show through experiments that the final test loss at the end of training is correlated with these two exponents at the beginning of training, suggesting that simultaneous vanishing of these two exponents constitute simple criteria for achieving minimal test loss.

Authors

Institutions

Publication Details

Journal
Physical review. E
Published
2025-08-27
DOI
https://doi.org/10.1103/gjsm-l642
Primary Topic
Quantum many-body systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Geometric dynamics of signal propagation predict trainability of transformers

Aditya Cowsik, Surya Ganguli, Tamra Nebabu, Xiao-Liang Qi
Physical review. E
Quantum many-body systems
article

Geometric dynamics of signal propagation predict trainability of transformers

Aditya Cowsik, Surya Ganguli, Tamra Nebabu, Xiao-Liang Qi
article en

Abstract

We investigate forward signal propagation and gradient back propagation in deep, randomly initialized transformers, and we use our analysis to propose simple and geometrically meaningful criteria for hyperparameter initialization that ensures trainability of deep transformers. Our approach leverages a dynamical perspective in which we regard the token vectors as particles evolving according to the layerwise map of the transformer. We derive simple update equations for the ensemble-averaged geometry of this many-particle configuration starting from a permutation-symmetric simplex. Our analysis reveals an order-chaos phase transition in the forward direction, which corresponds to converging/diverging token angles, and another transition in the backwards direction between exploding/vanishing gradients. We derive the phase boundaries as a function of the initialization hyperparameters, such as the variance of the weights and the strength of attentional and MLP residual branches. We analytically derive two Lyapunov exponents: a token angle exponent that governs the departure from the edge of chaos and a gradient exponent that governs the rate of exponential growth or decay of backpropagated gradients. We show through experiments that the final test loss at the end of training is correlated with these two exponents at the beginning of training, suggesting that simultaneous vanishing of these two exponents constitute simple criteria for achieving minimal test loss.

Physical review. EVol. 112(5)
Stanford University (US)
Openalex Percentile: Top 74%
Quantum many-body systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Geometric dynamics of signal propagation predict trainability of transformers — Aditya Cowsik, Surya Ganguli, et al. · Physical review. E (2025) | TGRS Research Map | TGRS