Skip to main content
QUICK REVIEW

[Paper Review] Probabilistic Binary Neural Networks

Jorn W. T. Peters, Max Welling|arXiv (Cornell University)|Sep 10, 2018
Neural Networks and ApplicationsComputer Science23 references45 citations
TL;DR

BLRNet trains neural networks with binary weights and binary activations using stochastic training and local reparameterization, enabling test-time deterministic BIN nets or online ensembles for uncertainty estimation.

ABSTRACT

Low bit-width weights and activations are an effective way of combating the increasing need for both memory and compute power of Deep Neural Networks. In this work, we present a probabilistic training method for Neural Network with both binary weights and activations, called BLRNet. By embracing stochasticity during training, we circumvent the need to approximate the gradient of non-differentiable functions such as sign(), while still obtaining a fully Binary Neural Network at test time. Moreover, it allows for anytime ensemble predictions for improved performance and uncertainty estimates by sampling from the weight distribution. Since all operations in a layer of the BLRNet operate on random variables, we introduce stochastic versions of Batch Normalization and max pooling, which transfer well to a deterministic network at test time. We evaluate the BLRNet on multiple standardized benchmarks.

Motivation & Objective

  • Motivate reducing memory and compute in DNNs by using binary weights and activations.
  • Propose a probabilistic training framework that handles non-differentiable binarization.
  • Introduce stochastic versions of Batch Normalization and max pooling suitable for random variables.
  • Enable test-time either a single deterministic binary network or an ensemble drawn from a learned weight distribution for improved accuracy and uncertainty estimates.

Proposed method

  • Train a stochastic Binary Neural Network using local reparameterization and the Concrete distribution to sample binary activations.
  • Model pre-activations as Gaussian via CLT given binary weights, then apply binarization to obtain binary activations.
  • Define stochastic Batch Normalization and stochastic Max Pooling for random variables and transfer parameters to deterministic BN/Pooling at test time.
  • Initialize weights by transferring from a pretrained full-precision network with clipping to valid probability ranges.
  • Provide deterministic BLRNet (MAP) and ensemble BLRNet-X by sampling multiple weight instantiations from p(B).
  • Adopt a Bayesian interpretation with a variational objective; optionally use a variance-regularizer to bias toward lower weight-uncertainty.

Experimental results

Research questions

  • RQ1Can binary weights and activations be trained effectively via a probabilistic framework that avoids differentiating through sign operations?
  • RQ2How can stochastic operations (BN, max pooling) be defined for random variables and subsequently converted to deterministic counterparts at test time?
  • RQ3Does sampling from the weight distribution enable anytime ensemble predictions and uncertainty estimates without retraining?
  • RQ4What is the impact of stochastic BN and weight-transfer initialization on performance for MNIST and CIFAR-10?
  • RQ5How does BLRNet compare to full-precision nets and existing binary nets on standard benchmarks?

Key findings

  • BLRNet achieves competitive accuracies on MNIST and CIFAR-10 compared to a baseline binarized network and approaches full-precision performance on CIFAR-10 with ensembles.
  • Ensembles BLRNet-2/5/16 improve accuracy and provide uncertainty estimates, with BLRNet-16 reaching 91.22% on CIFAR-10 (non-white) in the reported setting.
  • Stochastic BN and the weight-transfer initialization significantly boost performance versus ablations without these components.
  • Test-time sampling from the weight distribution yields an ensemble with improved accuracy and enables uncertainty estimation without retraining.
  • Re-estimating batch statistics after weight sampling is effective, even with a small number of batches (as low as 5).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.