- Introduced by
- Lawrence, N. D. & Jordan, M. I.
- Year
- 2004
- Type
- Probabilistic model (semi-supervised)
- Family
- Machine learning
What does it do?
Semi-supervised Gaussian Process extends the probabilistic Gaussian process (GP) framework to use unlabeled inputs alongside a small set of labeled observations.
It places a GP prior over functions and uses the structure of the input data, as revealed by unlabeled points, to inform predictions when labels are scarce. Its output is a predictive distribution rather than a single point estimate, which suits scientific and medical problems where labelling is costly.
The intuition behind the method
A standard Gaussian process defines a distribution over smooth functions and conditions on the labeled training points to form predictions. When labels are rare, this conditioned posterior is uncertain in regions with little labeled data. The semi-supervised variant also brings the unlabeled inputs into the model, so that inference can reflect where the input data lie before labels are conditioned on. Whether this improves generalization from few labeled examples is not guaranteed. The benefit depends on how well the unlabeled inputs represent the problem, and it should be checked on labeled held-out data.
History
Lawrence and Jordan introduced the semi-supervised GP approach in the Advances in Neural Information Processing Systems (NIPS) 17 proceedings, cited here as 2004, pp. 753–760. Rasmussen and Williams's 2006 book is the standard reference for the Gaussian process framework on which the method rests.
When to use it
Choose this method when labeled examples are few, unlabeled inputs are available from the same distribution as the inputs of interest, and the input space is smooth enough for a GP kernel to be meaningful. It is most useful when a calibrated uncertainty estimate is needed with each prediction, as in many biological, medical, and physical-science problems where labelling is costly. Avoid it when the labeled set is large, because exact GP inference scales cubically with the number of labeled points and becomes impractical without sparse approximations. Also avoid it when the input dimension is high and no kernel design is planned, since generic kernels become less informative in high dimensions, or when the main deliverable is interpretable coefficients rather than probabilistic predictions. The method rests on three assumptions: the target function is smooth as encoded by the chosen kernel, the observation noise is Gaussian for regression, and the unlabeled inputs come from the same distribution as the inputs of interest. The usual justification for using unlabeled data is the cluster or manifold assumption, namely that nearby inputs tend to share labels.
Limitations and considerations
- Cubic scaling O(n^3) in the number of labeled points makes it impractical beyond a few thousand observations without sparse approximations.
- Approximate inference (Laplace, EP) is required for non-Gaussian likelihoods such as classification, introducing approximation error into the posterior and its uncertainty.
- Performance depends heavily on kernel choice and on the assumption that unlabeled points faithfully represent the structure of the input space. The standard kernel form is Euclidean RBF, so geometry-adapted kernels are a separate choice that must be justified for the data.
- Hyperparameter optimization by marginal likelihood can be slow and may converge to poor local optima when the input dimension is high.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- For regression with a Gaussian likelihood, the predictive variance is available in closed form, so each prediction comes with an uncertainty estimate that can flag inputs far from the labeled data.
- Unlabeled inputs enter the model during construction and inference, so the method can draw on a large unlabeled pool when labels are the bottleneck.
- The kernel is an explicit design choice, so smoothness, scale, or geometry-aware kernels can be tried without changing the posterior machinery.
- Kernel hyperparameters can be fitted by maximizing the marginal likelihood, which keeps model selection inside the probabilistic framework.
Applications
- Drug activity prediction from molecular descriptors when few compounds have assay labels.
- Medical imaging classification where expert annotations are limited but scans are available.
- Environmental sensor modeling that combines sparse calibrated readings with dense uncalibrated measurements.
- Gene expression classification with limited phenotype labels and large unlabeled transcriptomic datasets.
- Material property prediction where experimental labels are costly to obtain.
How it works
How it works
A kernel function k(x_i, x_j) encodes prior beliefs about the smoothness and scale of the target function. The formula shown is the standard squared-exponential (RBF) form, which measures similarity with Euclidean distance. Kernels adapted to the geometry of the data are a separate design choice and would need to be justified for the data at hand.
Formula
k(x_i, x_j) = \sigma^2 \exp\!\left(-\frac{\|x_i - x_j\|^2}{2\ell^2}\right)A zero-mean GP prior f ~ GP(0, k) is placed over the latent function. With this form, the prior is determined by the kernel, so any use of unlabeled inputs enters through how the model is constructed and inferred, as described in the next step.
Formula
f \sim \mathcal{GP}(0, k)Unlabeled inputs are incorporated into the model's inference, so that the input distribution informs the solution alongside the labeled points. The exact construction is not given in this summary. Consult Lawrence and Jordan (2004) for the precise formulation before implementing it.
Conditioning on the labeled observations updates the prior into a posterior over functions. The expression above gives this posterior up to a normalizing constant. For classification, the Gaussian likelihood is replaced by a non-Gaussian observation model, so the posterior is usually approximated, for example by the Laplace approximation or expectation propagation.
Formula
p(f^* | X, y, X_*) \propto p(y | f) \, p(f | X, X_*)
For a new input x*, the predictive distribution is available in closed form for regression with a Gaussian likelihood, and is obtained approximately for classification. The output is a predictive mean and variance. The variance indicates how uncertain the model is at x*, which is informative when labeled data are sparse.
Formula
\hat{y}^* = \mathbb{E}[f^* | X, y, x^*]Common pitfalls
- Ignoring the O(n^3) cost and fitting a dense GP to thousands of points without sparse inducing-point approximations.
- Using a standard Euclidean-distance kernel without checking whether it reflects the structure of the data, which leaves the unlabeled pool with little influence.
- Treating the posterior mean as a hard prediction and discarding the variance, which is the main advantage over discriminative methods.
- Failing to validate on a held-out labeled set. Unlabeled data drawn from a different distribution than the test inputs can shift the learned structure.
- Applying the method when the labeled-to-unlabeled ratio is already high, where the added complexity may give little benefit over a supervised GP.
Frequently asked questions
How does this differ from a standard supervised Gaussian process?
A supervised GP conditions only on labeled data. The semi-supervised variant also brings unlabeled inputs into model construction and inference, so that the input distribution informs the model before labels are conditioned on. The aim is to exploit this structure when labels are scarce. Whether it lowers error depends on the data and on how well the unlabeled points represent the test domain.
What is the main computational bottleneck?
Exact GP inference is cubic in the number of training points. Sparse inducing-point methods (e.g., FITC, VFE) reduce the cost to O(nm^2), where m is the number of inducing points. The value of m is chosen by validation or by the available computational budget, and larger m can make bigger problems feasible.
How do I choose the kernel for unlabeled data integration?
Choose the kernel from prior knowledge of the smoothness and scale of the target function, tune its hyperparameters by marginal likelihood, and validate on labeled held-out data. A geometry-adapted kernel that may reflect the structure of the unlabeled inputs is a separate choice. It must be justified for the data, and its construction should be checked against the original paper. A standard RBF kernel is the simpler default when the data are low-dimensional and smoothly distributed.
Is calibrated uncertainty preserved after integrating unlabeled data?
In principle, the Bayesian posterior is calibrated when the model is correct. Approximations used for classification (Laplace, EP) and for sparse methods (inducing points) can reduce calibration, so expected calibration error (ECE) should be checked on a labeled validation set.
When should I prefer a semi-supervised SVM over this method?
Prefer a semi-supervised SVM (S3VM/transductive SVM) when you need a simple margin-based decision boundary, have high-dimensional sparse features (e.g., text), and do not need uncertainty estimates. Choose the semi-supervised GP when probabilistic outputs and kernel flexibility are important.
Related methods
Sources
Lawrence, N. D., & Jordan, M. I. (2004). Semi-supervised learning via Gaussian processes. In Advances in Neural Information Processing Systems (NIPS), 17, 753–760. MIT Press.
Open publication referenceRasmussen, C. E., & Williams, C. K. I. (2006). Gaussian Processes for Machine Learning. MIT Press.
ISBN: 978-0-262-18253-9