IEEE Access (Jan 2023)

CNN Sensor Analytics With Hybrid-Float6 Quantization on Low-Power Embedded FPGAs

  • Yarib Nevarez,
  • Andreas Beering,
  • Amir Najafi,
  • Ardalan Najafi,
  • Wanli Yu,
  • Yizhi Chen,
  • Karl-Ludwig Krieger,
  • Alberto Garcia-Ortiz

DOI
https://doi.org/10.1109/ACCESS.2023.3235866
Journal volume & issue
Vol. 11
pp. 4852 – 4868

Abstract

Read online

The use of artificial intelligence (AI) in sensor analytics is entering a new era based on the use of ubiquitous embedded connected devices. This transformation requires the adoption of design techniques that reconcile accurate results with sustainable system architectures. As such, improving the efficiency of AI hardware engines as well as backward compatibility must be considered. In this paper, we present the Hybrid-Float6 (HF6) quantization and its dedicated hardware design. We propose an optimized multiply-accumulate (MAC) hardware by reducing the mantissa multiplication to a multiplexor-adder operation. We exploit the intrinsic error tolerance of neural networks to further reduce the hardware design with approximation. To preserve model accuracy, we present a quantization-aware training (QAT) method, which in some cases improves accuracy. We demonstrate this concept in 2D convolution layers. We present a lightweight tensor processor (TP) implementing a pipelined vector dot-product. For compatibility and portability, the 6-bit floating-point (FP) is wrapped in the standard FP format, which is automatically extracted by the proposed hardware. The hardware/software architecture is compatible with TensorFlow (TF) Lite. We evaluate the applicability of our approach with a CNN-regression model for anomaly localization in a structural health monitoring (SHM) application based on acoustic emission (AE). The embedded hardware/software framework is demonstrated on XC7Z007S as the smallest Zynq-7000 SoC. The proposed implementation achieves a peak power efficiency and run-time acceleration of 5.7 GFLOPS/s/W and $48.3\times $ , respectively.

Keywords