NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Approximate Inference for Spectral Mixture Kernel

Yohan Jung, Kyungwoo Song, Jinkyoo ParkarXiv 2020

Abstract

A spectral mixture (SM) kernel is a flexible kernel used to model any stationary covariance function. Although it is useful in modeling data, the learning of the SM kernel is generally difficult because optimizing a large number of parameters for the SM kernel typically induces an over-fitting, particularly when a gradient-based optimization is used. Also, a longer training time is required. To improve the training, we propose an approximate Bayesian inference for the SM kernel. Specifically, we employ the variational distribution of the spectral points to approximate SM kernel with a random Fourier feature. We optimize the variational parameters by applying a sampling-based variational inference to the derived evidence lower bound (ELBO) estimator constructed from the approximate kernel. To improve the inference, we further propose two additional strategies: (1) a sampling strategy of spectral points to estimate the ELBO estimator reliably and thus its associated gradient, and (2) an approximate natural gradient to accelerate the convergence of the parameters. The proposed inference combined with two strategies accelerates the convergence of the parameters and leads to better optimal parameters.

Introduction

Gaussian Processes (GPs) are a powerhouse in machine learning for uncertainty quantification, but they live and die by their choice of kernel. While the Spectral Mixture (SM) kernel is incredibly flexible—theoretically capable of approximating any stationary covariance function—it is notoriously difficult to train. Its high number of hyperparameters often leads to severe over-fitting and agonizingly slow convergence.

Standard training involves optimizing a large number of hyperparameters via gradient descent. This often leads to over-fitting, high computational costs on large datasets, and instability in the Evidence Lower Bound (ELBO) during training. To address these issues, we propose the Stochastic Variational Sparse Spectrum (SVSS) framework, which moves from point estimation to Bayesian inference.

Methodology

The core idea of SVSS is to treat spectral points as random variables. By employing a variational distribution over these points and using Random Fourier Features (RFF) to approximate the kernel, we derive a regularized ELBO where a KL-divergence term acts as a natural regularizer against over-fitting.

Outline of the proposed approximate inference for SM kernel, illustrating the sampling strategy and natural gradient updates.

Key technical contributions include:

  • Optimal Sampling Strategy (Proposition 2): To reduce the volatility of the ELBO estimator, we derived an optimal ratio for sampling spectral points from different mixture components. We sample more from components that contribute more to the variance of the kernel approximation.
  • Approximate Natural Gradient (Proposition 3): We propose an approximate natural gradient update in the log-domain, which significantly accelerates the convergence of the variational parameters by accounting for the information geometry of the distributions.

Experimental Results

We evaluated our approach across a diverse range of benchmarks, including UCI regression datasets and large-scale datasets like Protein, Blog, and CTslice.

Kernel Approximation Accuracy

As shown in the relative error plots for the Concrete and Parkinsons datasets, our proposed sampling strategy (represented by the orange and green lines) consistently results in lower relative error for kernel approximation compared to naive equal sampling (purple line), even with a small number of spectral points ($M$).

Relative error of kernel approximation on Concrete and Parkinsons datasets. The proposed sampling strategies consistently outperform naive and equal weighting methods.

Performance on Large-Scale Data

The proposed SVSS-WsNg method consistently outperformed baseline methods like Variational Inducing Input (VFE) and standard Sparse Spectrum GP (SSGP). On the CTslice dataset (over 50,000 samples), our method achieved a significantly lower RMSE (7.867) compared to SSGP (8.122). Furthermore, in Skillcraft experiments, SVSS variants converged to lower test RMSE values much faster than standard methods, demonstrating the synergy between the sampling strategy and natural gradients.

Conclusion

The transition from standard optimization to variational inference provides a crucial "safety net" for training Spectral Mixture kernels. The combination of smart sampling and natural gradients enables faster convergence and better predictive performance on large-scale tasks while effectively mitigating over-fitting. Future work includes extending this approach to non-stationary kernels and improving hyperparameter initialization.

Summary updated

BibTeX
@misc{jung2020approximate,
  author = {Yohan Jung and Kyungwoo Song and Jinkyoo Park},
  title = {{Approximate Inference for Spectral Mixture Kernel}},
  year = {2020},
  eprint = {2006.07036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.07036},
}
Figure