[Paper Review] Predicting the Generalization Gap in Deep Networks with Margin Distributions
This paper introduces a margin-distribution based measure across multiple layers to predict the generalization gap of deep networks, showing strong correlation with held-out accuracy on CIFAR-10/100 and outperforming several bounds. The approach uses normalized margin statistics concatenated across layers and a simple linear predictor.
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 at multiple layers of a deep network. On the CIFAR-10 and the CIFAR-100 datasets, our proposed measure correlates very strongly with the generalization gap. In addition, we find the following other factors to be of importance: normalizing margin values for scale independence, using characterizations of margin distribution rather than just the margin (closest distance to decision boundary), and working in log space instead of linear space (effectively using a product of margins rather than a sum). Our measure can be easily applied to feedforward deep networks with any architecture and may point towards new training loss functions that could enable better generalization.
Motivation & Objective
- Motivate and quantify the generalization gap in deep networks where training loss is small and traditional losses/bounds fail to predict generalization.
- Develop a margin-distribution based measure that captures information across multiple layers to predict generalization gap.
- Normalize and summarize layer-wise margin distributions to form a compact feature set for regression.
- Demonstrate the predictive power of the proposed measure across architectures (CNNs and ResNets) and datasets (CIFAR-10/100).
- Propose that margin-based measures could inspire new loss functions or training techniques for better generalization.
Proposed method
- Define layer-wise margin distances using a first-order Taylor approximation to distance to the decision boundary (Eq. 3).
- Normalize margins by the square root of the total variation (empirical covariance trace) of layer activations (Eq. 5).
- Construct margin distributions at each layer and summarize them with quartiles and fences (5 statistics per layer).
- Concatenate layer-wise signatures into a total signature vector theta (typically using four layers: input and three hidden).
- Predict the generalization gap with a linear model hat{g} = a^T phi(theta) + b, comparing phi(x)=x and phi(x)=log(x).
- Evaluate predictive power using R^2 on held-out model pools via k-fold (k=10) and report adjusted R^2 as model fit measure.
Experimental results
Research questions
- RQ1Can margin distributions at hidden layers predict the generalization gap better than output-layer margins or norm-based bounds?
- RQ2Does normalizing margins and aggregating layer-wise margin information improve generalization gap prediction?
- RQ3How many and which layers are needed to achieve accurate predictions across architectures?
- RQ4Can a simple linear model on transformed margin signatures robustly predict generalization gap across datasets and architectures?
Key findings
- Normalized, multi-layer margin distributions correlate strongly with generalization gap, improving prediction over output-margin baselines.
- Using quartile-based signatures with log transformation yields high predictive power (adjusted R^2 values shown in experiments).
- Margin information from hidden layers is crucial for predictive accuracy, not just margins at the input or output layers.
- The proposed margin-based predictor outperforms Bartlett et al. (2017) and other baselines in predicting generalization gap on CIFAR-10/100 with CNNs and ResNets.
- The approach applies to feedforward networks including ResNets and suggests potential for new loss functions to improve generalization.
Better researchstarts right now
From reading papers to final review, dramatically reduce your research time.
No credit card · Free plan available
This review was created by AI and reviewed by human editors.