Tensor Programs III: Neural Matrix Laws
Greg Yang
TL;DR
This work develops a universal, rigorous framework (Tensor Programs/NetsorT) to analyze nonlinear random matrix problems arising in neural networks. It proves an unrestricted Master Theorem, derives new proofs of semicircle and Marchenko–Pastur laws, and introduces the Free Independence Principle, which formalizes asymptotic freeness between weight matrices and diagonal activations. Leveraging FIP, the authors provide a principled method to compute the asymptotic Jacobian singular value distribution for any architecture and relate it to free convolutions, with extensions to Neural Tangent Kernel analyses under relaxed independence assumptions. Collectively, these results offer a principled, architecture-agnostic toolkit for nonlinear random matrix theory in deep learning, with direct implications for understanding training dynamics and stability of ultra-deep networks.
Abstract
In a neural network (NN), *weight matrices* linearly transform inputs into *preactivations* that are then transformed nonlinearly into *activations*. A typical NN interleaves multitudes of such linear and nonlinear transforms to express complex functions. Thus, the (pre-)activations depend on the weights in an intricate manner. We show that, surprisingly, (pre-)activations of a randomly initialized NN become *independent* from the weights as the NN's widths tend to infinity, in the sense of asymptotic freeness in random matrix theory. We call this the Free Independence Principle (FIP), which has these consequences: 1) It rigorously justifies the calculation of asymptotic Jacobian singular value distribution of an NN in Pennington et al. [36,37], essential for training ultra-deep NNs [48]. 2) It gives a new justification of gradient independence assumption used for calculating the Neural Tangent Kernel of a neural network. FIP and these results hold for any neural architecture. We show FIP by proving a Master Theorem for any Tensor Program, as introduced in Yang [50,51], generalizing the Master Theorems proved in those works. As warmup demonstrations of this new Master Theorem, we give new proofs of the semicircle and Marchenko-Pastur laws, which benchmarks our framework against these fundamental mathematical results.
