BALI: Learning Neural Networks via Bayesian Layerwise Inference

Richard Kurle, Alexej Klushyn, Ralf Herbrich
11/18/2024
cs.LGstat.ML

No confident code implementation found for this paper.

Abstract

We introduce a new method for learning Bayesian neural networks, treating them as a stack of multivariate Bayesian linear regression models. The main idea is to infer the layerwise posterior exactly if we know the target outputs of each layer. We define these pseudo-targets as the layer outputs from the forward pass, updated by the backpropagated gradients of the objective function. The resulting layerwise posterior is a matrix-normal distribution with a Kronecker-factorized covariance matrix, which can be efficiently inverted. Our method extends to the stochastic mini-batch setting using an exponential moving average over natural-parameter terms, thus gradually forgetting older data. The method converges in few iterations and performs as well as or better than leading Bayesian neural network methods on various regression, classification, and out-of-distribution detection benchmarks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kurle2024bali,
  title  = {BALI: Learning Neural Networks via Bayesian Layerwise Inference},
  author = {Richard Kurle and Alexej Klushyn and Ralf Herbrich},
  year   = {2024},
  eprint = {2411.12102},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.12102v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.12102.svg)](https://codeofpaper.com/paper/2411.12102)

Discussion