Fantastic Generalization Measures and Where to Find Them

Authors: Yiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan, Samy Bengio

Submitted to arXiv on 04 Dec. 2019
Abstract

Generalization of deep networks has been of great interest in recent years, resulting in a number of theoretically and empirically motivated complexity measures. However, most papers proposing such measures study only a small set of models, leaving open the question of whether the conclusion drawn from those experiments would remain valid in other settings. We present the first large scale study of generalization in deep networks. We investigate more then 40 complexity measures taken from both theoretical bounds and empirical studies. We train over 10,000 convolutional networks by systematically varying commonly used hyperparameters. Hoping to uncover potentially causal relationships between each measure and generalization, we analyze carefully controlled experiments and show surprising failures of some measures as well as promising measures for further research.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close
    Constructing Complexity Metrics for Measuring Generalization Ability of Deep Learning Models
    Wantao Wen, Wenjun Ke, Jianhong Feng et al. · 2024 · 2024 10th International Conference on Big Data and Information Analytics (BigDIA) · Not summarized yet
    Abstract

    Deep neural networks have achieved tremendous success in many applications, but their generalization ability remains unexplained. Understanding this can enhance their use in safety-critical applications and guide better model design. A key aspect of this is studying model complexity, which is related to generalization. This paper proposes a technique for constructing complexity metrics to measure the generalization of deep learning models, focusing on convolutional neural networks for image classification tasks. Firstly, we consider complexity metrics based on model structure from statistical learning theory and use them as baseline metrics. Secondly, we summarize and generalize previous met…

  2. Very close
    In Search of Probeable Generalization Measures
    Jonathan Jaegerman, Khalil Damouni, M. S. Hosseini et al. · 2021 · International Conference on Machine Learning and Applications · cited 2 times · Not summarized yet
    Abstract

    Understanding the generalization behaviour of deep neural networks is a topic of recent interest that has driven the production of many studies, notably the development and evaluation of generalization “explainability” measures that quantity model generalization ability. Generalization measures have also proven useful in the development of powerful layer-wise model tuning and optimization algorithms, though these algorithms require specific kinds of generalization measures which can probe individual layers. The purpose of this paper is to explore the neglected subtopic of probeable generalization measures; to establish firm ground for further investigations, and to inspire and guide the deve…

  3. Very close
    Representation Based Complexity Measures for Predicting Generalization in Deep Learning
    Parth Natekar, Manik Sharma · 2020 · arXiv.org · preprint, not peer reviewed · cited 40 times · Not summarized yet
    Abstract

    Deep Neural Networks can generalize despite being significantly overparametrized. Recent research has tried to examine this phenomenon from various view points and to provide bounds on the generalization error or measures predictive of the generalization gap based on these viewpoints, such as norm-based, PAC-Bayes based, and margin-based analysis. In this work, we provide an interpretation of generalization from the perspective of quality of internal representations of deep neural networks, based on neuroscientific theories of how the human visual system creates invariant and untangled object representations. Instead of providing theoretical bounds, we demonstrate practical complexity measur…

  4. Very close Cited by this paper Used in depth by this paper A method it uses
    Exploring Generalization in Deep Learning
    Behnam Neyshabur, Srinadh Bhojanapalli, D. McAllester et al. · 2017 · Neural Information Processing Systems · cited 1,479 times · Not summarized yet
    Abstract

    With a goal of understanding what drives generalization in deep networks, we consider several recently suggested explanations, including norm-based control, sharpness and robustness. We study how these measures can ensure generalization, highlighting the importance of scale normalization, and making a connection between sharpness and PAC-Bayes theory. We then investigate how well the measures explain different observed phenomena.

  5. Very close Cites this paper Uses this paper in depth
    A practical generalization metric for deep networks benchmarking
    Meng-Qing Huang, Hongchuan Yu, Jianjun Zhang · 2024 · Scientific Reports · cited 4 times · Not summarized yet
    Abstract

    There is an ongoing and dedicated effort to estimate bounds on the generalization error of deep learning models, coupled with an increasing interest with practical metrics that can be used to experimentally evaluate a model’s ability to generalize. This interest is not only driven by practical considerations but is also vital for theoretical research, as theoretical estimations require practical validation. However, there is currently a lack of research on benchmarking the generalization capacity of various deep networks and verifying these theoretical estimations. This paper aims to introduce a practical generalization metric for benchmarking different deep networks and proposes a novel tes…

  6. Very close
    On margin-based generalization prediction in deep neural networks
    Coenraad Mouton · 2024 · arXiv.org · preprint, not peer reviewed · cited 1 time · Not summarized yet
    Abstract

    Understanding generalization in deep neural networks is an active area of research. A promising avenue of exploration has been that of margin measurements: the shortest distance to the decision boundary for a given sample or that sample's representation internal to the network. Margin-based complexity measures have been shown to be correlated with the generalization ability of deep neural networks in some circumstances but not others. The reasons behind the success or failure of these metrics are currently unclear. In this study, we examine margin-based generalization prediction methods in different settings. We motivate why these metrics sometimes fail to accurately predict generalization a…

  7. Very close Cited by this paper
    Sensitivity and Generalization in Neural Networks: an Empirical Study
    Roman Novak, Yasaman Bahri, Daniel A. Abolafia et al. · 2018 · International Conference on Learning Representations · cited 534 times · Not summarized yet
    Abstract

    In practice it is often found that large over-parameterized neural networks generalize better than their smaller counterparts, an observation that appears to conflict with classical notions of function complexity, which typically favor smaller models. In this work, we investigate this tension between complexity and generalization through an extensive empirical exploration of two natural metrics of complexity related to sensitivity to input perturbations. Our experiments survey thousands of models with various fully-connected architectures, optimizers, and other hyper-parameters, as well as four different image classification datasets. We find that trained neural networks are more robust to i…

  8. Very close
    Neural Complexity Measures
    Yoonho Lee, Juho Lee, Sung Ju Hwang et al. · 2020 · Neural Information Processing Systems · cited 13 times · Not summarized yet
    Abstract

    While various complexity measures for deep neural networks exist, specifying an appropriate measure capable of predicting and explaining generalization in deep networks has proven challenging. We propose Neural Complexity (NC), a meta-learning framework for predicting generalization. Our model learns a scalar complexity measure through interactions with many heterogeneous tasks in a data-driven way. The trained NC model can be added to the standard training loss to regularize any task learner in a standard supervised learning scenario. We contrast NC's approach against existing manually-designed complexity measures and other meta-learning models, and we validate NC's performance on multiple …

Prior work it builds on

  1. Close Used in depth by this paper A method it uses
    Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Data
    G. Dziugaite, Daniel M. Roy · 2017 · Conference on Uncertainty in Artificial Intelligence · cited 998 times · Not summarized yet
    Abstract

    One of the defining properties of deep learning is that models are chosen to have many more parameters than available training data. In light of this capacity for overfitting, it is remarkable that simple algorithms like SGD reliably return solutions with low test error. One roadblock to explaining these phenomena in terms of implicit regularization, structural properties of the solution, and/or easiness of the data is that many learning bounds are quantitatively vacuous when applied to networks learned by SGD in this "deep learning" regime. Logically, in order to explain generalization, we need nonvacuous bounds. We return to an idea by Langford and Caruana (2001), who used PAC-Bayes bounds…

  2. Close
    Understanding deep learning requires rethinking generalization
    Chiyuan Zhang, Samy Bengio, Moritz Hardt et al. · 2016 · Machine Learning · cited 5,390 times · AI summary available
    Abstract

    Despite their massive size, successful deep artificial neural networks can exhibit a remarkably small difference between training and test performance. Conventional wisdom attributes small generalization error either to properties of the model family, or to the regularization techniques used during training. Through extensive systematic experiments, we show how these traditional approaches fail to explain why large neural networks generalize well in practice. Specifically, our experiments establish that state-of-the-art convolutional networks for image classification trained with stochastic gradient methods easily fit a random labeling of the training data. This phenomenon is qualitatively u…

  3. Close
    Predicting the Generalization Gap in Deep Networks with Margin Distributions
    Yiding Jiang, Dilip Krishnan, H. Mobahi et al. · 2018 · International Conference on Learning Representations · cited 231 times · Not summarized yet
    Abstract

    As shown in recent research, deep neural networks can perfectly fit randomly labeled data, but with very poor accuracy on held out data. This phenomenon indicates that loss functions such as cross-entropy are not a reliable indicator of generalization. This leads to the crucial question of how generalization gap should be predicted from the training data and network parameters. In this paper, we propose such a measure, and conduct extensive empirical studies on how well it can predict the generalization gap. Our measure is based on the concept of margin distribution, which are the distances of training points to the decision boundary. We find that it is necessary to use margin distributions …

  4. Close
    Sharp Minima Can Generalize For Deep Nets
    Laurent Dinh, Razvan Pascanu, Samy Bengio et al. · 2017 · International Conference on Machine Learning · cited 989 times · Not summarized yet
    Abstract

    Despite their overwhelming capacity to overfit, deep learning architectures tend to generalize relatively well to unseen data, allowing them to be deployed in practice. However, explaining why this is the case is still an open area of research. One standing hypothesis that is gaining popularity, e.g. Hochreiter & Schmidhuber (1997); Keskar et al. (2017), is that the flatness of minima of the loss function found by stochastic gradient based methods results in good generalization. This paper argues that most notions of flatness are problematic for deep models and can not be directly applied to explain generalization. Specifically, when focusing on deep networks with rectifier units, we can exp…

  5. Related Used in depth by this paper A method it uses
    On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima
    Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal et al. · 2016 · Machine Learning · cited 3,687 times · Not summarized yet
    Abstract

    The stochastic gradient descent (SGD) method and its variants are algorithms of choice for many Deep Learning tasks. These methods operate in a small-batch regime wherein a fraction of the training data, say $32$-$512$ data points, is sampled to compute an approximation to the gradient. It has been observed in practice that when using a larger batch there is a degradation in the quality of the model, as measured by its ability to generalize. We investigate the cause for this generalization drop in the large-batch regime and present numerical evidence that supports the view that large-batch methods tend to converge to sharp minimizers of the training and testing functions - and as is well kno…

Papers that cite it

  1. Close Uses this paper in depth
    An Empirical Fractal Measure to Predict the Generalization of Deep Neural Networks
    J. Florindo, D. Misturini · 2024 · IEEE International Conference on Systems, Man and Cybernetics · cited 1 time · Not summarized yet
    Abstract

    The prediction of the generalization error in deep neural networks is a fundamental task with important implications, both in theoretical and practical terms. Recently, inspired by the intuitive conjecture that deep neural networks possess some low-dimensional embedding, which is the main responsible for the learning progress, fractal dimension has been presented as a promising measure to describe the intrinsic dimension of this embedding and, as an immediate consequence, also providing more reliable prediction of generalization. Nevertheless, the investigated approaches rely on the indirect modeling of the training dynamics and involves an analysis of the entire trajectory of the parameter …

  2. Close
    Generalization bounds for deep convolutional neural networks
    Philip M. Long, Hanie Sedghi · 2019 · arXiv (Cornell University) preprint · preprint, not peer reviewed · cited 58 times · Not summarized yet
    Abstract

    We prove bounds on the generalization error of convolutional networks. The bounds are in terms of the training loss, the number of parameters, the Lipschitz constant of the loss and the distance from the weights to the initial weights. They are independent of the number of pixels in the input, and the height and width of hidden feature maps. We present experiments using CIFAR-10 with varying hyperparameters of a deep convolutional network, comparing our bounds with practical generalization gaps.

  3. Close Uses this paper in depth
    Generalization Measures for Zero-Shot Cross-Lingual Transfer
    Saksham Bassi, Duygu Ataman, Kyunghyun Cho · 2024 · MRL · Not summarized yet
    Abstract

    Building robust and reliable machine learning systems requires models with the capacity to generalize their knowledge to interpret unseen inputs with different characteristics. Traditional language model evaluation tasks lack informative metrics about model generalization, and their applicability in new settings is often measured using task and language-specific downstream performance, which is lacking in many languages and tasks. To address this gap, we explore a set of efficient and reliable measures that could aid in computing more information related to the generalization capability of language models, particularly in cross-lingual zero-shot settings. Our central hypothesis is that the s…

  4. Close
    On the Limitations of Fractal Dimension as a Measure of Generalization
    Charlie B. Tan, Inés García-Redondo, Qi-Quan Wang et al. · 2024 · Neural Information Processing Systems · cited 5 times · Not summarized yet
    Abstract

    Bounding and predicting the generalization gap of overparameterized neural networks remains a central open problem in theoretical machine learning. There is a recent and growing body of literature that proposes the framework of fractals to model optimization trajectories of neural networks, motivating generalization bounds and measures based on the fractal dimension of the trajectory. Notably, the persistent homology dimension has been proposed to correlate with the generalization gap. This paper performs an empirical evaluation of these persistent homology-based generalization measures, with an in-depth statistical analysis. Our study reveals confounding effects in the observed correlation …

  5. Close
    Leveraging PAC-Bayes Theory and Gibbs Distributions for Generalization Bounds with Complexity Measures
    Paul Viallard, Rémi Emonet, Amaury Habrard et al. · 2024 · International Conference on Artificial Intelligence and Statistics · cited 9 times · Not summarized yet
    Abstract

    In statistical learning theory, a generalization bound usually involves a complexity measure imposed by the considered theoretical framework. This limits the scope of such bounds, as other forms of capacity measures or regularizations are used in algorithms. In this paper, we leverage the framework of disintegrated PAC-Bayes bounds to derive a general generalization bound instantiable with arbitrary complexity measures. One trick to prove such a result involves considering a commonly used family of distributions: the Gibbs distributions. Our bound stands in probability jointly over the hypothesis and the learning sample, which allows the complexity to be adapted to the generalization gap as …

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 6 November 2026.

The illustrated guide to the papers around a paper