Sensitivity and Generalization in Neural Networks: an Empirical Study
Roman Novak, Yasaman Bahri, Daniel A. Abolafia, Jeffrey Pennington, Jascha Sohl-Dickstein
TL;DR
The study investigates why large neural networks generalize well by introducing sensitivity-based complexity metrics that quantify local input perturbation effects.It defines the input-output Jacobian Frobenius norm and a trajectory-based transition count to measure sensitivity around data, and conducts a large-scale empirical analysis across thousands of fully-connected networks on multiple image datasets.Key findings show strong correlations between reduced Jacobian-based sensitivity near the data manifold and better generalization, with regularization techniques and mini-batch SGD promoting robustness; per-point Jacobian values can also predict misclassification tendencies.The results offer a geometry-driven perspective on generalization and suggest robustness as a practical criterion for model selection, while outlining future work to extend to more complex architectures and tasks.
Abstract
In practice it is often found that large over-parameterized neural networks generalize better than their smaller counterparts, an observation that appears to conflict with classical notions of function complexity, which typically favor smaller models. In this work, we investigate this tension between complexity and generalization through an extensive empirical exploration of two natural metrics of complexity related to sensitivity to input perturbations. Our experiments survey thousands of models with various fully-connected architectures, optimizers, and other hyper-parameters, as well as four different image classification datasets. We find that trained neural networks are more robust to input perturbations in the vicinity of the training data manifold, as measured by the norm of the input-output Jacobian of the network, and that it correlates well with generalization. We further establish that factors associated with poor generalization $-$ such as full-batch training or using random labels $-$ correspond to lower robustness, while factors associated with good generalization $-$ such as data augmentation and ReLU non-linearities $-$ give rise to more robust functions. Finally, we demonstrate how the input-output Jacobian norm can be predictive of generalization at the level of individual test points.
