Gaussian Processes (GPs) are often called the "Swiss Army knife" of Bayesian modeling because they provide elegant, closed-form solutions for regression. When your data follows a normal distribution, the math is beautiful: a Gaussian prior plus a Gaussian likelihood equals a Gaussian posterior. This property, known as conjugacy, allows us to compute predictions using simple linear algebra.
However, the real world is rarely just Gaussian. If you want to classify images (Bernoulli likelihood), count occurrences of an event (Poisson likelihood), or handle outliers (Student-t likelihood), that mathematical elegance vanishes. These non-conjugate models result in posterior distributions that are analytically intractable—they cannot be solved with a single formula.
Researchers have developed a suite of techniques to bridge this gap, aiming to regain the speed and calibration of GPs for non-Gaussian data.
The Conjugacy Trap
In standard GP regression, we calculate the posterior by integrating the product of the GP prior and the likelihood. When the likelihood is Gaussian, this integral has a closed-form solution. But as David Barber and Christopher K. I. Williams noted in their early work on GP classification, using a sigmoid or softmax function to squash GP outputs into probabilities breaks this conjugacy.
Without a closed-form solution, we are forced to choose between two difficult paths:
- Sampling: Using Markov Chain Monte Carlo (MCMC) to "brute force" the posterior, which is accurate but painfully slow.
- Approximation: Finding a simpler distribution (usually a Gaussian) that "looks like" the true, messy posterior.
Data Augmentation and the Pólya-Gamma Trick
One of the most powerful modern strategies for restoring tractability is data augmentation. Instead of trying to solve the difficult integral directly, we introduce "auxiliary" variables that, when fixed, make the model look Gaussian again.
A prominent example is Pólya-Gamma augmentation. Jake C. Snell and Richard Zemel utilized this in Bayesian Few-Shot Classification to handle the softmax function. By augmenting the model with Pólya-Gamma variables, the non-conjugate classification likelihood is transformed into a conditionally Gaussian one. This allows for "exact-approximate" inference that is far more efficient than standard sampling. Florian Wenzel and colleagues generalized this approach with Automated Augmented Conjugate Inference (AACI), which automatically identifies these auxiliary structures to speed up inference by orders of magnitude.
Deterministic Approximations
When we can't change the math of the likelihood, we can change how we approximate the posterior. Several deterministic methods have become standard:
- Laplace Approximation: This method fits a Gaussian at the peak (mode) of the posterior. While simple, it can be unstable for certain likelihoods. Marcelo Hartmann and Jarno Vanhatalo improved this for robust regression by using natural gradients to maintain stability even with non-concave likelihoods.
- Expectation Propagation (EP): EP matches the "moments" (mean and variance) of the approximation to the true distribution. Onno Zoeter and Tom Heskes showed that Gaussian Quadrature can be used to solve the difficult integrals within EP, extending it to complex distributions like the Gamma or Beta.
- Variational Inference (VI): VI treats inference as an optimization problem, trying to minimize the "distance" (KL divergence) between the approximation and the truth. Dimitrios Milios demonstrated that by using a Dirichlet-based mapping, classification can be reframed as a regression problem, allowing VI to scale to massive datasets.
Scaling via State-Space Reformulation
For temporal data, even approximations can become slow because GPs typically scale cubically ($O(n^3)$) with the number of time points. A breakthrough in this area involves reframing GPs as State-Space Models.
Paul E. Chang and Arno Solin showed that temporal GPs can be viewed as stochastic differential equations. In State Space Expectation Propagation, they demonstrated that non-conjugate inference can be performed using a series of Kalman smoothing passes. This reduces the computational cost to linear time ($O(n)$), making it possible to apply sophisticated non-Gaussian GPs to millions of data points.
Why It Works: The Intuition of Local Linearity
The shared intuition across these methods is that non-conjugacy is a local problem. While a sigmoid function is globally non-linear, it can be approximated locally by a linear (Gaussian) function.
Whether through adding auxiliary variables (Pólya-Gamma), matching moments (EP), or linearizing around a mode (Laplace), the goal is to find a "Gaussian proxy" for the non-Gaussian likelihood. By doing so, we retain the primary benefit of Gaussian Processes—the ability to quantify uncertainty—while expanding their reach to the discrete and "bursty" data types that dominate real-world applications.