Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Guessing a hillside from a few measurements
A rover measures the ground height at five spots. What’s the height between them? Close to a measured spot, it’s probably close to that measurement. Far from all of them, who knows? A good guess should say both “here’s my best estimate” and “here’s how sure I am”, and be more unsure the further you get from the data.
A Gaussian process does exactly that. It treats the whole unknown hillside as a random curve, and every measurement narrows down which curves are plausible.
Robots map terrain and signal strength with GPs. Engineers tune controllers and hyperparameters with GP-based Bayesian optimization, because each trial is expensive. Safe-learning systems use the GP’s uncertainty to avoid trying anything they’re not confident about.
- 1. Far from all measurements, a GP is…
- 2. A GP gives…
- 3. Near a measured point the prediction is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Definition
means that for any inputs , the vector is multivariate normal with mean and covariance .
The kernel encodes your assumptions about the function:
| Kernel | Functions look… | |
|---|---|---|
| RBF (squared exponential) | smooth, wiggling on scale | |
| Exponential (OU) | rough, continuous | |
| Brownian motion | random-walk-like, starting at 0 | |
| Periodic | repeating with period | |
| Linear | straight lines |
A valid kernel must give a positive semidefinite for every set of inputs. Sums, products and positive multiples of kernels are kernels.
- 1. A GP's finite-dimensional marginals are…
- 2. A larger RBF lengthscale ℓ gives functions that are…
- 3. The kernel min(s, t) describes…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.GP regression is Gaussian conditioning
Observe with . Joint Gaussianity and the conditioning formula (A4.2-4) give, at test points ,
Compute it with a Cholesky factorization, once. The variance doesn’t depend on , only on where you measured. Far from data, and the GP returns to its prior.
Choosing hyperparameters
Maximize the log marginal likelihood
The first term rewards fitting the data, and the second penalizes complexity: an automatic Occam’s razor. Too small an overfits, and too large an can’t fit at all. Both lose likelihood.
- 1. GP posterior variance depends on…
- 2. The −½ log|K_y| term in the marginal likelihood…
- 3. Exact GP regression costs…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.The posterior mean is a kernel expansion
with . It’s the same as kernel ridge regression with regularization . By the representer theorem, it minimizes over the reproducing-kernel Hilbert space of (A3.5-5). The Bayesian and regularization views agree on the mean. The GP adds the variance.
Mercer and the feature view
A continuous PSD kernel expands as (Mercer). So with iid : a GP is Bayesian linear regression with (possibly infinitely many) features. Bochner’s theorem gives random Fourier features for stationary kernels (A4.3-3).
Markov GPs and filtering
The OU kernel corresponds to a first-order SDE (A4.4-5). Matérn kernels with half-integer smoothness correspond to higher-order linear SDEs. For these, GP regression in time can be done by a Kalman smoother in instead of (Hartikainen and Särkkä, 2010). That’s why filters and GPs are the same mathematics.
Neural networks as GPs
A one-hidden-layer network with iid random weights becomes a GP as its width goes to infinity, by the CLT across units (Neal, 1996). Deep versions give the NNGP and neural tangent kernels (Lee et al., 2018; Jacot, Gabriel and Hongler, 2018).
Exercise 3.1: Show that the sum of two kernels is a kernel
For any , . Equivalently, it’s the covariance of for independent GPs.
- 1. The GP posterior mean equals…
- 2. A GP with the OU kernel in time can be computed in O(n) using…
- 3. Infinitely wide random networks converge to…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Tuning a controller with Bayesian optimization
Each closed-loop trial on hardware is expensive: minutes of flight or a risk of damage. Model the tracking score as an unknown function of the gain, . Pick each next trial by the upper confidence bound , which balances exploiting good gains against exploring uncertain ones. GP-UCB has sublinear regret guarantees (Srinivas et al., 2010). It routinely finds near-optimal gains in 10–20 trials where grid or random search needs many more (Calandra et al., 2016; Berkenkamp, Schoellig and Krause, 2016). SafeOpt adds a constraint: only try gains whose lower confidence bound on safety is acceptable.
Gaussian processes in AI, robotics and aerospace
- Terrain and field mapping. GP occupancy maps and elevation maps, and adaptive sampling of ocean or atmospheric fields with uncertainty-driven paths (O’Callaghan and Ramos, 2012; Krause, Singh and Guestrin, 2008).
- Learning dynamics with uncertainty. PILCO learns a GP dynamics model and plans through its uncertainty, learning cart-pole swing-up in seconds of real data (Deisenroth and Rasmussen, 2011). GP-MPC learns residual dynamics for racing drones and cars (Hewing et al., 2020).
- Safe learning. Lower confidence bounds from GPs certify which states or parameters are safe to explore (Berkenkamp et al., 2017).
- Sparse and scalable GPs. Inducing points (Titsias, 2009) and state-space GPs bring costs down from for large sensor datasets.
- Hyperparameter tuning of deep networks and simulators by Bayesian optimization (Snoek, Larochelle and Adams, 2012).
References
- C. Rasmussen, C. Williams (2006). Gaussian Processes for Machine Learning. MIT Press.
- N. Srinivas, A. Krause, S. Kakade, M. Seeger (2010). “Gaussian process optimization in the bandit setting: no regret and experimental design.” ICML.
- F. Berkenkamp, A. Schoellig, A. Krause (2016). “Safe controller optimization for quadrotors with Gaussian processes.” ICRA.
- R. Calandra, A. Seyfarth, J. Peters, M. Deisenroth (2016). “Bayesian optimization for learning gaits under uncertainty.” Annals of Mathematics and Artificial Intelligence, 76.
- M. Deisenroth, C. Rasmussen (2011). “PILCO: a model-based and data-efficient approach to policy search.” ICML.
- L. Hewing, J. Kabzan, M. Zeilinger (2020). “Cautious model predictive control using Gaussian process regression.” IEEE Transactions on Control Systems Technology, 28(6).
- J. Hartikainen, S. Särkkä (2010). “Kalman filtering and smoothing solutions to temporal Gaussian process regression models.” IEEE MLSP.
- R. Neal (1996). Bayesian Learning for Neural Networks. Springer.
- M. Titsias (2009). “Variational learning of inducing variables in sparse Gaussian processes.” AISTATS.
- J. Snoek, H. Larochelle, R. Adams (2012). “Practical Bayesian optimization of machine learning algorithms.” NeurIPS.
- S. O’Callaghan, F. Ramos (2012). “Gaussian process occupancy maps.” IJRR, 31(1).