arXiv:2608.26974stat.MLAug 2026

Manuscript Offprint

arXiv:2608.26974

Why not to use the Gaussian kernel

Toni Karvonen, Chris J. Oates

Abstract

Kernels measure similarity or correlation in tasks such as regression and classification. The Gaussian kernel, other names of which include squared exponential and radial basis function kernel, is one of the most popular in Gaussian process regression. We argue that the Gaussian kernel is best avoided and should never be used as a default. The argument rests on two results demonstrating that the Gaussian kernel is extremely brittle. First, the Gaussian kernel gives rise to a conditional variance that is unrealistically small. If the variance is used to quantify predictive uncertainty, catastrophic overconfidence is almost inevitable. Second, a small variance goes hand in hand with numerical ill-conditioning, so that to use the Gaussian kernel in practice requires tricks such as nugget terms that effectively modify the underlying regression or classification model. These problems are caused by the unnatural smoothness of the Gaussian kernel, a fact we are far from the first to take notice of. The problem is not the Gaussian form itself but the analyticity of the kernel: Our argument is more broadly that analytic kernels are best avoided. For stationary kernels analyticity is essentially equivalent to an exponential decay of the spectral density.

Keywords: Gaussian kernel, squared exponential kernel, Gaussian process regression, uncertainty quantification

1. Introduction

Kernels measure similarity or correlation between inputs and underpin many popular methods for tasks such as regression, classification, principal component analysis, and space-filling design. Although a variety of needs have bred a great variety of kernels, some have always remained more popular than others. The purpose of this article is to make a case against the persistent use of the Gaussian kernel in Gaussian process regression. Let ℓ>0\ell > 0 be a lengthscale parameter. In regression, the Gaussian kernel (see Figure 1)

k(x,y)=exp⁡(−∥x−y∥222ℓ2)(1.1)k(x,y)=\exp\left(-\frac{\|x-y\|_{2}^{2}}{2\ell^{2}}\right) \tag{1.1}

measures the correlation of inputs x,y∈Rdx, y \in \mathbb{R}^d. Also known as squared exponential, exponentiated quadratic, and radial basis function kernel, the Gaussian is probably the most popular

Figure

Inverse multiquadric ( β=3\beta = 3)

Figure

Matérn-1/2

Figure

Figure 1: Three kernels on R2\mathbb{R}^2 that appear in this article: The Gaussian kernel in (1.1), the inverse multiquadric kernel in (4.4), and a Matérn kernel in (2.2) with ν=1/2\nu = 1/2. The plots depict kernel translates at the origin, k(0,⋅)k(0, \cdot). All kernels use lengthscale ℓ=1\ell = 1.

kernel for Gaussian processes and kernel methods in machine learning. Its popularity goes back to the very introduction of Gaussian processes to machine learning (Williams and Rasmussen, 1996; Neal, 1998). The Gaussian kernel is infinitely smooth, which is to say that one can differentiate it arbitrarily many times. In fact, it is much more than infinitely smooth: It is analytic with infinite radius of convergence, which means that its Taylor series developed at any point converges on the whole of RdR^{d}. It is well recognised that the Gaussian kernel is popular despite severe flaws it has:

“Stein [1999] argues that such strong smoothness assumptions are unrealistic for modelling many physical processes, and recommends the Matérn class [...]. However, the squared exponential is probably the most widely-used kernel within the kernel machines field.” — Rasmussen and Williams (2006, p. 83)

Section 5 collects a number of reasons that we believe have contributed to the enduring popularity of the Gaussian kernel.

References (43)