Abstract
Standard NNs should not be employed mindlessly in critical applications due to their incapability to express the uncertainty of their predictions. On the other hand, Bayesian Neural Networks (BNNs) can measure the uncertainty of their predictions. There are two methods for BNN inference, the Monte Carlo-based method, which requires the sampling of weights distributions and multiple inference iterations, and moment propagation, where the mean and variance of a normal distribution are propagated through the BNN. Hardware implementations of moment propagation BNN inference consume less power than Monte Carlo because they complete the inference in a single forward pass. However, because the propagation of distribution moments through nonlinear activation functions leads to large hardware designs, these functions are usually approximated by polynomials. Hardware implementations of moment propagation have been studied solely for fully-connected neural networks while lacking optimal accuracy due to the approximation of the ReLU activation function with a single polynomial term. Therefore, in this work, we add one more polynomial term in the approximation of ReLU, providing better accuracy with negligible additional hardware. We also propose a polynomial approximation for another common activation function, tanh, and extend the hardware implementation to Convolutional Neural Networks (CNNs). Experimental results demonstrated that the proposed approximation of ReLU outperforms the previously suggested single-term polynomial by achieving up to 5.9% higher accuracy with merely up to 0.029 W power overhead.
Original language | English (US) |
---|---|
Title of host publication | ISCAS 2023 - 56th IEEE International Symposium on Circuits and Systems, Proceedings |
Publisher | Institute of Electrical and Electronics Engineers Inc. |
ISBN (Electronic) | 9781665451093 |
DOIs | |
State | Published - 2023 |
Event | 56th IEEE International Symposium on Circuits and Systems, ISCAS 2023 - Monterey, United States Duration: May 21 2023 → May 25 2023 |
Publication series
Name | Proceedings - IEEE International Symposium on Circuits and Systems |
---|---|
Volume | 2023-May |
ISSN (Print) | 0271-4310 |
Conference
Conference | 56th IEEE International Symposium on Circuits and Systems, ISCAS 2023 |
---|---|
Country/Territory | United States |
City | Monterey |
Period | 05/21/23 → 05/25/23 |
Bibliographical note
Publisher Copyright:© 2023 IEEE.
Keywords
- Bayesian Neural Network
- FPGA
- Moment Propagation
- ReLU polynomial approximation
- tanh polynomial approximation
ASJC Scopus subject areas
- Electrical and Electronic Engineering