Skip to main content
QUICK REVIEW

[Paper Review] Dynamical Isometry and a Mean Field Theory of LSTMs and GRUs

Dar Gilboa, Bo Chang|arXiv (Cornell University)|Jan 25, 2019
Neural Networks and ApplicationsComputer Science31 references25 citations
TL;DR

This paper introduces a mean field theory of signal propagation in LSTMs and GRUs, deriving a novel initialization scheme that achieves dynamical isometry—ensuring stable forward and backward signal flow—thereby enabling effective training on long sequence tasks. The method improves training speed and generalization, outperforming standard initialization by orders of magnitude on long sequences.

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.

Motivation & Objective

  • To address the instability in training LSTMs and GRUs on long sequence tasks due to vanishing or exploding gradients.
  • To develop a theoretical framework for analyzing signal propagation and Jacobian spectral properties in recurrent networks.
  • To derive a principled initialization scheme that ensures dynamical isometry and improves trainability.
  • To demonstrate that optimized initialization enhances both training efficiency and generalization performance.

Proposed method

  • Uses mean field theory to model forward signal propagation and backward gradient stability in LSTMs and GRUs.
  • Analyzes the state-to-state Jacobian's spectral properties using random matrix theory to ensure stable gradient flow.
  • Derives fixed-point equations for correlation evolution and singular value moments under different initialization hyperparameters.
  • Optimizes initialization hyperparameters (e.g., mean and variance of weights and biases) to achieve dynamical isometry.
  • Employs a sampling algorithm to approximate the stationary cell state distribution for accurate moment calculations in LSTMs.
  • Validates predictions via simulations and experiments on MNIST and CIFAR-10 tasks with varying sequence lengths.

Experimental results

Research questions

  • RQ1What initialization hyperparameters are necessary to achieve stable signal propagation in LSTMs and GRUs?
  • RQ2How do the spectral properties of the state-to-state Jacobian affect training stability in recurrent networks?
  • RQ3Can a mean field theory accurately predict the time scales of signal propagation and gradient stability?
  • RQ4Does a critical initialization scheme derived from this theory improve training speed and generalization on long sequence tasks?

Key findings

  • The proposed initialization scheme enables successful training of LSTMs on long sequences where standard initialization fails or is exponentially slower.
  • Critical initialization reduces training time by orders of magnitude on long sequence tasks such as MNIST and CIFAR-10.
  • The method achieves dynamical isometry by balancing the mean and variance of weight and bias distributions, stabilizing both forward and backward signal flow.
  • Empirical results show that the predicted signal propagation time scale correlates strongly with training performance, especially under untied weight assumptions.
  • Theoretical predictions match simulation results closely, validating the mean field approximation for both GRUs and LSTMs.
  • The optimized initialization leads to improved generalization, suggesting it guides optimization toward better generalizable solutions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.