Spectral complexity of deep neural networks

Simmaco Di Lillo, Domenico Marinucci, Michele Salvi, Stefano VigognaarXiv 2024 · DOI

Abstract: Modern deep learning relies on increasing network depth, yet theoretical understanding of how depth influences function complexity remains incomplete. This paper introduces a framework treating infinitely wide neural networks as isotropic random fields on a sphere. By analyzing the angular power spectrum via Gegenbauer polynomials, we identify three distinct complexity regimes—low-disorder, sparse, and high-disorder—governed by the derivative of the covariance kernel at the origin. Notably, ReLU activations occupy a unique "sparse" regime, maintaining low-frequency coherence while developing high-frequency spikes, offering a potential explanation for their superior performance and resistance to overfitting at extreme depths.

Introduction

The success of deep learning is often attributed to the ability of deep architectures to represent increasingly complex functions. However, quantifying this complexity is non-trivial. Traditional measures like VC-dimension often fail to capture the nuances of overparameterized models. Furthermore, in the infinite-width limit, neural networks behave as Gaussian Processes (GPs). Previous research into the Reproducing Kernel Hilbert Space (RKHS) of these GPs suggested that for activations like ReLU, the complexity of the associated space does not necessarily scale with depth—a finding that contradicts empirical evidence. This paper resolves this paradox by examining the full angular power spectrum of the network's output.

The Spectral Framework

To analyze complexity, the authors treat a randomly initialized, infinitely wide neural network as an isotropic random field on a sphere. Using Schoenberg’s theorem, the network's covariance kernel is decomposed into a series of Gegenbauer polynomials, which serve as a spherical analogue to the Fourier transform. This decomposition yields a "spectral law"—a probability distribution where the mass at each frequency (multipole) represents its contribution to the total variance of the network.

The Three Regimes of Complexity

The evolution of a network's complexity as depth ($L$) increases is fundamentally determined by the derivative of its base covariance kernel at the origin, denoted as $\kappa'(1)$. The authors identify three distinct behaviors:

  1. Low-disorder ($\kappa'(1) < 1$): The network simplifies into a constant function as it grows deeper. The spectral mass concentrates at the zero frequency.
  2. High-disorder ($\kappa'(1) > 1$): The network becomes increasingly chaotic or "wiggly." The spectral mass shifts toward higher frequencies, and the function's derivatives diverge exponentially.
  3. Sparse ($\kappa'(1) = 1$): A unique middle ground where the network maintains a coherent large-scale structure while developing localized, high-frequency fluctuations.
Convergence properties of the spectral law across different regimes.

As shown in Figure 1, these regimes are characterized by the convergence of the spectral law in probability ($\mathbb{P}$-lim) and in the $L^2$ sense. In the sparse regime, the $L^2$ limit does not exist, indicating the presence of "spikes" that contribute to variance but do not dominate the overall shape of the function.

Classifying Activation Functions

The framework allows for a systematic classification of common activation functions based on their parameters.

Classification of common activation functions into Low-disorder (L), Sparse (S), and High-disorder (H) regimes.

Figure 2 illustrates that popular activations like ReLU, LReLU, and PReLU naturally fall into the Sparse regime. In contrast, saturating activations like the hyperbolic tangent (Tanh) or the normal CDF are inherently High-disorder. Other functions, such as the Gaussian or Cosine activations, can transition between regimes depending on their scaling parameters ($a$).

Why ReLU Stays "Simple"

The discovery that ReLU is in the Sparse regime provides a theoretical justification for its empirical success. While a deep Tanh network's "spectral effective dimension" (the number of frequencies needed to capture 99% of its behavior) explodes into the millions, a ReLU network's effective dimension remains remarkably low—often less than 10 even at 80 layers.

This "quantitative sparsity" suggests that ReLU networks possess a built-in self-regularization mechanism. They can represent complex, high-frequency patterns (the "spikes") without the entire function collapsing into white noise. This allows them to remain well-behaved and trainable at depths where other activations would become too chaotic to generalize.

Conclusion

By shifting the focus from the tail of the spectrum to the entire spectral law, this research provides a new lens through which to view neural network complexity. The identification of the Sparse regime highlights why certain architectural choices, like ReLU, are particularly well-suited for deep learning. Future work will extend this analysis to finite-width networks and convolutional architectures, as well as investigate how these spectral properties evolve during the training process.

Summary updated

Abstract

It is well-known that randomly initialized, push-forward, fully-connected neural networks weakly converge to isotropic Gaussian processes, in the limit where the width of all layers goes to infinity. In this paper, we propose to use the angular power spectrum of the limiting field to characterize the complexity of the network architecture. In particular, we define sequences of random variables associated with the angular power spectrum, and provide a full characterization of the network complexity in terms of the asymptotic distribution of these sequences as the depth diverges. On this basis, we classify neural networks as low-disorder, sparse, or high-disorder; we show how this classification highlights a number of distinct features for standard activation functions, and in particular, sparsity properties of ReLU networks. Our theoretical results are also validated by numerical simulations.
BibTeX
@misc{lillo2024spectral,
  author = {Simmaco Di Lillo and Domenico Marinucci and Michele Salvi and Stefano Vigogna},
  title = {{Spectral complexity of deep neural networks}},
  year = {2024},
  eprint = {2405.09541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.09541},
}
Figure