Variational Orthogonal Features

David R. Burt, Carl Edward Rasmussen, Mark van der WilkarXiv 2020

Abstract

Gaussian Processes (GPs) are powerful Bayesian tools for regression but suffer from $O(N^3)$ computational scaling. While sparse methods reduce this to $O(NM^2)$, they still face an $O(M^3)$ bottleneck when inverting the inducing feature covariance matrix. We present Variational Orthogonal Features (VOF), a novel framework that diagonalizes the prior covariance matrix for any stationary kernel. By leveraging Bochner’s Theorem to construct an orthogonal basis in the spectral domain, VOF eliminates the $O(M^3)$ overhead, enabling models to scale to significantly larger numbers of features and data points.

Introduction

The primary challenge in scaling Gaussian Processes is the computational cost of matrix operations. Sparse GP methods approximate the full posterior using $M$ inducing points, but the resulting $O(M^3)$ cost per iteration to invert the covariance matrix $K_{uu}$ limits the resolution of the approximation. Previous attempts to diagonalize this matrix were restricted to specific kernels. VOF provides a universal solution for all stationary kernels by moving from inducing points to inducing features—integral transformations of the GP process.

Methodology

The core of VOF lies in Bochner’s Theorem, which states that any stationary kernel can be represented by its spectral density (its Fourier transform). By choosing basis functions that are orthogonal with respect to this spectral density, the authors ensure that the features are uncorrelated under the prior. This mathematical transformation makes $K_{uu}$ a diagonal matrix, turning a complex inversion problem into a simple element-wise operation.

Implementations

  1. Hermite Function Features: Offers a closed-form, analytic solution specifically for Squared Exponential (SE) kernels.
  2. Trigonometric Variational Orthogonal Features (TrigVOF): A general approach applicable to any stationary kernel. It utilizes Monte Carlo (MC) sampling to obtain unbiased estimates of the Evidence Lower Bound (ELBO) when integrals are not analytic.

Spectral Bandwidth and Approximation

A critical component of the TrigVOF implementation is the parameter $a$, which defines the range of frequencies the model can capture. The interaction between this spectral bandwidth and the number of features $M$ is essential for accurate kernel reconstruction.

TrigVOF kernel approximation. The top row demonstrates that increasing the frequency range 'a' expands the valid approximation area, while the bottom row shows the refinement provided by increasing the number of features 'M'.

As illustrated in the figure above, if $a$ is too small, the model misses high-frequency details. Conversely, if $a$ is too large, the features are spread too thin, requiring a much larger $M$ to be effective.

Empirical Results

Validation on 1D synthetic regression tasks confirms that VOF can recover the exact posterior of a full GP regression when hyperparameters are well-tuned.

1D regression performance. Sub-optimal frequency range 'a' (top left) leads to over-smoothing, whereas optimized 'a' (top right) successfully recovers the exact GP posterior (bottom right).

Beyond the diagonalization of the prior, the authors provide evidence that the optimal variational covariance matrix $S$ naturally tends toward a diagonal structure as the number of data points $N$ grows. This justifies a "mean-field" approximation, which further reduces computational complexity from $O(NM^2)$ to $O(NM)$ per iteration.

Conclusion and Limitations

VOF effectively removes the $O(M^3)$ bottleneck in sparse GP inference. However, challenges remain regarding high-dimensional data, where the number of features required to cover the spectral space grows exponentially. Additionally, the use of Monte Carlo sampling in TrigVOF introduces stochastic variance that must be managed. Future work focusing on additive models and variance reduction could further extend the utility of orthogonal features in complex, high-dimensional Bayesian modeling.

Summary updated

BibTeX
@misc{burt2020variational,
  author = {David R. Burt and Carl Edward Rasmussen and Mark van der Wilk},
  title = {{Variational Orthogonal Features}},
  year = {2020},
  eprint = {2006.13170},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.13170},
}
Figure