Deep Gaussian Processes (DGPs) learn probabilistic data representations by cascading multiple Gaussian Processes. While this model family promises highly flexible predictive distributions, exact inference is mathematically intractable. This NeurIPS 2020 paper by Lindinger et al. tackles a fundamental trade-off in DGPs: the choice between mathematical convenience and realistic uncertainty. By moving "beyond the mean-field," the authors demonstrate how to achieve better-calibrated predictions without sacrificing computational efficiency.
TL;DR
Standard DGPs often assume that different layers are independent to make the math work, which leads to poor uncertainty estimates (overconfidence) when the model encounters out-of-distribution data. This paper introduces a "Structured" DGP that allows for correlations between layers while maintaining an efficient, analytical way to solve the model. The result is significantly better uncertainty calibration, particularly during extrapolation.
The Problem: The "Independence Tax" in DGPs
Gaussian Processes (GPs) are the gold standard for uncertainty—they don't just provide a prediction; they quantify their confidence. However, standard GPs can be mathematically "stiff." Deep Gaussian Processes solve this by stacking GPs in layers, much like a neural network, to gain representational flexibility.
The catch is that exact inference in DGPs is impossible. Most researchers rely on Variational Inference (VI) coupled with a "mean-field" assumption. This assumes that the "inducing points" (the small set of variables representing the model's knowledge) in different layers are entirely independent.
While this assumption makes the code run faster, it ignores the reality of deep models: what happens in Layer 1 inherently affects Layer 2. This forced independence acts as a tax on uncertainty, leading to "overconfident" models that underestimate their own error, especially when predicting far away from the training data (extrapolation).
Proposed Method: Structured Deep Gaussian Processes
The authors propose a novel Gaussian variational family that allows for correlations within and across layers.
1. Fully-Coupled DGPs and Analytical Marginalization
First, the authors prove mathematically (Theorem 1) that it is possible to marginalize out all global latent variables analytically, even if they are fully correlated. This is a significant breakthrough because analytical marginalization reduces the variance of the model's training objective (the Evidence Lower Bound, or ELBO), leading to faster and more stable convergence compared to traditional Monte Carlo sampling.
2. The STAR Approximation
While a fully-coupled covariance matrix is mathematically possible, it is computationally expensive—scaling at $O(M^2)$ where $M$ is the number of inducing points. By analyzing the learned patterns of fully-coupled models, the authors noticed two dominant structures:
- Stripes: Correlations between GPs at the same relative position in adjacent layers. This likely emerges because of the residual connections (mean functions) commonly used in DGPs to prevent the signal from dying out.
- Arrows: Correlations between all hidden layers and the final output layer.
They combined these observations into the Stripes-and-Arrow (STAR) approximation. This sparse covariance structure captures the most critical dependencies while remaining nearly as fast as the independent mean-field version.
Key Insights: Analytical is Better
Marginalizing out variables with a closed-form analytical proof is vastly superior to letting a computer estimate them with random samples.
As demonstrated, the analytical approach leads to smoother training and faster convergence for the model, avoiding the noisy gradient updates typical of Monte Carlo methods.
Experimental Results
The authors evaluated their approach on eight standard UCI benchmark datasets (ranging from Boston Housing to Protein Structure), testing both standard interpolation (90/10 splits) and challenging extrapolation tasks.
- Superior Extrapolation: In extrapolation tasks, the STAR DGP significantly outperformed both the standard Mean-Field DGP and SGHMC (a popular sampling-based alternative) on 5 out of 8 datasets.
- Better Calibration: As the model moves further from the training data, the STAR DGP’s predicted variance increases in lockstep with its actual error. Mean-field models, by contrast, remained dangerously overconfident.
- Computational Efficiency: The STAR approximation proved to be a highly viable middle ground for large-scale applications. It was only about 2x slower than the overly simplistic mean-field version, but 3x faster than the computationally heavy fully-coupled version.
Limitations and Future Work
- Optimization Constraints: One downside is that the STAR structure makes it difficult to use "natural gradients," a specific optimization trick that often speeds up GP training. The authors had to rely on standard Adam optimization.
- Fixed Structure: The STAR pattern is "hand-inspired" by empirical observations. Future work could involve learning the optimal sparsity pattern automatically for different neural architectures.
- Interpretability: The authors suggest exploring how these structured correlations could be used to interpret what intermediate layers are actually learning about the data, opening new doors for explainable probabilistic models.
Summary updated