Abstract
Despite its success in a wide range of applications, characterizing the generalization properties of stochastic gradient descent (SGD) in non-convex deep learning problems is still an important challenge. While modeling the trajectories of SGD via stochastic differential equations (SDE) under heavy-tailed gradient noise has recently shed light over several peculiar characteristics of SGD, a rigorous treatment of the generalization properties of such SDEs in a learning theoretical framework is still missing. Aiming to bridge this gap, in this paper, we prove generalization bounds for SGD under the assumption that its trajectories can be well-approximated by a Feller process, which defines a rich class of Markov processes that include several recent SDE representations (both Brownian or heavy-tailed) as its special case. We show that the generalization error can be controlled by the Hausdorff dimension of the trajectories, which is intimately linked to the tail behavior of the driving process. Our results imply that heavier-tailed processes should achieve better generalization; hence, the tail-index of the process can be used as a notion of "capacity metric". We support our theory with experiments on deep neural networks illustrating that the proposed capacity metric accurately estimates the generalization error, and it does not necessarily grow with the number of parameters unlike the existing capacity metrics in the literature.
The Generalization Mystery in Deep Learning
A central mystery in deep learning is why neural networks generalize so well. Traditional learning theory suggests that models with millions of parameters should overfit training data unless they are heavily regularized. However, in practice, deep networks often generalize excellently even when they have far more parameters than training samples.
Existing "capacity metrics" (like VC dimension or norm-based bounds) often scale with the number of parameters $d$, leading to "vacuous" bounds that fail to explain empirical success. This research addresses this gap by moving away from the ambient dimension of the parameter space and looking instead at the intrinsic dimension of the path the optimizer takes through that space.
Theoretical Framework: Feller Processes and Fractal Dimensions
The authors model the trajectories of SGD as a Feller process, a broad class of Markov processes that can represent various stochastic differential equations (SDEs). Crucially, they focus on SDEs driven by heavy-tailed noise, specifically $\alpha$-stable Lévy motion.
To measure the complexity of these trajectories, the paper introduces the Uniform Hausdorff Dimension ($d_H$). Unlike the total number of parameters, this dimension measures the "roughness" or "space-filling" property of the trajectory. A key insight is that the tail-index $\alpha$ of the driving noise directly dictates this dimension.
As illustrated in the figure above, when $\alpha = 2.00$ (Gaussian noise), the trajectory is highly space-filling. As $\alpha$ decreases toward $1.00$ (heavier tails), the path becomes sparser and characterized by large jumps. This sparsity translates to a lower Hausdorff dimension, which the authors prove leads to tighter generalization bounds.
Key Insights
- Heavy Tails as Implicit Regularization: The heavy-tailed noise observed in SGD gradients isn't just "noise"—it's a form of implicit regularization. Heavier tails (smaller $\alpha$) lead to trajectories with a lower Hausdorff dimension, effectively restricting the optimizer to a "simpler" subset of the parameter space.
- Independence from Parameter Count: Remarkably, the Hausdorff dimension does not necessarily grow with the number of parameters. This explains why a 20-million parameter VGG19 might generalize better than a smaller network: its optimization trajectory might actually be "simpler" in a fractal sense.
- The "Intrinsic Dimension" of SGD: The Hausdorff dimension acts as the true "intrinsic dimension" of the learning problem, mimicking the role that VC dimension plays in classical binary classification.
Empirical Validation
The theory was validated using CIFAR-10 and various VGG-style architectures (VGG4 through VGG19). The experiments demonstrated:
- Strong Correlation: The estimated tail-index ($\beta_S$) is highly correlated with the actual generalization error.
- Non-Monotonicity: Generalization error and Hausdorff dimension do not strictly increase with network depth. For example, a 4-layer network was found to have a higher Hausdorff dimension and higher generalization error than some deeper counterparts.
- Predictive Power: The proposed capacity metric accurately tracks generalization error across different learning rates and batch sizes, outperforming existing metrics like the "flat minima" ratio ($\eta/B$) in certain regimes.
Limitations and Future Work
While the results are promising, the main theorems hold for "sufficiently large $n$," and the exact threshold for these bounds to become tight remains unknown. Additionally, the theory relies on a "$\psi$-mixing" condition, a standard but difficult-to-verify technical assumption in complex deep learning tasks. Future work may explore how specific architectural choices, such as skip connections or normalization layers, impact the tail behavior and fractal properties of the optimization path.
Summary updated