Compositional uncertainty in deep Gaussian processes

Ivan Ustyuzhaninov, Ieva Kazlauskaite, Markus Kaiser, Erik Bodin, Neill D. F. Campbell, Carl Henrik Ek

Abstract

Deep Gaussian Processes (DGPs) are powerful hierarchical models, but standard inference techniques often fail to capture the inherent ambiguity in how layers compose to explain data. This "compositional uncertainty" is lost when layers are assumed to be independent, leading to a collapse of intermediate layers into deterministic functions. We present two variational inference schemes that model cross-layer dependencies, successfully recovering this uncertainty and improving model performance.

The Problem of Compositional Uncertainty

Deep Gaussian Processes (DGPs) model complex functions by composing simpler ones: $f(x) = f_L(\dots f_2(f_1(x)))$. In many scenarios, there are multiple valid ways to decompose a signal into these constituent layers. For instance, a transformation could be explained by a large rotation followed by a small translation, or vice versa. This ambiguity is termed compositional uncertainty.

Compositional uncertainty in a 1D synthetic task where multiple function paths lead to the same output.

Current DGP inference typically relies on "mean-field" variational inference, which assumes layers are statistically independent. This paper demonstrates that this independence assumption forces a "collapse": to maximize the Evidence Lower Bound (ELBO), intermediate layers must become deterministic. If they retain variance, the independent errors compound, penalizing the objective. Consequently, the model settles on a single, rigid explanation, sacrificing the Bayesian advantage of representing multiple hypotheses.

Proposed Methods: Modeling Layer Dependencies

To address this, the authors propose two methods to introduce dependencies between inducing points across layers:

  1. Jointly Gaussian Inducing Points: Instead of independent distributions for each layer's inducing points $u_\ell$, a single joint Gaussian $q(u_1, \dots, u_L)$ is used. Efficiency is maintained via a block-tridiagonal precision matrix, allowing direct communication between adjacent layers.
  2. Inducing Points as Inducing Locations: This structural change uses the outputs of inducing points from layer $\ell-1$ as the input locations for layer $\ell$. This "linked" architecture forces dependencies naturally without a massive increase in parameter count.

Experimental Evaluation

The methods were tested on benchmarks emphasizing compositional structure:

  • Rectangle Toy Example: Modeling the transformation of a rectangle via rotation and translation.
  • Synthetic 1D Compositions: Functions where $f(x) = \pm x$ at different layers create multiple paths to the same output.
  • Heartbeat Data: A temporal warping task separating signal from time-warping.
The Rectangle Toy Example illustrating ambiguity in rotation and translation sequences.

Key Results

The proposed methods significantly outperformed standard Doubly Stochastic Variational Inference (DSVI). In 1D experiments, the "Inducing points as inducing locations" method achieved an ELBO of 36.31, compared to 13.43 for DSVI. Crucially, while DSVI's intermediate layer variance collapsed to $10^{-6}$, the new methods maintained a variance of $10^{-2}$, successfully capturing the underlying ambiguity.

Conclusion

Modeling correlations between layers is essential for true Bayesian inference in DGPs. By moving beyond the layer-independence assumption, we can capture compositional uncertainty, leading to more interpretable models and better fits to complex, hierarchical data. While computationally more demanding, the improvements in ELBO and uncertainty quantification suggest that modeling these dependencies is a necessary step for deep hierarchical models.

Summary updated

BibTeX
@inproceedings{ustyuzhaninov2020compositional,
  author = {Ivan Ustyuzhaninov and Ieva Kazlauskaite and Markus Kaiser and Erik Bodin and Neill D. F. Campbell and Carl Henrik Ek},
  title = {{Compositional uncertainty in deep Gaussian processes}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2020},
}
Figure