Abstract: This paper discovers that the neural network with lower decision boundary (DB) variability has better generalizability. Two new notions, algorithm DB variability and $(\epsilon, \eta)$-data DB variability, are proposed to measure the decision boundary variability from the algorithm and data perspectives. Extensive experiments show significant negative correlations between the decision boundary variability and the generalizability. From the theoretical view, two lower bounds based on algorithm DB variability are proposed and do not explicitly depend on the sample size. We also prove an upper bound of order $\mathcal{O}\left(\frac{1}{\sqrt{m}}+\epsilon+\eta\log\frac{1}{\eta}\right)$ based on data DB variability. The bound is convenient to estimate without the requirement of labels, and does not explicitly depend on the network size which is usually prohibitively large in deep learning.
Introduction
In classical statistical learning theory, the "bias-variance trade-off" suggests that as a model's complexity increases, it becomes more prone to overfitting, leading to poor generalization. However, modern deep learning defies this paradigm; massive neural networks with millions of parameters often generalize excellently even when they have the capacity to memorize random noise.
Existing measures like VC-dimension or Rademacher complexity often fail to explain this "generalization gap" because they focus on the size of the hypothesis space rather than the specific properties of the learned model. This research shifts the focus from the internal weights of the network to the geometry of its predictions—specifically, how much the decision boundary "wiggles" or shifts when training conditions change.
Measuring Boundary Instability
The authors propose two primary metrics to quantify boundary instability:
- Algorithm DB Variability (AV): This measures the discrepancy between the decision boundaries of models with the same architecture trained on the same data but with different random seeds. High AV indicates that identical training runs result in wildly different predictions on unseen points.
- $(\epsilon, \eta)$-Data DB Variability: This measures how much the boundary changes if the model is trained on only a small subset ($\eta$) of the data. If a small "support vector" set can reconstruct a boundary similar to the one trained on the full dataset (within error $\epsilon$), the model exhibits low data variability.
To measure these variabilities in high-dimensional space where data is sparse, the authors employ a GAN Probe. Using a BigGAN to generate 100,000 synthetic images, they create a dense probe to identify exactly where the decision boundaries of different models disagree.
Key Insights and Ideas
- Stability equals Simplicity: A stable decision boundary serves as a proxy for a "simple" model. Even in over-parameterized networks, if the decision boundary remains consistent across different initializations, the model has effectively learned a low-complexity solution.
- Adversarial Training Trade-off: Adversarial training, while making models robust to attacks, actually increases DB variability. This explains why adversarial robustness often comes at the cost of standard test accuracy.
- Data Augmentation as a Stabilizer: Techniques like cropping and flipping decrease DB variability. By expanding the training set, these methods help the model "lock in" a more consistent boundary across the data distribution.
- Model Selection without Labels: Because DB variability only requires model predictions on synthetic data, it can be used for model selection in "black-box" scenarios where ground-truth labels or internal weights are unavailable.
Key Results
Extensive experiments on CIFAR-10 and CIFAR-100 benchmarks revealed a significant negative correlation (Spearman’s coefficients > 0.9) between DB variability and test accuracy. As shown in the figures below, as the variability decreases, the test accuracy consistently improves across various architectures including VGG, ResNet (ResN), and Wide ResNet (WRN).
Furthermore, the authors proved a new generalization upper bound of order $O(\frac{1}{\sqrt{m}} + \epsilon + \eta \log \frac{1}{\eta})$. Crucially, this bound does not depend on the number of parameters or the norm of the weights, making it theoretically applicable to the massive networks used in modern practice.
Limitations and Future Work
While promising, estimating DB variability involves computational overhead, requiring the training of multiple models (typically 10 trials) and the generation of large synthetic datasets. Additionally, the accuracy of the estimate depends on the quality of the generative model; a GAN that fails to represent the true data distribution may yield misleading variability measurements. Future research may explore the "entropy of the decision boundary" to further link prediction uncertainty with generalization.
Summary updated