TL;DR
This paper analyzes the spectral properties of the Neural Tangent Kernel (NTK) for deep Residual Networks (ResNets). They show that ResNets, unlike standard feed-forward networks, can maintain stable generalization performance with depth by controlling a hyperparameter, offering a theoretical explanation for their success.
What Problem Does This Paper Address?
Deep Residual Networks (ResNets) have revolutionized deep learning, achieving state-of-the-art results on many tasks. However, the theoretical reasons behind their superior performance, especially concerning their ability to train very deep architectures without performance degradation, remain not fully understood. While the Neural Tangent Kernel (NTK) framework has provided insights into the behavior of infinitely wide neural networks, its application to ResNets, particularly concerning their spectral properties and generalization capabilities, has been less explored. This paper aims to bridge this gap by providing a spectral analysis of the ResNet NTK (ResNTK) and comparing it to the NTK of standard feed-forward networks (FC-NTK).
Methods
The authors employ a spectral analysis of the ResNTK. This involves:
- Eigenvalue Decomposition: They derive and analyze the eigenvalues of the ResNTK, focusing on their decay rate with respect to frequency. This is a standard technique in kernel analysis to understand the function space a kernel can represent (its Reproducing Kernel Hilbert Space or RKHS).
- Connection to Spherical Harmonics: They leverage the fact that for inputs on a hypersphere, the eigenfunctions of the ResNTK are spherical harmonics, a known result for FC-NTK as well.
- Asymptotic Analysis: They perform detailed asymptotic analysis of the ResNTK near the boundaries of the input domain (specifically, near 1 and -1 for the dot product of normalized inputs), which is crucial for understanding kernel behavior and generalization.
- Hyperparameter Analysis: They investigate the role of the hyperparameter 'a' that balances residual and skip connections in ResNets, showing how its choice impacts the kernel's spectral properties and stability.
Datasets
The paper uses CIFAR-10 and SVHN datasets for experimental validation of their theoretical findings.
Key Insights and Ideas
- Identical RKHS, Different Norms: The ResNTK and FC-NTK (and the Laplace kernel) span the same Reproducing Kernel Hilbert Space (RKHS), meaning they can represent functions with similar smoothness properties. However, the specific norms induced by these kernels differ, leading to different learning behaviors.
- Controllable Spectral Bias: Unlike FC-NTK, which can become "spiky" and lead to poor generalization with depth, ResNTK's spectral properties (specifically, eigenvalue decay) can be controlled by the hyperparameter 'a'. This allows ResNets to maintain stability and avoid poor generalization.
- Parity Imbalance in Bias-Free ResNets: When bias is removed and the network is deep, ResNTK exhibits a "parity imbalance," favoring even frequencies over odd ones. This is a significant difference from bias-free FC-NTK, where odd frequencies are entirely suppressed.
- ResNets Enable Superior Generalization: The stability of ResNTK with appropriate hyperparameter settings allows for superior generalization compared to deep FC-NTK, which can become degenerate.
Key Results
- Eigenvalue Decay: The eigenvalues of ResNTK decay polynomially with frequency $k$ at a rate of $k^{-d}$, similar to FC-NTK and the Laplace kernel.
- Generalization Bounds: The paper provides theoretical generalization bounds showing that deep ResNets with $0.5 < \gamma \le 1$ (where $\alpha = L^{-\gamma}$) can achieve near-zero generalization error, while deep FC-NTK struggles.
- Experimental Validation: Experiments on CIFAR-10 and SVHN datasets demonstrate that ResNTK with $\alpha = L^{-\gamma}$ (for $\gamma \in \{0.5, 1\}$) maintains stable accuracy across different depths, whereas FC-NTK accuracies degrade significantly. Real network experiments also confirm these findings.
Limitations and Future Work
- Infinite Width Assumption: The analysis is based on the Neural Tangent Kernel, which assumes infinitely wide networks. The authors acknowledge that real-world networks have finite width, and the NTK might only be a partial explanation for their success.
- Optimization Issues: The difference between NTK predictions and actual network performance might be attributed to optimization issues in finite-width networks.
- Convolutional Architectures: The paper focuses on fully connected ResNets. The spectral properties and differences between residual and classical kernels might be more significant in convolutional architectures, suggesting future work in that direction.
- Real Network Dynamics: While experiments show consistency, the NTK framework assumes weights stay near initialization ("lazy training"). Understanding how NTK relates to real neural networks where weights evolve significantly remains an open question.
Summary updated