Source-linked AI summary
Binary Ensemble Neural Network: More Bits per Network or More Networks per Bit?
Shilin Zhu, Xin Dong, Hao Su
TL;DR
DNNs can exceed the computing and memory limits of mobile and embedded devices, while BNNs suffer accuracy degradation. The paper analyzes BNN instability and non-robustness, then proposes BENN, which ensembles BNNs. Experiments report improved accuracy and robustness, with BENN surpassing a same-architecture full-precision network in the best case.
Problem
Method
The paper analyzes BNN representation, speed, bias, variance, stability, and robustness, then proposes BENN, which aggregates multiple BNNs using ensemble methods.
Source: §1 · pp. 1–2Results
BENN reduces bias and variance, improves robustness to test-time noise, and can surpass a same-connectivity real-weight DNN in the best case.
Source: §1 · p. 2Takeaways & Limitations
The authors report BENN complexity of O(K), reducible to O(1) with trivial parallelization, as an alternative to cited methods with O(K^2) complexity.
Source: §1 · p. 2Increasing the number of ensembles can cause overfitting on CIFAR-10 and ImageNet, and training more ensembles takes longer, especially on ImageNet.
Source: §7 · p. 8
Abstract
from arXiv · showhide
Binary neural networks (BNN) have been studied extensively since they run dramatically faster at lower memory and power consumption than floating-point networks, thanks to the efficiency of bit operations. However, contemporary BNNs whose weights and activations are both single bits suffer from severe accuracy degradation. To understand why, we investigate the representation ability, speed and bias/variance of BNNs through extensive experiments. We conclude that the error of BNNs is predominantly caused by the intrinsic instability (training time) and non-robustness (train & test time). Inspired by this investigation, we propose the Binary Ensemble Neural Network (BENN) which leverages ensemble methods to improve the performance of BNNs with limited efficiency cost. While ensemble techniques have been broadly believed to be only marginally helpful for strong classifiers such as deep neural networks, our analyses and experiments show that they are naturally a perfect fit to boost BNNs. We find that our BENN, which is faster and much more robust than state-of-the-art binary networks, can even surpass the accuracy of the full-precision floating number network with the same architecture.
1. Introduction
DNN deployment on resource-limited devices motivates interest in BNNs, whose bitwise operations reduce memory and power demands but whose accuracy degrades on challenging tasks. The paper attributes this degradation to instability and non-robustness, and proposes BENN, whose ensembles can improve BNN performance.
1. Introduction
- Resource-limited devices motivate faster, smaller networks because they cannot afford the computation and memory required by DNN tasks such as object recognition.The introduction points to mobile phones and embedded chips serving real-time applications.Source: §1 · p. 1
- BNNs represent weights and activations with single bits and use bitwise operations, saving storage and memory while reducing power consumption.The passage gives -1 and +1 as example binary values and notes that bitwise operations can run on digital logic units.Source: §1 · p. 1
- Despite speed and storage benefits, current BNNs suffer notable accuracy degradation on challenging tasks such as ImageNet classification.Prior BNN work focused on improving optimization, although gradient-based optimization is difficult to implement for quantized weights.Source: §1 · p. 1
- BENN ensembles reduce bias and variance, improve robustness to test-time noise, and can surpass a same-connectivity real-weight DNN in the best case.The authors report that boosting only 4–5 BNNs can achieve this result; initial ImageNet experiments with AlexNet and ResNet also show a large gain.Source: §1 · p. 2
- BENN has O(K) complexity versus ≳O(K^2) for cited K-bit or K-base alternatives, and trivial parallelization can reduce its complexity to O(1).The authors also report better bitwise-operation parallelizability than those alternatives.Source: §1 · p. 2
2. Related Work
Related work contrasts low-bit quantization and binary networks with ensemble methods. BENN combines BNNs with established ensemble approaches, which the authors present as a fit for weak binary classifiers.
Quantized and binary neural networks
- Prior quantized and binary networks can retain accuracy with low-bit parameters, but bitwidth above one prevents fully parallelized bitwise operations.The section describes quantized networks [32], ternary networks [66] [64], and the binary-network approach.Source: §2 · p. 2
- BENN uses a general ensemble framework and is reported to achieve O(K) complexity, compared with O(K^2) for methods using K-bit quantization or K binary bases.The authors also state that BENN can reach O(1) when multiple threads are naturally parallelized.Source: §2 · p. 2
Ensemble techniques
- Bagging and boosting combine weak classifiers; bagging is associated with variance reduction, while boosting can reduce both bias and variance.The authors build BENN on variants of bagging, AdaBoost, and LogitBoost, and say it can extend to other traditional ensemble algorithms.Source: §2 · p. 2
3. Why Making BNNs Work Well is Challenging?
The paper investigates whether BNN accuracy loss reflects representational limits, optimization difficulty, or robustness and stability problems. Its experiments report input sensitivity, training instability, and sensitivity to activation binarization.
3. Why Making BNNs Work Well is Challenging?
- The authors identify representational flaws and optimization algorithms failing to find good minima as possible sources of BNNs' inferior performance to real-valued networks.They state that their investigation experimentally examines limitations of BNN-representable functions.Source: §3 · pp. 2–3
- BNNs represent only a subset of discrete functions and are strictly weaker than real networks, while robustness to input perturbations and parameter stability are further limitations.The paper connects robustness and stability to generalization error.Source: §3 · p. 3
- The paper defines robustness as testing error remaining close to training error when the testing population is similar to the training population.It investigates this issue using random-network and trained-network settings.Source: §3 · p. 3
- BNNs have larger output variation under input perturbation than DNNs, QNNs, and BENN, and adding activation bits improves robustness more than adding weight bits.The authors identify activation binarization as the apparent robustness bottleneck.Source: §3 · p. 3
- Even when well optimized, BNNs remain more sensitive to noise than real-valued networks in the trained-network comparison.The experiment uses XNOR-Net for the BNN comparison and applies Gaussian input perturbation on CIFAR-10.Source: §3 · p. 3
- After 300 training epochs, the reported results indicate that QNNs need at least 4-bit weights and activations to stabilize, while BENN with 5 or 32 ensembles achieves high stability.The paper offers non-smoothness with respect to binary network parameters as one explanation for instability.Source: §3 · p. 3
4. Binary Ensemble Neural Network
BENN combines binary neural networks through bagging or boosting to address their instability and sensitivity to perturbations. The section describes these ensemble strategies, their inference cost, and an analysis of stability.
4. Binary Ensemble Neural Network
- BENN uses deterministic sign binarization for weights and activations and a straight-through estimator during back-propagation.The passage motivates deterministic binarization as preferred for hardware acceleration.Source: §4 · p. 3
- At perturbation variance 0.01, Figure 2 identifies BNN output variation, prediction-accuracy variation, and training-time test-accuracy variation as problems BENN can cure.The left, middle, and right panels correspond to output variation, prediction-accuracy variation, and test-accuracy variation during training.Source: Figure 2 · p. 4
4.1. BENN-Bagging
- Bagging trains K BNNs on bootstrap samples, each seeing roughly 63% of the training set, then aggregates hard labels or softmax probabilities to reduce classifier variance.Sampling is with replacement; aggregation can use majority agreement or the best label after combining probabilities.Source: §4.1 · p. 4
4.2. BENN-Boosting
- Boosting sequentially combines weak classifiers as stage-wise function-space descent, reweighting attention toward previously misclassified samples to reduce bias and variance.The section chooses AdaBoost; reweighting through loss or gradients was less effective experimentally, which the authors conjecture may exaggerate gradient mismatch.Source: §4.2 · p. 4
4.3. Test-Time Complexity
- BENN reduces the compared O(K^2) complexity to O(K), and can reach O(1) inference complexity with multiple threads.The comparison is with K-bit quantization or K binary bases; the passage says BENN maintains accuracy and stability.Source: §4.3 · p. 5
4.4. Stability Analysis
- Under Gaussian assumptions, the stability analysis verifies a gain for BENN over BNN; bagging reduces variance, while boosting can reduce both bias and variance.The analysis describes larger output-change variance as greater variation under input perturbation.Source: §4.4 · p. 5
5. Independent and Warm-Restart Training for BENNs
The section compares independent retraining of each classifier with warm-restart training, which initializes a new classifier from the latest trained classifier's weights. Which scheme performs better depends on network and dataset scale.
5. Independent and Warm-Restart Training for BENNs
- Warm-restart training clones the most recently trained classifier's weights to initialize each new classifier, whereas independent training initializes and retrains each classifier separately.The authors conjecture that inherited weights transfer knowledge of unseen data to the new classifier.Source: §5 · p. 5
- On Network-in-Network with CIFAR-10, warm-restart training has better accuracy; on AlexNet or ResNet with ImageNet, independent training is better as overfitting emerges.Source: §5 · p. 5
- The experiments use CNN blocks with batch normalization, binary activation and convolution, a non-binary activation, and pooling; seven BNN architecture configurations serve as ensemble ingredients.The implementation uses STE for the sign-function gradient and real-valued weights during parameter updates.Source: §5 · p. 5
6. Experimental Results
Experiments on CIFAR-10 and ImageNet show that ensembling improves BNN accuracy and stability, with strong results against single BNNs and other binary networks. BENN-SB was the best tested state-of-the-art BNN approach on ImageNet with three parallel ensembles, while larger ensembles showed instability and possible overfitting.
6. Experimental Results
- The experiments used NIN for CIFAR-10 and AlexNet and ResNet-18 for ImageNet, comparing converged and best-during-training BNNs with their full-precision counterparts.Base BNNs were initialized from XNOR-Net and retrained for 100 epochs before ensembling; Tables 2 and 3 cover weak-BNN configurations and training oscillation.Source: §6 · p. 5, §6.1 · p. 6, Table 2 · p. 6
6.1. Insights Generated from CIFAR-10
- On CIFAR-10, BENN gained 4.21%–24.16% over single BNNs, and BENN-SB-32 surpassed its full-precision counterpart by up to 1.52%.Measured accuracy variance fell by ~90% with 5 ensembles and ~99% with 32; at equal parameter bits, BENN-SB-5 reached ~86% stably versus WQB’s ~80% unstably.Source: §6.1 · p. 6, Figure 3 · p. 7
- On CIFAR-10, warm-restart training improved accuracy over independent training by up to 3.9% for bagging and 2.95% for boosting, unlike ImageNet, where slight overfitting occurred.The authors say the CIFAR-10 observation needs further justification through convergence theory.Source: §6.1 · p. 6
- Compression reduced single-BNN accuracy by 7.71% (Tiny) and 44.21% (Nano), while 32-round BENN losses were 4.8% and 26.01%; boosting gained up to 13.38% over bagging at 10% size.The authors note that a sufficiently capable base BNN is important for matching full-precision DNNs.Source: §6.1 · pp. 6–7, Table 4 · p. 7
- With 32 ensembles, 2-bit-activation AQB and IB had comparable accuracy, between AB and SB; activation binarization destabilized models more than weight binarization.Binarizing the first and last layers cost 3.98%–11.9% for single BNNs versus 2.36%–6.98% with 32 ensembles.Source: §6.1 · p. 7, Figure 4 · p. 7
6.2. Exploration on Applying BENN to ImageNet Recognition
- On ImageNet, BENN-SB was best among the tested state-of-the-art BNNs with three parallel ensembles, while larger ensembles showed unstable accuracy and possible overfitting.The ImageNet evaluation used AlexNet and ResNet-18; Table 5 covers AlexNet.Source: §6.2 · p. 8, Table 5 · p. 8
7. Discussion
BENN reframes binary-network design as using more networks per bit: weak classifiers built from neuron groups are ensembled into a strong classifier. The discussion presents hardware benefits alongside limits in overfitting, training time, and large-network optimization.
7. Discussion
- The discussion frames a research question: how many networks per bit should replace the usual focus on bits per network?It connects this framing to biological neural signals, which the authors describe as more like spikes than high-range real-valued signals.Source: §7 · p. 8
- Table 6 is identified as a comparison of state-of-the-art methods on ImageNet using ResNet-18, with W denoting weights and A activations.The supplied passage gives the table caption but no cell values.Source: Table 6 · p. 8
- BENN builds weak classifiers from groups of neurons and ensembles them into a strong classifier, a hierarchical alternative to increasing bits per network.The authors describe this representation as intuitive and natural for representing knowledge.Source: §7 · p. 8
- BENN can use bitwise operations and parallel execution, with stated complexity O(K) and O(1) under trivial parallelization.The authors contrast this with methods using K-bit weights or K binary bases, whose complexity they describe as ≳O(K2).Source: §7 · p. 8
- Increasing the number of ensembles can cause overfitting on CIFAR-10 and ImageNet, while many ensembles lengthen training and slow design iterations.The authors also say BENN needs further optimization for large networks such as AlexNet and ResNet, including ensemble-rule and base-classifier selection.Source: §7 · p. 8
8. Conclusion and Future Work
The conclusion presents BENN as an architecture combining BNNs with ensemble methods. It reports gains in accuracy, robustness, and stability, and identifies hardware co-optimization, pruning, and decision-boundary statistics as future directions.
8. Conclusion and Future Work
- BENN combines binary neural networks with ensemble methods, and experiments show gains in accuracy, robustness, and stability.The authors propose exploring pruning, hardware co-optimization, and BENN decision-boundary statistics in future work.Source: §8 · p. 9
9. Supplementary Material: Detailed Analysis on DNN, BNN, and BENN
The supplementary analysis compares robustness by examining output variation under input perturbations. It reports robustness relationships for activation, weight, and joint binarization, and extends Theorem 1 to multiple layers.
9. Supplementary Material: Detailed Analysis on DNN, BNN, and BENN
- The analysis compares robustness by measuring the variance of output change before and after input perturbation; larger variance means greater output variation.The setup considers real-valued DNNs, BNNs, and BENNs with K ensembles.Source: §9 · p. 11
9.1. Activation Binarization
- For activation binarization, BNN robustness is worse than DNN robustness when σ < 1, while BENN-Bagging is more robust than BNN.The theorem states that BENN-Bagging can be more robust than DNN when the ensemble count exceeds a condition involving B.Source: §9.3 · p. 12, §9.1 · p. 12
9.2. Weight Binarization
- For weight-only binarization, BNN robustness is worse than DNN robustness when σw < 1, and BENN-Bagging is guaranteed to be more robust than BNN.The theorem also gives a variance-dependent ensemble-count condition for BENN-Bagging to exceed DNN robustness.Source: §9.3 · p. 12
9.3. Binarization of Both Weight and Activation
- When both weights and activations are binarized, BNN robustness is worse than DNN robustness under the stated σw < 1 and perturbation σ < 1 conditions.BENN-Bagging is guaranteed to be more robust than BNN; exceeding DNN robustness depends on the stated ensemble-count condition.Source: §9.3 · p. 12
9.4. Multiple Layers Scenario
- Theorem 1 is stated to hold for multiple-layer networks, and experiments show BENN-boosting can reduce variance in this setting.The theoretical analysis of BENN-boosting variance reduction is left for future work because the classifiers are not independent and the effect remains debated.Source: §9.4 · p. 12
10. Supplementary Material: Training Process of BENN
The training procedure initializes from a pre-trained XNOR-Net, retrains binary classifiers, and uses bagging or boosting to update training-example weights.
10. Supplementary Material: Training Process of BENN
- The procedure takes a full-precision network and initializes the BNN from a pre-trained XNOR-Net model, retraining each BNN for at most M epochs.Source: §10 · p. 13
- After training converges, the procedure selects the BNN as a classifier for the ensemble.Source: §10 · p. 13
- The procedure updates each training example's weight using either bagging or boosting.Source: §10 · p. 13
23 end
The BENN implementation specifies K trained base classifiers as a return.
- The BENN implementation specifies K trained base classifiers as a return.Source: §23 · p. 13
11. Supplementary Material: Network Architectures Used in the Paper
This supplementary section provides the network architectures used in the paper’s experiments, including self-designed NIN, AlexNet, and ResNet-18.
11.0.1 Self-Designed Network-In-Network (NIN)
- The supplementary material provides the self-designed Network-In-Network architecture used in the experiments.Source: Table 8 · p. 13
11.0.2 AlexNet
- The supplementary material provides the AlexNet architecture used in the experiments.Source: Table 9 · p. 13
11.0.3 ResNet-18
- The supplementary material provides the ResNet-18 architecture used in the experiments.Source: Table 10 · p. 14
Related papers
This paper cites
- ADAM: A METHOD FOR STOCHASTIC OPTIMIZATION2014
- Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift2015
- Going Deeper with Convolutions2014
- Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation2013
- SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size2016
- BinaryConnect: Training Deep Neural Networks with binary weights during propagations2015