Maximum likelihood estimation in Gaussian process regression is ill-posed

Toni Karvonen, Chris J. Oates

TL;DR

While Maximum Likelihood Estimation (MLE) is the industry standard for tuning Gaussian Process (GP) kernels, this paper proves that in noiseless settings, MLE is mathematically "ill-posed." Specifically, if your data is a simple constant shift from the prior mean, MLE pushes the lengthscale to infinity, resulting in a degenerate model that claims infinite precision from finite data and is hypersensitive to tiny perturbations.

What Problem Does This Paper Address?

Gaussian Process regression is a powerhouse for interpolating data in fields like Bayesian optimization and computer emulations. To make a GP work, you have to choose "hyperparameters"—most importantly the lengthscale ($\lambda$), which determines how quickly correlations die out over distance.

The standard way to pick $\lambda$ is Maximum Likelihood Estimation (MLE). While practitioners have long whispered about MLE's occasional erratic behavior (the "folklore" of the field), there has been a lack of rigorous proof regarding its well-posedness. A well-posed estimation problem should be stable: small changes in the input data shouldn't lead to massive, discontinuous jumps in the model's predictions. This paper investigates whether MLE-trained GPs meet that basic standard of reliability in the "deterministic interpolation" (noiseless) regime.

Methods

The authors employ a purely theoretical approach, utilizing the machinery of Reproducing Kernel Hilbert Spaces (RKHS) and Sobolev space theory.

Unlike most GP literature that focuses on asymptotic results (what happens as you get infinite data), this paper provides non-asymptotic proofs for a fixed, finite number of observations ($n$). They specifically analyze stationary kernels (like the Matérn family) and measure the stability of the resulting predictive distributions using the Hellinger distance, a metric that quantifies the similarity between two probability distributions.

Datasets

As a theoretical math paper, it does not rely on large-scale empirical datasets. Instead, it uses:

  • Synthetic 1D examples: Used to visualize the "flat limit" behavior and the likelihood surface (Figures 1-4).
  • Mathematical Scenarios: The proofs focus on "m-constant" data—cases where the observations differ from the prior mean function by a fixed constant $c$.

Key Insights and Ideas

  • The "m-constant" Trap: If your training data happens to be a constant shift from your prior mean (e.g., you expected a mean of 0, but the data is all 1.0), MLE concludes that the "simplest" explanation is an infinite lengthscale. It essentially decides the underlying function is a flat line.
  • The Flat Limit is Degenerate: When the lengthscale $\lambda$ goes to infinity, the GP's predictive variance collapses to zero everywhere. The model becomes "overconfident," claiming it knows the value of the function perfectly at every point in space based on just a few observations.
  • Discontinuity and Ill-Posedness: The transition from "almost constant" data to "exactly constant" data causes the MLE lengthscale to jump from a finite value to infinity. This causes the Hellinger distance between the two resulting predictive distributions to explode to its maximum value (1.0), proving the model is not Lipschitz continuous in the data.
  • No Easy Escape: The authors show that this isn't just an MLE problem. Cross-validation and Universal Kriging (where the mean is estimated alongside the kernel) suffer from the same fundamental instability.

Key Results

  • Theorem 2.3 (The Core Result): Formally proves that for any stationary Sobolev kernel, the MLE lengthscale $\lambda_{ML}$ is infinite if and only if the data is m-constant.
  • Theorem 2.6: Shows that in this "flat limit," the GP mean converges to the constant shift, and the predictive uncertainty vanishes.
  • Theorem 2.7: Establishes the formal "ill-posedness" of the estimation problem.
  • Regularization Effects: The paper notes that adding a "nugget" (observation noise/jitter) can prevent the variance from collapsing to zero, but it introduces a new problem: the model no longer actually interpolates the data points, and the choice of the nugget becomes an arbitrary, influential "degree of freedom."

Limitations and Future Work

  • Stationarity: The results are primarily derived for stationary kernels. While some non-stationary kernels are discussed, a universal theory for all kernel types is not yet established.
  • Pathological vs. Practical: While "constant" data might seem like a corner case, the authors argue it occurs frequently in practice, such as when a Bayesian optimization algorithm explores a "flat" region of an objective function.
  • Future Directions: The authors suggest that GP software should be "hard-coded" to detect these scenarios and throw warnings or errors. They also call for a broader research program to characterize all types of data sets that cause GP interpolation to become ill-posed, beyond just the constant-shift case.

Summary updated

BibTeX
@article{karvonen2023maximum,
  author = {Toni Karvonen and Chris J. Oates},
  title = {{Maximum likelihood estimation in Gaussian process regression is ill-posed}},
  journal = {J. Mach. Learn. Res.},
  year = {2023},
}
Figure