Abstract
Previous work has cast doubt on the general framework of uniform convergence and its ability to explain generalization in neural networks. By considering a specific dataset, it was observed that a neural network completely misclassifies a projection of the training data (adversarial set), rendering any existing generalization bound based on uniform convergence vacuous. We provide an extensive theoretical investigation of the previously studied data setting through the lens of infinitely-wide models. We prove that the Neural Tangent Kernel (NTK) also suffers from the same phenomenon and we uncover its origin. We highlight the important role of the output bias and show theoretically as well as empirically how a sensible choice completely mitigates the problem. We identify sharp phase transitions in the accuracy on the adversarial set and study its dependency on the training sample size. As a result, we are able to characterize critical sample sizes beyond which the effect disappears. Moreover, we study decompositions of a neural network into a clean and noisy part by considering its canonical decomposition into its different eigenfunctions and show empirically that for too small bias the adversarial phenomenon still persists.
Introduction
For years, the framework of uniform convergence has been the standard for explaining why neural networks generalize. The intuition is straightforward: if a model performs well on a training set and the complexity of the model class is controlled, it should perform well on unseen test data. However, a 2019 study by Nagarajan & Kolter challenged this foundation using a synthetic "adversarial spheres" dataset. They demonstrated that a trained network could achieve 100% test accuracy while completely failing on an adversarial set—a slightly shifted version of the training data. This behavior suggested that standard generalization bounds might be fundamentally vacuous for deep learning.
The Adversarial Spheres Task
The dataset consists of two concentric spheres in $d$-dimensional space with radii $r_1$ and $r_2$. Points on the inner sphere are labeled $+1$, and points on the outer sphere are labeled $-1$. The "adversarial" set is created by projecting training points from one sphere to the other while keeping their original labels.
A robust model should ignore the radius and focus on angular features. However, standard networks often exhibit an architectural bias that makes them sensitive to radial information, leading to the observed failure on the adversarial set.
Theoretical Framework: NTK and Semi-Homogeneous Kernels
To investigate this phenomenon, the authors move beyond finite "black box" networks to study infinitely wide models using the Neural Tangent Kernel (NTK) and Neural Network Gaussian Process (NNGP) frameworks. They introduce the concept of semi-homogeneous kernels and prove that standard ReLU networks belong to this class. This mathematical property allows for closed-form expressions that explain how a network's prediction changes when data is projected between spheres. The analysis confirms that the adversarial phenomenon is inherent to the kernel regime and not just an artifact of finite training.
The Simple Remedy: Output Bias
A central discovery of this work is the critical role of the output bias ($\beta$). The adversarial effect is highly sensitive to this parameter; if the bias is too small, the network "collapses" its understanding of the two spheres, leading to total misclassification of the adversarial set.
The authors demonstrate a "simple remedy": by increasing the output layer's bias, the adversarial effect disappears entirely. This adjustment allows the network to generalize robustly even with relatively small training sample sizes.
Phase Transitions and Sample Complexity
The study identifies sharp "phase transitions" in adversarial accuracy. For a fixed bias, as the number of training samples ($n$) increases, the accuracy on the adversarial set remains at zero until a critical threshold is reached, at which point it jumps abruptly to perfect accuracy. This suggests that the failure of uniform convergence in this specific case is a sample-complexity issue exacerbated by specific architectural choices regarding radial information.
Conclusion
The failure of uniform convergence on the adversarial spheres dataset does not signal a fundamental flaw in generalization theory for real-world tasks like image classification. Instead, it highlights a specific architectural "blind spot" regarding radial data. By identifying the role of output bias and characterizing the resulting phase transitions, this work provides a path toward more robust model initialization and a clearer understanding of when standard generalization tools remain valid.
Summary updated