Hausdorff Dimension, Heavy Tails, and Generalization in Neural Networks

Umut Simsekli, Ozan Sener, George Deligiannidis, Murat A Erdogdu

Abstract

Despite the massive number of parameters in modern deep neural networks, they exhibit a remarkable ability to generalize to unseen data. This paper provides a novel theoretical framework to explain this phenomenon by modeling Stochastic Gradient Descent (SGD) as a "Feller process." The authors demonstrate that generalization error is fundamentally controlled by the Hausdorff dimension of the optimization trajectory—a measure of its fractal "roughness." Crucially, this dimension is directly linked to the heavy-tailed nature of gradient noise, suggesting that heavier-tailed optimization paths inherently lead to better generalization.

The Generalization Paradox

In classical learning theory, generalization bounds typically scale with the number of parameters ($d$). However, modern neural networks often have millions of parameters, yet they generalize exceptionally well, directly contradicting traditional capacity bounds. This paradox suggests that the "ambient" dimension of the parameter space is not the primary driver of generalization; instead, an "intrinsic" dimension governs the model's capacity.

Recent empirical research has shown that the noise inherent in SGD is often heavy-tailed, meaning extreme gradient values occur more frequently than they would in a normal (Gaussian) distribution. While this observation has provided valuable empirical insights, a rigorous mathematical link connecting heavy-tailed noise to generalization performance has been missing. This paper bridges that gap, proving that heavy-tailed noise simplifies the optimization path in a fractal sense.

Methodology: Measuring the Optimization Path

To rigorously analyze SGD trajectories, the authors employ tools from stochastic calculus and geometric measure theory:

  • Feller Processes: The trajectories of SGD are modeled using a broad class of Markov processes known as Feller processes. This flexible framework can represent both standard Brownian motion (driven by Gaussian noise) and $\alpha$-stable Lévy motion (driven by heavy-tailed noise).
  • Hausdorff Dimension ($d_H$): Rather than counting parameters, the authors evaluate the Hausdorff dimension of the set of weights visited during training. This metric quantifies how much "space" the optimization path fills. A highly erratic, "wiggly" path has a higher $d_H$, whereas a path characterized by large jumps (due to heavy tails) fills less space and has a lower $d_H$.
  • Blumenthal-Getoor (BG) Index: To translate this theory into testable metrics, the authors utilize the BG index ($\beta_S$). This index serves as an upper bound for the Hausdorff dimension and is directly related to the tail-index ($\alpha$) of the driving noise.

Key Insights and Results

The core "aha moment" of the paper is the mathematical formalization that heavier tails (a smaller tail-index $\alpha$) lead to a lower Hausdorff dimension.

Simulated trajectories of processes with varying tail indices ($\alpha$). Lower $\alpha$ results in sparser, jumpier paths with lower Hausdorff dimension.

As visualized above, heavy-tailed processes induce large jumps in the optimization trajectory. These jumps allow the process to skip over vast regions of the parameter space, creating a "sparser" fractal trajectory. This lower intrinsic complexity directly translates to improved generalization.

Theoretical Bounds and Empirical Validation

The authors successfully proved a new generalization bound where the error is roughly proportional to $\sqrt{d_H / n}$. This represents the first bound of its kind for heavy-tailed, SDE-based models. Because the bound depends on $d_H$ rather than the total parameter count $d$, it elegantly explains why a 20-million parameter model can generalize better than a 1-million parameter model, provided its optimization path is intrinsically simpler.

To validate these theoretical findings, the authors conducted experiments using VGG networks of varying depths (4 to 19 layers) on the CIFAR-10 dataset. The results showed a striking correlation between the estimated BG index ($\beta_S$) and the actual generalization error. Furthermore, they demonstrated that the Hausdorff dimension does not monotonically increase with model depth or parameter count. In several instances, deeper models exhibited lower Hausdorff dimensions and correspondingly better generalization, cementing the tail-index of gradient noise as a robust "capacity metric."

Limitations and Future Work

While this framework offers a compelling new perspective on deep learning generalization, it relies on several technical assumptions. For instance, it assumes a "$\psi$-mixing condition" to handle dependencies between data and weights, and it assumes SGD can be perfectly approximated by a continuous-time Feller process.

Additionally, estimating the tail-index and Hausdorff dimension in high-dimensional spaces remains computationally expensive and sensitive to the choice of estimator. Finally, the current analysis focuses primarily on the behavior of the process around a local minimum; extending these bounds to encompass the entire training trajectory from initialization remains an exciting challenge for future research.

Summary updated

BibTeX
@inproceedings{simsekli2020hausdorff,
  author = {Umut Simsekli and Ozan Sener and George Deligiannidis and Murat A Erdogdu},
  title = {{Hausdorff Dimension, Heavy Tails, and Generalization in Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=yFr_k-V1Wj_},
}
Figure