[Paper Review] Representation Based Complexity Measures for Predicting Generalization in Deep Learning
This paper proposes post-hoc complexity measures based on the quality of deep neural network representations—specifically consistency, robustness, and separability—to predict generalization performance. Using the Davies-Bouldin Index for consistency, a label-wise Mixup-based robustness measure, and margin distribution for separability, the authors achieve state-of-the-art performance in the NeurIPS 2020 Generalization in Deep Learning competition, demonstrating high predictive power across diverse architectures and hyperparameters with minimal computational cost.
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 measures which can be computed ad-hoc to uncover generalization behaviour in deep models. We also provide a detailed description of our solution that won the NeurIPS competition on Predicting Generalization in Deep Learning held at NeurIPS 2020. An implementation of our solution is available at https://github.com/parthnatekar/pgdl.
Motivation & Objective
- To address the lack of practical, post-hoc measures that predict generalization in overparameterized deep neural networks.
- To bridge the gap between neuroscientific theories of invariant human visual representations and deep learning generalization.
- To develop intuitive, computationally efficient complexity measures that are robust to architectural and hyperparameter variations.
- To outperform existing theoretical and empirical bounds in predicting generalization gap on real-world benchmarks.
Proposed method
- Measures representation consistency using the Davies-Bouldin Index, which quantifies intra-cluster compactness and inter-cluster separation in internal layer activations.
- Evaluates robustness via a label-wise Mixup technique that interpolates features and labels, probing invariance in representations without external data perturbations.
- Assesses separability using the margin distribution between predicted and true class scores, with a perturbed variant enhancing expressiveness.
- Combines scale-invariant measures—DB Index and label-wise Mixup—into a product score to improve generalization prediction.
- Validates the approach on the NeurIPS 2020 competition data, using only 1% of training samples for estimation to ensure computational efficiency.
- Optimizes design choices based on data and architecture knowledge, achieving high scores on both public and private test sets.
Experimental results
Research questions
- RQ1Can representation quality metrics—specifically consistency, robustness, and separability—predict generalization in deep neural networks across diverse architectures and hyperparameters?
- RQ2How do neuroscientific principles of invariant and disentangled representations in the human visual system relate to generalization in deep learning?
- RQ3Can post-hoc complexity measures be designed to be both intuitive and effective for practitioners without requiring access to training hyperparameters?
- RQ4To what extent do scale-invariant, relative measures outperform absolute measures like spectral norm or sharpness in generalization prediction?
- RQ5Can a small subset of training data (e.g., 1%) be sufficient to estimate generalization performance using representation-based complexity measures?
Key findings
- The proposed complexity measures, particularly the product of Davies-Bouldin Index and label-wise Mixup, achieved the highest score on the final task of the NeurIPS 2020 competition on Predicting Generalization in Deep Learning.
- Measures based on representation quality—consistency, robustness, and separability—were predictive of generalization gap across a wide range of model architectures and hyperparameters.
- Using only 1% of training samples was sufficient to produce reliable estimates of generalization performance, demonstrating high computational efficiency.
- The label-wise Mixup variant proved effective in probing robustness and invariance in representations, outperforming standard Mixup in diagnostic utility.
- The perturbed margin distribution was found to be more expressive in capturing generalization behavior than the standard margin alone.
- The method achieved better mutual information scores than baseline measures such as spectral norm and sharpness on CIFAR-10 and SVHN datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.