The Neural Tangent Kernel for Classification

Jonathan Plenk, Sergio Calvo-Ordonez, Alvaro Cartea, Yarin Gal, Mark van der Wilk, Kamil CiosekarXiv 2026

TL;DR

This paper extends Neural Tangent Kernel (NTK) theory to classification, overcoming the long-standing hurdle that cross-entropy training typically breaks the "lazy training" regime. By applying parameter-space regularization or using non-degenerate targets (like label smoothing), the authors prove that wide neural networks remain well-approximated by their linearization, allowing for an explicit, kernel-based characterization of trained classifiers and their uncertainty.

What Problem Does This Paper Address?

The Neural Tangent Kernel (NTK) is a powerful theoretical framework that describes how wide neural networks behave like linear models during training. In this "lazy training" regime, the network's parameters stay close to their initial values, and the kernel—which dictates how the model generalizes—remains constant.

However, this theory has mostly been successful for regression tasks using Mean Squared Error (MSE). Classification is much harder to fit into this box. Standard cross-entropy training encourages "logit divergence": to perfectly classify a point, the network tries to push its outputs to infinity. This forces parameters to drift far from their starting point, causing the NTK to change and the linear approximation to break down. This paper seeks to identify the specific conditions that prevent this breakdown, finally bringing classification under the umbrella of NTK theory.

Methods

The authors propose two primary mechanisms to restore the NTK regime for classification:

  1. Parameter-Space Regularization: Instead of standard weight decay (which pulls weights toward zero), they regularize parameters toward their random initialization $\theta_0$. This "anchor" prevents the parameters from drifting into the regime where linearization fails.
  2. Non-Degenerate Targets: They show that if the target labels are not "one-hot" (e.g., using label smoothing where every class has a strictly positive probability), the optimal logits remain finite. This naturally keeps the network in the lazy training regime even without explicit regularization.

Technically, a key move is treating the softmax activation as part of the loss function rather than part of the network architecture. By linearizing only the pre-activation logits, they demonstrate that the pre-softmax NTK remains constant, even if the post-softmax behavior appears non-linear.

Datasets

The authors validate their theoretical findings using:

  • 1D Toy Classification: A synthetic dataset with 3 classes used to visualize ensemble behavior and ODE limits.
  • MNIST: Specifically a binary version (odd vs. even digits) to track the evolution of the empirical NTK during training on real-world image data.

Key Insights and Ideas

  • The Softmax Shift: The breakdown of NTK theory in classification was partly a matter of perspective. By viewing the network as a linear map to logits followed by a non-linear loss (softmax + cross-entropy), the "constancy" of the kernel is preserved where it matters most.
  • Regularization as a Theoretical Anchor: Regularization around initialization isn't just a trick for better generalization; it is a fundamental requirement for maintaining the validity of the linear approximation in classification.
  • Ensembles vs. GPs: The paper provides a bridge between deep learning ensembles and Bayesian methods. They show that an infinite-width ensemble of trained networks converges to a temperature-rescaled MAP (Maximum A Posteriori) estimate of a Gaussian Process.
  • Quantifying Uncertainty: They derive an explicit covariance formula for the ensemble, showing it is related to, but distinct from, the standard Laplace approximation used in Bayesian deep learning. Specifically, the ensemble is "less uncertain" than the Laplace posterior.
Figure 1: 1d-classification with 3 classes. Left: An ensemble over wide networks, starting from different parameter initializations. Right: The infinite-width limit of the ensemble, using the function- space ODE.

Key Results

  • Theorem 3.1: The authors provide a formal proof that the approximation error between a wide network and its linearization vanishes at a rate of $O((log n)^c / \sqrt{n})$ as the width $n$ increases, provided their conditions are met.
  • NTK Constancy: In MNIST experiments, they demonstrate that while standard cross-entropy causes the empirical NTK to diverge significantly, adding even a small amount of parameter regularization ($\beta=0.01$) keeps the kernel almost perfectly constant throughout 50,000 epochs of training.
Figure 3: Empirical evidence on MNIST showing that regularization or label smoothing prevents the NTK from diverging, unlike standard one-hot cross-entropy.

Limitations and Future Work

  • Width Requirements: While the theory holds for "wide" networks, the practical width required for these approximations to be highly accurate can be quite large, potentially exceeding standard architectures used in production.
  • Regularization Choice: The results rely on regularization around initialization. While theoretically sound, standard practice often uses weight decay toward zero, which the authors note leads to different (and often less "lazy") dynamics.
  • Architecture Scope: The current proofs focus on standard feedforward networks. Extending this rigorous analysis to more complex architectures like Transformers or state-of-the-art ResNets remains an open challenge.
  • Uncertainty Calibration: The finding that ensembles are more "conservative" than Bayesian GP posteriors suggests that while they provide a form of uncertainty, they might not be perfectly calibrated for all safety-critical applications.

Summary updated

BibTeX
@misc{plenk2026neural,
  author = {Jonathan Plenk and Sergio Calvo-Ordonez and Alvaro Cartea and Yarin Gal and Mark van der Wilk and Kamil Ciosek},
  title = {{The Neural Tangent Kernel for Classification}},
  year = {2026},
  eprint = {2605.17606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.17606},
}
Figure