HFOD: A hardware-friendly quantization method for object detection on embedded FPGAs
Authors:
- 25 April 2022
- journal article
- research article
- Published by Institute of Electronics, Information and Communications Engineers (IEICE) in IEICE Electronics Express
- Vol. 19 (8) , 20220067
Abstract
There are two research hotspots for improving performance and energy efficiency of the inference phase of Convolutional neural networks (CNNs). The first one is model compression techniques while the second is hardware accelerator implementation. To overcome the incompatibility of algorithm optimization and hardware design, this paper proposes HFOD, a hardware-friendly quantization method for object detection on embedded FPGAs. We adopt a channel-wise, uniform quantization method to compress YOLOv3-Tiny model. Weights are quantized to 2-bit while activations are quantized to 8-bit for all convolutional layers. To achieve highly-efficient implementations on FPGA, we add batch normalization (BN) layer fusion in quantization process. A flexible, efficient convolutional unit structure is designed to utilize hardware-friendly quantization, and the accelerator is developed based on an automatic synthesis template. Experimental results show that the resources of FPGA in the proposed accelerator design contribute more computing performance compared with regular 8-bit/16-bit fixed point quantization. The model size and the activation size of the proposed network with 2-bit weights and 8-bit activations can be effectively reduced by 16× and 4× with a small amount of accuracy loss, respectively. Our HFOD method can achieve 90.6 GOPS on PYNQ-Z2 at 150 MHz, which is 1.4× faster and 2× better in power efficiency than peer FPGA implementation on the same platform.Keywords
This publication has 19 references indexed in Scilit:
- SSD: Single Shot MultiBox Detector2016
- Going Deeper with Embedded FPGA Platform for Convolutional Neural Network2016
- SDSoC2016
- Optimizing FPGA-based Accelerator Design for Deep Convolutional Neural Networks2015
- LegUpACM Transactions on Embedded Computing Systems, 2013
- High-Level Synthesis for FPGAs: From Prototyping to DeploymentIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2011
- Reversible circuit synthesis using a cycle-based approachACM Journal on Emerging Technologies in Computing Systems, 2010
- A multifrequency MAC specially designed for wireless sensor network applicationsACM Transactions on Embedded Computing Systems, 2010
- Investigating network architectures for body sensor networks2007
- Deciding equivalences among conjunctive aggregate queriesJournal of the ACM, 2007