Uncertainty quantification using martingales for misspecified Gaussian processes

Willie Neiswanger, Aaditya Ramdas

Abstract

We address uncertainty quantification for Gaussian processes (GPs) under misspecified priors, with an eye towards Bayesian Optimization (BO). GPs are widely used in BO because they easily enable exploration-exploitation trade-offs. However, standard GP uncertainty estimates are notoriously brittle: if the initial prior assumptions are incorrect, the resulting posterior can be dangerously overconfident, leading to optimization failure. We introduce a frequentist alternative using martingales to construct confidence sequences that remain statistically valid even under model misspecification, ensuring robust performance in iterative decision-making tasks.

Introduction

In Bayesian Optimization (BO), the goal is to find the global minimum of an expensive "black box" function. Gaussian Processes (GPs) are the standard tool for this task, providing a probabilistic model that guides the search. Central to the GP is the prior—a set of assumptions regarding the function's properties, such as its smoothness or characteristic lengthscale.

Samples from a Gaussian Process prior, representing initial assumptions about function smoothness.

The primary challenge is that in real-world applications, these priors are almost always "misspecified." When the chosen kernel or hyperparameters do not match the true underlying function, standard GP uncertainty bands tend to shrink prematurely around incorrect values. This overconfidence causes optimization algorithms to ignore regions where the global minimum might reside, leading to a failure to converge.

Methodology: Martingale-Based Confidence Sequences

To address the fragility of standard GPs, we shift from pure Bayesian inference to a frequentist framework that treats the GP as a "working model."

1. Prior-Posterior-Ratio Martingales

We define a process $R_t(f)$ based on the ratio of the GP prior density to the GP posterior density. A key theoretical contribution is the proof that at the true (but unknown) function $f^*$, this ratio constitutes a martingale. In martingale theory, the expected value of the next step in a sequence is equal to the current value, given all prior information.

2. Uniformly Valid Sequences

By applying Ville’s Inequality, we construct a sequence of confidence sets $C_t$. Unlike standard confidence intervals, which are valid only for a fixed sample size, these sequences are uniformly valid. This means the true function is guaranteed to remain within the sequence at every time step with high probability, even under data-dependent sampling or optional stopping.

Evolution of martingale-based confidence sequences (outer green dashed lines) versus standard GP posterior bands (inner grey shaded area) as more data points are observed.

3. Balancing Belief and Robustness

We introduce a "belief parameter" $\gamma$ that allows practitioners to tune the trade-off between Bayesian subjective belief (narrower, riskier bands) and frequentist robustness (wider, safer bands). Additionally, to handle noise model misspecification, we utilize powered likelihoods ($\beta < 1$), transforming the martingale into a supermartingale that maintains valid bounds.

Key Insights

  • The Price of Robustness: There is an inherent "insurance premium" for safety. If the prior is perfectly specified, the martingale-based confidence sequences will be wider and thus less efficient than standard GP bands.
  • Bernstein-von-Mises Failure: In infinite-dimensional function spaces, more data does not necessarily correct a bad prior. A GP can remain wrong indefinitely if the true function lies outside the prior's support.
  • Sequential Validity: Martingales are uniquely suited for BO because they handle the iterative nature of the process, where future sampling locations depend on past observations.

Results and Evaluation

The proposed framework was validated through controlled simulations:

  • 1D Synthetic Simulations: When the GP prior was intentionally misspecified (e.g., wrong lengthscale), standard GP posterior bands failed to cover the true function almost immediately. The martingale-based CS maintained its 95% coverage guarantee throughout the process.
  • 2D Branin Benchmark: In optimization tasks, the standard GP-LCB algorithm frequently became trapped in local minima due to overconfidence. The robust CS-LCB algorithm successfully converged to the global minimum by maintaining honest uncertainty estimates.

Conclusion and Future Work

This work provides a robust foundation for uncertainty quantification in GPs. Future research will focus on improving computational scaling for high-dimensional spaces, which currently relies on grid-based methods. Additionally, automating the selection of the belief parameter $\gamma$ and integrating dynamic hyperparameter tuning into the martingale framework remain open challenges.

Summary updated

BibTeX
@inproceedings{neiswanger2021uncertainty,
  author = {Willie Neiswanger and Aaditya Ramdas},
  title = {{Uncertainty quantification using martingales for misspecified Gaussian processes}},
  booktitle = {ALT},
  year = {2021},
  url = {https://openreview.net/forum?id=OcrOm1_bN_},
}
Figure