Consistency of empirical Bayes and kernel flow for hierarchical parameter estimation

Yifan Chen, Houman Owhadi, Andrew M. Stuart

TL;DR

This paper dives into two popular methods for learning hyperparameters in Gaussian Process Regression: Empirical Bayes (EB) and Kernel Flow (KF). The authors provide a theoretical analysis of their consistency and "implicit bias" (how they learn) for a specific type of model (Matérn-like fields on a torus), showing EB consistently recovers the true parameter while KF converges to a related but different value. This work offers a deeper understanding of these methods, particularly in challenging scenarios like learning model regularity and when the model assumptions don't perfectly match the data.

What Problem Does This Paper Address?

Gaussian Process Regression (GPR) is a powerful tool for various tasks, but its effectiveness hinges on learning "hyperparameters" that define the underlying process. This often involves a hierarchical structure where these hyperparameters themselves are learned from data. Two prominent approaches for this hyperparameter learning are:

  1. Empirical Bayes (EB): A probabilistic approach that treats hyperparameters as random variables and seeks the most likely values based on the observed data.
  2. Kernel Flow (KF): A more recent, deterministic approach rooted in approximation theory, aiming to minimize an estimate of the approximation error.

The paper addresses a critical question: how do these two fundamentally different approaches behave as we get more and more data (large data limit)? Specifically, the authors investigate:

  • Consistency: Do the learned hyperparameters converge to the true values as the dataset grows?
  • Implicit Bias: What is the underlying principle guiding each method's parameter selection, and how does this affect the quality of the learned model?
  • Robustness to Model Misspecification: How well do these methods perform when the assumed model for the data doesn't perfectly match the true data-generating process?

A particular challenge highlighted is learning the "regularity parameter" of Matérn-like fields, for which theoretical consistency results are scarce.

Methods

The paper employs a combination of theoretical analysis and numerical experiments.

Theoretical Framework: * Matérn-like Model on a Torus: The core theoretical analysis is performed on a Matérn-like Gaussian Process defined on a torus. This setting allows for powerful tools like Fourier series analysis. * Fourier Analysis Toolkit: A significant contribution is the development of a Fourier series characterization for GPR solutions. This toolkit is crucial for analyzing the objective functions of both EB and KF. * Consistency Proofs: The authors rigorously prove the consistency of the EB estimator for the regularity parameter. For the KF estimator, they show it converges to a related value, offering insights into its implicit bias. * Implicit Bias Characterization: The paper explicitly characterizes the "implicit bias" of EB and KF in terms of L² generalization errors, explaining why they select certain parameters.

Algorithms and Loss Functions: * Empirical Bayes (EB): The EB estimator is derived by minimizing a loss function that involves the GPR model's marginal likelihood. * Kernel Flow (KF): The KF estimator minimizes a loss function based on approximation theoretic criteria, specifically measuring the discrepancy in an RKHS norm between GPR solutions using different data resolutions.

Datasets

Not discussed in the paper. The paper focuses on synthetic data generated from specified Gaussian processes and solutions to PDEs.

Key Insights and Ideas

  • EB vs. KF: Different Goals, Different Outcomes: The core insight is that EB and KF, despite both aiming to learn hyperparameters, are driven by fundamentally different principles. EB seeks statistical likelihood, while KF optimizes approximation accuracy. This leads to different convergence behaviors, especially for the regularity parameter.
  • KF's "Implicit Bias" is About Approximation Speed: The KF estimator's convergence to $s - d/2$ (where $s$ is the true regularity and $d$ is the dimension) is not a failure but rather an indication of its implicit bias: it selects parameters that achieve the fastest rate of approximation error convergence, not necessarily the minimal error itself.
  • Learning Regularity is Tricky: The paper highlights the difficulty in theoretically proving consistency for learning the regularity parameter of Matérn-like fields, a problem that has seen limited prior work.
  • Model Misspecification Reveals Robustness Differences: When the data-generating process deviates from the assumed model, KF often shows more robustness than EB. This is attributed to KF's reliance on approximation theory rather than strict probabilistic assumptions, making it less fragile to mismatches.
  • Fourier Analysis is a Powerful Tool: The paper demonstrates the effectiveness of Fourier series analysis for understanding GPR and hyperparameter learning in physical domains, a technique that could be applicable to other problems.

Key Results

  • Consistency of EB: The EB estimator for the regularity parameter ($s$) is proven to converge to the true value $s$ in the large data limit.
  • Consistency of KF: The KF estimator for the regularity parameter converges to $s - d/2$ in the large data limit.
  • Implicit Bias: EB selects parameters that minimize the expected L² error, while KF selects parameters that optimize the rate of L² error convergence.
  • Numerical Experiments: Extensive experiments confirm theoretical findings for the Matérn-like model and extend to other well-specified models (learning amplitude, lengthscale) and scenarios of model misspecification.
  • Variance Comparison: In well-specified cases, EB generally exhibits smaller variance than KF for estimating the regularity parameter.
  • Robustness to Misspecification: In certain misspecification scenarios, KF demonstrates superior robustness compared to EB.

Limitations and Future Work

  • Torus Domain: The theoretical analysis is primarily conducted on a torus domain, which simplifies the use of Fourier series. Extending these techniques to other boundary conditions (e.g., Dirichlet, Neumann) or more complex domains is a direction for future work.
  • Homogeneous Regularity: The theoretical results for regularity parameter learning assume homogeneous regularity. Investigating functions with spatial singularities and non-homogeneous regularity is suggested.
  • Noiseless Observations: The current analysis focuses on noiseless observations. Extending the theory to noisy data is a natural next step.
  • Computational Aspects: While the paper touches upon computational aspects, a deeper exploration of efficient algorithms, especially for large datasets and complex models, is an area for future research.
  • Generalization to Other Models: The paper uses the Matérn-like model as a primary example. Applying the developed techniques to a wider range of models and exploring other parameter selection criteria beyond EB and KF are also suggested.
  • Randomized Design: The current proofs rely on equidistributed data points. Generalizing to randomized designs is a potential avenue for future work.

Summary updated

Abstract

: Gaussian process regression has proven very powerful in statistics, machine learning and inverse problems. A crucial aspect of the success of this methodology, in a wide range of applications to complex and real-world problems, is hierarchical modeling and learning of hyperparameters. The purpose of this paper is to study two paradigms of learning hierarchical parameters: one is from the probabilistic Bayesian perspective, in particular, the empirical Bayes approach that has been largely used in Bayesian statistics; the other is from the deterministic and approximation theoretic view, and in particular the kernel flow algorithm that was proposed recently in the machine learning literature. Analysis of their consistency in the large data limit, as well as explicit identification of their implicit bias in parameter learning, are established in this paper for a Matérn-like model on the torus. A particular technical challenge we overcome is the learning of the regularity parameter in the Matérn-like field, for which consistency results have been very scarce in the spatial statistics literature. Moreover, we conduct extensive numerical experiments beyond the Matérn-like model, comparing the two algorithms further. These experiments demonstrate learning of other hierarchical parameters, such as amplitude and lengthscale; they also illustrate the setting of model misspecification in which the kernel flow approach could show superior performance to the more traditional empirical Bayes approach.
BibTeX
@article{chen2021consistency,
  author = {Yifan Chen and Houman Owhadi and Andrew M. Stuart},
  title = {{Consistency of empirical Bayes and kernel flow for hierarchical parameter estimation}},
  journal = {Math. Comput.},
  year = {2021},
  doi = {10.1090/mcom/3649},
}
Figure