Multi-class Gaussian Process Classification with Noisy Inputs

Carlos Villacampa-Calvo, Bryan Zaldivar, Eduardo C. Garrido-Merchán, Daniel Hernández-Lobato

TL;DR

Standard Gaussian process (GP) classifiers assume that input features are measured with absolute precision, leading to overconfident and poorly calibrated predictions when features are noisy. This paper develops sparse multi-class GP classification frameworks that explicitly account for input noise—either by treating clean inputs as latent variables or by propagating noise through a first-order Taylor expansion. The resulting models produce significantly better-calibrated predictive probabilities and improve downstream performance in tasks like active learning.

What Problem Does This Paper Address?

In real-world applications—such as astrophysics, medical diagnostics, and physical sensor systems—input features are rarely noise-free. Measurements naturally carry uncertainty and instrument error.

While regression methods often account for noisy inputs, multi-class classification has largely ignored them. Classification using Gaussian processes is already computationally demanding: it requires handling $C$ separate latent functions (one per class) and intractable, non-Gaussian likelihoods (e.g., softmax or step functions). When input noise is ignored, models become overly confident, particularly near decision boundaries where small feature fluctuations can flip the predicted class.

Methods

The authors build on sparse Gaussian processes (using $M \ll N$ inducing points to reduce computation from $\mathcal{O}(N^3)$ to $\mathcal{O}(M^2 N)$) and variational inference. They propose three formulations to handle additive Gaussian input noise $\tilde{\mathbf{x}}_i \sim \mathcal{N}(\mathbf{x}_i, \mathbf{V}_i)$:

  1. NIMGP (Noisy Input Multi-class GP): Treats the true, noiseless inputs $\mathbf{x}_i$ as latent variables with a broad prior. The joint posterior over latent functions and inputs is approximated using variational inference, optimized via mini-batch stochastic gradient descent, 1D quadrature, and Monte Carlo reparameterization.
  2. NIMGP$_{\text{NN}}$ (Amortized NIMGP): NIMGP requires storing variational parameters for every data point ($\mathcal{O}(Nd)$ memory). NIMGP$_{\text{NN}}$ replaces these per-point parameters with a shared neural network that maps $(\tilde{\mathbf{x}}_i, y_i)$ to the mean and variance of $q(\mathbf{x}_i)$. This decouples the memory footprint from dataset size and acts as a beneficial regularizer.
  3. NIMGP$_{\text{FO}}$ (First-Order Approximation): Extends prior regression work by taking a first-order Taylor expansion of each GP latent function around the noisy input. This projects input noise into an input-dependent, heteroscedastic output noise term $\boldsymbol{\Delta}_{i,i} = \nabla_{\mathbf{x}} \mu_c(\tilde{\mathbf{x}}_i)^T \mathbf{V}_i \nabla_{\mathbf{x}} \mu_c(\tilde{\mathbf{x}}_i)$.

If the input noise variance $\mathbf{V}_i$ is not known a priori, all three methods can learn it by maximizing the Evidence Lower Bound (ELBO).

Datasets

  • Synthetic Problems: 1D and 2D three-class synthetic datasets sampled from known GP priors, evaluated under known and learned noise conditions.
  • UCI Repository Benchmarks: 8 real-world classification datasets (Glass, New-thyroid, Satellite, Svmguide2, Vehicle, Vowel, Waveform, Wine) evaluated across multiple injected noise levels ($\sigma^2 \in \{0.0, 0.1, 0.25, 0.5\}$).
  • MNIST: Standard handwritten digit classification (60,000 train, 10,000 test, 784 dimensions) using a polynomial kernel.
  • Fermi-LAT Astrophysics Dataset: A real catalog from NASA's Fermi Gamma-ray Space Telescope containing 454 point-like sources across 3 classes (pulsars, blazars, and quasars) characterized by 6 spectral features—three of which possess known physical measurement error bars.

Key Insights and Ideas

  • Calibration over Decision Boundaries: Across almost all experiments, modeling input noise did not drastically alter classification accuracy, because overall decision boundaries remained largely in the same locations. Instead, the dramatic improvement came in predictive log-likelihood (NLL)—the proposed methods avoided overconfident misclassifications by softening probabilities near boundaries.
  • Amortization Prevents Noise Collapse: When input noise variances were learned from data rather than provided, vanilla NIMGP and NIMGP${\text{FO}}$ failed, consistently estimating noise variances near zero. In contrast, NIMGP${\text{NN}}$ accurately recovered the true noise levels because the neural network shared parameters across similar data regions.
  • Uncertainty Drives Active Learning: Because NIMGP$_{\text{NN}}$ produces superior predictive distributions, using predictive entropy as an active learning criterion identified substantially more informative instances, dropping test error much faster than active learning with standard GPs.

Key Results

  • 1D Synthetic: In the toy experiment, standard GP (MGP) achieved a test negative log-likelihood (NLL) of $0.884$, while NIMGP reduced it to $0.286$ (and NIMGP$_{\text{NN}}$ to $0.347$), closely matching the exact Bayes-optimal predictive distribution.
  • UCI Benchmarks: NIMGP$_{\text{NN}}$ achieved the best mean rank across all datasets and noise injection levels (mean rank $2.05$ at $\sigma^2=0.0$ and $1.63$ at $\sigma^2=0.5$, compared to $3.05$ and $3.33$ for baseline MGP).
  • Astrophysics Data: Accounting for known observational errors reduced test NLL from $0.377$ (MGP) to $0.246$ (NIMGP) and $0.261$ (NIMGP$_{\text{NN}}$).
  • Computational Cost: On MNIST, NIMGP${\text{NN}}$ required 7.62s per epoch (comparable to baseline MGP’s 7.19s), while NIMGP${\text{FO}}$ required 24.01s per epoch due to the cost of computing input gradients for 10 latent functions in 784 dimensions.

Limitations and Future Work

  • Failure of Non-Amortized Noise Learning: Without neural network amortization, optimizing the ELBO directly fails to discover the true input noise variance and defaults to zero. The theoretical root cause of this behavior remains an open question.
  • Non-Gaussian Noise: The current formulations assume additive Gaussian input noise; adapting to non-Gaussian or correlated noise structures was not explored.
  • Alternative Divergences: The authors note that variational inference could be extended to more expressive divergence families (such as $\alpha$-divergences) or non-standard likelihoods (e.g., Poisson or ordinal regression).

Summary updated

BibTeX
@article{villacampacalvo2021multi,
  author = {Carlos Villacampa-Calvo and Bryan Zaldivar and Eduardo C. Garrido-Merchán and Daniel Hernández-Lobato},
  title = {{Multi-class Gaussian Process Classification with Noisy Inputs}},
  journal = {J. Mach. Learn. Res.},
  year = {2021},
  url = {https://openreview.net/forum?id=JEByW2iCYF},
}
Figure