Dynamical Isometry and a Mean Field Theory of LSTMs and GRUs
Dar Gilboa, Bo Chang, Minmin Chen, Greg Yang, Samuel S. Schoenholz, Ed H. Chi, Jeffrey Pennington
TL;DR
This work develops a mean-field framework to analyze signal propagation and gradient dynamics in LSTMs and GRUs, enabling precise initialization strategies that realize dynamical isometry. By deriving forward propagation time scales and the spectrum of the state-to-state Jacobian, the authors propose a critical initialization that stabilizes training on long sequences and can even improve generalization. The authors validate the theory through multiple long-sequence tasks (Padded MNIST, unrolled MNIST, CIFAR-10, repeated-pixel variants), showing substantial gains over standard initializations. The findings illuminate how initialization hyperparameters control information flow and offer practical guidance for initializing gated recurrent cells and potentially simplifying architectures while preserving trainability.
Abstract
Training recurrent neural networks (RNNs) on long sequence tasks is plagued with difficulties arising from the exponential explosion or vanishing of signals as they propagate forward or backward through the network. Many techniques have been proposed to ameliorate these issues, including various algorithmic and architectural modifications. Two of the most successful RNN architectures, the LSTM and the GRU, do exhibit modest improvements over vanilla RNN cells, but they still suffer from instabilities when trained on very long sequences. In this work, we develop a mean field theory of signal propagation in LSTMs and GRUs that enables us to calculate the time scales for signal propagation as well as the spectral properties of the state-to-state Jacobians. By optimizing these quantities in terms of the initialization hyperparameters, we derive a novel initialization scheme that eliminates or reduces training instabilities. We demonstrate the efficacy of our initialization scheme on multiple sequence tasks, on which it enables successful training while a standard initialization either fails completely or is orders of magnitude slower. We also observe a beneficial effect on generalization performance using this new initialization.
