One Simple Trick to Fix Your Bayesian Neural Network

Piotr Tempczyk, Ksawery Smoczyński, Philip Smolenski-Jensen, Marek Cygan
7/26/2022
2 citations
stat.MLcs.LG
bayesian

No official code found. Best implementation: KsawerySmoczynski/One-simple-trick-to-fix-your-bayesian-neural-network (0 stars, Jupyter Notebook, last commit 2024-11-24).

Abstract

One of the most popular estimation methods in Bayesian neural networks (BNN) is mean-field variational inference (MFVI). In this work, we show that neural networks with ReLU activation function induce posteriors, that are hard to fit with MFVI.

Show full abstract

We provide a theoretical justification for this phenomenon, study it empirically, and report the results of a series of experiments to investigate the effect of activation function on the calibration of BNNs. We find that using Leaky ReLU activations leads to more Gaussian-like weight posteriors and achieves a lower expected calibration error (ECE) than its ReLU-based counterpart.

View on arXivView PDF

Code Implementations(1)

Code for paper https://arxiv.org/abs/2207.13167

00Jupyter Notebook, PythonNov 11, 20212 years ago

Similar Papers

Cite this paper

@article{tempczyk2022simple,
  title  = {One Simple Trick to Fix Your Bayesian Neural Network},
  author = {Piotr Tempczyk and Ksawery Smoczyński and Philip Smolenski-Jensen and Marek Cygan},
  year   = {2022},
  eprint = {2207.13167},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.13167v1}
}

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/2207.13167.svg)](https://codeofpaper.com/paper/2207.13167)

Discussion