[Paper Review] Efficient Stochastic Inference of Bitwise Deep Neural Networks
This paper proposes stochastic inference using ensemble networks of bitwise deep neural networks (BNNs) to improve classification accuracy beyond high-precision models. By applying stochastic weight projections at test time and leveraging hardware-efficient stochastic rounding via LFSR-generated bitstreams, the method achieves 5.81% test error on CIFAR-10 and 1.63% on GTSRB—surpassing the performance of the original high-precision network.
Recently published methods enable training of bitwise neural networks which allow reduced representation of down to a single bit per weight. We present a method that exploits ensemble decisions based on multiple stochastically sampled network models to increase performance figures of bitwise neural networks in terms of classification accuracy at inference. Our experiments with the CIFAR-10 and GTSRB datasets show that the performance of such network ensembles surpasses the performance of the high-precision base model. With this technique we achieve 5.81% best classification error on CIFAR-10 test set using bitwise networks. Concerning inference on embedded systems we evaluate these bitwise networks using a hardware efficient stochastic rounding procedure. Our work contributes to efficient embedded bitwise neural networks.
Motivation & Objective
- To improve classification accuracy of bitwise neural networks beyond high-precision models through stochastic inference.
- To enable efficient hardware deployment of BNNs by designing a multiplierless stochastic rounding procedure.
- To demonstrate that test-time stochastic projections yield better performance than deterministic inference on discretized weights.
- To validate the feasibility and accuracy of stochastic rounding using LFSR-based random bitstream generation in embedded accelerators.
- To explore the potential of integrating stochastic rounding into the training process for further performance gains.
Proposed method
- Employs stochastic weight projection via stochastic rounding during test-time inference, using the formula: $ sround(w) = \lceil w \rceil $ with probability $ p = \left| \frac{\lfloor w \rfloor - w}{\lfloor w \rfloor - \lceil w \rceil} \right| $, and $ \lfloor w \rfloor $ otherwise.
- Constructs an ensemble of BNNs by sampling multiple stochastically projected weight versions, combining their outputs to reduce classification variance.
- Designs a hardware-efficient stochastic rounding engine using a multiplexer with select signals generated via LFSR and Daalen modulators to achieve non-uniform probability distributions.
- Derives an analytic solution for select signal probabilities: $ P(sel_j=1) = \frac{2^{2^{j-1}}}{2^{2^{j-1}} + 1} $, enabling precise fractional value approximation.
- Uses a single pseudo-random bitstream generator (PRBS) to supply select signals to all multiplexers, reducing hardware and energy costs while preserving accuracy.
- Applies the method to CIFAR-10 and GTSRB datasets using a 128C3–128C3–MP2–256 architecture with ReLU and sign activations, and ternary weights.
Experimental results
Research questions
- RQ1Can stochastic inference via ensemble sampling of stochastically projected BNNs improve classification accuracy beyond the high-precision base model?
- RQ2Is hardware-efficient stochastic rounding feasible and accurate enough for embedded deployment of bitwise DNNs?
- RQ3Can a single PRBS generator be used across multiple stochastic rounding units without degrading performance?
- RQ4Does test-time stochastic projection outperform deterministic inference on discretized weights?
- RQ5Can the proposed stochastic rounding method be analytically derived and efficiently implemented in hardware?
Key findings
- The method achieves a test error of 5.81% on the CIFAR-10 dataset using bitwise networks, which is the best reported result at the time and below 6%.
- On the GTSRB dataset, a 16-member ensemble of stochastically projected BNNs achieves a best test error of 1.63%, outperforming the high-precision base model's 2.19%.
- The mean error rate of 11-network ensembles on GTSRB is 1.79%, with a standard deviation of 0.042%, showing high consistency.
- Using a single PRBS generator for all stochastic rounding units preserves mean classification accuracy, reducing hardware and energy costs.
- The proposed stochastic rounding method achieves a maximum approximation error of $ \frac{1}{2^N} $ when representing fractional values via bitstream probability.
- The ensemble-based inference using stochastic projections consistently outperforms deterministic inference on the same discretized weights, confirming the benefit of variance reduction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.