Bayesian Neural Networks With Maximum Mean Discrepancy Regularization

Jary Pomponi, Simone Scardapane, Aurelio Uncini
3/2/2020
cs.LGstat.ML

Official code: ispamm/MMD-Bayesian-Neural-Network (3 stars, last commit 2020-03-07).

Abstract

Bayesian Neural Networks (BNNs) are trained to optimize an entire distribution over their weights instead of a single set, having significant advantages in terms of, e.g., interpretability, multi-task learning, and calibration. Because of the intractability of the resulting optimization problem, most BNNs are either sampled through Monte Carlo methods, or trained by minimizing a suitable Evidence Lower BOund (ELBO) on a variational approximation. In this paper, we propose a variant of the latter, wherein we replace the Kullback-Leibler divergence in the ELBO term with a Maximum Mean Discrepancy (MMD) estimator, inspired by recent work in variational inference. After motivating our proposal based on the properties of the MMD term, we proceed to show a number of empirical advantages of the proposed formulation over the state-of-the-art. In particular, our BNNs achieve higher accuracy on multiple benchmarks, including several image classification tasks. In addition, they are more robust to the selection of a prior over the weights, and they are better calibrated. As a second contribution, we provide a new formulation for estimating the uncertainty on a given prediction, showing it performs in a more robust fashion against adversarial attacks and the injection of noise over their inputs, compared to more classical criteria such as the differential entropy.

View on arXivView PDF

Code Implementations(1)

30Shell, PythonMar 3, 20206 years ago

Cite this paper

@article{pomponi2020bayesian,
  title  = {Bayesian Neural Networks With Maximum Mean Discrepancy Regularization},
  author = {Jary Pomponi and Simone Scardapane and Aurelio Uncini},
  year   = {2020},
  eprint = {2003.00952},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.00952}
}

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

Discussion