Skip to main content
QUICK REVIEW

[Paper Review] Tractable Approximate Gaussian Inference for Bayesian Neural Networks

James A. Goulet, Luong Ha Nguyen|PolyPublie (École Polytechnique de Montréal)|Apr 20, 2020
Gaussian Processes and Bayesian InferenceComputer Science34 references6 citations
TL;DR

This paper introduces Tractable Approximate Gaussian Inference (TAGI), a novel analytical method for Bayesian neural networks that enables exact computation of posterior mean and diagonal covariance for weights and biases with O(n) complexity. TAGI achieves state-of-the-art performance on regression and MNIST classification benchmarks without backpropagation, matching gradient-based methods in accuracy while enabling efficient, uncertainty-aware online inference.

ABSTRACT

In this paper, we propose an analytical method for performing tractable approximate Gaussian inference (TAGI) in Bayesian neural networks. The method enables the analytical Gaussian inference of the posterior mean vector and diagonal covariance matrix for weights and biases. The method proposed has a computational complexity of $\mathcal{O}(n)$ with respect to the number of parameters $n$, and the tests performed on regression and classification benchmarks confirm that, for a same network architecture, it matches the performance of existing methods relying on gradient backpropagation.

Motivation & Objective

  • To develop a tractable, analytical method for approximate Gaussian inference in Bayesian neural networks that avoids backpropagation.
  • To enable efficient computation of posterior mean and diagonal covariance for network weights and biases with linear complexity O(n) in the number of parameters.
  • To support uncertainty quantification in low-data, continual learning, and online inference scenarios where point estimates fall short.
  • To validate the method's performance against existing gradient-based approaches on regression and classification benchmarks.

Proposed method

  • The method uses moment generating functions and local linearization of activation functions to analytically propagate uncertainty forward through the network.
  • It applies Gaussian assumptions recursively across layers to perform tractable, layer-wise inference on hidden units and parameters.
  • The approach exploits conditional independence in neural networks to achieve linear storage and computational complexity with respect to the number of parameters.
  • It models weight and bias priors as multivariate Gaussians and computes posterior distributions analytically using closed-form expressions.
  • The method handles both regression and classification tasks by modeling observation noise as independent Gaussian variables with learned variance.
  • It uses early stopping and hyperparameter tuning on validation sets to optimize generalization, with results averaged over multiple random initializations.

Experimental results

Research questions

  • RQ1Can analytical, non-backpropagation-based inference be developed for Bayesian neural networks with linear complexity and high accuracy?
  • RQ2How does the performance of TAGI compare to gradient-based Bayesian neural network methods in regression and classification tasks?
  • RQ3To what extent does the method support uncertainty quantification and online learning in low-data regimes?
  • RQ4How sensitive is TAGI's performance to batch size and observation noise variance in the training process?

Key findings

  • TAGI achieved a test error of 1.54% on MNIST with 800 units per hidden layer and 14 optimal epochs, matching state-of-the-art results for similar architectures.
  • For the same architecture, the method achieved 2.29% error with 100 units and 21 optimal epochs, demonstrating strong performance on smaller networks.
  • Performance was stable across different batch sizes, with only minor degradation when using B=10 compared to B=1, indicating robustness to batch size.
  • The method showed minimal sensitivity to weight initialization when using larger batch sizes, though performance was more sensitive to σV and initialization when B=1.
  • The approach achieved comparable accuracy to gradient-based methods like Bayes by Backprop and Variational Message Passing, despite not using backpropagation.
  • The computational complexity scales linearly with the number of parameters, making it suitable for real-time and online learning applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.