Finite-width shift of the edge of chaos in deep neural networks

Caesar, Arn

–arXiv.org Artificial Intelligence 

The line is known for infinitely wide networks; at finite width it moves, and how it moves has been disputed. The edge of chaos moves to a larger weight variance, by σw = a1/(N σw2 lnχ1), about 8/N for tanh networks at a bias variance of 0.05, confirmed by simulations of the exact finite-width recursion. The shift describes a typical network; the average over many networks is dominated by rare networks in which the distance grows, and its critical point moves the other way, which explains why calculations and simulations have disagreed. Backpropagation follows the same random walk, so the shift applies to gradients unchanged. Along the edge of chaos, the information about the similarity of two inputs is constant until the compression over the depth exceeds about one nat, which fixes where to sit on the line. The results give an initialisation rule, Crinit, that places a network on its finite-width edge of chaos without a search. On MNIST and Fashion-MNIST at width 64 it is more accurate than the standard rules at their usual settings, by a small margin in shallow networks and a large one in deep networks, where most standard rules fail; it trains in fewer steps, and it matches or beats the standard rules with a tuned gain. I. INTRODUCTIONdecay of the mean decorrelation of two inputs by a rate µ/N and left its calculation open [19]. A second question A deep neural network starts as a random function. Mean-field theory, which is exact at infi-We answer both questions. In the ordered phase the distance between two inputswithdriftlnχ1+a1/N, whereχ1 isthemean-fieldgrowth shrinks with depth, so the network forgets its input; infactor of the distance and a1 <0 is an explicit Gaussian the chaotic phase the distance grows, so nearby inputsaverage of the activation function. The edge of chaos are torn apart. On the line between them, the edge ofof a network of width N, which we call the finite-width edge of chaos, is where this drift vanishes, and it lies at achaos, the distance is preserved: information and gradients propagate to any depth, and initialising there makeslarger weight variance than the mean-field edge of chaos. We call this line, which isworks shifts the other way, which explains the dispute. Backpropagated gradients follow the same walk.