Source-linked AI summary

Generalization Error in Deep Learning

Daniel Jakubovitz, Raja Giryes, Miguel R. D. Rodrigues

arXiv:1808.01174v3cs.LGcs.AIstat.ML

TL;DR

Although deep neural networks often generalize well, what explains this ability remains an open question. This article reviews theories, bounds, and empirical findings about DNN generalization. It concludes that tighter bounds and a more comprehensive explanation are still needed.

  • Problem

    The source of DNN generalization remains unclear, including how networks can generalize well despite being capable of memorizing training data.

    Source: §4 · p. 10, §4.1 · p. 12
  • Method

    The article reviews theoretical and empirical work on DNN generalization, including bounds and findings about training and generalization.

    Source: §4 · p. 10, §6 · p. 29
  • Results

    The review describes DNNs as often attaining low generalization error, while noting that implicit regularization techniques may help but are not indispensable for good generalization.

    Source: §4.1 · p. 11, §6 · p. 29
  • Takeaways & Limitations

    A more comprehensive theory is needed to explain why DNNs generalize well despite their capacity to memorize training data.

    Source: §4.1 · p. 12

    Current accounts still need tighter bounds and more explanation of DNN generalization.

    Source: §4.1 · p. 12

Abstract

from arXiv · show

Deep learning models have lately shown great performance in various fields such as computer vision, speech recognition, speech translation, and natural language processing. However, alongside their state-of-the-art performance, it is still generally unclear what is the source of their generalization ability. Thus, an important question is what makes deep neural networks able to generalize well from the training set to new data. In this article, we provide an overview of the existing theory and bounds for the characterization of the generalization error of deep neural networks, combining both classical and more recent theoretical and empirical results.

1 Introduction

Deep neural networks perform well across many tasks, but the source of their generalization remains unclear. The article surveys statistical learning theory approaches to characterize their generalization error and improve understanding of their behavior.

1 Introduction

  • DNNs achieve strong performance across computer vision, speech recognition, speech translation, and natural language processing, while the source of that success remains elusive.Their training involves non-convex optimization, commonly using stochastic gradient descent, yet often yields both small training error and good generalization.Source: §1 · p. 1
  • The article focuses on statistical learning theory approaches to explain DNN generalization, alongside bounds and techniques aimed at reducing generalization error.The overview emphasizes prominent recent approaches and combines classical and newer theoretical work with empirical findings.Source: §1 · pp. 1–2
  • Classical capacity measures such as VC-dimension and Rademacher complexity do not explain DNN generalization, despite DNNs being over-parameterized relative to their training data.The article surveys alternative approaches including PAC-Bayes theory, algorithm stability, and robustness.Source: §1 · p. 2

2 The learning problem

This section establishes the learning setup and the quantities used to discuss generalization, then introduces classical capacity measures and other frameworks for analyzing learning algorithms.

2 The learning problem

  • Generalization error compares a model’s empirical training loss with its expected test loss, while empirical test loss approximates expected loss when the data distribution is unknown.The article also defines an empirical approximation using training and test losses.Source: §2 · p. 3
  • Empirical risk minimization trains on a finite sample, which can overfit those samples and represent the underlying distribution poorly.Over-fitting means fitting training specifics too closely; model capacity describes the complexity of functions it can represent.Source: §2 · pp. 3–4
  • The VC-dimension of f is the maximum number of data samples in a set that f shatters; if no such maximum exists, its VC-dimension is infinite.Source: §2 · p. 4
  • The PAC-Bayes framework bounds the generalization error of stochastic classifiers by relating a data-independent prior to a posterior that depends on the training set.The section presents a theorem that holds with probability at least 1 − δ over randomly drawn training samples.Source: §2 · p. 6
  • Algorithm robustness concerns similar performance on nearby training and test samples, while sharpness measures the loss landscape around a training-loss minimizer.The section describes sharpness through Hessian eigenvalues and an alternative local maximization over the input space or random manifolds.Source: §2 · pp. 6–7
  • A compression-based approach derives generalization bounds for classifiers that are compressible with an output margin.The section introduces compressibility through a classifier represented via a class of classifiers uniquely determined by parameters.Source: §2 · p. 7

3 Deep neural networks

This section describes feed-forward deep neural networks and their layers, outputs, and training. It also outlines regularization as a way to discourage over-fitting and promote stability.

3 Deep neural networks

  • A feed-forward DNN has hidden layers followed by an output layer, with data propagating in one direction; fully connected and convolutional layers are common variants.In a fully connected network, each neuron connects to every neuron in the preceding layer; a network with at least one convolutional layer is a CNN.Source: §3 · p. 7
  • Each fully connected layer applies a weight transformation and bias followed by a non-linear activation, and classification networks commonly use a softmax output.The section names ReLU, sigmoid, and tanh among commonly used activation functions; softmax outputs are interpreted as class probabilities.Source: §3 · pp. 7–9
  • Training minimizes a loss comparing true and estimated labels, usually through iterative gradient descent when a closed-form solution is unavailable or too costly.The learning rate controls step size, and mini-batches can reduce the data used in each iteration; back-propagation computes gradients through network layers.Source: §3 · p. 9
  • Regularization discourages over-fitting and promotes stability, with explicit techniques modifying the loss and implicit techniques influencing learning indirectly.Examples include weight penalties and dropout for explicit regularization, and early stopping, data augmentation, architecture, and optimization choices for implicit regularization.Source: §3 · p. 10

4 Generalization error in deep learning

The section reviews theories, complexity measures, and empirical findings addressing why deep neural networks generalize, an important question for building reliable and robust architectures. It highlights limits of existing explanations, including the fact that regularization is not always necessary for good generalization.

4 Generalization error in deep learning

  • The review surveys bounds, complexity measures, and studies of training and optimization as prominent approaches to the open question of DNN generalization.Understanding what affects generalization is presented as important for obtaining reliable and robust architectures.Source: §4 · p. 10

4.1 Understanding deep learning requires rethinking generalization

  • Explicit regularization is neither necessary nor sufficient for controlling DNN generalization, and implicit techniques may help but are not indispensable.Explicit methods can reduce Rademacher complexity without necessarily improving generalization; the measure often fails to capture DNN capabilities.Source: §4.1 · p. 11
  • DNNs can fit random labels with zero training error, while a two-layer ReLU network with 2N + D weights can represent any function on N samples in D dimensions.Training on random labels or shuffled data remains relatively easy and increases training time by only a small constant factor.Source: §4.1 · p. 11

4.2 Exploring generalization in deep learning

  • A parameter-linear VC-dimension bound is too loose for over-parameterized DNNs, while norm-based measures offer a different way to assess capacity.Table 2 presents four norm-based measures that use a lenient classification-margin definition.Source: §4.2 · pp. 12–13, Table 2 · p. 12
  • In VGG networks trained on CIFAR-10, the examined norm measures are larger for random-label training than for true-label training, despite zero training error.The review presents this pattern as evidence that the measures can explain generalization differences.Source: §4.2 · p. 13
  • Lipschitz-based bounds are exponentially loose in input dimension and network depth, so bounding a network’s Lipschitz constant alone does not provide reasonable capacity control.The review describes these bounds as direct consequences of bounding weight norms.Source: §4.2 · p. 13
  • Sharpness alone cannot capture DNN generalization, but expected sharpness combined with weight norms can provide capacity control that explains observed phenomena.Source: §4.2 · p. 13
  • A unit-wise capacity measure based on changes in input weights from initialization yields a tighter generalization bound for two-layer ReLU networks, while comprehensive theory remains an active research area.Source: §4.2 · p. 13

4.3 A PAC-Bayesian approach to spectrally-normalized margin bounds for neural networks

This section surveys margin-based generalization bounds for neural networks, including approaches using weight perturbations, spectral complexity, and PAC-Bayes optimization. The bounds incorporate factors such as network structure, margins, and training-set size.

4.3 A PAC-Bayesian approach to spectrally-normalized margin bounds for neural networks

  • A weight-perturbation bound links changes in network parameters to output changes, yielding a ReLU-network generalization bound under a margin condition.The perturbation result leads to an upper bound on allowable parameter changes for a desired margin.Source: §4.3 · pp. 13–14
  • The bound in (32) tightens with larger margins and training sets, and loosens with more layers or a larger input-domain parameter B [25].It incorporates layer count, weight spectral norms, neuron count, input-domain size, classification margin, and training-set size.Source: §4.3 · p. 14
  • A margin-based bound using spectral complexity depends on reference matrices and combines a network’s spectral norms with a correction factor [26].The spectral complexity is defined using reference matrices with the dimensions of the network’s weight matrices and Lipschitz nonlinearities.Source: §4.3 · p. 15
  • A PAC-Bayes approach optimizes a stochastic classifier’s posterior to obtain non-vacuous generalization bounds for deep stochastic neural networks.The described procedure updates network weights and variances using gradient estimates of an upper bound.Source: §4.3 · p. 15

4.4 Stability and generalization

This section relates algorithm stability under changes to training data to generalization error. It presents stability-based bounds and reports conditions under which stochastic gradient methods are uniformly stable.

4.4 Stability and generalization

  • Stability bounds relate empirical and expected loss when removing or replacing training samples, with definitions ranging from point-wise to uniform stability.Uniform stability is described as a stronger notion that leads to tight bounds.Source: §4.4 · pp. 15–16
  • For bounded losses, Theorem 16 gives a high-probability bound for algorithms with hypothesis stability and point-wise hypothesis stability.Theorem 17 separately gives bounds under uniform stability.Source: §4.4 · p. 17
  • When uniform stability scales as 1/N, the stability bounds are tight for several algorithms, including K-NN with 0-1 loss and SVM with Hinge loss.Bounds under regularization can be controlled by the regularization parameter.Source: §4.4 · p. 17
  • Under stated loss-function and step-size assumptions, stochastic gradient methods are uniformly stable, with stability scaling as 1/N when constant factors are omitted.The loss is assumed bounded, Lipschitz, and smooth, and the step sizes are monotonically non-increasing.Source: §4.4 · pp. 17–18

4.5 Robustness and generalization

This section presents robustness-based bounds and connections between weak robustness and generalization. It also describes limitations of a robustness bound whose dependence on intrinsic data dimension makes it loose.

4.5 Robustness and generalization

  • For i.i.d. samples, robustness yields a high-probability generalization-error bound.The bound assumes the loss is non-negative and uniformly bounded above.Source: §4.5 · p. 18
  • Pseudo-robustness requires the robustness condition to hold only for a subset of training samples and is stated to characterize asymptotic generalizability.The associated bound assumes non-negative, uniformly bounded loss.Source: §4.5 · pp. 18–19
  • An algorithm generalizes with respect to a sample if and only if it is weakly robust with respect to that sample.The section also states the probability-one analogue for asymptotic weak robustness.Source: §4.5 · p. 19
  • For the neural-network example, the number of neurons in each layer does not affect robustness or, consequently, test error.The section connects robustness to covering numbers and relates the framework to the data model.Source: §4.5 · p. 20
  • The bound in scales exponentially with the intrinsic dimension of the data, making it rather loose; a tighter bound is needed to better explain DNN classifiers’ generalization capabilities.Source: §4.5 · p. 20

4.6 Stronger generalization bounds for deep nets via a compression approach

This section reviews compression-based generalization bounds for deep networks. It describes noise stability, helper-string compression, and reported bounds and empirical comparisons.

4.6 Stronger generalization bounds for deep nets via a compression approach

  • Gaussian noise injected into network layers has rapidly decaying impact on subsequent layers, supporting layer-wise compression and noise-stability-based generalization bounds.The compression approach is described as a re-parameterization that reduces the effective number of network parameters.Source: §4.6 · p. 20
  • A helper string allows compression of the difference between trained weights and fixed arbitrary numbers rather than compression of the weights themselves, yielding tighter bounds such as.Source: §4.6 · p. 21
  • A theorem formalizes a generalization result for classifiers that are compressible with respect to a class using trainable parameters and a helper string.The stated setup limits the parameter set to q parameters, each with at most r discrete values.Source: §4.6 · p. 21
  • The proposed deep-network compression algorithm uses a variation of matrix projection, and its bound is reported tighter than familiar weight-matrix-norm product bounds.A complementary approach reports that overfitting models have limited compressibility and require more bits to save.Source: §4.6 · p. 21

4.7 Train faster, generalize better: stability of stochastic gradient descent

The section reviews how SGD stability can support generalization under conditions on smoothness, step sizes, and training duration. It also describes how regularization and related analyses connect stability to generalization.

4.7 Train faster, generalize better: stability of stochastic gradient descent

  • SGD is argued to generalize well when a smooth objective and sufficiently small number of steps make the method stable; training duration matters because prolonged training can memorize data.Rapid fitting with reasonably few iterations is described as indicative of good generalization.Source: §4.7 · pp. 21–22
  • For non-convex neural networks, SGD can take as many as N^c steps, for small c > 1, and still achieve good generalization.The cited analysis also reports arbitrary-duration stability for strictly convex losses and a stability measure that decreases with the sum of step sizes in the convex case.Source: §4.7 · p. 22
  • When iterations are linear in sample size, the generalization error is bounded by a function vanishing with sample size, so short training can prevent over-fitting without explicit regularization.The section also presents weight decay, gradient clipping, dropout, and projection as regularization methods; dropout decreases the objective's effective Lipschitz constant.Source: §4.7 · p. 22
  • Dropout bounds the gradient update in terms of the objective's Lipschitz constant, and this upper bound is said to enhance learning-algorithm stability.The review also summarizes results on logistic regression, two-layer ReLU networks, and multi-branch architectures as related analyses of SGD and generalization.Source: §4.7 · pp. 22–23

4.8 On large-batch training for deep learning: generalization gap and sharp minima

This section reviews evidence linking large mini-batches to higher generalization error and sharp minima, while small batches are associated with flatter minima and better generalization. It also describes proposed explanations and mitigation methods.

4.8 On large-batch training for deep learning: generalization gap and sharp minima

  • Large mini-batches are associated with sharp minima and higher generalization error, while small mini-batches are associated with flat minima and better generalization.The objective value at the minimum is often similar across the two batch sizes despite the difference in sharpness.Source: §4.8 · p. 23
  • One proposed explanation is that gradient noise from small batches helps optimization reach flatter minima, whereas large batches may lack enough noise to escape sharp minima [14].Other proposed explanations include over-fitting, attraction to saddle points, or less exploration by large batches.Source: §4.8 · pp. 23–24
  • Across six networks, small-batch training correlated with low sharpness and a smaller test–training error difference; the analysis used an alternative sharpness measure due to Hessian-computation overhead.Large batches were described as less able to evade undesired basins of attraction.Source: §4.8 · pp. 23–24
  • Data augmentation, conservative training, and robust training can improve large-batch performance, but their influence on sharpness and generalization error is limited [14].Large batches are also described as beneficial for parallelization and faster training.Source: §4.8 · p. 24

4.9 Sharp minima solutions to the training of DNNs can generalize for deep nets

The review highlights that flatness is not a reliable explanation of generalization without a precise definition, since re-parameterization can make ReLU-network minima arbitrarily sharper. It also describes evidence that adjusting training can close the large- versus small-batch generalization gap.

4.9 Sharp minima solutions to the training of DNNs can generalize for deep nets

  • For ReLU networks, re-parameterization can make minima arbitrarily sharper, so flatness alone cannot explain generalization without specifying its definition.Different definitions of flatness can yield different conclusions, even though empirical evidence links flat minima with good generalization.Source: §4.9 · p. 24

4.10 Train longer, generalize better: closing the generalization gap in large batch training of neural networks

  • Adjusting learning rate and using batch normalization can substantially reduce the large- versus small-batch generalization gap; the review also reports a claim that it can be eliminated by adapting training iterations.The account links the initial high-learning-rate phase and longer training in that regime to reaching farther environments in the objective-function space.Source: §4.10 · p. 25
  • Ghost Batch Normalization obtains statistics on small virtual batches and can decrease generalization error without increasing the total number of parameter updates.The method is presented for training with large mini-batches.Source: §4.10 · p. 25
  • Continuing training after test error plateaus can precede a later test-error decrease when the learning rate is reduced; extending large-batch training by the batch-size ratio completely closed the reported gap.The extension factor is |Blarge|/|Bsmall| times the original training epochs.Source: §4.10 · p. 26

4.11 Generalization error of invariant classifiers

The section reviews how invariance to transformations can reduce generalization error, and then discusses adversarial vulnerability and Jacobian-based approaches to generalization and robustness.

4.11 Generalization error of invariant classifiers

  • An invariant classifier may have generalization error up to a factor T smaller than a non-invariant method when it is invariant to T transformations [38].The section defines invariance through an invariant embedding of transformed inputs.Source: §4.11 · p. 26

4.12 Generalization error and adversarial attacks

  • Despite typically low generalization error, DNNs can be fooled by small, often imperceptible adversarial perturbations that can transfer across models.The review notes that this vulnerability is not unique to deep neural networks.Source: §4.12 · p. 26
  • Jacobian regularization is reported to reduce generalization error and improve adversarial robustness, while robust learning can require substantially more samples than standard learning.The review also notes greater robustness to perturbations near the training-data manifold and a correlation with generalization capabilities.Source: §4.12 · pp. 26–27

5 Open problems

The article identifies open questions about how memorization, data structure, robustness, and other settings relate to DNN generalization. It argues that these areas need further study.

5.1 Problem 1: Generalization and memorization

  • Existing theories do not explain why DNNs can memorize random training data yet generalize well, motivating a comprehensive account of memorization and generalization.The authors also note that generalization depends on the training dataset, and suggest data-model assumptions may yield better bounds.Source: §5.1 · p. 27

5.2 Problem 2: Generalization and robustness

  • Generalization beyond the training distribution, cross-task adaptation, transfer learning, and design guidance for robustness remain open questions.The authors raise a daylight-to-nighttime image example and ask how learned features encode information relevant to generalization.Source: §5.2 · pp. 27–28

5.3 Problem 3: Generalization and adversarial examples

  • A comprehensive theory of generalization for adversarial examples remains an active research need despite suggested explanations.Source: §5.3 · p. 28

5.4 Problem 4: Generalization error of generative models

  • For generative models, open questions include which distributions can be learned under which conditions and whether manufactured training data improves generalization.The section discusses GANs and VAEs as generative-model examples.Source: §5.4 · pp. 28–29

5.5 Problem 5: Generalization error and the information bottleneck

  • The information bottleneck links layer-wise input/output mutual information to a compression–prediction trade-off, prompting further study of its connections to information theory and representation learning.Source: §5.5 · p. 29

6 Conclusions

The article reviews theories and findings on DNN generalization, while emphasizing that the source of these models’ capabilities remains elusive. It concludes that more comprehensive theories are still needed.

  • The review synthesizes fundamental work and newer theoretical explanations of DNN generalization, including how different parameters influence performance.Source: §6 · p. 29
  • It identifies open problems spanning memorization, robustness, adversarial attacks, generative models, and the information bottleneck.Other settings requiring theoretical research include multimodal, multitask, and incremental learning, as well as network capacity and optimization.Source: §6 · p. 29
  • The authors conclude that further work is needed for more comprehensive theories and a better understanding of DNN generalization.Source: §6 · p. 29
Loading 1808.01174v3…