Foundations to Frontier
Tests

Sparse and scalable GPs

An exact GP costs O(n³) time and O(n²) memory: fine for a few thousand points, impossible for a million. Scalable GPs reduce the cost in several ways. Inducing-point methods summarize the function by m pseudo-observations and cost O(nm²): Nyström/SoR, DTC, FITC, Titsias's variational VFE and its stochastic version SVGP. Random Fourier features turn the GP into Bayesian linear regression. Structured methods exploit grids, Kronecker and Toeplitz structure (KISS-GP), and iterative methods use conjugate gradients and GPU matrix products (GPyTorch, BBMM). This page derives the inducing-point family from one prior approximation, explains which variants keep honest uncertainty, and gives a decision guide. In the exercise, 719 noisy points from a GP with a gap are fitted with m = 8 to 64 inducing points, a random data subset and m random Fourier features, all at the true hyperparameters. With 64 inducing points VFE and FITC matched the exact GP (RMSE 0.060 vs 0.059), while a random subset of 64 points reached only 0.267 and 64 random features 0.183. SoR and random features were overconfident in the gap: their 95% intervals covered 50% and 12% of the gap points, against 100% for VFE. Titsias's bound stayed below the exact evidence, as it must; the SoR evidence did not.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Summarizing many points with a few

A Gaussian process compares every data point with every other, so doubling the data makes it eight times slower. A satellite collects millions of measurements a day, which is far beyond what an exact GP can handle. The fix is to pick a few dozen or a few hundred representative locations, the inducing points, and let the whole function be described by its values there. Done carefully, the predictions are nearly as good as the exact GP’s at a tiny fraction of the cost. Done carelessly, the error bars collapse and the model becomes confident where it has no data. In the demo, change the number of inducing points and the method, and watch the band in the gap.

Uncertainty lab
FITC with m = 8 inducing points (red triangles), O(nm²). SoR collapses the variance to the noise level away from the inducing points; DTC/VFE restore the prior variance there; FITC adds a per-point noise correction. With few inducing points every method oversmooths the fast wiggle.
Why engineers care

Sparse GPs are how GP maps and surrogates scale to real sensor data: global satellite retrievals, LiDAR terrain maps, fleet telemetry and Bayesian optimization with thousands of evaluations. Their uncertainty is only useful if the approximation keeps it honest.

📝 Quick check (Level 0)
0/3 answered
  1. 1. An exact GP's cost grows like…
  2. 2. Inducing points are…
  3. 3. A bad sparse approximation tends to make error bars…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

One idea, several approximations

  • Inducing variables: u = f(Z) at m inputs Z. The exact prior is p(f, f*) = ∫ p(f | u) p(f* | u) p(u) du only if f and f* are coupled through u alone. Approximations differ in how they treat p(f | u) (Quiñonero-Candela and Rasmussen, 2005).
  • Nyström matrix: Q = K_fu K_uu⁻¹ K_uf, rank at most m, with diag(K − Q) ≥ 0: the prior variance that u cannot explain.
  • SoR (subset of regressors): replace K by Q everywhere. Cheap, but the prior itself is degenerate: far from Z, Q → 0, so the predictive variance collapses to the noise. Overconfident.
  • DTC: same training approximation, but the exact K** at test points. The mean equals SoR’s; the variance returns to the prior far from Z.
  • FITC (Snelson and Ghahramani, 2006): keep the exact diagonal, K ≈ Q + diag(K − Q). Heteroscedastic correction; it can underestimate noise and overfit when Z is optimized (Bauer, van der Wilk and Rasmussen, 2016).
  • VFE (Titsias, 2009): a variational posterior q(u). Its predictive equals DTC’s, and its collapsed bound log p(y) ≥ log N(y | 0, Q + σ²I) − tr(K − Q)/(2σ²) is a true lower bound. Optimizing Z on it can only make the approximation closer to the exact posterior in KL.
    • The trace term punishes missed variance: missing 0.66 units with σ² = 0.01 costs 33 nats.
  • SVGP (Hensman, Fusi and Lawrence, 2013): keep q(u) = N(m, S) explicit and use minibatches. The data term is scaled by n/B (3906.25 for n = 10⁶ and B = 256). Cost per step O(Bm² + m³); works with non-Gaussian likelihoods.
  • Costs: O(nm²) time and O(nm) memory. For n = 100000 and m = 500: 40000 times faster, and 0.4 GB instead of 80 GB.
  • Other routes: random Fourier features (O(nD²)), KISS-GP/SKI grid interpolation with FFTs (O(n + g log g) per product), state-space GPs (O(n) in time via Kalman smoothing), and exact GPs on GPUs with conjugate gradients (Gardner et al., 2018; Wang et al., 2019 ran exact GPs on a million points).
📝 Quick check (Level 1)
0/3 answered
  1. 1. SoR's predictive variance far from inducing points…
  2. 2. Titsias's bound is…
  3. 3. SVGP enables…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

Scaling GPs in practice

Exercise 1.

  • The Nyström approximation and its rank.
  • Titsias’s collapsed bound, checked to be below the exact evidence and to tighten as m grows.

Practice.

  • Up to about 10⁴ points: exact GP (GPyTorch on a GPU goes far beyond that).
  • 10⁴–10⁶ with a Gaussian likelihood: SGPR/VFE with m = 100–1000, Z initialized by k-means or a greedy variance criterion, then optimized jointly with hyperparameters.
  • Above 10⁶, or non-Gaussian likelihoods, or streaming data: SVGP with minibatches and natural gradients for q(u).
  • Low-dimensional inputs on grids (time series, images, spatial maps): KISS-GP, Kronecker methods, or state-space (Kalman) GPs.
  • Avoid SoR and plain random features when uncertainty matters away from data; check coverage on a held-out region.
  • Report m, the inducing-point initialization and the ELBO; compare against an exact GP on a subsample.
import gpytorch as gp, torch
class SVGP(gp.models.ApproximateGP):
    def __init__(s, Z):
        q = gp.variational.CholeskyVariationalDistribution(Z.size(0))
        super().__init__(gp.variational.VariationalStrategy(s, Z, q, learn_inducing_locations=True))
        s.mean = gp.means.ConstantMean(); s.cov = gp.kernels.ScaleKernel(gp.kernels.MaternKernel(nu=2.5))
    def forward(s, x): return gp.distributions.MultivariateNormal(s.mean(x), s.cov(x))
model, lik = SVGP(X[torch.randperm(len(X))[:500]]), gp.likelihoods.GaussianLikelihood()
mll = gp.mlls.VariationalELBO(lik, model, num_data=len(X))      # scales the minibatch term by n / B
opt = torch.optim.Adam([*model.parameters(), *lik.parameters()], lr=0.01)
for xb, yb in loader: opt.zero_grad(); (-mll(model(xb), yb)).backward(); opt.step()
🐍 Exercise 1: Nyström and the Titsias bound
Build the Nyström approximation, compute Titsias's collapsed bound and check it against the exact log evidence.
📝 Quick check (Level 2)
0/3 answered
  1. 1. For millions of points with a Bernoulli likelihood, use…
  2. 2. Inducing points are commonly initialized by…
  3. 3. GPyTorch's VariationalELBO needs…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

The unifying view. Every inducing-point method is exact inference in a modified prior (Quiñonero-Candela and Rasmussen, 2005). SoR uses the degenerate prior with covariance Q; DTC uses Q for training but K** for test points (an inconsistent prior); FITC uses Q + diag(K − Q), i.e. training values are conditionally independent given u.

Why VFE is a bound. For q(f, u) = p(f | u) q(u), log p(y) ≥ E_q[log p(y | f)] − KL(q(u) ‖ p(u)). Because p(f | u) cancels, the bound involves only m-dimensional quantities. Its optimal q(u) is Gaussian and in closed form, and the collapsed bound is log N(y | 0, Q + σ²I) − tr(K − Q)/(2σ²). The gap is KL(q(f) ‖ p(f | y)) between the approximate and exact posteriors, so adding or moving inducing points can only tighten it. This is a principled way to choose Z and m; the gap is also why VFE tends to overestimate the noise rather than overfit.

How many inducing points? For the RBF kernel in D dimensions with Gaussian inputs, Burt, Rasmussen and van der Wilk (2019) showed that m = O(log^D n) inducing points suffice for the KL to vanish as n grows. Smooth kernels need few, rough kernels and short lengthscales many.

Variance starvation in random features. With D random features the model is Bayesian linear regression with D weights. Once the data determine the weights, the posterior variance is tiny everywhere, including away from the data, because the D global cosines are all constrained. Inducing points keep local uncertainty since the prior variance not explained by u (K − Q) returns where Z is absent.

📝 Quick check (Level 3)
0/3 answered
  1. 1. FITC treats training values as…
  2. 2. Moving inducing points can only tighten the VFE bound because…
  3. 3. Random features become overconfident away from data because…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

How many inducing points match an exact GP, and which approximations keep honest uncertainty in a data gap?

History.

  • C. Williams and M. Seeger, “Using the Nyström method to speed up kernel machines” (2001).
  • J. Quiñonero-Candela and C. Rasmussen, “A unifying view of sparse approximate Gaussian process regression” (2005).
  • E. Snelson and Z. Ghahramani, “Sparse Gaussian processes using pseudo-inputs” (2006): FITC.
  • M. Titsias, “Variational learning of inducing variables in sparse Gaussian processes” (2009); J. Hensman, N. Fusi and N. Lawrence, “Gaussian processes for big data” (2013).
  • A. Wilson and H. Nickisch, “Kernel interpolation for scalable structured Gaussian processes (KISS-GP)” (2015); J. Gardner et al., GPyTorch (2018).

Exercise 2. A function drawn from an RBF GP (ℓ = 0.3) on [0, 10], observed at 800 random inputs minus those in a gap (6, 7): n = 719, noise sd 0.2. All methods use the true hyperparameters. Inducing inputs are a random subset of the training inputs (not optimized). Compared at m = 8, 16, 32, 64: SoR, VFE (= DTC predictive), FITC, an exact GP on a random subset of m points, and Bayesian regression on m random Fourier features (same O(nm²) cost). Measures: RMSE against the true function outside the gap, NLPD on noisy test outputs, and 95% coverage inside the gap.

m RMSE: VFE (= SoR) / FITC / subset / RFF NLPD: SoR / VFE / FITC / subset / RFF gap coverage: SoR / VFE / RFF
8 0.658 / 0.681 / 0.771 / 0.823 5.235 / 1.027 / 0.879 / 1.108 / 8.667 0.12 / 1.0 / 0.0
16 0.501 / 0.53 / 0.638 / 0.493 3.01 / 0.719 / 0.656 / 0.812 / 2.614 0.41 / 1.0 / 0.62
32 0.256 / 0.311 / 0.36 / 0.244 1.152 / 0.362 / 0.269 / 0.528 / 1.535 0.12 / 1.0 / 0.19
64 0.06 / 0.06 / 0.267 / 0.183 0.115 / −0.01 / −0.01 / 0.25 / 1.057 0.5 / 1.0 / 0.12
exact (n = 719) 0.059 −0.032 1.0
  • 64 inducing points recover the exact GP (RMSE 0.060 vs 0.059, NLPD −0.01 vs −0.032) at about 1/126 of the cost (n²/m²).
  • Inducing points beat a subset of the same size by 4.5 times in RMSE: they use all 719 observations.
  • Overconfidence: SoR’s gap intervals covered 12–50% of points and random features 0–62%; VFE and FITC covered 100%, like the exact GP.
  • Bounds: the VFE bound stayed below the exact log evidence (−38.1 vs 17.2 at m = 64, still a 55-nat gap although predictions matched), while the SoR evidence (17.7) exceeded it: the SoR marginal likelihood is not a bound and can mislead hyperparameter fitting. FITC gave 11.1.
  • Seeds 1 and 2: at m = 64 VFE RMSE 0.053 and 0.056 vs exact 0.053 and 0.051; subset 0.18 and 0.202; RFF 0.338 and 0.286; RFF gap coverage 0.16 and 0.03.
🐍 Exercise 2 (research): how many inducing points match an exact GP, and which approximations keep honest uncertainty in a data gap?
Compare SoR, VFE, FITC, a data subset and random Fourier features with an exact GP as the number of inducing points grows, including coverage in a data gap.

Scalable GPs in AI, robotics and aerospace

  • Earth observation: SVGP and VFE models map global satellite retrievals (sea-surface temperature, aerosol optical depth) with per-pixel uncertainty from millions of observations.
  • Robot mapping: sparse GP occupancy and elevation maps from LiDAR; local inducing sets per tile keep updates real-time.
  • Bayesian optimization at scale: thousands of evaluations with sparse or GPU exact GPs (BoTorch with GPyTorch).
  • Time series: state-space GPs give O(n) inference for long telemetry streams and run on embedded hardware.

References

  1. C. K. I. Williams and M. Seeger (2001). “Using the Nyström method to speed up kernel machines.” NeurIPS.
  2. J. Quiñonero-Candela and C. E. Rasmussen (2005). “A unifying view of sparse approximate Gaussian process regression.” JMLR, 6.
  3. E. Snelson and Z. Ghahramani (2006). “Sparse Gaussian processes using pseudo-inputs.” NeurIPS.
  4. M. Titsias (2009). “Variational learning of inducing variables in sparse Gaussian processes.” AISTATS.
  5. J. Hensman, N. Fusi and N. D. Lawrence (2013). “Gaussian processes for big data.” UAI.
  6. A. G. Wilson and H. Nickisch (2015). “Kernel interpolation for scalable structured Gaussian processes (KISS-GP).” ICML.
  7. M. Bauer, M. van der Wilk and C. E. Rasmussen (2016). “Understanding probabilistic sparse Gaussian process approximations.” NeurIPS.
  8. J. Gardner, G. Pleiss, D. Bindel, K. Weinberger and A. G. Wilson (2018). “GPyTorch: blackbox matrix-matrix Gaussian process inference with GPU acceleration.” NeurIPS.
  9. D. Burt, C. E. Rasmussen and M. van der Wilk (2019). “Rates of convergence for sparse variational Gaussian process regression.” ICML.
  10. K. A. Wang et al. (2019). “Exact Gaussian processes on a million data points.” NeurIPS.