Skip to main content
QUICK REVIEW

[Paper Review] The exploding gradient problem demystified - definition, prevalence, impact, origin, tradeoffs, and solutions

George Philipp, Dawn Song|arXiv (Cornell University)|Dec 15, 2017
Neural Networks and ApplicationsComputer Science35 citations
TL;DR

This paper challenges the common belief that normalization techniques like batch normalization or SELU fully resolve the exploding gradient problem in deep feedforward networks. It demonstrates that exploding gradients persist in many standard MLP architectures, limiting training depth, and introduces the 'residual trick'—showing that skip connections simplify gradient flow mathematically via the Pythagorean theorem, enabling deeper, more stable training, especially in ResNets.

ABSTRACT

Whereas it is believed that techniques such as Adam, batch normalization and, more recently, SeLU nonlinearities "solve" the exploding gradient problem, we show that this is not the case in general and that in a range of popular MLP architectures, exploding gradients exist and that they limit the depth to which networks can be effectively trained, both in theory and in practice. We explain why exploding gradients occur and highlight the *collapsing domain problem*, which can arise in architectures that avoid exploding gradients. ResNets have significantly lower gradients and thus can circumvent the exploding gradient problem, enabling the effective training of much deeper networks. We show this is a direct consequence of the Pythagorean equation. By noticing that *any neural network is a residual network*, we devise the *residual trick*, which reveals that introducing skip connections simplifies the network mathematically, and that this simplicity may be the major cause for their success.

Motivation & Objective

  • To challenge the widely held belief that normalization techniques such as batch normalization or SELU eliminate the exploding gradient problem in deep feedforward networks.
  • To investigate why exploding gradients still limit training depth in modern MLP architectures despite advances in weight initialization and normalization.
  • To identify the root cause of gradient explosion and demonstrate that it is not solely a result of unstable forward activations.
  • To show that residual connections simplify gradient flow mathematically, explaining the success of ResNets beyond just architectural design.
  • To propose a systematic method for selecting layer-wise learning rates that mitigates gradient pathologies and improves training stability and accuracy.

Proposed method

  • Proposes a novel definition of exploding gradients based on the relative update size of parameters during training, rather than gradient norm or Jacobian eigenvalues.
  • Introduces a four-stage training pipeline: pre-training, selection (grid search over step sizes per layer), clipping (to eliminate spurious large updates), and smoothing (log-linear regression to reduce noise in step size selection).
  • Applies a final scaling stage to jointly adjust all layer-wise learning rates, ensuring stable joint updates while preventing excessive parameter updates.
  • Uses a relative update size threshold (≥0.1) to prune step sizes that cause instability, improving generalization and reducing noise in hyperparameter selection.
  • Employs a mini-regression dataset of layer-wise update magnitudes to fit a smoothed, log-scale linear model, which is then used to refine the selected learning rates.
  • Validates results by training three variants per architecture (no clipping, clipping only in scaling, clipping in both stages) and selecting the one with lowest end-of-training error.

Experimental results

Research questions

  • RQ1To what extent do normalization techniques like batch normalization or SELU truly eliminate the exploding gradient problem in standard MLPs?
  • RQ2Why do exploding gradients persist in deep feedforward networks even when forward activations are stabilized by normalization or initialization?
  • RQ3What mathematical mechanism underlies the success of residual networks in enabling deeper training, and how does it relate to gradient flow?
  • RQ4Can a systematic, layer-wise learning rate selection strategy significantly improve training stability and final performance in deep networks?
  • RQ5Is the exploding gradient problem a numerical artifact or a fundamental optimization barrier that cannot be resolved by simple adaptive optimizers?

Key findings

  • The exploding gradient problem remains prevalent in many standard MLP architectures, even with batch normalization, weight initialization, or SELU nonlinearities, limiting effective depth.
  • Stabilizing forward activations is insufficient to prevent exploding gradients; the issue is fundamentally tied to the geometry of backpropagated gradients and layer interactions.
  • Residual networks exhibit significantly lower gradients due to the Pythagorean relationship enforced by skip connections, which mathematically simplifies the gradient flow.
  • The 'residual trick'—treating any network as a residual network—reveals that skip connections reduce gradient complexity and enhance training stability.
  • The proposed four-stage learning rate selection pipeline (pre-training, selection, clipping, smoothing) reduced training error by up to 10% compared to standard single-step-size training.
  • Clipping during the scaling stage improved final test error in 4 out of 5 tested architectures, particularly for vanilla tanh and ReLU-based networks, by eliminating unstable step sizes.

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.