Convolutional Normalizing Flows for Deep Gaussian Processes

Haibin Yu, Dapeng Liu, Bryan Kian Hsiang Low, Patrick Jaillet

TL;DR

This paper introduces Convolutional Normalizing Flows (CNF) as a novel framework for performing inference in Deep Gaussian Processes (DGPs). By replacing restrictive Gaussian posterior assumptions with flexible, invertible transformations, the authors achieve state-of-the-art performance in regression and classification while maintaining computational efficiency and training stability.

What Problem Does This Paper Address?

Deep Gaussian Processes (DGPs) are hierarchical stacks of Gaussian Processes that offer immense expressive power for modeling complex data. However, they come with a major "inference headache": the true posterior distribution is mathematically intractable.

Existing solutions have significant drawbacks:

  1. Variational Inference (VI): Usually assumes the posterior is a simple Gaussian (mean-field assumption). In reality, DGP posteriors are often highly correlated and non-Gaussian, leading to biased results.
  2. MCMC Sampling: Unbiased but prohibitively slow for large datasets due to its sequential nature.
  3. Implicit Posterior VI (IPVI): Uses a GAN-like adversarial approach to find the posterior. While flexible, it often suffers from the classic GAN problem: failing to converge to a stable equilibrium.

The authors seek a method that is flexible (non-Gaussian), scalable (efficient for big data), and stable (guaranteed convergence).

Methods

The authors propose using Normalizing Flows (NFs) to model the DGP posterior. An NF transforms a simple base distribution (like a standard Normal) into a complex one through a series of invertible mappings.

The "Convolutional" Innovation

A naive application of NFs to DGPs would treat each layer's inducing variables separately. This is inefficient ($O(M^3)$ complexity, where $M$ is the number of inducing points) and ignores the fact that variables across different layers are highly correlated.

To solve this, the authors introduce Convolutional Normalizing Flows (CNF):

  • Tensor Stacking: They stack the inducing variables from all layers into a single 3D tensor.
  • Kernel Convolution: They apply a convolution operation using a kernel tensor $W$. This allows the model to capture dependencies between layers naturally.
  • Efficiency: This approach reduces the complexity of computing the log-Jacobian determinant (a key part of NF training) from $O(M^3)$ to $O((L \sum d)^3)$, where $L$ is the number of layers.
  • Input-Dependent Base: The base distribution of the flow is manually constructed to depend on the inducing inputs ($Z$) via a small neural network, ensuring the posterior is grounded in the local geometry of the data.

Datasets

The model was evaluated on a diverse set of benchmarks:

  • UCI Regression: 7 standard datasets (e.g., Boston, Concrete, Energy).
  • Large-Scale Regression: YearMSD ($N \approx 500,000$, $D=90$) and Airline ($N \approx 2$ million, $D=8$).
  • Image Classification: MNIST, Fashion-MNIST, and CIFAR-10.

Key Insights and Ideas

  • Capturing Inter-Layer Correlation: The authors highlight that the posterior of a DGP is "highly correlated among layers." By using a convolutional structure across the stacked tensor of all layers, the CNF captures these dependencies much better than layer-wise methods.
  • Analytical Stability: Unlike adversarial methods (IPVI) that require a "discriminator" to guess the density, NFs provide an analytical solution for the log-density. This makes the training process significantly more robust and less prone to the "Nash equilibrium" issues found in previous work.
  • Convolutional Skip-layer Connections (CSC): For image data, the authors found that replacing standard skip-connections with convolutional ones further boosted performance, particularly on CIFAR-10.

Key Results

  • Superior Accuracy: In regression tasks, the 4-layer NF DGP consistently outperformed state-of-the-art methods like SGHMC and IPVI.
  • Higher ELBO: On the Boston dataset, the NF model achieved higher Evidence Lower Bounds (ELBO) than IPVI (e.g., -734.23 vs -758.42 for a 5-layer model), indicating a better fit to the true posterior.
  • Classification Performance: On CIFAR-10, the NF DGP 4 achieved 76.81% accuracy, significantly outperforming DSVI (75.05%) and IPVI (76.11%).
  • Efficiency Trade-off: While slightly slower to train than the unstable IPVI (0.56s vs 0.42s per iteration on Airline), it is orders of magnitude faster than MCMC-based SGHMC (3.67s).

Limitations and Future Work

  • Computational Overhead: Although more efficient than naive NFs, the method still incurs a slight time penalty compared to simple Gaussian VI.
  • Future Directions: The authors plan to extend this framework to semi-supervised learning, leveraging the generative power of normalizing flows to handle unlabeled data within the DGP architecture.

Summary updated

BibTeX
@inproceedings{yu2021convolutional,
  author = {Haibin Yu and Dapeng Liu and Bryan Kian Hsiang Low and Patrick Jaillet},
  title = {{Convolutional Normalizing Flows for Deep Gaussian Processes}},
  booktitle = {IJCNN},
  year = {2021},
  doi = {10.1109/ijcnn52387.2021.9533613},
}

Loading related content...

Figure