Applied AI Vol. 2 · 5 min read
If each evaluation costs hours of training or a physical experiment, you want a cheap stand-in for the objective that also says how unsure it is. A Gaussian process provides both.
A distribution over functions
A Gaussian process defines a prior over functions through a mean function and a kernel. After you observe some evaluations, the posterior gives, at any new input, a mean prediction and a standard deviation. Near observed points the uncertainty is small, and away from them it grows.
The kernel is the assumption
The kernel says how similar function values are for nearby inputs. A smooth kernel such as the squared exponential assumes the function changes gradually. Its length scale controls how far you must move before values become unrelated. Different length scales per input dimension let the model learn which inputs matter.
Noise and fitting
Real evaluations are noisy, so include a noise term. Fit kernel hyperparameters by maximizing the marginal likelihood, and check the fit with held-out points or cross-validation. Mismatched assumptions produce overconfident predictions and poor decisions.
Limits
- Exact inference scales cubically with the number of observations, so it suits tens to a few thousand points.
- Performance degrades in high dimensions unless the function has low effective dimension.
- Inputs with discrete or conditional structure need special kernels or other models.
