NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Genus expansion for non-linear random matrix ensembles with applications to neural networks

Nicola Muca Cirone, Jad Hamdan, Cristopher SalviarXiv 2024

TL;DR

This paper introduces a unifying graphical framework that "linearizes" non-linear activation functions in deep neural networks at initialization. By mapping network computations to topological surfaces (a technique called genus expansion), the authors prove broad universality results—including the full spectrum of the network's Jacobian—for networks with sparse, complex, and non-Gaussian weights.

What Problem Does This Paper Address?

When analyzing deep neural networks (NNs) at initialization, researchers frequently study infinite-width limits, the Neural Tangent Kernel (NTK), and the input-output Jacobian spectrum. Understanding these properties helps engineers make design choices that prevent training hazards like vanishing or exploding gradients.

While these behaviors are well-mapped for standard Gaussian weights, proving "universality"—meaning these properties still hold when using non-Gaussian or sparse weight initializations—is notoriously difficult. The primary roadblock is the non-linear activation function. Non-linearities break classical Random Matrix Theory (RMT) tools, such as Wick's principle, which computes the expected products of random matrices by breaking them down into simple pairwise combinations.

Methods

The authors circumvent the non-linearity problem by developing a novel graphical language and a tree expansion technique. They generalize Faà di Bruno’s formula (a classic calculus identity for the derivatives of composed functions) to an arbitrary number of network layers. This expansion represents the neural network's non-linear output as a linear combination of multilinear maps indexed by rooted trees, where edges correspond to random weight matrices and vertices correspond to vectors.

Crucially, this expansion linearizes the effect of the activation functions. Once linearized, the authors can directly apply Wick's principle and the genus expansion technique (borrowed from quantum field theory and topological graph theory). They evaluate the expected value of these network-representing graphs by embedding them onto orientable surfaces. By using the Euler characteristic formula, they can easily identify which graph topologies dominate in the large-width limit based on their geometric genus (the number of "handles" on the surface).

Datasets

Not discussed in the paper. This is a theoretical mathematics paper; the authors validate their results using rigorous mathematical proofs and synthetic numerical simulations of random matrix ensembles rather than empirical datasets.

Key Insights and Ideas

  • Topological Mapping of Deep Learning: The paper bridges deep learning theory with mathematical physics by showing that the leading-order behaviors of wide neural networks correspond to planar graphs (genus 0) on topological surfaces.
  • The Jacobian's Secret Geometry: The authors discover that the entire sequence of moments for the limiting spectral distribution of the Jacobian can be expressed as weighted sums over non-crossing partitions. This reveals that the Jacobian limit is a non-linear generalization of the Fuss-Catalan (or Raney) distribution from free probability.
  • Seamless Universality: Because the graphical framework isolates random weight matrices into distinct edges, extending proofs from Gaussian weights to sparse or non-Gaussian weights reduces to bounding sub-leading graph structures, which naturally vanish as the network width $N \to \infty$.

Key Results

  • Universal GP Limit: The framework provides a robust, unified proof that deep networks initialized with sparse, non-Gaussian, or complex weights converge to Gaussian Processes as their width tends to infinity.
  • Quantitative NTK Convergence Rates: The authors provide a rare quantitative rate for how fast the NTK converges to its deterministic limit in the Frobenius norm: $O(N_{L+1}^2 / N)$ for dense weights, and $O(N_{L+1}^2 / (N p_N))$ for sparse weights (where $p_N$ is the sparsity parameter).
  • Full Jacobian Spectrum: For the first time, the paper computes all higher-order moments of the Jacobian's limiting spectral distribution (previously, only the first two were known), providing exact recursive formulas.

Limitations and Future Work

  • Polynomial Restriction: The theoretical proofs strictly require polynomial activation functions to guarantee the convergence of the series expansion. However, the authors provide promising numerical evidence showing that their Jacobian moment formulas still hold for non-polynomial activations like ReLU.
  • Omitted Biases: To keep the combinatorics clean, the paper omits bias terms in the network recursion, though the authors outline how they could be re-introduced at the cost of more complex graph bookkeeping.
  • Traffic Probability: The authors note a significant overlap between their graphical formalism and the existing mathematical theory of "traffic probability" and leave the task of fully reconciling the two frameworks to future work.

Summary updated

Abstract

We present a unified approach to studying certain non-linear random matrix ensembles and associated random neural networks at initialization. This begins with a novel series expansion for neural networks which generalizes Faá di Bruno's formula to an arbitrary number of compositions. The role of monomials is played by random multilinear maps indexed by directed graphs, whose edges correspond to random matrices. Crucially, this expansion linearizes the effect of the activation functions, allowing for the direct application of Wick's principle and the genus expansion technique. As an application, we prove several results about neural networks with random weights. We first give a new proof of the fact that they converge to Gaussian processes as their width tends to infinity. Secondly, we quantify the rate of convergence of the Neural Tangent Kernel to its deterministic limit in Frobenius norm. Finally, we compute the moments of the limiting spectral distribution of the Jacobian (only the first two of which were previously known), expressing them as sums over non-crossing partitions. All of these results are then generalised to the case of neural networks with sparse and non-Gaussian weights, under moment assumptions.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
limiting spectral distribution of the JacobianReLU network (empirical)m-1,L (first moment)0.501Spectral Moment Estimation · resolution=500x500 · depth=1 · trials=200 · weight-matrix-dimension=500×500
Source quote
L2695: m-1,L │ 0.501 (0.5) │ 0.251 (0.25) │ 0.126 (0.125)
limiting spectral distribution of the JacobianReLU network (empirical)m-1,L (first moment)0.251Spectral Moment Estimation · resolution=500x500 · depth=2 · trials=200 · weight-matrix-dimension=500×500
Source quote
L2695: m-1,L │ 0.501 (0.5) │ 0.251 (0.25) │ 0.126 (0.125)
limiting spectral distribution of the JacobianReLU network (empirical)m-1,L (first moment)0.126Spectral Moment Estimation · resolution=500x500 · depth=3 · trials=200 · weight-matrix-dimension=500×500
Source quote
L2695: m-1,L │ 0.501 (0.5) │ 0.251 (0.25) │ 0.126 (0.125)
limiting spectral distribution of the JacobianReLU network (empirical)m-4,L (fourth moment)2.840Spectral Moment Estimation · resolution=500x500 · depth=1 · trials=200 · weight-matrix-dimension=500×500
Source quote
L2698: m-4,L │ 2.840 (2.813) │ 1.012 (0.973) │ 0.191 (0.181)
limiting spectral distribution of the JacobianReLU network (empirical)m-4,L (fourth moment)1.012Spectral Moment Estimation · resolution=500x500 · depth=2 · trials=200 · weight-matrix-dimension=500×500
Source quote
L2698: m-4,L │ 2.840 (2.813) │ 1.012 (0.973) │ 0.191 (0.181)
limiting spectral distribution of the JacobianReLU network (empirical)m-4,L (fourth moment)0.191Spectral Moment Estimation · resolution=500x500 · depth=3 · trials=200 · weight-matrix-dimension=500×500
Source quote
L2698: m-4,L │ 2.840 (2.813) │ 1.012 (0.973) │ 0.191 (0.181)
BibTeX
@misc{cirone2024genus,
  author = {Nicola Muca Cirone and Jad Hamdan and Cristopher Salvi},
  title = {{Genus expansion for non-linear random matrix ensembles with applications to neural networks}},
  year = {2024},
  eprint = {2407.08459},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.08459},
}
Figure