On the Difficulty of Training Recurrent Neural Networks

Pascanu, Mikolov, and Bengio connect vanishing and exploding RNN gradients to products of transition Jacobians, dynamical-system boundaries, and high-curvature walls, then motivate global gradient-norm clipping as a cheap containment mechanism.

paper On the Difficulty of Training Recurrent Neural Networks Pascanu, Razvan, Mikolov, Tomas, Bengio, Yoshua · 2013 originalarchived pdf

The paper rewrites BPTT as a sum of temporal contributions. Each contribution from time kk to a later loss at tt contains a product of t−kt-k transition Jacobians, making the exponential mechanism behind vanishing and exploding gradients explicit rather than merely empirical.

Contributions #

  • It gives linear and nonlinear norm conditions that relate recurrent weights and activation derivatives to contraction or expansion.
  • It interprets exploding directions as steep walls associated with abrupt changes in recurrent dynamics and basins of attraction.
  • It proposes clipping the global gradient norm above a threshold, preserving the mini-batch gradient direction while bounding step size.
  • It proposes a soft regularizer that encourages the error norm to survive along task-relevant directions.
  • It evaluates the mechanisms on synthetic long-dependency tasks, character modeling, and polyphonic music prediction.

Durable takeaway #

Clipping is a response to an optimization event, not proof that the recurrent dynamics are healthy. A clipped run still needs gradient-norm, clipping-frequency, sequence-length, and state-behavior diagnostics. The paper's historical Hessian-free comparisons and benchmark rankings are not current architecture recommendations.

Visual audit #

All nine pages were rendered and inspected. The unrolled RNN diagram, basin/bifurcation sketches, error-surface plot, success-rate curves, and benchmark table were checked against the surrounding equations and captions. None is retained: the GTK recurrent-path SVG isolates the durable information flow more legibly at article width, while source-specific experimental plots are historical evidence rather than reusable mechanism diagrams.

Searches titles, aliases, headings, summaries, and full text.↑↓ move ↵ open esc close