Epistemic Uncertainty and Observation Noise with the Neural Tangent Kernel

Sergio Calvo-Ordoñez, Konstantina Palla, Kamil CiosekarXiv 2024 · DOI

Abstract

This paper extends the Neural Tangent Kernel (NTK) framework to address two critical limitations in current deep learning theory: the lack of a formal treatment for observation noise and the computational difficulty of estimating epistemic uncertainty. The authors prove that training a neural network with specific $L_2$ regularization is mathematically equivalent to Gaussian Process (GP) inference with observation noise. Furthermore, they propose a scalable, gradient-descent-based method to approximate posterior covariance, bridging the gap between theoretical GP rigor and practical deep learning optimization.

Introduction

Deep neural networks (DNNs) are exceptional function approximators but are frequently criticized for being "overconfident," failing to signal when they are operating on out-of-distribution data. In contrast, Gaussian Processes (GPs) offer a robust Bayesian framework for uncertainty quantification. However, GPs suffer from a cubic computational complexity ($O(N^3)$) relative to the number of data points, making them impractical for large-scale datasets.

Recent advancements in the study of the Neural Tangent Kernel (NTK) have shown that infinitely wide neural networks trained with gradient descent behave like GPs. Despite this breakthrough, two major hurdles remained: the "Noise Gap" (the theory primarily applied to noise-free data) and the "Covariance Gap" (the theory explained mean predictions but not how to efficiently calculate confidence intervals). This research bridges these gaps, providing a path toward scalable, Bayesian-principled uncertainty in deep learning.

Methodology

Regularization as Observation Noise

The authors establish a formal link between standard deep learning practices and Bayesian inference. They prove that minimizing a mean squared error (MSE) loss with a squared norm penalty on the deviation from initial weights—defined as $\frac{1}{N} \sum (y_i - f(x_i))^2 + \beta_N ||\theta - \theta_0||^2$—is equivalent to computing the posterior mean of an NTK-GP with observation noise $\sigma^2 = N\beta_N$. This insight provides a clear Bayesian interpretation for weight decay: the regularization parameter $\beta_N$ is not merely a hyperparameter for generalization but a direct proxy for the assumed noise level in the training data.

Gradient-Descent Covariance Estimator

To resolve the computational bottleneck of matrix inversion, the authors derive a method to estimate posterior covariance using standard gradient descent. The process involves:

  1. Partial SVD: Performing a partial Singular Value Decomposition of the Jacobian at initialization to identify the dominant directions of the kernel.
  2. Auxiliary Predictors: Training a small number ($K$) of additional "predictor" networks to fit these identified directions.
  3. Covariance Construction: Synthesizing the final uncertainty estimate from the outputs of these auxiliary networks.

This approach integrates seamlessly into existing training pipelines, replacing expensive matrix algebra with scalable gradient-based optimization.

Key Results

The proposed framework was evaluated on a synthetic 1D regression task designed to test both interpolation and extrapolation capabilities. The primary goal was to determine if the gradient-descent-based approximation could replicate the "gold standard" analytic GP posterior.

Comparison of posterior uncertainty estimates across four methods: analytic GP (top left), analytic upper bound (top right), 5-eigenvector approximation (bottom left), and the proposed gradient-descent predictor method (bottom right).

As shown in the figure above, the uncertainty bands (shaded red areas) produced by the gradient-descent method (bottom right) are nearly indistinguishable from the exact analytic posterior (top left). The model successfully captures the "flaring" of uncertainty in extrapolation regions—areas where training data is sparse—demonstrating reliable epistemic uncertainty quantification.

Discussion and Limitations

While this work significantly advances the practicality of NTK-based uncertainty, several challenges remain. The method still incurs computational overhead from the partial SVD and the training of auxiliary networks. Furthermore, the theory relies on the "NTK regime" of infinite width; the degree to which these insights translate to narrower, non-linear architectures used in production remains an open research question. Future work will focus on implementing these techniques for high-dimensional datasets and exploring more efficient SVD approximations, such as randomized power methods, to further reduce the memory footprint of the Jacobian storage.

Summary updated

BibTeX
@misc{calvoordonez2024epistemic,
  author = {Sergio Calvo-Ordoñez and Konstantina Palla and Kamil Ciosek},
  title = {{Epistemic Uncertainty and Observation Noise with the Neural Tangent Kernel}},
  year = {2024},
  eprint = {2409.03953},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.03953},
}
Figure