Training Binary Neural Networks using the Bayesian Learning Rule

Xiangming Meng, Roman Bachmann, Mohammad Emtiyaz Khan
2/25/2020
cs.LGstat.ML

Official code: team-approx-bayes/BayesBiNN (41 stars, last commit 2022-01-04).

Abstract

Neural networks with binary weights are computation-efficient and hardware-friendly, but their training is challenging because it involves a discrete optimization problem. Surprisingly, ignoring the discrete nature of the problem and using gradient-based methods, such as the Straight-Through Estimator, still works well in practice. This raises the question: are there principled approaches which justify such methods? In this paper, we propose such an approach using the Bayesian learning rule. The rule, when applied to estimate a Bernoulli distribution over the binary weights, results in an algorithm which justifies some of the algorithmic choices made by the previous approaches. The algorithm not only obtains state-of-the-art performance, but also enables uncertainty estimation for continual learning to avoid catastrophic forgetting. Our work provides a principled approach for training binary neural networks which justifies and extends existing approaches.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Training Binary Neural Networks with Bayesian Learning Rule

415Python, Jupyter NotebookFeb 23, 20204 years ago

Cite this paper

@article{meng2020training,
  title  = {Training Binary Neural Networks using the Bayesian Learning Rule},
  author = {Xiangming Meng and Roman Bachmann and Mohammad Emtiyaz Khan},
  year   = {2020},
  eprint = {2002.10778},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.10778}
}

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

Discussion