Abstract
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.
Introduction
Despite the empirical success of deep learning, the selection of network architectures and hyperparameters remains largely a heuristic process. A central challenge is predicting whether a specific configuration will converge (trainability) and whether the resulting model will perform well on new data (generalization). This work provides a unified theoretical framework to address these questions by analyzing the Neural Tangent Kernel (NTK) in the limit of infinite width and large depth.
The NTK and Large-Depth Asymptotics
In the infinite-width limit, the training dynamics of a neural network are governed by the NTK. As networks become deeper, the properties of this kernel evolve. We characterize these properties using two primary metrics:
- Condition Number ($\kappa$): The ratio of the largest to the bulk eigenvalues of the NTK. A high $\kappa$ indicates a poorly conditioned kernel, making the network difficult to train.
- Mean Predictor ($P(\Theta)$): A metric quantifying the network's dependence on training data. If $P(\Theta)$ decays to zero as depth increases, the network "forgets" the data and loses its ability to generalize.
The Ordered vs. Chaotic Trade-off
Our analysis reveals a fundamental tension between trainability and generalization across two distinct phases of hyperparameter space:
The Chaotic Phase
In the chaotic phase (characterized by high weight variance), networks are highly trainable. The condition number $\kappa$ quickly converges toward 1, meaning the NTK is perfectly conditioned for gradient descent.
However, this trainability comes at a cost. At great depths, the network acts like a hash function, where inputs become uncorrelated. The generalization metric $P(\Theta)$ decays exponentially, meaning the network can memorize the training set but fails to generalize to unseen data.
The Ordered Phase
Conversely, in the ordered phase (low weight variance), networks maintain data dependence and generalize well if they can be trained. However, the condition number $\kappa$ explodes exponentially with depth, leading to vanishing gradients and making the network mathematically untrainable beyond a certain depth.
Architectural Impact: The Role of Pooling
A key finding of our work is the impact of architectural choices on these phases. We prove that CNNs without global average pooling (CNN-F) behave almost identically to fully connected networks (FCNs). However, adding Global Average Pooling (CNN-P) fundamentally reshapes the NTK spectrum. Pooling improves generalization in the chaotic phase but significantly increases the difficulty of training in the ordered phase, demonstrating that pooling is more than just a heuristic—it is a critical determinant of the kernel's properties.
Conclusion
By disentangling the mechanisms of trainability and generalization through the lens of the NTK, we provide a map of the "cliffs" in hyperparameter space where deep learning performance collapses. These results, validated on CIFAR-10, suggest that architectural innovations like pooling and dropout serve as vital regularizers that manage the trade-off between a network's ability to learn and its ability to generalize.
Summary updated