Equal Bits: Enforcing Equally Distributed Binary Network Weights

Yunqiang Li, Silvia L. Pintea, Jan C. van Gemert
12/2/2021
cs.LGcs.CV

Official code: liyunqianggyn/Equal-Bits-BNN (6 stars, Python, last commit 2022-05-07).

Abstract

Binary networks are extremely efficient as they use only two symbols to define the network: $\{+1,-1\}$. One can make the prior distribution of these symbols a design choice.

Show full abstract

The recent IR-Net of Qin et al. argues that imposing a Bernoulli distribution with equal priors (equal bit ratios) over the binary weights leads to maximum entropy and thus minimizes information loss. However, prior work cannot precisely control the binary weight distribution during training, and therefore cannot guarantee maximum entropy. Here, we show that quantizing using optimal transport can guarantee any bit ratio, including equal ratios. We investigate experimentally that equal bit ratios are indeed preferable and show that our method leads to optimization benefits. We show that our quantization method is effective when compared to state-of-the-art binarization methods, even when using binary weight pruning.

View on arXivView PDF

Code Implementations(1)

Implementation of accepted AAAI 2022 paper "Equal Bits: Enforcing Equally Distributed Binary Network Weights"

60PythonDec 1, 20214 years ago

Similar Papers

Cite this paper

@article{li2021equal,
  title  = {Equal Bits: Enforcing Equally Distributed Binary Network Weights},
  author = {Yunqiang Li and Silvia L. Pintea and Jan C. van Gemert},
  year   = {2021},
  eprint = {2112.03406},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.03406}
}

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

Discussion