Abstract
Gaussian processes (GPs) are pervasive in functional data analysis, machine learning, and spatial statistics for modeling complex dependencies. Modern scientific data sets are typically heterogeneous and often contain multiple known discrete subgroups of samples. For example, in genomics applications samples may be grouped according to tissue type or drug exposure. In the modeling process it is desirable to leverage the similarity among groups while accounting for differences between them. While a substantial literature exists for GPs over Euclidean domains $\mathbb{R}^p$, GPs on domains suitable for multi-group data remain less explored. Here, we develop a multi-group Gaussian process (MGGP), which we define on $\mathbb{R}^p\times \mathscr{C}$, where $\mathscr{C}$ is a finite set representing the group label. We provide general methods to construct valid (positive definite) covariance functions on this domain, and we describe algorithms for inference, estimation, and prediction. We perform simulation experiments and apply MGGP to gene expression data to illustrate the behavior and advantages of the MGGP in the joint modeling of continuous and categorical variables.
Introduction
Gaussian Processes (GPs) have long served as a "Swiss Army knife" for non-parametric modeling, valued for their ability to capture complex dependencies and provide principled uncertainty estimates. However, standard GP frameworks are primarily designed for continuous Euclidean domains, such as time or spatial coordinates.
Modern scientific datasets frequently deviate from this simple structure. In genomics, for instance, researchers often measure gene expression across dozens of distinct tissue types. Traditional modeling approaches for such "multi-group" data typically fall into three categories, each with significant drawbacks:
- Separated GP (SGP): Modeling each group independently, which ignores shared patterns and fails when sample sizes are small.
- Union GP (UGP): Pooling all data together, which ignores group-specific signals and washes out heterogeneity.
- Hierarchical GP (HGP): Assuming a shared mean but identical correlations, which is often too restrictive to capture varying levels of similarity between specific pairs of groups.
To bridge this gap, we introduce the Multi-group Gaussian Process (MGGP), a unified framework designed to model data at the intersection of continuous variables and discrete categories.
Methodology
The MGGP is formally defined on the product space $\mathbb{R}^p \times \mathscr{C}$, where $\mathscr{C}$ represents a finite set of group labels. The primary mathematical challenge in this construction is ensuring the validity (positive definiteness) of covariance functions across this hybrid domain.
Metric Embedding and Inseparable Kernels
Our approach treats discrete groups as points within a metric space. By assigning distances between groups—for example, recognizing that different brain regions are biologically "closer" to each other than to the liver—we can employ isometric embeddings. This transforms categorical labels into a coordinate system compatible with standard GP kernels.
Furthermore, we derive "inseparable" kernels where the interaction between the continuous input and the group label is non-trivial. This allows the MGGP to capture scenarios where the underlying process's smoothness or variance changes depending on the specific group being observed.
Theoretical Foundations and Inference
We establish a theoretical bridge between MGGPs and $k$-variate GPs via Cramér’s Theorem, demonstrating that the MGGP is a principled generalization of existing multi-output models. In fact, SGP, UGP, and HGP are all shown to be restricted special cases of the MGGP. For practical application, we provide a full Bayesian framework using Markov Chain Monte Carlo (MCMC) that is compatible with existing sparse GP approximations for large-scale datasets.
Experimental Results
Synthetic Simulations
Controlled experiments with varying group numbers ($k=2, 3$) demonstrated that the MGGP significantly reduces Mean Squared Error (MSE) compared to SGPs and HGPs, particularly in the presence of imbalanced sample sizes. The model excels by "borrowing strength" from data-rich groups to inform predictions for groups with sparse data.
Genomic Application: The GTEx Dataset
We applied the MGGP to the Genotype-Tissue Expression (GTEx) dataset, which contains over 17,000 samples across 52 human tissue types. We modeled the relationship between gene expression and "ischemic time" (the interval between death and sample collection).
The MGGP outperformed all baseline models in predictive accuracy. Beyond prediction, the model autonomously discovered biological relationships. By optimizing the group similarity scale parameter, the MGGP generated tissue similarity mappings that correctly identified clusters of high similarity among brain subtypes and esophageal sections, validating that the mathematical framework aligns with known biological structures.
Discussion and Future Work
The MGGP offers a robust default for multi-group data; if groups are truly independent, the model parameters naturally settle into a separated configuration. However, the current implementation faces the standard $O(N^3)$ computational bottleneck associated with GPs.
Future research will focus on implementing large-scale approximations like inducing points and exploring hybrid kernel structures—such as combining Matérn kernels for within-group dynamics with RBF kernels for between-group relationships. Additionally, extending the MGGP framework from regression to multi-group classification and latent variable modeling remains a promising direction for future study.
Summary updated