Abstract
Gaussian Processes (GPs) are powerful tools for non-parametric regression but are limited by $O(N^3)$ computational complexity. Random Fourier Features (RFFs) provide a scalable alternative by approximating kernels through spectral density sampling. However, traditional sampling methods often fail to capture complex or data-dependent spectral measures. This paper introduces Stein Random Features (SRF), a framework that employs Stein Variational Gradient Descent (SVGD) to generate high-quality spectral samples. We further propose Mixture Stein Random Feature Regression (M-SRFR), which treats kernel learning as Bayesian inference over the space of measures. Our results demonstrate that M-SRFR significantly improves kernel approximation accuracy and regression performance on both stationary and non-stationary datasets, including large-scale ocean modeling.
The Scalability Challenge in Gaussian Processes
Gaussian Processes are the "gold standard" for non-parametric regression due to their robust uncertainty estimates. However, their cubic scaling with respect to the number of data points $N$ makes them impractical for modern large-scale datasets.
To address this, researchers frequently turn to Random Fourier Features (RFFs). Based on Bochner’s Theorem, any stationary kernel can be represented as an expectation over a spectral density. By sampling from this density, we can construct a low-rank approximation of the GP. The primary challenge lies in the sampling process: the quality of the GP approximation depends entirely on how accurately we sample the spectral density. Traditional Monte Carlo methods often struggle when the density is complex, non-analytical, or when the kernel must be learned directly from data.
Methods: Stein Random Features
The authors bridge the gap between Functional Kernel Learning and Stein Variational Gradient Descent (SVGD) to create a more flexible sampling framework.
- Stein Random Features (SRF): Instead of simple Monte Carlo sampling, SRF uses SVGD to generate RFF samples. SVGD iteratively moves a set of "particles" (frequencies) toward high-probability regions of the spectral density. A built-in "repulsive force" prevents these particles from collapsing into a single mode, ensuring diversity in the learned frequencies. This approach only requires the gradient of the log-density, making it applicable to a wider range of kernels than methods requiring inverse CDFs.
- Mixture Stein Random Feature Regression (M-SRFR): This core contribution treats kernel learning as Bayesian inference. The model maintains $M$ different sets of frequency matrices and updates them using a Stein-based rule, allowing it to capture complex, multi-modal spectral measures.
- Deep M-SRFR: To handle non-stationary data—where the kernel properties change across the input space—the authors prepend a neural network to the M-SRFR model. This allows the system to learn complex input projections before applying the kernel mixture.
Key Insights
- Theoretical Foundation: The authors prove that optimizing a kernel's spectral measure with entropy regularization is mathematically equivalent to the SVGD update rule. This provides a formal justification for using particle-based methods in kernel learning.
- Natural Regularization: The repulsive force in SVGD acts as a built-in regularizer, encouraging diversity among learned frequencies and preventing the "mode collapse" often seen in traditional RFF learning.
- Modular Design: M-SRFR is highly flexible and can be integrated into larger architectures, such as Deep GPs or Deep Kernel Learning pipelines, with minimal modification.
Experimental Results
The framework was evaluated against standard benchmarks and large-scale real-world data.
Kernel Approximation Accuracy
In synthetic tests, SVGD-based sampling significantly outperformed Monte Carlo (MC), Quasi-Monte Carlo (QMC), and Nyström approximations. As shown in the performance metrics below, SVGD achieves a lower Frobenius norm error as the number of features increases and maintains superior performance across higher dimensionalities.
Regression Benchmarks
- UCI Datasets: M-SRFR achieved the lowest Root Mean Square Error (RMSE) across multiple standard datasets. For example, on the airfoil dataset, M-SRFR reached an RMSE of 1.88, significantly better than the 2.36 achieved by Sparse Variational GPs (SVGP).
- AUSWAVE Ocean Modeling: On a massive dataset of 1.7 million points, the Deep M-SRFR variant outperformed all baselines in predicting significant wave height. This success on non-stationary data highlights the value of the mixture approach combined with deep feature learning.
Conclusion
Stein Random Feature Regression offers a principled and scalable way to enhance Gaussian Processes. By leveraging the diversity-promoting properties of SVGD, the method provides superior kernel approximations and handles non-stationary data more effectively than traditional low-rank methods. Future work will focus on improving uncertainty calibration (NLPD) and extending the framework to non-Gaussian likelihoods for classification tasks.
Summary updated