Correspondence of NNGP Kernel and the Matern Kernel

Amanda Muyskens, Benjamin W. Priest, Imène R. Goumiri, Michael D. Schneider · DOI

Abstract

The Neural Network Gaussian Process (NNGP) provides a theoretical bridge between deep learning and Gaussian processes. However, its practical utility compared to established spatial statistics kernels remains under-explored. This study evaluates the NNGP kernel against the Matérn kernel, revealing a striking practical equivalence in kriging weights, particularly with the Matérn $\nu = 3/2$ configuration. Despite this similarity, the Matérn kernel offers superior numerical stability and parameter flexibility, whereas NNGPs exhibit significant sensitivity to data scaling and depth-induced instability.

Introduction

Recent advancements have linked infinitely wide Deep Neural Networks (DNNs) to Gaussian Processes (GPs) through the NNGP kernel. While theoretically significant, a gap exists between the deep learning community's use of NNGPs as a diagnostic tool and the spatial statistics community's reliance on kernels like the Matérn for robust prediction. This paper investigates whether the NNGP kernel offers unique advantages or if it is essentially a "Matérn kernel in disguise."

Methodology

The authors employ a "practical kriging" framework to compare kernels based on their predictive influence (kriging weights) rather than just analytical forms. The study focuses on recursive ReLU NNGPs and utilizes unit hypersphere embedding to mitigate data scaling sensitivities. A critical component of the analysis involves mapping the "valid" hyperparameter space—regions where the covariance matrices remain positive definite and non-degenerate—across varying network depths.

Valid hyperparameter regions for NNGP kernels across varying network depths.

Comparative Analysis and Results

The kernels were evaluated on synthetic (Friedman, Borehole) and real-world (MODIS satellite temperature) datasets.

Practical Equivalence

The most significant finding is the near-identical behavior of NNGP and Matérn ($\nu = 3/2$) kernels in densely sampled regimes. The local correlation structures, which drive GP predictions, are virtually indistinguishable. For a 1D grid of 150 observations, the maximum absolute difference in kriging weights between the two kernels was found to be less than $0.00005$.

Kriging weights for a prediction at X=0.5 across various NNGP configurations, demonstrating the model's stiffness and practical equivalence to the Matérn kernel.

Numerical Stability and Flexibility

Unlike the Matérn kernel, NNGPs are prone to numerical fragility. They often produce "flat" correlation regions where values become indistinguishable from 1.0, leading to singular matrices. Furthermore, NNGP predictions are remarkably "stiff"; changing depth or variance hyperparameters often yields negligible changes in output, suggesting limited tunability compared to the Matérn kernel.

Performance Benchmarks

In nearly all tests, the optimized Matérn kernel achieved lower Root Mean Squared Error (RMSE). On the large-scale MODIS dataset, NNGPs suffered from extreme worst-case errors due to instability, while the Matérn kernel remained robust.

Conclusion

While NNGPs offer a fascinating theoretical perspective on neural networks, the Matérn kernel remains the superior choice for practical spatial modeling. The observed equivalence suggests that NNGP performance is largely governed by local smoothing properties similar to classical kernels, but with added computational and stability overhead. Future research should investigate if these correspondences persist in higher-dimensional spaces or for more complex architectures like CNNs and Transformers.

Summary updated

BibTeX
@misc{muyskens2024correspondence,
  author = {Amanda Muyskens and Benjamin W. Priest and Imène R. Goumiri and Michael D. Schneider},
  title = {{Correspondence of NNGP Kernel and the Matern Kernel}},
  year = {2024},
  eprint = {2410.08311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.08311},
}
Figure