Abstract
In this work, we present an extension of Gaussian process (GP) models with sophisticated parallelization and GPU acceleration. The parallelization scheme arises naturally from the modular computational structure w.r.t. datapoints in the sparse Gaussian process formulation. Additionally, the computational bottleneck is implemented with GPU acceleration for further speed up. Combining both techniques allows applying Gaussian process models to millions of datapoints. The efficiency of our algorithm is demonstrated with a synthetic dataset. Its source code has been integrated into our popular software library GPy.
Introduction
Gaussian Processes (GPs) are widely regarded as the "gold standard" for non-parametric regression and uncertainty quantification. However, their practical application has long been hindered by a notorious computational cost: standard GP inference scales at $O(N^3)$, where $N$ is the number of datapoints. While sparse GP approximations—which utilize $M$ inducing points—reduce this complexity to $O(NM^2)$, the linear dependence on $N$ remains a significant bottleneck when scaling to "big data" regimes involving millions of observations.
This work addresses these limitations by introducing a high-performance framework that combines MPI-based parallelization with GPU acceleration. By exploiting the inherent modularity of sparse GP formulations, we demonstrate that GPs can be scaled to handle massive datasets efficiently.
Methodology
The core of our approach leverages the variational formulation of sparse GPs. A key observation is that the variational lower bound (the objective function for optimization) can be decomposed into a sum of terms that are independent across datapoints. This property enables two primary optimization strategies:
- Data Parallelism via MPI: Since the computation of key components (specifically $\phi, \Phi, \text{ and } \Psi$) involves summations over $N$, the data can be partitioned across multiple compute nodes. Each node computes its local sum independently, requiring only minimal synchronization at the end of each iteration.
- GPU Acceleration: Even with distributed data, calculating the expectations of kernel products remains the primary computational bottleneck. We moved these specific operations to the GPU, implementing custom kernels designed to handle the parallel computation of inducing point pairs efficiently.
Crucially, this framework has been integrated into GPy, a popular Python library for Gaussian Processes, ensuring that these advancements are accessible to the broader research community.
Experimental Setup
To evaluate the scaling properties of our implementation, we utilized a synthetic dataset designed for dimensionality reduction using the Bayesian GP-LVM.
- Dataset Size: Up to 64,000 datapoints were used to measure performance across various hardware configurations.
- Task: The model was tasked with recovering a 1D latent representation from 3D data generated via a Radial Basis Function (RBF) kernel.
- Hardware: Experiments compared performance across different numbers of CPU cores (1 to 32) and GPUs (1 to 4).
Results and Discussion
Scaling and Efficiency
Our results demonstrate that the computational time scales linearly with the number of datapoints ($N$), confirming that the $O(NM^2)$ complexity is maintained and effectively distributed. Furthermore, we observed near-linear speedups as more hardware resources were added. Notably, a single GPU can outperform a 32-core CPU node, highlighting that GP bottlenecks are primarily limited by memory bandwidth and floating-point operations—tasks where GPUs excel.
Communication Overhead
A critical concern in parallel computing is the overhead introduced by inter-node communication. Our analysis shows that the percentage of "indistributable" computational time (overhead) decreases significantly as the number of datapoints increases. For large datasets, the communication cost becomes negligible, allowing for efficient scaling across many nodes.
Conclusion and Future Work
This work demonstrates that Gaussian Processes can indeed scale to millions of datapoints through modern parallelization and GPU acceleration. While the current implementation shows impressive linear scaling, a potential future bottleneck lies in the centralized optimization step, where gradients from all nodes are processed by a single "master" node. Future research will explore decentralized optimization and the application of these techniques to more complex models, such as Deep GPs, on real-world massive datasets.
Summary updated