Skip to content

Sparse Gaussian process and inducing points

Sparse Gaussian processes use inducing variables to reduce computation. A two-point example shows the low-rank projection, residual variance and variational correction.

A sparse Gaussian process uses a smaller collection of latent inducing variables to make Gaussian-process inference cheaper. In the inducing-point construction, these variables are function values uj=f(zj)u_j=f(z_j) at locations ZZ. The locations can be selected training inputs or optimized pseudo-inputs; they are not additional observed targets. For a quant fitting a smooth response across many market observations, the benefit is retaining information from the training set through a smaller computational representation. “Sparse” here need not mean a covariance matrix full of zeros. Quiñonero-Candela and Rasmussen, §§2–3.

The small matrix is a bridge

Let XX contain NN training inputs and ZZ contain MM inducing inputs. Write KXXK_{XX} for the training covariance, KZZK_{ZZ} for the inducing covariance and KXZK_{XZ} for their cross-covariance. Assuming KZZK_{ZZ} is invertible, define

QXX=KXZKZZ−1KZX.Q_{XX}=K_{XZ}K_{ZZ}^{-1}K_{ZX}.
Its rank is at most MM. For a zero-mean GP, exact Gaussian conditioning gives
p(fX∣u)=N ⁣(KXZKZZ−1u,  KXX−QXX).p(f_X\mid u)=\mathcal N\!\left(K_{XZ}K_{ZZ}^{-1}u,\;K_{XX}-Q_{XX}\right).
This identity is not yet an approximation: the residual covariance remains. It describes variation in the training function values that knowing the inducing values does not resolve. GPML, §8.1.

Two inputs, one inducing point

Take unitless training inputs X=(0,1)X=(0,1) and the RBF kernel with unit variance and length scale,
k(x,x′)=exp⁡(−(x−x′)22).k(x,x')=\exp\left(-\frac{(x-x')^2}{2}\right).

Place one inducing input at z=0z=0. With a=e−1/2≈0.606531a=e^{-1/2}\approx0.606531,

KXX=(1a\a1),KXZ=(1\a),KZZ=(1),K_{XX}=\begin{pmatrix}1&a\a&1\end{pmatrix},\qquad K_{XZ}=\begin{pmatrix}1\a\end{pmatrix},\qquad K_{ZZ}=(1),

so

QXX=(1a\aa2),KXX−QXX=(0001−e−1).Q_{XX}=\begin{pmatrix}1&a\a&a^2\end{pmatrix},\qquad K_{XX}-Q_{XX}=\begin{pmatrix}0&0\\0&1-e^{-1}\end{pmatrix}.

The projection has rank one. It reproduces the covariance with f(0)f(0), but represents only e−1≈0.367879e^{-1}\approx0.367879 of the unit prior variance at x=1x=1. The remaining 0.6321210.632121 is conditional residual variance. It is neither observation noise nor a fitted forecast-error estimate: no targets have been supplied.

Unitless RBF example with training inputs zero and one and a single inducing input at zero. Each prior variance is one. At zero, the projected component is one and residual variance is zero. At one, the projected component is 0.3679 and residual variance is 0.6321. These are prior components, not posterior uncertainty.
Unitless RBF example with training inputs zero and one and a single inducing input at zero. Each prior variance is one. At zero, the projected component is one and residual variance is zero. At one, the projected component is 0.3679 and residual variance is 0.6321. These are prior components, not posterior uncertainty.
Original deterministic covariance calculation. The inducing value captures one direction of variation; the conditional residual is still part of the GP.

The approximation rule matters

Different sparse methods treat this residual differently. Subset of regressors replaces the covariance by the low-rank projection throughout. DTC retains the exact test conditional but drops training conditional variance; FITC instead retains its diagonal while discarding training conditional correlations. These choices can produce different predictive variances even with identical inducing inputs. See the unifying framework, §§4–6.
In variational inference, one can retain the exact conditional and learn q(u)=N(m,S)q(u)=\mathcal N(m,S). Defining A=KXZKZZ−1A=K_{XZ}K_{ZZ}^{-1} gives
q(fX)=N ⁣(Am,  KXX−QXX+ASA⊤).q(f_X)=\mathcal N\!\left(Am,\;K_{XX}-Q_{XX}+ASA^\top\right).
Thus QXXQ_{XX} alone is not the variational posterior covariance. The posterior also depends on the learned uncertainty about uu. Keeping q(u)q(u) explicit permits stochastic training with minibatches when the likelihood factorizes across observations. Hensman et al., §3.1.

For independent Gaussian observation noise with variance σn2>0\sigma_n^2>0, Titsias's collapsed variational objective is

L=log⁡N ⁣(y;0,QXX+σn2I)−12σn2tr⁡(KXX−QXX).\mathcal L= \log\mathcal N\!\left(y;0,Q_{XX}+\sigma_n^2I\right) -\frac{1}{2\sigma_n^2}\operatorname{tr}\left(K_{XX}-Q_{XX}\right).
It is a lower bound on the original GP log marginal likelihood. The trace correction penalizes unresolved prior variance relative to observation noise; in our example its numerator is 0.6321210.632121. Optimizing the bound selects inducing locations as variational parameters. Simply replacing KXXK_{XX} by QXXQ_{XX} in a Gaussian likelihood omits this correction. Titsias, §3, equations 6–10.

What the speed-up buys

For standard dense algebra and inexpensive kernel evaluations, full-batch inducing-point regression commonly costs O(NM2+M3)O(NM^2+M^3) per objective evaluation, versus O(N3)O(N^3) for dense exact regression. Storing the cross-covariance costs O(NM)O(NM); streaming or minibatch implementations can change memory requirements. These are operation counts, not a bound on total optimization time. Hensman et al., introduction.
After training and suitable precomputation, a common sparse predictive mean costs O(M)O(M) per test input and its marginal variance O(M2)O(M^2), excluding kernel-evaluation costs. A full joint covariance over TT test inputs has T2T^2 entries; marginal-variance costs do not describe that larger task. GPML, Table 8.2.
Increasing MM expands the representation, but selecting a useful number and placement remains an accuracy–cost decision. In financial forecasting, fit inducing locations and hyperparameters within each training window to avoid look-ahead bias. Check predictive coverage on later data: a variational bound does not establish empirical calibration or protect a model from a market regime change.
For the underlying prediction algebra, Gaussian Processes for Regression and Classification provides a public preview; the full lesson requires membership.

Sources

Last updated
  • gaussian processes
  • inducing points
  • kernel methods
  • variational inference
← Back to the glossaryBack to top ↑