Abstract: Providing generalization guarantees for stochastic optimization algorithms remains a key challenge in learning theory. Recently, numerous works demonstrated the impact of the geometric properties of optimization trajectories on generalization performance. These works propose worst-case generalization bounds in terms of various notions of intrinsic dimension and/or topological complexity, which were found to empirically correlate with the generalization error. However, most of these approaches involve intractable mutual information terms, which limit a full understanding of the bounds. In contrast, some authors built on algorithmic stability to obtain worst-case bounds involving geometric quantities of a combinatorial nature, which are impractical to compute. In this paper, we address these limitations by combining empirically relevant complexity measures with a framework that avoids intractable quantities. To this end, we introduce the concept of random set stability, tailored for the data-dependent random sets produced by stochastic optimization algorithms. Within this framework, we show that the worst-case generalization error can be bounded in terms of (i) the random set stability parameter and (ii) empirically relevant, data- and algorithm-dependent complexity measures of the random set. Moreover, our framework improves existing topological generalization bounds by recovering previous complexity notions without relying on mutual information terms. Through a series of experiments in practically relevant settings, we validate our theory by evaluating the tightness of our bounds and the interplay between topological complexity and stability.
Introduction
A persistent mystery in modern machine learning is why deep neural networks generalize effectively despite having the capacity to overfit training data. This paper bridges the gap between abstract "fractal" theories of generalization and the practical reality of training models, providing a framework that is both theoretically rigorous and fully computable.
The Problem: Intractable Generalization Bounds
In learning theory, the goal is to bound the "generalization gap"—the difference between a model's performance on training data versus unseen data. Historically, researchers have relied on two main tools:
- Algorithmic Stability: Measuring how much a model changes if a single training example is swapped.
- Complexity Measures: Analyzing the geometry or intrinsic dimension of the space explored by the model.
While recent "fractal-based" bounds correlate well with empirical performance, they typically rely on Information-Theoretic (IT) terms, such as mutual information. In deep learning contexts, these IT terms are often mathematically intractable or infinite, rendering the bounds useless for practical evaluation. This research addresses whether topological complexity measures can be utilized without these intractable terms.
Methods: Random Set Stability
The core innovation is the introduction of Random Set Stability. Rather than analyzing a single final weight vector, the authors treat the entire optimization trajectory as a "random set."
- The Stability Parameter ($\beta_n$): This new measure quantifies how much the entire path of the optimizer shifts when the input dataset is slightly perturbed.
- IT-Free Bounds: By combining this stability notion with Rademacher complexity, the authors derive bounds that rely on the product of stability and geometric complexity.
- Topological Integration: The framework incorporates advanced geometric measures like $\alpha$-weighted lifetime sums (from Persistent Homology) and positive magnitude. Crucially, the authors prove these can be used without needing a mutual information term to ensure mathematical validity.
Empirical Validation
The theory was validated using two distinct architectures and datasets to demonstrate broad applicability:
- Vision Transformer (ViT): Trained on CIFAR-100 for image classification.
- GraphSAGE: A graph neural network trained on MNISTSuperpixels for graph classification.
Key Results and Insights
The research demonstrates that the trajectory itself is the message; the quality of a local minimum is best understood by looking at the trajectory surrounding it. Stability acts as a "gatekeeper" or scaling factor: if an algorithm is stable, the geometric complexity of its path has a predictable, bounded impact on generalization.
Key empirical findings include:
- Tightness: The estimated bounds are remarkably reasonable. While many theoretical bounds are "vacuous" (off by factors of $10^6$ or more), these bounds were typically only one order of magnitude larger than the actual observed error.
- Meaningful Guarantees: In most experimental settings, the calculated bounds remained below 100% error, providing actual non-vacuous guarantees for complex models like ViTs.
- Sample Size Correlation: As predicted, the stability parameter $\beta_n$ decreases as the sample size $n$ increases, capturing the impact of hyperparameters like learning rate and batch size on generalization.
Conclusion and Future Work
By removing intractable IT terms, this work produces the first fully estimated topological bounds. While current bounds are "in expectation," future work aims to derive "high-probability" bounds. Additionally, extending the topological measures from Euclidean distance to data-dependent pseudometrics remains a promising avenue for capturing how neural networks perceive distance.
Summary updated