Enhancing Dropout-based Bayesian Neural Networks with Multi-Exit on FPGA

Hao Mark Chen, Liam Castelli, Martin Ferianc, Hongyu Zhou, Shuanglong Liu +2 more
6/20/2024
cs.LG

No official code found. Best implementation: os-hxfan/BayesNN_FPGA (28 stars, MIT, last commit 2023-08-15).

Abstract

Reliable uncertainty estimation plays a crucial role in various safety-critical applications such as medical diagnosis and autonomous driving. In recent years, Bayesian neural networks (BayesNNs) have gained substantial research and industrial interests due to their capability to make accurate predictions with reliable uncertainty estimation. However, the algorithmic complexity and the resulting hardware performance of BayesNNs hinder their adoption in real-life applications. To bridge this gap, this paper proposes an algorithm and hardware co-design framework that can generate field-programmable gate array (FPGA)-based accelerators for efficient BayesNNs. At the algorithm level, we propose novel multi-exit dropout-based BayesNNs with reduced computational and memory overheads while achieving high accuracy and quality of uncertainty estimation. At the hardware level, this paper introduces a transformation framework that can generate FPGA-based accelerators for the proposed efficient multi-exit BayesNNs. Several optimization techniques such as the mix of spatial and temporal mappings are introduced to reduce resource consumption and improve the overall hardware performance. Comprehensive experiments demonstrate that our approach can achieve higher energy efficiency compared to CPU, GPU, and other state-of-the-art hardware implementations. To support the future development of this research, we have open-sourced our code at: https://github.com/os-hxfan/MCME_FPGA_Acc.git

View on arXivView PDF

Code Implementations(1)

MIT

FPGA-based hardware acceleration for dropout-based Bayesian Neural Networks.

282Shell, PythonApr 9, 20233 years agoMIT
bayesian-neural-networksdeep-learningfpga-accelerator

Similar Papers

Cite this paper

@article{chen2024enhancing,
  title  = {Enhancing Dropout-based Bayesian Neural Networks with Multi-Exit on FPGA},
  author = {Hao Mark Chen and Liam Castelli and Martin Ferianc and Hongyu Zhou and Shuanglong Liu and Wayne Luk and Hongxiang Fan},
  year   = {2024},
  eprint = {2406.14593},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.14593v2}
}

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

Discussion