Abstract
Generalization measures are intended to explain why deep neural networks perform well on unseen data, but this research reveals they are often "fragile." Minor hyperparameter tweaks—which have zero impact on a model's actual performance—can cause these measures to wildly fluctuate, reverse trends, or even explode. We introduce a "fragility audit" to stress-test these metrics and argue for a shift toward more robust, function-space-based measures.
Introduction
Deep learning is famously effective, yet we still lack a "grand unified theory" of why it generalizes so well. To bridge this gap, researchers have developed hundreds of generalization measures—mathematical proxies like weight norms, "flatness" of the loss landscape, or PAC-Bayes bounds—meant to predict how well a trained model will perform on new data.
We identify a critical flaw: most of these measures are "post-mortem," meaning they are calculated based on the specific weights of a network after training. These measures often capture the "noise" of the optimization process rather than the "signal" of generalization. If a measure changes drastically when the model’s performance does not, it is a fragile artifact of the training pipeline rather than a reliable explanation.
The Fragility Audit
To systematically evaluate these metrics, we introduce a fragility audit consisting of three primary stressors:
- Hyperparameter Sweeps: Changing the learning rate or switching optimizers (e.g., SGD to Adam) while keeping the architecture and data fixed.
- Temporal Tracking: Monitoring how a measure behaves after the model has reached 100% training accuracy (the "interpolation" regime).
- Data-Complexity Checks: Testing if the measure correctly ranks datasets by difficulty or responds logically to label noise.
We also introduce a novel "invariance lever" called the Exp++ factor. For scale-invariant networks, we prove that one can exponentially increase parameter magnitudes while keeping the model's output function—and its test error—mathematically identical. This serves as the ultimate "smoke test" for any measure dependent on weight scale.
Empirical Evidence of Fragility
Optimizer and Learning Rate Sensitivity
Our results show that popular measures like the "path norm" are highly sensitive to the choice of optimizer. A measure might show a downward trend with SGD but an upward trend with Adam on the exact same task, suggesting the measure tracks optimizer behavior rather than generalization capacity.
The Interpolation Regime
After a model fits the training set perfectly (100% accuracy), gradients can still cause the scale of the weights to drift. Fragile measures follow this drift indefinitely, while the actual function and generalization performance remain stable.
Towards Robust Measures
The most robust measure identified was the ML-PACBayes bound. Unlike post-mortem measures that look at weights, this one operates in "function space"—it evaluates the probability that a random network fits the data. Because it ignores specific training dynamics, it is inherently immune to hyperparameter jitter and correctly tracks dataset difficulty across all tests.
Conclusion
We urge the community to adopt the Fragility Audit as a standard requirement for any new generalization measure. Moving away from "tight" but fragile bounds toward measures that are explicitly invariant to benign training tweaks is essential for developing a reliable theory of deep learning generalization.
Summary updated