Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models

Rui Li, S. T. John, Arno Solin

Abstract

Gaussian Process (GP) models are powerful tools for uncertainty quantification, but they face significant challenges when dealing with non-conjugate data, such as in classification tasks. In these scenarios, the marginal likelihood is intractable, forcing a reliance on approximations like Variational Inference (VI) or Expectation Propagation (EP). While VI is numerically stable, its objective—the Evidence Lower Bound (ELBO)—is often a biased proxy for hyperparameter tuning. EP is more accurate but notoriously unstable. This paper introduces a hybrid Variational Expectation-Maximization (VEM) procedure that combines the stability of VI for posterior inference with the accuracy of EP for hyperparameter learning. Experimental results across 27 datasets demonstrate that this approach achieves superior generalization with zero additional computational overhead.

Introduction

Gaussian Processes (GPs) provide a flexible framework for Bayesian non-parametric modeling. Their primary strength lies in the ability to provide principled uncertainty estimates. However, for non-Gaussian likelihoods (e.g., Bernoulli for classification or Student-t for robust regression), the marginal likelihood—the standard objective for hyperparameter optimization—cannot be calculated analytically.

Practitioners typically choose between two approximations:

  1. Variational Inference (VI): Optimizes the ELBO. It is guaranteed to converge and is mathematically robust, but the ELBO is a biased approximation that can lead to sub-optimal hyperparameters, such as incorrect lengthscales.
  2. Expectation Propagation (EP): Provides a much tighter approximation to the true marginal likelihood. However, EP is often numerically unstable, may fail to converge, and is difficult to implement for complex models.

The authors argue that this "stability vs. accuracy" trade-off is unnecessary. By decoupling the objectives used for inference and learning, they propose a method that captures the strengths of both approaches.

Methodology: The Hybrid VEM Approach

The proposed method leverages the concept of dual parameterization. The authors observe that the approximate posterior distributions produced by VI and EP share the same functional form. This allows for a hybrid algorithm structured as a Variational Expectation-Maximization (VEM) routine:

The E-step: Stable Inference

In the E-step, the algorithm performs inference to find the latent function's posterior. It utilizes Natural Gradient Descent to optimize the VI objective (ELBO). Because the ELBO is a well-behaved lower bound, this step ensures a stable and valid approximate posterior, avoiding the convergence pitfalls associated with EP.

The M-step: Accurate Learning

In the M-step, the algorithm tunes the hyperparameters ($\theta$). Instead of using the ELBO, which was used in the E-step, the authors "plug" the resulting VI parameters into an EP-like objective function. This objective is a much closer approximation to the true marginal likelihood.

By using the stable objective for inference and the accurate objective for hyperparameter selection, the model achieves a more precise fit to the data. This framework is also extended to Sparse GPs, where a small set of "inducing points" is used to represent the global function, allowing the method to scale to large datasets.

Experimental Evaluation

The researchers evaluated the hybrid method against standard VI, the Laplace Approximation (LA), and MCMC (the "gold standard") across a wide range of tasks:

  • Binary Classification: 27 datasets from the UCI repository (including Pima, Sonar, and Breast Cancer).
  • Robust Regression: Datasets such as Boston Housing and Stock, utilizing a Student-t likelihood to evaluate performance in the presence of outliers.
  • Large-scale Tasks: Sparse GP implementations were tested on datasets like Titanic, Bank, and Magic, with sizes up to 19,000 data points.
  • Likelihood Surface Visualization: Detailed analysis of the Ionosphere dataset was used to visualize how different objectives align with the true marginal likelihood.

Key Insights

Alignment with MCMC

Visualization of the likelihood surfaces revealed that the VI ELBO peak is often physically distant from the true MCMC peak. In contrast, the hybrid objective's peak aligns almost perfectly with the MCMC baseline, explaining why it selects better hyperparameters.

Computational Efficiency

A significant advantage of this approach is that it introduces zero additional computational cost. Since the VI and EP-like objectives share the same underlying parameters, switching the objective in the M-step is essentially a "free" upgrade in accuracy.

Decoupling Inference and Learning

The paper highlights a critical conceptual point: an objective function that is good for approximating a distribution (VI) is not necessarily the best for selecting model parameters. By decoupling these tasks, the hybrid method avoids the biases inherent in the ELBO while maintaining the stability required for practical applications.

Results and Discussion

The hybrid method ("Ours") demonstrated superior generalization across the 27-dataset benchmark, achieving the best (or tied for best) log predictive density on 16 datasets. This outperformed both standard VI (13 datasets) and the Laplace Approximation (14 datasets). Furthermore, the method was remarkably consistent, showing fewer "outlier" failures than EP or LA.

In sparse GP settings, the EP-like objective remained a better match for the MCMC baseline even when the number of inducing points was reduced to 25% of the original data size.

Limitations and Future Work

While the hybrid method is robust, it is not immune to the challenges of extreme sparsity. When the number of inducing points is very low (e.g., 10%), both VI and the hybrid method struggle to capture the true likelihood surface, as the sparse model becomes an inadequate surrogate for the data.

Additionally, because the E-step and M-step optimize different objectives, they can occasionally conflict, leading to "overshooting" during optimization. The authors addressed this with a simple early-stopping rule, but they suggest that future research into the interplay between these competing objectives could further enhance stability in complex, high-dimensional models.

Summary updated

BibTeX
@inproceedings{li2023improving,
  author = {Rui Li and S. T. John and Arno Solin},
  title = {{Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=8xAHeICO69},
}
Figure