Scalable Multi-Output Gaussian Processes with Stochastic Variational Inference

Xiaoyu Jiang, Sokratia Georgaka, Magnus Rattray, Mauricio A Álvarez

Abstract

The Multi-Output Gaussian Process (MOGP) is a popular tool for modelling data from multiple sources. A typical choice to build a covariance function for a MOGP is the Linear Model of Coregionalisation (LMC) which parametrically models the covariance between outputs. The Latent Variable MOGP (LV-MOGP) generalises this idea by modelling the covariance between outputs using a kernel applied to latent variables, one per output, leading to a flexible MOGP model that allows efficient generalisation to new outputs with few data points. The computational complexity in LV-MOGP grows linearly with the number of outputs, which makes it unsuitable for problems with a large number of outputs. In this paper, we propose a stochastic variational inference approach for the LV-MOGP that allows mini-batches for both inputs and outputs, making computational complexity per training iteration independent of the number of outputs. We demonstrate the performance of the model by benchmarking against some other MOGP models in several real-world datasets, including spatial-temporal climate modelling and spatial transcriptomics.

Introduction

Gaussian Processes (GPs) are highly regarded for their non-parametric Bayesian modeling and uncertainty estimation. However, their cubic scaling $O(N^3)$ with respect to data points $N$ is a significant limitation. Multi-Output GPs (MOGPs) further complicate this by introducing a dependency on the number of outputs $D$. Flexible models like the Latent Variable MOGP (LV-MOGP) typically scale linearly with $D$, making them impractical for high-dimensional datasets such as spatial transcriptomics (thousands of genes) or large-scale sensor networks.

Methodology

The proposed Generalised Scalable Latent Variable MOGP (GS-LVMOGP) addresses these scalability issues through three key innovations:

  1. Doubly Stochastic Variational Inference: By employing mini-batching for both inputs ($N$) and outputs ($D$), the training complexity per iteration becomes independent of the total number of outputs.
  2. Multi-Dimensional Latent Space ($Q \ge 1$): Unlike previous models that used a single latent variable per output, GS-LVMOGP generalizes to $Q$ latent variables, allowing it to capture complex, multi-layered correlations.
  3. Non-Gaussian Likelihoods: The framework utilizes Gauss-Hermite quadrature to support non-Gaussian distributions, such as Poisson likelihoods for count data.

Experimental Evaluation

The authors evaluated GS-LVMOGP on several real-world datasets, including exchange rates, NYC crime counts, and spatiotemporal temperature data.

Spatial grid used for evaluating output extrapolation in spatiotemporal climate modeling.

In the spatiotemporal temperature task, the model was tested on its ability to perform "output extrapolation"—predicting temperatures at new locations (e.g., points A-I in the grid above) by leveraging learned spatial correlations in the latent space.

Key Results

The results demonstrate that GS-LVMOGP is not only scalable but also more accurate than existing baselines. On the Exchange Rates dataset, the model showed significant performance gains as the number of latent variables $Q$ increased.

Comparison of SMSE and NLPD across various MOGP models on the Exchange Rates dataset.

Key findings include:

  • Scalability: The model successfully handled 5,000 outputs in the spatial transcriptomics task, where traditional MOGPs fail.
  • Latent Discovery: In genomics, clustering the learned latent variables identified biological structures like "Tumor" vs. "Normal Gland" without explicit labels.
  • Poisson Modeling: For the NYC Crime dataset, the Poisson variant of GS-LVMOGP significantly outperformed Gaussian approximations, highlighting the importance of flexible likelihoods.

Conclusion

GS-LVMOGP provides a scalable framework for high-dimensional multi-output modeling. By decoupling training complexity from the number of outputs, it opens the door for Gaussian Processes in fields like genomics and large-scale IoT. Future work will address the linear growth of parameters with $D$ and improve prediction approximations for new outputs.

Summary updated

BibTeX
@article{jiang2025scalable,
  author = {Xiaoyu Jiang and Sokratia Georgaka and Magnus Rattray and Mauricio A Álvarez},
  title = {{Scalable Multi-Output Gaussian Processes with Stochastic Variational Inference}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=kK0WrBZAli},
}
Figure