- Introduced by
- Jylanki, P.; Vanhatalo, J.; Vehtari, A.
- Year
- 2011 (formal treatment); GP foundations: Rasmussen & Williams 2006
- Type
- Probabilistic non-parametric regression / classification
- Family
- Machine learning
What does it do?
Robust Gaussian Process (Robust GP) is a Gaussian Process model in which the Gaussian noise likelihood is replaced by a heavy-tailed distribution, typically Student-t.
The prior and kernel structure are those of a standard GP, so the model still returns a full predictive distribution rather than a single point estimate. The heavier tails reduce the influence that individual outlying observations have on the fitted function.
The intuition behind the method
A standard GP models each observation as the true function plus Gaussian noise. Gaussian tails are thin, so a single large deviation can pull the fit strongly. The Student-t likelihood has the same location-scale form but heavier tails, controlled by the degrees-of-freedom parameter nu. When nu is small, large residuals are more plausibly explained as noise, so they move the fitted function less. As nu grows, the likelihood approaches the Gaussian case. The fitted function is therefore determined mainly by the bulk of the data, while the predictive uncertainty still reflects the noise model that was assumed.
History
Rasmussen and Williams (2006) provide a comprehensive reference for the Gaussian process framework in machine learning. Jylanki, Vanhatalo and Vehtari (2011) gave a formal treatment of GP regression with a Student-t likelihood in the Journal of Machine Learning Research, which is the reference for the robust likelihood described here.
When to use it
Choose Robust GP when the target is a continuous regression output, the dataset is of moderate size, and you suspect the observation noise is heavy-tailed or contains outliers. Typical cases are sensor, biomedical or financial measurements. It is appropriate when calibrated predictive uncertainty matters and a GP prior is a reasonable description of the function. Do not use it for large datasets unless a sparse approximation is available, because exact GP inference scales cubically with the number of observations. Do not use it when the residuals are well described by Gaussian noise, since a standard GP is simpler and the robust likelihood adds approximation error. It is also a poor fit when an interpretable model with explicit coefficients is required. The method rests on four assumptions. First, observations are conditionally independent given the latent function. Second, the outliers are roughly unstructured: the Student-t tails absorb isolated large deviations, but they do not model outliers that cluster in time or in input space, which may need an explicit model of that structure. Third, the chosen kernel is a plausible prior for the smoothness of the true function. Fourth, the Student-t tail model is an adequate description of the residuals, which should be checked after fitting.
Limitations and considerations
- Exact GP inference scales cubically with the number of observations, so cost rises quickly with data size; sparse approximations reduce this cost at the price of additional approximation error.
- The Student-t likelihood makes the posterior non-Gaussian, so the reported uncertainty depends on the Laplace, expectation propagation or variational approximation used.
- Results depend on the kernel choice; a misspecified kernel gives poor extrapolation beyond the observed inputs.
- The degrees-of-freedom parameter nu is hard to identify from small samples, because few residuals carry information about the tail weight.
- The Student-t likelihood is not log-concave in the latent function, so the marginal likelihood used for hyperparameter and nu estimation can have more than one local optimum. Fit from several starting values and check that they give similar results before relying on the estimates.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The Student-t likelihood down-weights large residuals within the model itself, so outlier handling does not require a separate data-cleaning step.
- The predictive distribution provides an uncertainty interval that widens in regions with little training data.
- The kernel encodes prior assumptions about smoothness and, when a periodic kernel is chosen, periodicity, which can help when training data are limited.
- Automatic relevance determination (ARD) kernels, where used, give length-scales that indicate which inputs the fitted model varies along most strongly, under the model's assumptions; this is not a causal or formal variable-importance measure.
Applications
- Sensor data regression where hardware faults produce occasional large spikes.
- Biomedical signal modelling (e.g., EEG, glucose monitoring) with heavy-tailed measurement noise.
- Surrogate modelling in engineering design where simulation outputs occasionally include numerical failures.
- Financial time-series smoothing where returns exhibit fat tails.
- Geospatial interpolation (kriging) with anomalous field measurements.
- Bayesian optimisation of noisy black-box functions where objective evaluations can be corrupted.
How it works
How it works
A covariance (kernel) function encodes prior assumptions about the smoothness and length-scale of the function, for example a squared-exponential or Matérn kernel. Its hyperparameters, such as length-scale and output variance, set how quickly the function can change across the input space. They are estimated from the data in the hyperparameter step below.
The Gaussian likelihood p(y|f) = N(y; f, sigma^2) is replaced by a Student-t likelihood with degrees-of-freedom parameter nu. Small nu gives heavy tails, so large residuals are attributed to noise rather than to the function. As nu increases, the likelihood approaches the Gaussian. nu can be fixed from prior knowledge or treated as a parameter to be learned from the data.
Formula
p(y \mid f) = \text{Student-t}(y; f, \sigma^2, \nu)The Student-t likelihood is not conjugate to the GP prior, so the posterior over the latent function values has no closed form. The approximate methods named on this page (Laplace approximation, expectation propagation and variational inference) replace it with a tractable Gaussian approximation. The methods differ in accuracy and computational cost, so the adequacy of the chosen approximation should be checked rather than assumed.
Kernel hyperparameters, the noise scale and nu are estimated by maximising the approximate log marginal likelihood. Because this quantity is computed from an approximation, the estimates inherit the approximation's error. The procedure balances fit against model complexity. Because the Student-t likelihood is not log-concave, the optimisation can converge to a local optimum (see limitations).
Formula
\hat{\theta} = \arg\max_{\theta} \log p(\mathbf{y} \mid \mathbf{X}, \theta)For new inputs, the predictive distribution integrates over the approximate posterior of the latent function. The result is a predictive mean and an interval whose width reflects both uncertainty about the function and the assumed noise distribution. Predictions in regions with little training data are correspondingly less certain.
Formula
p(y^* \mid \mathbf{x}^*, \mathbf{X}, \mathbf{y}) = \int p(y^* \mid f^*) p(f^* \mid \mathbf{x}^*, \mathbf{X}, \mathbf{y}) \, df^*Common pitfalls
- Fitting a standard GP to outlier-contaminated data and treating its interval as reliable. The Gaussian likelihood spreads outlier influence into both the mean and the variance.
- Running exact inference on a large dataset without a sparse approximation, since runtime grows cubically with the number of observations.
- Taking a default value of nu from a tutorial without checking whether the fitted residuals match the chosen tail weight.
- Fitting without normalising inputs and outputs, which can make the kernel matrix poorly conditioned when it is inverted.
- Reporting only predictive means. Quantifying uncertainty is the main reason to use a GP, so omitting the intervals discards it.
Frequently asked questions
How is Robust GP different from a standard Gaussian Process?
The only structural difference is the likelihood: a standard GP uses a Gaussian noise model, while a Robust GP uses a heavier-tailed distribution such as Student-t. The heavier tails mean that large residuals receive much less influence, so the inferred function is less pulled by outliers.
Which inference method should I use: Laplace, EP, or variational?
No single approximation is best in all cases. The choice depends on the implementation available, the dataset size and the accuracy required. A practical check is to fit the model with two different approximations and compare their predictive intervals and held-out predictive log-density. Close agreement suggests the approximation is adequate for the application; large differences mean the posterior approximation matters for the result and the conclusions should be interpreted with care.
How do I choose the degrees-of-freedom parameter nu?
Nu can be fixed from prior knowledge about how heavy the noise tails are, or estimated alongside the kernel hyperparameters by maximising the approximate marginal likelihood. With little data, estimating nu is unreliable, so fixing it is often the safer option. A practical procedure is to fit the model over a grid of nu values and compare the resulting predictions and hyperparameters. Then check the standardised residuals against Student-t quantiles for the chosen nu before accepting the fit.
What if my dataset is too large for a full Robust GP?
Combine the robust likelihood with a sparse GP approximation, such as inducing-point methods or the Fully Independent Training Conditional (FITC) approximation. Sparse approximations reduce the cost of inference but add their own approximation error.
Is Robust GP suitable for classification?
The mechanics in this entry describe regression with a Student-t likelihood. This entry does not give a robust classification model, so check the source before applying the method to classification problems.
Related methods
Sources
Jylanki, P., Vanhatalo, J., & Vehtari, A. (2011). Robust Gaussian Process Regression with a Student-t Likelihood. Journal of Machine Learning Research, 12, 3227–3257.
Open publication referenceRasmussen, C. E., & Williams, C. K. I. (2006). Gaussian Processes for Machine Learning. MIT Press.
ISBN: 978-0-262-18253-9