20
2

Differential Equation Scaling Limits of Shaped and Unshaped Neural Networks

Abstract

Recent analyses of neural networks with shaped activations (i.e. the activation function is scaled as the network size grows) have led to scaling limits described by differential equations. However, these results do not a priori tell us anything about "ordinary" unshaped networks, where the activation is unchanged as the network size grows. In this article, we find similar differential equation based asymptotic characterization for two types of unshaped networks. Firstly, we show that the following two architectures converge to the same infinite-depth-and-width limit at initialization: (i) a fully connected ResNet with a d1/2d^{-1/2} factor on the residual branch, where dd is the network depth. (ii) a multilayer perceptron (MLP) with depth dd \ll width nn and shaped ReLU activation at rate d1/2d^{-1/2}. Secondly, for an unshaped MLP at initialization, we derive the first order asymptotic correction to the layerwise correlation. In particular, if ρ\rho_\ell is the correlation at layer \ell, then qt=2(1ρ)q_t = \ell^2 (1 - \rho_\ell) with t=nt = \frac{\ell}{n} converges to an SDE with a singularity at t=0t=0. These results together provide a connection between shaped and unshaped network architectures, and opens up the possibility of studying the effect of normalization methods and how it connects with shaping activation functions.

View on arXiv
Comments on this paper