Skip to main content
QUICK REVIEW

[Paper Review] Mean Field Residual Networks: On the Edge of Chaos

Greg Yang, Samuel S. Schoenholz|arXiv (Cornell University)|Dec 24, 2017
Neural Networks and ApplicationsComputer Science8 references31 citations
TL;DR

This paper introduces a mean field theory analysis of randomly initialized residual networks, showing they operate on the edge of chaos with subexponential (often polynomial) forward and backward dynamics due to skip connections. The key contribution is a theoretical and empirical framework that predicts network performance from initialization hyperparameters, revealing that optimal variance depends on depth and differs fundamentally from standard schemes like Xavier or He initialization.

ABSTRACT

We study randomly initialized residual networks using mean field theory and the theory of difference equations. Classical feedforward neural networks, such as those with tanh activations, exhibit exponential behavior on the average when propagating inputs forward or gradients backward. The exponential forward dynamics causes rapid collapsing of the input space geometry, while the exponential backward dynamics causes drastic vanishing or exploding gradients. We show, in contrast, that by adding skip connections, the network will, depending on the nonlinearity, adopt subexponential forward and backward dynamics, and in many cases in fact polynomial. The exponents of these polynomials are obtained through analytic methods and proved and verified empirically to be correct. In terms of the "edge of chaos" hypothesis, these subexponential and polynomial laws allow residual networks to "hover over the boundary between stability and chaos," thus preserving the geometry of the input space and the gradient information flow. In our experiments, for each activation function we study here, we initialize residual networks with different hyperparameters and train them on MNIST. Remarkably, our initialization time theory can accurately predict test time performance of these networks, by tracking either the expected amount of gradient explosion or the expected squared distance between the images of two input vectors. Importantly, we show, theoretically as well as empirically, that common initializations such as the Xavier or the He schemes are not optimal for residual networks, because the optimal initialization variances depend on the depth. Finally, we have made mathematical contributions by deriving several new identities for the kernels of powers of ReLU functions by relating them to the zeroth Bessel function of the second kind.

Motivation & Objective

  • To understand the dynamical behavior of randomly initialized residual networks using mean field theory.
  • To characterize how skip connections alter forward and backward propagation dynamics compared to vanilla networks.
  • To identify optimal initialization variances for residual networks that depend on depth and nonlinearity.
  • To establish a predictive link between initialization hyperparameters and test-time performance.
  • To derive new mathematical identities involving Bessel functions for ReLU-like nonlinearities.

Proposed method

  • Applies mean field theory to analyze the evolution of cosine distance between input vectors across layers.
  • Uses difference equations and fixed-point analysis to model the dynamics of activation and gradient flows.
  • Derives exact asymptotic expressions for the growth of gradient variance and input distance in terms of network depth and nonlinearity.
  • Introduces a novel framework to predict test-time performance based on initialization time metrics like gradient explosion or input distance.
  • Employs advanced mathematical tools, including integral representations and Bessel functions, to analyze α-ReLU nonlinearities.
  • Validates theoretical predictions through empirical experiments on MNIST with various activation functions and hyperparameters.

Experimental results

Research questions

  • RQ1How do skip connections in residual networks alter the forward and backward dynamics compared to vanilla feedforward networks?
  • RQ2What is the asymptotic rate of convergence of cosine distance between input vectors in residual networks?
  • RQ3Why do residual networks generalize better than standard networks despite random initialization?
  • RQ4How do optimal initialization variances for residual networks depend on depth and nonlinearity?
  • RQ5Can performance in trained networks be predicted from properties computed at initialization time?

Key findings

  • Residual networks exhibit polynomial, not exponential, convergence of cosine distance between input vectors, placing them on the edge of chaos.
  • For α-ReLU with α < 1, gradient variance grows only polynomially with depth, avoiding exponential explosion.
  • Theoretical predictions of gradient explosion and input distance at initialization accurately predict test-time performance across different architectures and hyperparameters.
  • Optimal initialization variance for residual networks depends on depth and nonlinearity, contradicting the assumptions of Xavier and He schemes.
  • The paper derives new identities linking the kernel of powers of ReLU to the zeroth Bessel function of the second kind.
  • Empirical results confirm that for tanh residual networks, trainability (gradient explosion) controls performance, while for (α-)ReLU networks, expressivity (input distance) is the dominant factor.

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.