Skip to main content
QUICK REVIEW

[Paper Review] Beyond exploding and vanishing gradients: analysing RNN training using attractors and smoothness

Antônio H. Ribeiro, Koen Tiels|arXiv (Cornell University)|Jun 20, 2019
Model Reduction and Neural NetworksPhysics and Astronomy12 references50 citations
TL;DR

The paper reframes exploding/vanishing gradients via cost-function smoothness and attractor dynamics, comparing LSTM, stable LSTM, and orthogonal RNNs across tasks to explain training dynamics and long-term memory.

ABSTRACT

The exploding and vanishing gradient problem has been the major conceptual principle behind most architecture and training improvements in recurrent neural networks (RNNs) during the last decade. In this paper, we argue that this principle, while powerful, might need some refinement to explain recent developments. We refine the concept of exploding gradients by reformulating the problem in terms of the cost function smoothness, which gives insight into higher-order derivatives and the existence of regions with many close local minima. We also clarify the distinction between vanishing gradients and the need for the RNN to learn attractors to fully use its expressive power. Through the lens of these refinements, we shed new light on recent developments in the RNN field, namely stable RNN and unitary (or orthogonal) RNNs.

Motivation & Objective

  • Refine the exploding gradient concept by emphasizing cost-function smoothness and higher-order derivatives.
  • Clarify the distinction between vanishing gradients and the RNN’s need to learn attractors for long-term memory.
  • Investigate how stable and orthogonal RNNs manage dynamics and gradient behavior.
  • Demonstrate how attractors arise and bifurcate during training on tasks requiring long-term memory.

Proposed method

  • Model the RNN as a discrete-time dynamical system and analyze entropy of internal states to relate information retention to Lipschitz dynamics.
  • Define contractive vs non-contractive regimes and relate them to fixed points, attractors, and memory.
  • Use bifurcation diagrams to visualize attractors during training under constant inputs and during inference.
  • Develop a Lipschitz-based theoretical framework (Theorem 1) linking the cost function’s smoothness to the state-transition Lipschitz constant Lf and trajectory length N.
  • Compare LSTM, stable LSTM (sLSTM), and orthogonal RNN (oRNN) on sine-wave generation, sequence classification, and language modeling tasks.
  • Examine how attractors and bifurcations differ between training and inference, influencing learning dynamics.

Experimental results

Research questions

  • RQ1How does cost-function smoothness, beyond gradient magnitude, influence RNN training dynamics?
  • RQ2What is the relationship between the state-transition Lipschitz constant Lf and the explosion of first- and second-order derivatives in training?
  • RQ3How do contractive and non-contractive dynamics relate to information retention and long-term memory in RNNs?
  • RQ4In what ways do stable and orthogonal RNNs employ attractors differently to solve tasks requiring long-term dependencies?
  • RQ5How do attractor bifurcations relate to learning tasks such as sine-wave generation, sequence classification, and language modeling?

Key findings

  • Entropy-based analysis links information retention to the Lipschitz constant Lf, with different regimes (Lf<1, Lf=1, Lf>1) implying decay, constancy, or growth of entropy.
  • Theorem 1 provides Lipschitz bounds for the cost V and its gradient that grow with N and Lf, illustrating potential explosion of first- and second-order derivatives in non-contractive systems.
  • Chaotic or highly nonlinear attractors emerge during training when tasks require long-term memory, influencing the cost landscape with regions of many local minima.
  • Stable LSTM often cannot store information via attractors in certain tasks, whereas oRNNs can form fixed-point clouds and adapt them during training to solve long sequences.
  • Orthogonal RNNs maintain unit eigenvalues to avoid bifurcations but can still learn periodic attractors, highlighting diverse mechanisms for long-term memory.
  • Empirical results show LSTM can achieve perfect accuracy on short sequence tasks but becomes unstable or less effective on longer sequences, while oRNNs exhibit smoother convergence and better long-sequence performance in reported tasks.
  • In language modeling on WikiText-2, LSTM attains strong perplexity (99.2), sLSTM is worse (118.8), and oRNN is even worse (185.3), reflecting the trade-offs of these architectures in high-dimensional outputs.

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.