Abstract
The kernel function and its hyperparameters are the central model selection choice in a Gaussian process (Rasmussen and Williams, 2006). Typically, the hyperparameters of the kernel are chosen by maximising the marginal likelihood, an approach known as Type-II maximum likelihood (ML-II). However, ML-II does not account for hyperparameter uncertainty, and it is well-known that this can lead to severely biased estimates and an underestimation of predictive uncertainty. While there are several works which employ a fully Bayesian characterisation of GPs, relatively few propose such approaches for the sparse GPs paradigm. In this work we propose an algorithm for sparse Gaussian process regression which leverages MCMC to sample from the hyperparameter posterior within the variational inducing point framework of Titsias (2009). This work is closely related to Hensman et al. (2015b) but side-steps the need to sample the inducing points, thereby significantly improving sampling efficiency in the Gaussian likelihood case. We compare this scheme against natural baselines in literature along with stochastic variational GPs (SVGPs) along with an extensive computational analysis.
Introduction
Gaussian Processes (GPs) are a cornerstone of Bayesian non-parametrics, offering principled uncertainty quantification for regression and classification. However, the efficacy of a GP is fundamentally tied to its kernel hyperparameters—such as lengthscales and signal variance. The standard practice for selecting these parameters is Type-II Maximum Likelihood (ML-II), which treats hyperparameters as point estimates by maximizing the marginal likelihood.
While computationally efficient, ML-II ignores the inherent uncertainty in the hyperparameters themselves. This neglect often results in "over-confident" models that underestimate predictive risk, particularly in regions with sparse data. Furthermore, the likelihood surface in GP models frequently contains "ridges" or local optima where multiple hyperparameter configurations appear equally plausible to an optimizer but yield drastically different predictions. Fully Bayesian approaches, which integrate over the hyperparameter posterior, address these issues but are often computationally prohibitive, especially when combined with sparse GP approximations required for large-scale datasets.
The Doubly Collapsed Variational Framework
This work introduces a "doubly collapsed" variational framework for Sparse Gaussian Process Regression (SGPR). The goal is to provide a robust Bayesian treatment of hyperparameters without the sampling inefficiencies that plague previous joint-inference methods.
1. The Collapse Trick
In traditional variational sparse GPs, inducing variables ($u$) are introduced to summarize the dataset. Previous Bayesian treatments attempted to sample both $u$ and the hyperparameters ($ heta$) simultaneously. However, for Gaussian likelihoods, the optimal distribution for the inducing variables can be derived analytically. By leveraging this, the authors "collapse" the inducing variables out of the Evidence Lower Bound (ELBO).
2. Hybrid Inference Strategy
By integrating out the inducing variables, the dimensionality of the sampling space is significantly reduced. The authors employ a hybrid approach:
- Hyperparameter Sampling: Hamiltonian Monte Carlo (HMC), specifically the No-U-Turn Sampler (NUTS), is used to sample from the posterior of the hyperparameters $ heta$.
- Location Optimization: The spatial locations of the inducing points ($Z$) are simultaneously optimized using stochastic gradients.
The resulting predictive posterior is a mixture of Gaussians, representing a weighted average of predictions across the diverse, plausible hyperparameter settings identified by the MCMC sampler.
Experimental Evaluation
The proposed method (SGPR+HMC) was evaluated against standard ML-II optimized sparse GPs (SGPR and SVGP) across several benchmarks:
- Synthetic 1D Data: Designed with large gaps to test extrapolation. SGPR+HMC significantly outperformed ML-II in terms of Negative Log Predictive Density (NLPD), demonstrating superior uncertainty quantification in regions lacking data.
- UCI Regression Benchmarks: Across five standard datasets (Boston Housing, Concrete, Energy, WineRed, and Yacht), the integrated approach consistently achieved lower RMSE and NLPD.
- Scalability Analysis: On the Elevator dataset ($N \approx 16,600$), the method demonstrated improved computational efficiency over joint-sampling methods. SGPR+HMC completed in approximately 1,248 seconds compared to 2,109 seconds for joint HMC, while delivering superior predictive performance.
Key Insights
Robustness to Inducing Points
A critical finding of this work is that Bayesian integration makes the model significantly more robust to the number of inducing points ($M$). While ML-II performance is highly sensitive to the choice of $M$, the SGPR+HMC approach maintains high performance even with a smaller number of points, as the integration over hyperparameters compensates for the structural approximation.
Avoiding Overfitting Traps
ML-II is prone to falling into "low noise" traps—local optima characterized by very short lengthscales and minimal noise, which lead to overfitting. By exploring the full posterior landscape, the Bayesian approach averages over these peaks, providing a more "honest" and generalized predictive distribution.
Comparison to Deep GPs
Interestingly, this refined treatment of hyperparameters in a shallow sparse GP often matched or exceeded the performance of more complex 2-4 layer Deep Gaussian Processes. This suggests that in many regression tasks, a rigorous Bayesian treatment of a single-layer model's hyperparameters may be more beneficial than increasing model depth.
Conclusion and Future Work
The doubly collapsed framework offers a powerful middle ground between the speed of ML-II and the rigor of fully Bayesian GPs. By analytically integrating inducing variables, the method makes MCMC inference practical for sparse GPs.
Currently, the framework is limited to Gaussian likelihoods due to the requirement for conjugacy in the "collapse" step. Future research directions include extending this methodology to non-Gaussian likelihoods (such as classification) through further approximations and exploring its application in Deep Kernel Learning, where GPs are integrated with neural network architectures.
Summary updated