Deep neural networks possess the capacity to memorize massive datasets, even when labels are entirely random. Yet, in practice, they often avoid this "easy" path of memorization, instead learning generalizable patterns that perform well on unseen data. The structural differences between a network that generalizes and one that merely memorizes have remained elusive.
This paper investigates whether a network's reliance on "single directions"—individual neurons or feature maps—can predict its ability to generalize. The findings reveal that generalizing networks develop robust, distributed representations, whereas memorizing networks are brittle and heavily dependent on specific, isolated units.
Stress-Testing Networks via Ablation
To understand internal representations, the authors employ perturbation analysis, specifically focusing on cumulative ablation. This process involves progressively "muting" single directions (e.g., clamping a neuron's activation or an entire feature map to zero) and measuring how quickly the network's accuracy degrades. They also utilize a selectivity index to quantify how "class-selective" a unit is—that is, whether it fires predominantly for a single specific class.
These metrics were evaluated across three standard architectures: an MNIST Multi-Layer Perceptron (MLP), a CIFAR-10 ConvNet, and an ImageNet ResNet-50. By training on datasets with varying fractions of corrupted (shuffled) labels, the authors created a spectrum of models ranging from perfect generalizers to pure memorizers.
Key Insights: Memorization, Selectivity, and Regularization
- Memorization is Brittle: Networks forced to memorize corrupted labels become highly dependent on single directions. Ablating just a few units causes their performance to plummet. Conversely, networks that generalize well are robust to ablation, indicating their learned representations are widely distributed across many neurons.
- Selectivity Does Not Equal Importance: A counter-intuitive finding emerges regarding highly selective units (often likened to "grandmother cells" in neuroscience that respond to a single specific concept). The study shows that highly class-selective units are often the least important for overall network performance. Muting a highly selective "cat neuron" might barely affect accuracy, whereas ablating a non-selective, seemingly messy neuron can be catastrophic.
- The Role of Regularizers: Batch Normalization (BN), typically used to accelerate training, implicitly discourages reliance on single directions. It reduces class selectivity, pushing the network toward distributed representations. Dropout also provides robustness, but only up to the dropout fraction used during training; beyond that threshold, memorizing networks still exhibit extreme sensitivity.
Predicting Generalization
The Area Under the Curve (AUC) of the cumulative ablation process serves as a highly reliable predictor of generalization. Across a sweep of 192 models, the correlation between this AUC and test accuracy was remarkably strong (0.914).
Furthermore, as a network begins to overfit during training, its reliance on single directions increases. This suggests that ablation sensitivity could function as an early warning signal for early stopping, potentially eliminating the need for a separate validation set in certain contexts.
Limitations and Future Directions
While the core results scale to ImageNet, some experiments—such as early stopping and hyperparameter sweeps—were primarily validated on simpler datasets like MNIST and CIFAR-10. Additionally, the study focuses on class selectivity rather than feature selectivity (e.g., responding to specific shapes or textures), which may exhibit different dynamics.
Ultimately, understanding that reliance on single directions hinders generalization opens the door for novel regularization techniques. Future work could focus on developing methods designed to explicitly penalize this reliance, potentially surpassing the generalization benefits currently provided by Dropout and Batch Normalization.
Summary updated