[Paper Review] Disentangling Trainability and Generalization in Deep Neural Networks
This paper disentangles trainability and generalization in wide, deep neural networks by analyzing the Neural Tangent Kernel (NTK) spectrum. It reveals that pooling layers in CNNs significantly improve generalization by reducing the NTK's condition number and bulk eigenvalues, while fully connected networks (FCNs) with global average pooling fail to generalize despite memorizing training data.
A longstanding goal in the theory of deep learning is to characterize the conditions under which a given neural network architecture will be trainable, and if so, how well it might generalize to unseen data. In this work, we provide such a characterization in the limit of very wide and very deep networks, for which the analysis simplifies considerably. For wide networks, the trajectory under gradient descent is governed by the Neural Tangent Kernel (NTK), and for deep networks the NTK itself maintains only weak data dependence. By analyzing the spectrum of the NTK, we formulate necessary conditions for trainability and generalization across a range of architectures, including Fully Connected Networks (FCNs) and Convolutional Neural Networks (CNNs). We identify large regions of hyperparameter space for which networks can memorize the training set but completely fail to generalize. We find that CNNs without global average pooling behave almost identically to FCNs, but that CNNs with pooling have markedly different and often better generalization performance. These theoretical results are corroborated experimentally on CIFAR10 for a variety of network architectures and we include a colab notebook that reproduces the essential results of the paper.
Motivation & Objective
- To characterize the conditions under which deep neural network architectures are trainable and generalize well in the infinite width and depth limit.
- To disentangle trainability from generalization by analyzing the spectrum of the Neural Tangent Kernel (NTK) across different architectures.
- To investigate why certain architectures, such as CNNs with pooling, generalize better than FCNs despite similar memorization capacity.
- To provide theoretical and empirical validation of the role of hyperparameters and architectural choices (e.g., pooling, activation functions) in determining generalization performance.
Proposed method
- Theoretical analysis of the NTK spectrum in the large-depth limit for fully connected networks (FCNs) and convolutional neural networks (CNNs), both with and without global average pooling.
- Derivation of asymptotic expressions for the largest and smallest eigenvalues of the NTK, and the condition number, in terms of network depth, width, and hyperparameters.
- Use of the NTK framework to model gradient descent dynamics analytically, enabling precise prediction of generalization performance.
- Comparison of NTK and NNGP (Neural Network Gaussian Process) predictions to identify depth scales where generalization breaks down or persists.
- Empirical validation on CIFAR-10 using SGD across diverse hyperparameter configurations, including weight initialization variance and depth.
- Systematic sweeping over bias variance and regularization strength to test robustness of theoretical predictions.
Experimental results
Research questions
- RQ1How does the spectrum of the Neural Tangent Kernel (NTK) determine the trainability and generalization of wide, deep neural networks?
- RQ2Why do CNNs with global average pooling generalize better than fully connected networks, even when both can memorize the training set?
- RQ3What is the role of pooling in modifying the NTK's eigenvalue distribution and condition number compared to flattening in deep networks?
- RQ4How do hyperparameters such as weight initialization variance and depth affect the generalization depth-scale in the NTK and NNGP frameworks?
- RQ5Is there a transient depth regime where CNNs with pooling outperform or underperform compared to their fully connected counterparts?
Key findings
- CNNs with global average pooling exhibit a condition number that grows approximately as $ d imes l imes ilde{ ho}^{-l} $, where $ d $ is the pooling size, indicating improved stability and generalization compared to FCNs.
- The bulk eigenvalue of the NTK in pooled CNNs is reduced by a factor of $ d $ compared to FCNs, directly improving generalization performance.
- In the chaotic phase, pooling slows the growth of diagonal NTK terms by a factor of $ d $, improving the predictor $ P( heta) $ by a factor of $ d $, leading to a transient regime where CNN-P outperforms CNN-F.
- In the ordered phase, the condition number of the NTK in pooled CNNs increases by a factor of $ d $, suggesting a transient regime where FCNs outperform CNNs with pooling.
- The generalizable depth-scale for the NTK is $ ilde{ ho}^{-1} = -1/( ext{log}( ho_c^*) - ext{log}( ho_1)) $, which is smaller than that of the NNGP, indicating earlier generalization failure in NTK dynamics.
- Empirical results on CIFAR-10 confirm theoretical predictions: networks with pooling generalize better across a wide range of hyperparameters, and generalization depth-scales are robust to variations in bias variance and regularization strength.
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.