NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generalization Error in Deep Learning

Daniel Jakubovitz, Raja Giryes, Miguel R. D. RodriguesarXiv 2018

This article provides a concise summary of the research paper "Generalization Error in Deep Learning" by Jakubovitz et al., which explores the theoretical foundations of why massive neural networks generalize so effectively.

The Generalization Paradox

In traditional statistics, a model with more parameters than data points is expected to "overfit"—it should memorize the noise in the training data and fail to perform on a test set. Deep Neural Networks (DNNs) violate this rule. They are notoriously over-parameterized, yet they achieve state-of-the-art performance across diverse fields.

The authors tackle the fundamental question: What is the source of generalization in deep learning? They explore why classical measures like VC-dimension fail to explain DNNs and review newer theories suggesting that generalization is a complex interplay between the network architecture, the optimization algorithm (like SGD), and the properties of the data itself.

Theoretical Frameworks and Methods

As a survey paper, the research involves a rigorous mathematical review of several theoretical frameworks used to bound or characterize generalization error. These include:

  • Classical Complexity Measures: VC-dimension and Rademacher complexity.
  • PAC-Bayes Theory: A framework using a "prior" distribution over models to provide probabilistic bounds on error.
  • Algorithmic Stability: Analyzing how much a model changes if one training sample is removed.
  • Sharpness/Flatness: Investigating the geometry of the loss landscape at the end of training.
Architecture of a Deep Neural Network showing input, hidden, and output layers.

The architecture of these networks, as illustrated above, consists of multiple layers of transformations. Each layer typically applies a linear weight matrix followed by a non-linear activation function, denoted as $\phi(x)$. The choice of these functions is a core component of the model's behavior.

Common activation functions and their derivatives used in deep learning models.

Key Insights and Ideas

  • The Memorization Mystery: One of the most striking insights is that DNNs can memorize random noise perfectly, yet when given real data, they "choose" to learn generalizable rules. This suggests that explicit regularization (like dropout) is helpful but not strictly necessary for generalization.
  • Implicit Regularization of SGD: The Stochastic Gradient Descent (SGD) algorithm acts as an implicit regularizer. By using small "mini-batches," SGD introduces noise that helps the model escape "sharp" local minima and settle into "flat" regions of the loss landscape.
  • Norms over Parameters: The paper highlights that the number of parameters is a poor metric for complexity. Instead, the norms (size) of the weight matrices and the "path-norms" through the network provide much more meaningful bounds on generalization.
  • The Sharpness Debate: There is a strong correlation between "flat" minima (where the loss doesn't change much if you wiggle the weights) and good generalization. However, the authors note that "flatness" can be manipulated by rescaling weights, meaning a perfectly invariant definition is still needed.

Key Results

  • Stability of SGD: The paper reviews proofs showing that SGD is "uniformly stable" provided the training time is not excessively long, ensuring the model won't over-rely on any single data point.
  • Spectrally-Normalized Bounds: The authors highlight recent bounds that scale with the spectral norms of the layers. These are among the first bounds for deep learning that do not automatically explode as the network gets deeper.
  • Ghost Batch Normalization: To solve the "generalization gap" found in large-batch training, the paper discusses "Ghost BN," which allows large-batch training to maintain the generalization benefits of small-batch statistics.

Limitations and Future Work

Despite the progress reviewed, the authors acknowledge several major hurdles:

  • Vacuous Bounds: Most current theoretical bounds are still "vacuous," meaning the mathematically guaranteed error rate is often >100%, even though the actual error is 1%.
  • The Information Bottleneck: The authors point to the "Information Bottleneck" theory as a promising but controversial frontier for explaining how networks compress input data into essential features.
  • Adversarial Vulnerability: There is a disturbing tension between generalization and robustness. DNNs generalize well to natural data but are easily fooled by "adversarial attacks," suggesting our models haven't truly learned the underlying logic of the data.

Summary updated

BibTeX
@misc{jakubovitz2018generalization,
  author = {Daniel Jakubovitz and Raja Giryes and Miguel R. D. Rodrigues},
  title = {{Generalization Error in Deep Learning}},
  year = {2018},
  eprint = {1808.01174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.01174},
}
Figure