Trajectory-dependent Generalization Bounds for Deep Neural Networks via Fractional Brownian Motion

Chengli Tan, Jiangshe Zhang, Junmin Liu · OpenReview

Abstract

One of the fundamental challenges in the deep learning community is to theoretically understand how well a deep neural network generalizes to unseen data. However, current approaches often yield generalization bounds that are either too loose to be informative of the true generalization error or only valid to the compressed nets. In this study, we present a simple yet non-vacuous generalization bound from the optimization perspective. We achieve this goal by leveraging that the hypothesis set accessed by stochastic gradient algorithms is essentially fractal-like and thus can derive a tighter bound over the algorithm-dependent Rademacher complexity. The main argument rests on modeling the discrete-time recursion process via a continuous-time stochastic differential equation driven by fractional Brownian motion. Numerical studies demonstrate that our approach is able to yield plausible generalization guarantees for modern neural networks such as ResNet and Vision Transformer, even when they are trained on a large-scale dataset (e.g. ImageNet-1K).

Introduction

A persistent mystery in deep learning is why massive neural networks generalize so well despite having far more parameters than training examples. Classical statistical learning theory suggests that such models should overfit. To resolve this, researchers seek "generalization bounds"—mathematical guarantees on the gap between training and test error. However, most existing bounds are "vacuous," providing limits (e.g., >100% error) that are numerically meaningless for practical performance.

This study derives a non-vacuous generalization bound by shifting focus from the entire hypothesis space to the specific optimization trajectory taken by Stochastic Gradient Descent (SGD). By modeling this path as a fractal trajectory driven by fractional Brownian motion (FBM), the authors create a bound that accurately reflects the performance of modern architectures like ResNets and Vision Transformers on large-scale datasets.

Methodology: Fractal Trajectories and FBM

The core innovation lies in modeling stochastic gradient noise (SGN) as temporally correlated rather than independent and identically distributed (i.i.d.). While standard Brownian motion assumes independence at each step, the authors prove that SGN has "memory," necessitating the use of fractional Brownian motion (FBM).

The SGD recursion is modeled as a continuous-time stochastic differential equation (SDE) driven by FBM. Because the optimization path is driven by this noise, the set of weights visited by the algorithm is fractal-like. The complexity of this path is quantified using the Hausdorff dimension ($\text{dim}_H$), which depends on the Hurst exponent ($H$).

Simulated trajectories for different Hurst exponents ($H$).

As shown in the figure above, the Hurst exponent determines the "roughness" of the trajectory. $H=0.5$ corresponds to standard Brownian motion, while lower values of $H$ indicate more anti-persistent, "rougher" paths that explore the space differently. The authors derive a new bound for Rademacher complexity that depends on this fractal dimension rather than the raw parameter count, effectively identifying a much smaller "effective" hypothesis space.

Empirical Validation and Results

The theory was validated on CIFAR-10, CIFAR-100, and ImageNet-1K. A key step in applying the theory is estimating the Hurst exponent for each coordinate of a neural network to calculate the bound for real-world models.

Distribution of estimated Hurst exponents across network coordinates.

Empirical measurements (shown above) indicate that the Hurst exponents for real neural networks often cluster around 0.45-0.5, confirming that the noise is not perfectly i.i.d. and justifying the FBM approach.

Key Results

  • Non-Vacuous Bounds on ImageNet: For a Vision Transformer (ViT-S-32) on ImageNet-1K, the method predicted a validation accuracy of 76.5%, while the actual observed accuracy was 65.2%. This is remarkably tight compared to classical bounds.
  • Scaling and Hyperparameters: The bound correctly predicts $O(1/\sqrt{m})$ scaling with training set size $m$ and captures the sensitivity of generalization to the learning rate/mini-batch size ratio.
  • Flatness vs. Roughness: The study connects the intuition of "flat minima" to fractal roughness, suggesting that smoother trajectories (lower fractal dimension) correlate with better generalization.

Discussion and Limitations

While the FBM framework provides a significant step toward practical generalization theory, several avenues for future work remain. The current model assumes coordinate independence for noise, which likely oversimplifies the coupling in real networks. Additionally, the framework is currently optimized for SGD; extending it to adaptive optimizers like Adam or RMSprop is a critical next step for modern transformer-based architectures. Finally, certain constants in the proof are treated as artifacts during numerical estimation, which the authors aim to refine in future iterations.

Summary updated

BibTeX
@misc{tan2022trajectory,
  author = {Chengli Tan and Jiangshe Zhang and Junmin Liu},
  title = {{Trajectory-dependent Generalization Bounds for Deep Neural Networks via Fractional Brownian Motion}},
  year = {2022},
  eprint = {2206.04359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.04359},
}
Figure