In search of robust measures of generalization

Gintare Karolina Dziugaite, Alexandre Drouin, Brady Neal, Nitarshan Rajkumar, Ethan Caballero, Linbo Wang, Ioannis Mitliagkas, Daniel M. Roy

Introduction

One of the principal scientific challenges in deep learning is explaining generalization: why does the specific way we train networks to achieve small training error also lead to small error on held-out data? While researchers have proposed numerous mathematical "measures" derived from statistical learning theory to predict this generalization gap, evaluating these measures remains a complex challenge.

Recent influential studies have suggested evaluating these measures by looking at their average correlation across many experiments. However, this paper argues that judging generalization measures by their average performance is fundamentally misleading. Instead, measures should be evaluated through the lens of distributional robustness, testing if they hold up under specific, isolated interventions like changing network depth or training set size.

The Problem with Averaging

In deep learning, a model can perform perfectly on training data but struggle on a test set. To predict this, researchers develop generalization bounds. When evaluated empirically, however, most of these bounds are numerically vacuous.

A recent large-scale empirical study (Jiang et al., 2020) aimed to uncover causal relationships between these measures and generalization by using average correlation (Kendall-$\tau$) across many experiments. This paper highlights a critical flaw in that approach: a measure that works well on average might completely fail to predict the effect of a specific architectural or hyperparameter change. If a measure fails catastrophically when a model's depth is increased, it cannot serve as a reliable, universal "theory" of deep learning. The scientific community must shift its question from "does this work on average?" to "is this measure robust to interventions?"

Methodology: Distributional Robustness

To rigorously test these measures, the authors adopt the framework of distributional robustness. They define "environments" as experimental setups that differ by exactly one hyperparameter (e.g., two models that are identical except one is deeper than the other).

Key methodological shifts include:

  • Coupled-network experiments: The researchers compare pairs of networks to see if a measure correctly predicts which one generalizes better, calculating the "sign-error."
  • Robust Sign-Error: Instead of averaging the error across all experiments, they evaluate the maximum error across different families of environments. A high robust sign-error indicates that there is at least one specific type of change (like increasing width) where the measure consistently provides the wrong answer.
  • Noise Filtering: Monte Carlo variance estimates are used to discard experimental pairs where the difference in generalization is too small to be statistically significant. This ensures measures aren't penalized for failing to predict random noise.

The study involved a massive empirical effort, performing over 1,600,000 ranking evaluations across 24 different generalization measures using standard image classification benchmarks (CIFAR-10 and SVHN).

Key Results: The Failure of Average Metrics

The most striking finding of the study is the "Weakest Link" principle in action: a scientific theory is only as strong as its weakest part.

Sign-error distributions for various generalization measures across different hyperparameter interventions. The maximum error (green line) frequently hits 1.0, highlighting catastrophic failures hidden by lower mean errors (orange dotted line).

As demonstrated in the evaluation, no measure is robust. Every single one of the 24 candidate measures suffered from a 100% failure rate in predicting the sign change of generalization error under some intervention. When evaluating the "robust sign-error" (the worst-case performance), no existing complexity measure performed better than a random coin flip. Averaging simply hides these failures; measures that look "good" in large-scale average studies often suffer from complete failure rates in specific sub-scenarios.

Despite the overall lack of robustness, the authors did identify some subfamily successes:

  • Most measures are decent at predicting changes due to training set size.
  • PAC-Bayes measures (specifically those related to "flatness") showed the most promise, being robust across a larger fraction of environments than others, particularly regarding depth.
  • Norm-based measures tended to outperform others specifically when intervening on the learning rate.

Furthermore, the study highlighted that robustness to network width is exceptionally difficult. Generalization error changes very little with width in overparametrized regimes, making it extremely difficult for any measure to provide a robust signal.

Limitations and Future Directions

The authors acknowledge that their study is limited to the specific measures and architectures chosen. Notably, they did not intervene directly on the dynamics of Stochastic Gradient Descent (SGD), which many believe is the primary source of "implicit regularization" in deep learning.

Future work could leverage this robust evaluation framework to zero-in on the limited scopes where certain measures are valid. Additionally, researchers might use gradient-based optimization within this framework to discover entirely new, genuinely robust measures of generalization.

Summary updated

BibTeX
@inproceedings{dziugaite2020search,
  author = {Gintare Karolina Dziugaite and Alexandre Drouin and Brady Neal and Nitarshan Rajkumar and Ethan Caballero and Linbo Wang and Ioannis Mitliagkas and Daniel M. Roy},
  title = {{In search of robust measures of generalization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=BAg-CU3Pyf5},
}
Figure