Skip to main content
QUICK REVIEW

[Paper Review] Gradients explode - Deep Networks are shallow - ResNet explained

George Philipp, Dawn Song|arXiv (Cornell University)|Dec 15, 2017
Advanced Neural Network ApplicationsComputer Science45 references35 citations
TL;DR

This paper demonstrates that exploding gradients persist in deep MLPs despite popular techniques like Adam, batch normalization, and SeLU, limiting network depth. It explains that ResNets avoid this via a mathematical property—residual connections simplify the network's optimization landscape, enabling deeper training by mitigating gradient explosion through the 'residual trick.'

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, which we show is a consequence of a surprising mathematical property. 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 investigate why deep feedforward networks still suffer from exploding gradients despite advanced optimization techniques.
  • To identify the root cause of gradient explosion in popular MLP architectures, even with batch normalization and adaptive optimizers.
  • To explain why ResNets achieve deeper training than standard MLPs by analyzing their mathematical structure.
  • To introduce the 'residual trick' as a unifying principle that reveals how skip connections simplify network optimization.

Proposed method

  • Analyzing the backpropagation dynamics in deep MLPs to identify conditions under which gradients explode.
  • Introducing the concept of the 'collapsing domain problem' as a failure mode in architectures that avoid gradient explosion.
  • Demonstrating that any neural network can be viewed as a residual network, revealing the mathematical equivalence of residual connections.
  • Formalizing the 'residual trick' as a transformation that simplifies the network's gradient flow by decoupling residual mappings.
  • Using theoretical analysis to show that residual connections reduce gradient variance and stabilize training in deep networks.
  • Comparing gradient magnitudes across standard MLPs and ResNets to empirically validate reduced gradient explosion.

Experimental results

Research questions

  • RQ1Why do exploding gradients persist in deep MLPs even with Adam, batch normalization, and SeLU?
  • RQ2What mathematical property of ResNets enables them to train deeper networks compared to standard MLPs?
  • RQ3How does the 'residual trick' simplify the optimization process in deep networks?
  • RQ4What is the role of skip connections in preventing the collapsing domain problem in deep architectures?
  • RQ5Can all feedforward networks be reformulated as residual networks to improve training stability?

Key findings

  • Exploding gradients remain a fundamental issue in deep MLPs even when using Adam, batch normalization, or SeLU activation functions.
  • The collapsing domain problem emerges in architectures designed to avoid gradient explosion, indicating a trade-off in optimization stability.
  • ResNets exhibit significantly lower gradient magnitudes than standard MLPs, enabling effective training of much deeper networks.
  • The success of ResNets stems from a hidden mathematical simplicity: skip connections reduce the effective depth of the optimization path.
  • The 'residual trick' reveals that residual connections transform the network into a simpler, more stable optimization problem.
  • Any feedforward network can be re-expressed as a residual network, showing that the residual structure is a universal simplification mechanism.

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.