Properties of the After Kernel
arXiv:2105.10585
Abstract
The Neural Tangent Kernel (NTK) is the wide-network limit of a kernel defined using neural networks at initialization, whose embedding is the gradient of the output of the network with respect to its parameters. We study the "after kernel", which is defined using the same embedding, except after training, for neural networks with standard architectures, on binary classification problems extracted from MNIST and CIFAR-10, trained using SGD in a standard way. For some dataset-architecture pairs, after a few epochs of neural network training, a hard-margin SVM using the network's after kernel is much more accurate than when the network's initial kernel is used. For networks with an architecture similar to VGG, the after kernel is more "global", in the sense that it is less invariant to transformations of input images that disrupt the global structure of the image while leaving the local statistics largely intact. For fully connected networks, the after kernel is less global in this sense. The after kernel tends to be more invariant to small shifts, rotations and zooms; data augmentation does not improve these invariances. The (finite approximation to the) conjugate kernel, obtained using the last layer of hidden nodes, sometimes, but not always, provides a good approximation to the NTK and the after kernel. Training a network with a larger learning rate (while holding the training error constant) produces a better kernel, as measured by the test error of a hard-margin SVM. The after kernels of networks trained with larger learning rates tend to be more global, and more invariant to small shifts, rotations and zooms.
References in corpus (23)
- Scikit-learn: Machine Learning in Python
- Neural Tangent Kernel: Convergence and Generalization in Neural Networks
- Opening the Black Box of Deep Neural Networks via Information
- A Convergence Theory for Deep Learning via Over-Parameterization
- Similarity of Neural Network Representations Revisited
- On Exact Computation with an Infinitely Wide Neural Net
- Prevalence of Neural Collapse during the terminal phase of deep learning training
- Learning Overparameterized Neural Networks via Stochastic Gradient Descent on Structured Data
- On Lazy Training in Differentiable Programming
- SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability
- Toward Deeper Understanding of Neural Networks: The Power of Initialization and a Dual View on Expressivity
- Generalization Bounds of Stochastic Gradient Descent for Wide and Deep Neural Networks
- Scaling Limits of Wide Neural Networks with Weight Sharing: Gaussian Process Behavior, Gradient Independence, and Neural Tangent Kernel Derivation
- Do Wide and Deep Networks Learn the Same Things? Uncovering How Neural Network Representations Vary with Width and Depth
- Are All Layers Created Equal?
- Gradient descent aligns the layers of deep linear networks
- Gradient Descent Maximizes the Margin of Homogeneous Neural Networks
- What Can ResNet Learn Efficiently, Going Beyond Kernels?
- Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networks
- Regularization Matters: Generalization and Optimization of Neural Nets v.s. their Induced Kernel
- The large learning rate phase of deep learning: the catapult mechanism
- Learning Over-Parametrized Two-Layer ReLU Neural Networks beyond NTK
- When does gradient descent with logistic loss interpolate using deep networks with smoothed ReLU activations?