Overview
Deep Kernel Machines (DKMs) offer a theoretical alternative to neural networks capable of representation learning, yet they have historically underperformed standard deep learning models. This paper introduces Stochastic Kernel Regularisation (SKR)—a dropout-like technique for Gram matrices—alongside numerical stability tweaks that enable faster, lower-precision training. These upgrades push DKM performance to a new state-of-the-art of 94.5% on CIFAR-10, matching Adam-trained ResNets and demonstrating that kernel methods can rival neural networks when equipped with proper representation learning.
The Problem: Representation Learning in Kernel Methods
In deep learning theory, Neural Network Gaussian Processes (NNGPs) are frequently used to study infinite-width neural networks. However, NNGPs consistently underperform finite, real-world neural networks. The prevailing hypothesis is that NNGPs lack representation learning—their kernels are fixed before training, whereas standard neural networks adapt their internal features to the task at hand.
Deep Kernel Machines (DKMs) were recently introduced to address this limitation. DKMs are entirely kernel-based (lacking weights or features, relying only on Gram matrices) but are mathematically designed to learn representations from data. While previous Convolutional DKMs achieved a respectable 92.7% on CIFAR-10, they still suffered from overfitting and lagged behind standard ResNets (~95%). Furthermore, because kernel operations are notoriously unstable, early DKMs had to be trained using slow, double-precision (FP64) arithmetic. The authors set out to close the accuracy gap with neural networks and accelerate training to make DKMs more practical.
Methodology: Regularisation and Approximation
The authors introduce two major modifications to the Convolutional DKM architecture:
- Stochastic Kernel Regularisation (SKR): In previous DKMs, the learned intermediate representations (Gram matrices) were deterministic, leading to severe overfitting. The authors introduce a regularisation scheme where they replace the learned Gram matrices with random samples drawn from a Wishart distribution during training. This acts as "dropout for kernel matrices," injecting noise to force the model to learn more robust representations.
- Low-Precision Arithmetic via Taylor Approximations: To speed up training, the authors aimed to utilize TensorFloat-32 (TF32) cores on modern GPUs. However, low-precision math causes the complex matrix inversions in the DKM's objective function (specifically the log-determinant and trace terms in the KL-divergence) to fail catastrophically. To resolve this, they replaced these unstable terms with a second-order Taylor approximation. This reduces the complex penalty to a simple Frobenius norm, preventing math errors and allowing the model to train stably in lower precision.
Key Insights
- Representation learning isn't exclusive to neural networks: The fact that a purely kernel-based method can hit 94.5% on CIFAR-10 is significant for deep learning theory. It suggests that the success of modern AI is heavily tied to a model's capacity to learn hierarchical representations from data, rather than the specific weight-based architecture of a neural network.
- Noise is crucial for representation learning: Just as standard neural networks easily overfit without regularisation techniques like dropout or weight decay, DKMs overfit their Gram matrices. SKR proves that stochastic noise is highly effective at regularising learned kernel representations.
- Approximations can improve optimization: The Taylor approximation wasn't just a workaround to prevent code from crashing; it actually resulted in better-conditioned Gram matrices. The true KL-divergence penalty creates a highly complex optimization landscape, whereas the simpler Taylor approximation was much easier for the optimizer (Adam) to navigate.
Key Results
- State-of-the-Art Kernel Accuracy: The modified DKM achieved 94.52% test accuracy on CIFAR-10, a massive jump from the previous kernel SOTA of 92.69%.
- Matching Neural Networks: The DKM's performance statistically matched an Adam-trained ResNet (94.55%) on CIFAR-10, while providing better uncertainty quantification (measured by test log-likelihood).
- CIFAR-100 Success: On the more challenging CIFAR-100 dataset, the DKM achieved 75.31%, slightly edging out an AdamW-trained ResNet (74.13%).
- Massive Speedups: By enabling TF32 arithmetic, the new model trains roughly 5x faster than previous FP64-based DKM implementations.
Limitations and Future Work
- The SGD Gap: While DKMs can now match ResNets trained with Adam, they still fall short of ResNets trained with heavily optimized SGD pipelines (which hit 95.36% on CIFAR-10 and 79.42% on CIFAR-100). The authors note that DKMs are harder to optimize with SGD due to the diverse types of parameters they contain.
- Computational Cost: Despite the 5x speedup, DKMs are still significantly slower to train than standard neural networks (~260 seconds per epoch vs. ~45 seconds for a ResNet on an NVIDIA A100).
- Future Work: Future research should focus on closing the remaining performance gap with SGD-trained networks and scaling these models to handle even larger datasets like ImageNet, which are currently out of reach due to compute constraints.
Summary updated