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

Generalization in Deep Learning

Kenji Kawaguchi, Leslie Pack Kaelbling, Yoshua Bengio · DOI

TL;DR

This paper reconciles the "apparent paradox" in deep learning: why models with enough capacity to memorize random noise still generalize remarkably well on real-world data. The authors provide new theoretical bounds that don't rely on model capacity and introduce a novel regularization method, DARC, that directly improves generalization by smoothing the learned hypothesis.

What Problem Does This Paper Address?

Traditional statistical learning theory suggests that a model's ability to generalize—to perform well on new, unseen data—is tied to its "capacity" or complexity. If a model is too complex (like a deep neural network with millions of parameters), it should theoretically overfit the training data.

However, recent empirical work (notably Zhang et al., 2017) showed that deep learning models can perfectly memorize training datasets with completely random labels, yet they still generalize well when trained on natural images. This created a crisis in the field: if our standard measures of complexity (like VC dimension or Rademacher complexity) suggest these models should fail, why do they work so well? The authors aim to bridge this gap between pessimistic theory and successful practice.

Methods

The authors tackle the problem through three main avenues:

  1. Rethinking Generalization: They prove that even simple linear models can be constructed to memorize any training data with arbitrarily large weight norms while still achieving near-zero test error. This demonstrates that "conventional wisdom" about weight norms and capacity is insufficient to explain generalization.
  2. Validation-Based Bounds: They propose using the validation set to provide "non-vacuous" (mathematically meaningful) generalization guarantees. Unlike training-based bounds, these remain tight regardless of how complex the model architecture is.
  3. Direct Path Analysis: For neural networks with ReLU activations and max-pooling, they decompose the generalization gap into specific terms: the norm of "path weights," the concentration of the dataset in the learned feature space, and the alignment (angles) between weights and data.
  4. Two-Phase Training: To prove tighter probabilistic bounds, they introduce a procedure where the "feature-extracting" part of the network is frozen after training on a subset of data, while only the final output weights are trained on the full set.
  5. DARC Regularization: Based on their theory, they propose Directly Approximately Regularizing Complexity (DARC). This adds a term to the loss function that penalizes the maximum aggregate activation of the final layer, effectively encouraging the model to find "smoother" solutions.

Datasets

The authors validated their theoretical insights and the DARC regularizer using standard computer vision benchmarks:

  • MNIST: Handwritten digits (including a "No Data Augmentation" variant).
  • CIFAR-10: Natural images across 10 classes.
  • ImageNet: Mentioned in the context of how larger validation sets could further tighten their proposed bounds.

Key Insights and Ideas

  • The Instance vs. The Set: The most profound insight is illustrated in Figure 1. Traditional theory analyzes how an algorithm performs over a set of all possible distributions and datasets ($\mathcal{P} \times D$). In contrast, practitioners care about a specific distribution and dataset (a single point in that space). A "bad" algorithm for the whole space can be a "good" algorithm for a specific, natural problem instance.
Figure 1: An illustration of differences in assumptions. Statistical learning theory analyzes the generalization behaviors of fA(S) over randomly-drawn unspecified datasets S ∈D according to some unspecified distribution P(X,Y ) ∈P. Intuitively, statistical learning theory concerns more about questions regarding a set P × D because of the unspecified nature of (P(X,Y ), S), whereas certain empirical studies (e.g., Zhang et al. 2017) can focus on questions regarding each specified point (P(X,Y ), S) ∈P × D.
  • Capacity is Not Destiny: The paper argues that small capacity, stability, and robustness are sufficient for generalization, but not necessary. A model can have overwhelming capacity and be unstable, yet still generalize if the specific alignment between the model and the data distribution is favorable.
  • Deep-Path Feature Learning: Generalization is easier if the model can "concentrate" the data in its internal representation. Even if the raw input data is messy, the training process can learn a feature space where the data points are well-behaved, leading to a smaller generalization gap.

Key Results

  • DARC Effectiveness: The DARC1 regularizer consistently improved performance over baseline models. On MNIST, it reduced test error from 0.26% to 0.20%. On CIFAR-10, it improved error from 3.52% to 3.43%.
  • Two-Phase Training: The authors showed that even when freezing the feature-extracting weights ($\omega_\sigma$) after seeing only 5% of the data ($\alpha = 0.05$), the model could still achieve competitive test accuracy compared to standard training. This supports their theory that the dependence of features on the specific training samples isn't as "bad" for generalization as previously feared.
  • Non-Vacuous Bounds: The paper provides a framework for generalization bounds that are numerically tight enough to be useful in practice (e.g., a guarantee that the generalization gap is less than 7%), whereas traditional bounds often yield values greater than 100%.

Limitations and Future Work

  • Loss Function Specificity: Much of the direct analysis for neural networks (Theorem 7) is specific to squared loss. While they provide a version for 0-1 loss (Theorem 9), further work is needed to generalize these path-based insights to other common loss functions like cross-entropy.
  • Human Intelligence in the Loop: The authors note that human researchers are very good at finding architectures that generalize well. They suggest that "Open Problem 3"—characterizing the role of human-designed priors (like convolution or hierarchy) in generalization—is a vital next step for the field.
  • Computational Cost: While DARC1 is computationally cheap, the two-phase training procedure used for theoretical verification roughly doubles the training cost, making it less ideal for standard production use without further optimization.

Summary updated

BibTeX
@misc{kawaguchi2017generalization,
  author = {Kenji Kawaguchi and Leslie Pack Kaelbling and Yoshua Bengio},
  title = {{Generalization in Deep Learning}},
  year = {2017},
  eprint = {1710.05468},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.05468},
}
Figure