Generalization Comparison of Deep Neural Networks via Output Sensitivity

Mahsa Forouzesh, Farnood Salehi, Patrick ThiranICPR 2020

TL;DR

This paper introduces "output sensitivity" as a novel, computationally inexpensive metric to predict the generalization performance of deep neural networks. They demonstrate a strong correlation between this sensitivity and the test loss, suggesting it can be used to select better architectures and training techniques before training, without needing labeled validation data.

What Problem Does This Paper Address?

Deep neural networks are notoriously difficult to understand, especially when it comes to generalization – their ability to perform well on unseen data after being trained on a specific dataset. While many techniques exist to improve generalization (e.g., deeper networks, regularization), it's not always clear why they work or how to best choose between different architectural choices or training strategies. The authors aim to bridge this gap by finding a reliable, intrinsic property of a network that correlates with its generalization ability, independent of the actual labels in the data.

Methods

The core of the paper revolves around defining and measuring "output sensitivity." This is done by injecting small, random noise into a network's input and observing how much the output changes. Specifically, they compute the variance of this output perturbation. They then empirically and theoretically explore the relationship between this sensitivity metric and the generalization error, often framed as the test loss.

Key methodological contributions include:

  • Defining Output Sensitivity (S): A measure of how much a network's output changes in response to small, random input perturbations.
  • Linking Sensitivity to Bias-Variance Decomposition: They establish a theoretical (albeit approximate) link between output sensitivity and the variance component of the bias-variance decomposition of the loss function.
  • Proposing Sensitivity as a Proxy: They argue that sensitivity can serve as a proxy for generalization loss, especially when the bias term is small (common in deep learning).
  • Sensitivity Before vs. After Softmax: They highlight that computing sensitivity before the softmax layer is more informative for generalization than computing it after.

Datasets

The paper uses standard benchmark datasets for training and evaluation:

  • CIFAR-10: Used for image classification experiments.
  • MNIST: Used for image classification experiments.
  • CIFAR-100: Used for image classification experiments.
  • Boston Housing Dataset: Used for regression task experiments.

Key Insights and Ideas

  • Sensitivity as a Crystal Ball: The most striking insight is that a network's sensitivity before it's even trained can predict its future generalization performance. This is a significant departure from traditional methods that require training and validation.
  • Regularization Works by Reducing Sensitivity: Techniques like batch normalization, dropout, and using deeper vs. wider architectures are shown to improve generalization precisely because they reduce the network's output sensitivity. This provides a unifying explanation for their effectiveness.
  • Sensitivity is More Robust than Jacobian Norm: When comparing sensitivity to the spectral norm of the Jacobian (another sensitivity-related metric), the authors find that sensitivity before the softmax is more correlated with generalization and is computationally much cheaper.
  • Depth Over Width for FC Networks: For fully-connected networks, deeper architectures with fewer units per layer tend to have lower sensitivity and better generalization compared to shallower, wider networks with the same number of parameters.
  • CNNs Inherently Less Sensitive: Convolutional Neural Networks (CNNs) generally exhibit lower sensitivity and better generalization than fully-connected networks (FCs) with comparable parameter counts, supporting their dominance in vision tasks.

Key Results

  • Strong Correlation: The paper consistently shows a high Pearson correlation coefficient (often > 0.9) between sensitivity (especially before softmax) and test loss across various architectures and datasets.
  • Predictive Power: Figures 1, 2, 3, 4, 6, 8, and 9 visually demonstrate that networks with lower sensitivity consistently achieve lower test losses.
  • Computational Efficiency: Computing sensitivity is significantly faster (over 10x) than computing the Jacobian norm, making it a practical choice for architecture selection.
  • Effectiveness of Techniques: The study confirms that popular techniques like Batch Normalization, Dropout, and specific initialization methods (like He initialization) lead to reduced sensitivity and improved generalization. For example, Batch Normalization shows a dramatic decrease in both sensitivity and test loss.

Limitations and Future Work

  • Assumptions for Theoretical Link: The theoretical derivation of the sensitivity-variance link relies on several strong assumptions (e.g., positive homogeneous activation functions, zero-mean parameters, specific noise distributions) which may not always hold in practice.
  • Bias Term Neglect: The approximation relating sensitivity to loss often neglects the bias term, which can be significant in early stages of training or with limited data.
  • Input Perturbation Realism: The current input perturbations are pixel-wise linear. The authors suggest that perturbing in the latent space of a generative model might be more realistic for future work.
  • Sigmoid/Tanh Activations: The theoretical framework is primarily developed for positive homogeneous activation functions like ReLU. The generalization properties of networks with sigmoid and tanh activations are left for future investigation.
  • Causality vs. Correlation: The paper establishes a strong correlation between sensitivity and generalization, but acknowledges that this does not imply a direct causal relationship.
  • Future Work: The authors propose using sensitivity as an automated Neural Architecture Search (NAS) tool, potentially even before training. They also suggest exploring its application to other loss functions and network types.

Summary updated

BibTeX
@inproceedings{forouzesh2020generalization,
  author = {Mahsa Forouzesh and Farnood Salehi and Patrick Thiran},
  title = {{Generalization Comparison of Deep Neural Networks via Output Sensitivity}},
  booktitle = {ICPR},
  year = {2020},
  url = {https://openreview.net/forum?id=JPIcyHFxov},
}
Figure