Abstract
Providing generalization guarantees for modern neural networks has been a crucial task in statistical learning. Recently, several studies have attempted to analyze the generalization error in such settings by using tools from fractal geometry. While these works have successfully introduced new mathematical tools to apprehend generalization, they heavily rely on a Lipschitz continuity assumption, which in general does not hold for neural networks and might make the bounds vacuous. In this work, we address this issue and prove fractal geometry-based generalization bounds without requiring any Lipschitz assumption. We introduce a data-dependent fractal dimension and link it to topological data analysis tools, enabling numerically efficient computation. Experiments on various settings support our theory.
Introduction
One of the central mysteries in modern artificial intelligence is the ability of massive neural networks to generalize well despite having millions of parameters. Traditional statistical learning theory often predicts overfitting as parameter counts increase, yet empirical evidence frequently shows the opposite. Recent attempts to resolve this paradox have turned to fractal geometry, suggesting that the "intrinsic dimension" of the space explored by optimization algorithms like Stochastic Gradient Descent (SGD) is significantly lower than the ambient parameter space dimension.
However, prior work in this area has largely depended on a "uniform Lipschitz" assumption—the requirement that a model's output remains stable under small weight perturbations. In deep learning, this assumption is often violated or leads to "vacuous" bounds that offer no practical insight. This research introduces a framework that bypasses the Lipschitz requirement by utilizing data-dependent fractal dimensions.
Methodology
The proposed framework introduces several novel components to bridge theoretical bounds with practical deep learning:
- Data-Dependent Pseudo-Metric: Instead of measuring distances in the weight space (Euclidean distance), the authors propose a metric based on model behavior. Specifically, the distance between two models is defined by the average difference in their loss across the training dataset.
- Data-Dependent Fractal Dimension: Utilizing the behavior-based metric, the authors define an "upper box-counting dimension." This captures the complexity of the hypothesis space relative to the specific training data.
- Geometric Stability: To account for the data-dependency of the hypothesis space, a new notion of stability is introduced, ensuring that the fractal structure of the optimization trajectory remains robust to small changes in the dataset.
- Persistent Homology (PH): To facilitate computation, the theory is linked to Topological Data Analysis (TDA). Persistent Homology is used to track the evolution of connected components in the model trajectory across scales, providing a numerically efficient way to estimate the fractal dimension.
Experimental Results
The theory was validated across multiple architectures (FCN-5, FCN-7, AlexNet, ResNet-18) and datasets (MNIST, CIFAR-10, CIFAR-100, California Housing Dataset).
Correlation with Generalization Gap
A key finding is the superior correlation between the proposed data-dependent dimension ($\text{dim}_{\text{PH}}^{\rho_S}$) and the actual generalization gap compared to traditional Euclidean-based measures.
As shown in Figure 2, the data-dependent dimension consistently tracks the generalization performance across different model complexities and tasks. Quantitatively, the improvement is significant. For instance, on the California Housing Dataset (CHD), the correlation coefficient ($\rho$) for a 7-layer network improved from 0.40 using Euclidean metrics to 0.77 using the data-dependent approach.
Quantitative Comparison
The following table summarizes the correlation performance, demonstrating that the data-dependent metric consistently outperforms the Euclidean counterpart across different correlation metrics ($\rho, \Psi, \tau$).
Discussion and Insights
The results suggest that weight space is an inadequate measure for model complexity. By focusing on the "size" of the model's behavior via the loss function, the theory provides a more accurate reflection of generalization. Furthermore, the paths taken by SGD exhibit a distinct fractal structure with low intrinsic dimensions (often 2 or 3), even in high-dimensional parameter spaces.
The use of Persistent Homology transforms an abstract mathematical concept into a practical diagnostic tool. The fractal dimension can serve as a "thermometer" to predict a model's generalization gap, particularly once the model reaches a stable training regime.
Conclusion and Future Work
This work removes the "Lipschitz crutch" from fractal-based generalization theory, making it applicable to modern, non-smooth deep learning architectures. While computationally intensive due to the need for evaluating loss across trajectories, the method is robust; estimates remain accurate even when using only a fraction of the training data. Future research may focus on developing differentiable versions of these TDA tools to allow the fractal dimension to be used directly as a regularization term during training.
Summary updated