paper-with-me

홈 › Papers

Geometric Dynamics of Signal Propagation Predict Trainability of Transformers

2024-03-05 · Aditya Cowsik, Tamra Nebabu, Xiao-Liang Qi, Surya Ganguli

We investigate forward signal propagation and gradient back propagation in deep, randomly initialized transformers, yielding simple necessary and sufficient conditions on initialization hyperparameters that ensure trainability of deep transformers. Our approach treats the evolution of the representations of $n$ tokens as they propagate through the transformer layers in terms of a discrete time dynamical system of $n$ interacting particles. We derive simple update equations for the evolving geometry of this particle system, starting from a permutation symmetric simplex. Our update equations show that without MLP layers, this system will collapse to a line, consistent with prior work on rank collapse in transformers. However, unlike prior work, our evolution equations can quantitatively track particle geometry in the additional presence of nonlinear MLP layers, and it reveals an order-chaos phase transition as a function of initialization hyperparameters, like the strength of attentional and MLP residual connections and weight variances. In the ordered phase the particles are attractive and collapse to a line, while in the chaotic phase the particles are repulsive and converge to a regular $n$-simplex. We analytically derive two Lyapunov exponents: an angle exponent that governs departures from the edge of chaos in this particle system, and a gradient exponent that governs the rate of exponential growth or decay of backpropagated gradients. We show through experiments that, remarkably, the final test loss at the end of training is well predicted just by these two exponents at the beginning of training, and that the simultaneous vanishing of these two exponents yields a simple necessary and sufficient condition to achieve minimal test loss.

📄 PDF Abstract BibTeX arXiv:2403.02579

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

InTrain: Intrinsic Trainability for Zero-Cost Neural Architecture Search

2026-06-17 · Qinqin Zhou, Fuhai Chen, Jipeng Wu, Zhiwei Chen 외 arxiv

Training-free neural architecture search promises efficient discovery of high-performance networks without costly training. However, existing zero-cost proxies rely on fragmented heuristics that fail to capture the funda…

Neural Architecture Search

A Mean Field Theory of Batch Normalization

2019-02-21 · ICLR 2019 5 · Greg Yang, Jeffrey Pennington, Vinay Rao, Jascha Sohl-Dickstein 외

We develop a mean field theory for batch normalization in fully-connected feedforward neural networks. In so doing, we provide a precise characterization of signal propagation and gradient backpropagation in wide batch-n…

Dynamical Isometry and a Mean Field Theory of RNNs: Gating Enables Signal Propagation in Recurrent Neural Networks

2018-06-14 · ICML 2018 7 · Minmin Chen, Jeffrey Pennington, Samuel S. Schoenholz

Recurrent neural networks have gained widespread use in modeling sequence data across various domains. While many successful recurrent architectures employ a notion of gating, the exact mechanism that enables such remark…

Language ModelingLanguage Modelling

Geometric Preconditioning and Curriculum Optimization for Trainable Variational Quantum Regression

2026-01-17 · Qingyu Meng, Yangshuai Wang arxiv

Variational quantum circuits are increasingly studied as continuous-function approximators, but quantum regression remains difficult to train when global losses, finite-shot stochasticity, and circuit-depth growth combin…

Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation

2025-05-30 · Alessio Giorlandino, Sebastian Goldt

Finding the right initialisation for neural networks is crucial to ensure smooth training and good performance. In transformers, the wrong initialisation can lead to one of two failure modes of self-attention layers: ran…