Abstract
Gaussian Processes (GPs) are powerful Bayesian tools often limited by the choice of kernel. Standard kernels typically assume stationarity and monotony, failing to capture complex, non-stationary patterns. We introduce Neural-GSM, a GP kernel that employs deep neural networks to learn input-dependent hyperparameters. This method replaces the computationally expensive GP priors of previous non-stationary kernels, resulting in enhanced predictive accuracy and a 2x training speedup across complex time-series and regression tasks.
Introduction: Beyond Stationary Kernels
Traditional GP kernels, such as the Squared Exponential (RBF), rely on stationarity—the assumption that the relationship between points depends solely on their distance, not their absolute location. While Spectral Mixture (SM) kernels introduced the ability to model periodic patterns, they remained stationary. Non-stationary variants like the Generalized Spectral Mixture (GSM) kernel exist but are often "GPs all the way down," making them computationally prohibitive and difficult to scale.
Methods: The Neural-GSM Architecture
Neural-GSM parameterizes the GSM kernel using a deep neural network instead of secondary GPs. The kernel's hyperparameters—mixture weights $w(x)$, length-scales $\ell(x)$, and frequencies $\mu(x)$—are modeled as functions of the input $x$ through a shared feed-forward neural network.
Architecture Details
- Shared Representation: The network utilizes hidden layers with SELU (Scaled Exponential Linear Units) activations to learn common features from the input.
- Task-Specific Heads: The final layer branches into separate heads for $w, \ell,$ and $\mu$.
- Positivity Constraints: Softplus activations are applied to ensure that weights and length-scales remain positive, a requirement for valid covariance functions.
To handle large-scale data, the model is integrated into a Sparse Stochastic Variational Inference (SVGP) framework. This allows the model to scale to tens of thousands of data points by using inducing points to approximate the full GP, bypassing the standard $O(N^3)$ complexity.
Experimental Evaluation
Neural-GSM was evaluated across several benchmarks, including UCI regression tasks (Power Plant, Protein Structure), solar activity time series (Annual Irradiance, Monthly Sunspots), and human motion capture data.
- Performance: The model achieved state-of-the-art log-likelihood and lowest Mean Square Error (MSE) on most datasets, outperforming RBF, stationary SM, and GP-parameterized GSM kernels.
- Efficiency: Neural-GSM proved to be roughly twice as fast per iteration as GP-based non-stationary methods due to the efficiency of neural network evaluations compared to GP posteriors.
- Qualitative Fit: In motion capture and sunspot data, the model successfully adapted to changing cycle amplitudes and sharp transitions that stationary kernels typically smooth over. Because the frequency $\mu(x)$ is input-dependent, the kernel can effectively "speed up" or "slow down" its periodicity.
Conclusion
By amortizing the learning of kernel parameters through a neural network, Neural-GSM provides a scalable and efficient path toward non-stationary Gaussian Processes. While the model is sensitive to initialization like many deep learning hybrids, it offers a significant wall-clock time advantage and superior flexibility in capturing complex real-world dynamics. Future work includes exploring heteroscedastic noise models and higher-dimensional input spaces.
Summary updated