Fusion of Gaussian Processes Predictions with Monte Carlo Sampling

Marzieh Ajirak, Daniel Waxman, Fernando Llorente, Petar M. Djuric

Abstract

This paper introduces a novel framework for fusing predictions from multiple Gaussian Process (GP) models using log-linear pooling and input-dependent weights. By combining Random Fourier Features (RFF) for scalability with Hamiltonian Monte Carlo (HMC) for robust Bayesian inference, the authors demonstrate that "product-based" ensembles can significantly outperform traditional linear mixtures in predictive accuracy and uncertainty quantification. Empirical results on synthetic data highlight the advantages of joint learning and the flexibility of log-linear pooling in handling complex, non-Gaussian data distributions.

Introduction

In machine learning, ensembles are frequently employed because any single model is typically an approximation of reality. The challenge lies in how to effectively "fuse" these disparate predictions. Standard approaches, such as Bayesian Model Averaging (BMA) or standard stacking, often rely on linear pooling—a weighted average of probability distributions. However, linear pooling can be limited in how it handles predictive variance, often becoming overconfident in mediocre models when the "true" model is not in the candidate set.

This research explores log-linear pooling (a weighted geometric average), which offers distinct mathematical properties. Unlike linear pooling, log-linear weights are unconstrained by a simplex (summing to one), providing greater flexibility to adjust predictive variances across different regions of the input space.

Methodology

The authors propose two primary models and compare them against existing standards:

  1. Product-BHS (P-BHS): A variant of Bayesian Hierarchical Stacking that uses log-linear pooling to combine pre-trained GP models.
  2. Product of GP Experts (PoGPE): A model that jointly learns both the GP "experts" and the "gating network" (the weights assigned to each expert) using log-linear pooling.

Model Architecture

The distinction between stacking and joint learning is central to the study. Stacking involves fusing pre-trained experts, while joint learning allows experts to specialize during the training process.

Graphical models illustrating the difference between (a) Stacking and (b) Joint Learning architectures.

Key Technical Components

  • Log-Linear Pooling: Instead of summing distributions, the models multiply them: $p_{f} \propto \prod p_k^{w_k}$. For Gaussian distributions, this results in a new Gaussian where the precision (inverse variance) is a weighted sum of the experts' precisions.
  • Random Fourier Features (RFF): To address the $O(N^3)$ scaling complexity of standard GPs, the authors use RFF to approximate the GP kernel, transforming the problem into a scalable linear model.
  • Monte Carlo Sampling: The authors utilize the No-U-Turn Sampler (NUTS) to sample the posterior distribution of the input-dependent weights, allowing the model to account for weight uncertainty.

Experimental Results

The study utilized a synthetic 1D dataset designed to test ensembling capabilities, specifically measuring how well each method recovers the underlying distribution and handles heteroscedasticity. Performance was measured using Mean Negative Log-Predictive Density (NLPD), where lower values indicate superior performance.

Quantitative results showing NLPD performance across varying numbers of experts (K) and spectral frequencies (M).

Key Insights

  • The "Product" Advantage: P-BHS (log-linear) consistently outperformed standard BHS (linear) across various numbers of experts ($K$).
  • Joint Learning vs. Stacking: Jointly training experts and weights (PoGPE) generally yielded better results than stacking pre-trained models (P-BHS), as experts could specialize in different data regions.
  • Scalability and Complexity: For joint models, increasing the number of spectral frequencies ($M$)—which controls the resolution of the GP approximation—led to nearly an order of magnitude improvement in predictive performance.
  • Expert Trade-off: In stacking methods, increasing the number of experts ($K$) beyond a certain point can decrease performance, likely due to splitting training data too thinly among pre-trained experts.

Conclusion

The proposed framework demonstrates that log-linear pooling combined with scalable RFF-GPs and MCMC sampling provides a robust method for model fusion. While currently validated on 1D synthetic data, the results suggest significant potential for high-dimensional applications. Future work will explore Variational Inference (VI) as a faster alternative to MCMC and further empirical validation on real-world datasets.

Summary updated

BibTeX
@inproceedings{ajirak2023fusion,
  author = {Marzieh Ajirak and Daniel Waxman and Fernando Llorente and Petar M. Djuric},
  title = {{Fusion of Gaussian Processes Predictions with Monte Carlo Sampling}},
  booktitle = {ACSSC},
  year = {2023},
}
Figure