Towards Improved Variational Inference for Deep Bayesian Models

Sebastian W. OberarXiv 2024 · DOI

Abstract

Deep learning models are frequently overconfident, a limitation that Bayesian deep learning seeks to address by treating parameters as probability distributions. However, the intractability of the posterior distribution necessitates approximations such as Variational Inference (VI). This paper summarizes research into the pathologies of existing VI methods and proposes three novel contributions: an analysis of overfitting in Deep Kernel Learning, the introduction of Global Inducing Points to capture inter-layer correlations, and the development of Deep Wishart Processes to resolve the symmetry problem in neural networks. Experimental results demonstrate improved uncertainty quantification and competitive accuracy on benchmarks such as CIFAR-10.

Introduction

While deep learning has achieved remarkable success across diverse domains, standard models often fail to quantify uncertainty, leading to high-certainty predictions even when incorrect. Bayesian deep learning provides a principled framework for uncertainty by treating model parameters as distributions. Because exact inference is computationally impossible for deep architectures, Variational Inference (VI) is typically employed to find a simpler distribution (e.g., a Gaussian) that approximates the true posterior. However, standard VI approaches often ignore the structural dependencies of neural networks and struggle with model symmetries. This research identifies these fundamental flaws and proposes robust alternatives to make Bayesian deep learning more practical.

Addressing Pathologies in Deep Kernel Learning

Deep Kernel Learning (DKL) combines the feature-extraction power of neural networks with the non-parametric flexibility of Gaussian Processes (GPs). It is often assumed that maximizing the marginal likelihood in DKL prevents overfitting. However, this work demonstrates that when the underlying neural network is overparameterized, the model can "hack" the marginal likelihood. By over-correlating data points, the model effectively bypasses the complexity penalty, leading to worse overfitting than standard non-Bayesian networks. This finding challenges the conventional wisdom regarding the inherent robustness of DKL.

Capturing Layer Correlations via Global Inducing Points

A common simplification in VI for deep models is the assumption of independence between layers. In reality, the weights and activations of successive layers are deeply intertwined. To address this, the "Global Inducing Point" method was developed. Unlike traditional methods that define independent representative points for each layer, this approach defines inducing points at the input and propagates them through the entire network. This ensures that uncertainty in early layers correctly informs subsequent layers, significantly tightening the Evidence Lower Bound (ELBO) and improving the quality of the posterior approximation.

The Deep Wishart Process and the Symmetry Problem

Neural networks possess inherent symmetries; for instance, swapping two neurons in a hidden layer results in an identical output. Standard VI methods are often confounded by these multiple equivalent solutions, leading to inefficient optimization. To bypass this, the research introduces the Deep Wishart Process (DWP). Instead of performing inference on individual activations, the DWP operates on Gram matrices, which represent the relationships between data points. Because Gram matrices are invariant to neuron rotations and permutations, the symmetry problem is mathematically eliminated. Furthermore, the DWP reduces computational complexity by a factor of the layer width (ν) compared to standard Deep Gaussian Processes by sampling a single matrix rather than multiple independent processes.

Experimental Results

The proposed methods were evaluated across several benchmarks, including UCI regression tasks and image classification:

  • Accuracy: The Global Inducing Point method achieved a landmark 86.7% accuracy on CIFAR-10. This is a significant result for a "pure" Bayesian method that avoids common non-Bayesian heuristics like posterior tempering or extensive data augmentation.
  • Uncertainty Quantification: In 1D "gap" datasets, these methods successfully identified high uncertainty in regions lacking data, closely matching the performance of the computationally expensive Hamiltonian Monte Carlo (HMC) "gold standard."
  • Efficiency: The Deep Wishart Process demonstrated improved scaling by leveraging the invariant properties of Gram matrices, making the optimization task more straightforward for the model.

Conclusion and Future Work

This research suggests that the path toward practical Bayesian deep learning involves more faithful representations of model structure rather than simplified approximations. While challenges remain—such as scaling Gram matrix operations to massive datasets like ImageNet and adapting these methods to complex architectures like ResNets—the introduction of Global Inducing Points and Deep Wishart Processes represents a significant step toward robust, uncertainty-aware deep learning.

Summary updated

BibTeX
@misc{ober2024towards,
  author = {Sebastian W. Ober},
  title = {{Towards Improved Variational Inference for Deep Bayesian Models}},
  year = {2024},
  eprint = {2401.12418},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.12418},
}
Figure