Abstract
Gaussian processes (GPs) are non-linear probabilistic models popular in many applications. However, naïve GP realizations require quadratic memory to store the covariance matrix and cubic computation to perform inference or evaluate the likelihood function. These bottlenecks have driven much investment in the development of approximate GP alternatives that scale to the large data sizes common in modern data-driven applications. We present in this manuscript MuyGPs, a novel efficient GP hyperparameter estimation method. MuyGPs builds upon prior methods that take advantage of the nearest neighbors structure of the data, and uses leave-one-out cross-validation to optimize covariance (kernel) hyperparameters without realizing a possibly expensive likelihood. We describe our model and methods in detail, and compare our implementations against the state-of-the-art competitors in a benchmark spatial statistics problem. We show that our method outperforms all known competitors both in terms of time-to-solution and the root mean squared error of the predictions.
Introduction
Gaussian Processes (GPs) are widely regarded as the "gold standard" for spatial interpolation and non-linear probabilistic modeling due to their ability to provide both accurate predictions and well-calibrated uncertainty estimates. However, their practical application is severely limited by scalability issues. Standard GP inference requires $O(n^2)$ memory to store the covariance matrix and $O(n^3)$ computation for inversion. For modern datasets, such as those in remote sensing with hundreds of thousands of points, these requirements become prohibitive. While various approximations like Nearest Neighbor Gaussian Processes (NNGP) or Stochastic Partial Differential Equations (SPDE) have been proposed, they often force a trade-off between computational efficiency and predictive accuracy.
Methodology: The MuyGPs Framework
MuyGPs addresses the $O(n^3)$ bottleneck by shifting the optimization target from the global marginal likelihood to local cross-validation. The framework is built on three primary pillars:
1. Local Kriging
Instead of utilizing the entire dataset of $n$ points for every prediction, MuyGPs restricts the computation to the $k$ nearest neighbors of each point. This reduces the core computational complexity from $O(n^3)$ to $O(nk^3)$, making the process significantly more manageable for large $n$.
2. Leave-One-Out Cross-Validation (LOO-CV)
Traditional GP methods optimize hyperparameters by maximizing the marginal likelihood, which is computationally expensive. MuyGPs instead minimizes the mean squared error (MSE) of leave-one-out predictions within the training set. By leveraging only local neighbors for these predictions, the optimization process becomes highly efficient.
3. Sub-sampling and Batching
To achieve independence from the total dataset size $n$, MuyGPs adopts batching techniques common in deep learning. Hyperparameters are optimized using a random subset (batch) of $b$ training points. This results in a final complexity of $O(bk^3)$, where $b$ and $k$ are user-defined constants. Importantly, while optimization is performed on a batch, the neighbors for these points are sampled from the entire dataset, preserving global spatial context.
Experimental Setup
The performance of MuyGPs was evaluated using the MODIS Land Surface Temperature (LST) dataset, a standard benchmark in spatial statistics known as the "Heaton Comparison." This dataset contains daytime temperatures from August 4, 2016, comprising over 105,000 training observations and 42,000 testing points on a $500 \times 300$ grid.
Results and Discussion
MuyGPs demonstrates superior efficiency and competitive accuracy compared to established methods:
- Computational Efficiency: On the MODIS benchmark, the state-of-the-art SPDE method required approximately 120 minutes. In contrast, MuyGPs achieved comparable accuracy in less than one minute on a standard laptop.
- Predictive Accuracy: Utilizing a kernel-smoothed mean function ($\mu_3$) and 50 neighbors, MuyGPs achieved a Root Mean Squared Error (RMSE) between 1.53 and 1.55, placing it among the top-performing methods in the original Heaton competition.
- Scalability: The $O(bk^3)$ complexity ensures that time-to-solution remains nearly constant as the total number of observations $n$ increases, provided the neighborhood size $k$ is fixed.
A key insight from this work is that evaluating the full Gaussian likelihood is not strictly necessary for finding optimal hyperparameters; local LOO-CV serves as an effective and much faster proxy. Furthermore, the choice of mean function is critical; capturing large-scale trends allows the GP to focus on fine-grained residuals.
Conclusion and Future Work
MuyGPs represents a significant advancement in making Gaussian Processes scalable for large-scale spatial data. Future research will explore extending the framework to non-stationary models, where parameters vary spatially, and investigating alternative objective functions to further refine uncertainty quantification.
Reference: Muyskens, A., Priest, B., Goumiri, I., & Schneider, M. (2021). MuyGPs: Scalable Gaussian Process Hyperparameter Estimation Using Local Cross-Validation. arXiv:2104.14581v1.
Summary updated