Harnessing the Power of Infinitely Wide Deep Nets on Small-data Tasks

Sanjeev Arora, Simon S. Du, Zhiyuan Li, Ruslan Salakhutdinov, Ruosong Wang, Dingli Yu

TL;DR

This paper demonstrates that the "infinite width" limit of neural networks—mathematically described as the Neural Tangent Kernel (NTK)—is a surprisingly powerful tool for small-data tasks. By treating deep networks as kernels, the authors show that NTK-based methods consistently outperform traditional "gold standards" like Random Forests and even their own finite-width neural network counterparts when training data is scarce.

Introduction

Deep learning is famously data-hungry. While modern neural networks (NNs) achieve incredible results on massive datasets like ImageNet, they often struggle or overfit when only a few dozen or hundred examples are available. In these "small-data" regimes, practitioners usually fall back on classical methods like Random Forests (RF) or Support Vector Machines (SVMs) with Gaussian kernels.

Recent theoretical breakthroughs showed that as the width of a neural network goes to infinity, its training behavior converges to a simpler model: kernel regression using the Neural Tangent Kernel (NTK). However, early empirical tests on large datasets showed that these "infinite" nets actually performed worse than finite ones. This paper investigates whether the opposite is true for small data: Does the theoretical stability of infinite-width networks give them an edge when data is limited?

Methods

The authors evaluate the performance of NTK and its convolutional version (CNTK) across several benchmarks.

  • The Kernel Approach: Instead of training a neural network via gradient descent (which involves random initialization and stochastic noise), they compute the NTK/CNTK analytically. This turns the "training" process into a convex optimization problem (kernel regression or SVM), which has a unique, stable solution.
  • Comparison Framework: They compare NTK against traditional ML (Random Forests, Gaussian Kernels, and Polynomial Kernels) and finite NNs (actual neural networks with the same architecture, trained with standard initializations like "He initialization" and "NTK initialization").
  • Efficiency: While kernel methods are computationally expensive for large data (scaling quadratically or cubically with the number of points), they are highly efficient for the small-data tasks studied here.

Key Insights and Ideas

  • The Variance Advantage: One of the biggest hurdles in small-data deep learning is the high variance caused by random initialization. Because NTK represents the average behavior of an infinite ensemble of networks, it eliminates this "initialization noise," leading to more stable and accurate predictions.
  • Better than the "Gold Standard": For years, Random Forests were considered the best general-purpose choice for small UCI-style datasets. This paper suggests that NTK is the new "gold standard," achieving better average rank and accuracy across 90 diverse tasks.
  • Infinite > Finite (Sometimes): On CIFAR-10 with very few samples, the infinite-width CNTK consistently beat a standard ResNet-34. This suggests that the "prior" or inductive bias of an infinite convolutional net is actually better for generalization than the specific features learned by a finite net from tiny amounts of data.
  • Depth Still Matters: Even in the infinite limit, the architecture counts. Increasing the "depth" of the CNTK (from 5 to 14 layers) improved performance on CIFAR-10, mirroring trends seen in finite deep learning.

Key Results

The study utilizes three distinct types of benchmarks: the UCI Machine Learning Repository (90 tasks), subsampled CIFAR-10, and VOC07 (Few-shot transfer learning).

  • UCI Benchmarks: NTK achieved the best Friedman Rank (28.34) compared to Random Forests (33.51) and Gaussian Kernels (35.76). It also reached the highest average accuracy (81.95%).
Performance comparisons between NTK and other classifiers
  • Small-Data CIFAR-10: With 320 training samples, a 14-layer CNTK achieved 36.57% accuracy, outperforming ResNet-34’s 33.15%.
  • Few-Shot Learning: In the VOC07 transfer learning task, replacing a standard linear SVM with a CNTK SVM consistently improved the mean Average Precision (mAP). For example, using features from the conv4 layer, CNTK improved performance by roughly 2-3% across various "k-shot" scenarios.

Limitations and Future Work

  • Scalability: The authors acknowledge that kernel methods are currently infeasible for large-scale datasets like full ImageNet due to the $O(n^2)$ cost of constructing the kernel matrix.
  • Data Augmentation: It is difficult to incorporate standard deep learning tricks like data augmentation (flipping, cropping) directly into the NTK framework.
  • The "Performance Gap" on Large Data: While NTK wins on small data, it still lags behind finite nets on large datasets. The authors suggest that "learning features" (which finite nets do but fixed kernels don't) becomes more important as more data becomes available.
  • Future Directions: The authors suggest exploring NTKs for other architectures, such as Recurrent Neural Networks (RNTKs), to see if the small-data benefits translate to sequential data.

Summary updated

BibTeX
@inproceedings{arora2020harnessing,
  author = {Sanjeev Arora and Simon S. Du and Zhiyuan Li and Ruslan Salakhutdinov and Ruosong Wang and Dingli Yu},
  title = {{Harnessing the Power of Infinitely Wide Deep Nets on Small-data Tasks}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=NRSeAzB1RJh},
}
Figure