Fully Bayesian Inference for Latent Variable Gaussian Process Models

Wei Chen, Northwestern University, Suraj Yerramilli, Akshay Iyer, Wei Chen, Daniel W. Apley

TL;DR

While standard Gaussian Processes (GPs) struggle with categorical inputs, Latent Variable GPs (LVGPs) solve this by mapping categories into a continuous numerical space. This paper demonstrates that a fully Bayesian approach to LVGPs—marginalizing over the uncertainty of these latent mappings—drastically improves both prediction accuracy and uncertainty quantification compared to traditional point-estimation methods.

What Problem Does This Paper Address?

Gaussian Processes are the "gold standard" for surrogate modeling in engineering because they provide principled uncertainty estimates. However, they are designed for continuous numerical inputs. In fields like materials science, inputs are often categorical (e.g., choosing between different chemical elements like Iron, Nickel, or Cobalt).

The Latent Variable Gaussian Process (LVGP) handles this by mapping each category to a point in a low-dimensional "latent space" (usually 2D). Previously, researchers used "plug-in" methods (Maximum Likelihood or MAP) to find one "best" location for these points. The problem? This ignores the uncertainty of where those points actually belong. If you have very little data, your "best guess" for a category's location might be way off, leading the model to be dangerously overconfident in its predictions.

Methods

The authors move from a single "best guess" to a fully Bayesian framework. Instead of picking one latent mapping, they treat the latent variables as unknown parameters with their own probability distributions.

  1. MCMC Sampling: They use the No-U-Turn Sampler (NUTS), a sophisticated Markov Chain Monte Carlo algorithm, to sample from the posterior distribution of the latent variables and GP hyperparameters.
  2. Symmetry Breaking: Latent spaces are tricky because they are invariant to rotation and translation (you can spin the map, and the distances stay the same). The authors implement a clever two-stage prior using Givens rotations to fix the coordinate frame without biasing the model.
  3. Representative Latent Space: Since MCMC produces thousands of different "maps," the authors developed a method to find a single "representative" latent space for visualization. This allows engineers to still see which categories are "close" to each other.
  4. Sparse Approximations: To handle larger datasets where MCMC would be too slow, they adapted sparse GP techniques (FITC and VFE) to work with latent categorical variables.

Datasets

The authors validated their approach across several challenging benchmarks:

  • Engineering Simulators: Modified versions of the Borehole (water flow), OTL Circuit (voltage), and Piston (cycle time) functions, where continuous variables were discretized into categories.
  • Lacunar Spinels: A materials science dataset involving 270 compounds, predicting bandgaps and stability based on atomic compositions.
  • M2AX Materials: Predicting elastic moduli (Young’s, shear, and bulk) for 223 different phases.
  • ABO3 Perovskites: A large-scale dataset ($N=5276$) used to test the sparse Bayesian approximations for predicting formation energies.

Key Insights and Ideas

  • The "Bayesian Bonus": In standard GPs with only numerical inputs, a fully Bayesian treatment often provides only marginal gains over MLE. However, in LVGPs, the number of parameters grows with the number of categorical levels. This makes the "plug-in" approach much more fragile. The authors found that for LVGPs, the Bayesian treatment is essential, not just an optional refinement.
  • Fixing Overconfidence: The most striking insight is the improvement in coverage. In many tests, the traditional MAP approach produced 95% confidence intervals that only contained the true value 30-50% of the time. The fully Bayesian model corrected this, consistently hitting the ~95% mark.
  • Interpretability is Preserved: By calculating a "representative" map, the model still tells a story. For example, in the Borehole test, the latent space correctly grouped categories that shared the same underlying physical properties, even though the model was never told those properties existed.

Key Results

  • Prediction Accuracy: The Relative Root Mean Squared Error (RRMSE) was significantly lower in the Bayesian version, especially for the materials science datasets.
  • Uncertainty Quantification: The Mean Interval Score (MIS)—a metric that rewards narrow but accurate intervals—showed massive improvements. The Bayesian model was much better at "knowing what it doesn't know."
  • Scalability: Using the sparse VFE approximation, the authors successfully applied the Bayesian LVGP to a dataset with over 5,000 observations and 73 categorical levels, a task that would be computationally impossible with exact MCMC.

Limitations and Future Work

  • Computational Overhead: The primary drawback is speed. Running MCMC is roughly an order of magnitude slower than finding a point estimate. While the authors' sparse approximations help, it remains a "heavy" model.
  • Inducing Point Optimization: In the sparse version, the authors fixed the locations of "inducing points" to their MAP estimates to keep the MCMC tractable. A "fully-fully" Bayesian approach that also samples these locations could be a future direction.
  • High-Dimensional Latent Spaces: Most experiments used a 2D latent space. Exploring how the model behaves when categories are mapped to 3D or higher dimensions remains an open question.

Summary updated

BibTeX
@article{university2023fully,
  author = {Wei Chen, Northwestern University and Suraj Yerramilli and Akshay Iyer and Wei Chen and Daniel W. Apley},
  title = {{Fully Bayesian Inference for Latent Variable Gaussian Process Models}},
  journal = {Siam/asa J. Uncertain. Quantification},
  year = {2023},
  doi = {10.1137/22m1525600},
}
Figure