Skip to main content
QUICK REVIEW

[Paper Review] Exploration of Low Numeric Precision Deep Learning Inference Using Intel FPGAs

Philip Colangelo, Nasibeh Nasiri|arXiv (Cornell University)|Jun 12, 2018
Advanced Neural Network ApplicationsComputer Science16 references25 citations
TL;DR

This paper presents a custom FPGA-based hardware accelerator for low-precision deep learning inference using 1-bit and 2-bit data widths, achieving high throughput and energy efficiency. It demonstrates a 2-bit activation and ternary-weighted AlexNet achieving 3,700 images/second on ImageNet with 49% top-1 accuracy, and projects near-single-precision performance (3.7% accuracy drop) on ResNet-34 using a Stratix 10 FPGA.

ABSTRACT

CNNs have been shown to maintain reasonable classification accuracy when quantized to lower precisions. Quantizing to sub 8-bit activations and weights can result in accuracy falling below an acceptable threshold. Techniques exist for closing the accuracy gap of limited numeric precision typically by increasing computation. This results in a trade-off between throughput and accuracy and can be tailored for different networks through various combinations of activation and weight data widths. Hardware architectures like FPGAs provide the opportunity for data width specific computation through unique logic configurations leading to highly optimized processing that is unattainable by full precision networks. Ternary and binary weighted networks offer an efficient method of inference for 2-bit and 1-bit data respectively. Most hardware architectures can take advantage of the memory storage and bandwidth savings that come along with smaller datapaths, but very few architectures can take advantage of limited numeric precision at the computation level. In this paper, we present a hardware design for FPGAs that takes advantage of bandwidth, memory, power, and computation savings of limited numerical precision data. We provide insights into the trade-offs between throughput and accuracy for various networks and how they map to our framework. Further, we show how limited numeric precision computation can be efficiently mapped onto FPGAs for both ternary and binary cases. Starting with Arria 10, we show a 2-bit activation and ternary weighted AlexNet running in hardware that achieves 3,700 images per second on the ImageNet dataset with a top-1 accuracy of 0.49. Using a hardware modeler designed for our low numeric precision framework we project performance most notably for a 55.5 TOPS Stratix 10 device running a modified ResNet-34 with only 3.7% accuracy degradation compared with single precision.

Motivation & Objective

  • To explore the feasibility and performance trade-offs of low-numeric precision inference (1-2 bits) in deep neural networks using FPGAs.
  • To design a hardware-optimized framework that leverages FPGA reconfigurability for efficient computation at sub-8-bit precision.
  • To minimize accuracy degradation in quantized networks through tailored hardware mapping of ternary and binary weights and activations.
  • To evaluate throughput, power efficiency, and accuracy trade-offs across multiple network architectures (e.g., AlexNet, ResNet-34).
  • To project performance on high-end FPGAs (e.g., Stratix 10) for near-precision inference with minimal accuracy loss.

Proposed method

  • Designs a reconfigurable FPGA architecture tailored for 1-bit and 2-bit data widths using Intel Arria 10 and Stratix 10 FPGAs.
  • Employs specialized logic units to perform low-precision multiply-accumulate operations for ternary (±1) and binary (±1) weights and 2-bit activations.
  • Optimizes memory bandwidth and storage by reducing data path widths, leveraging FPGA’s ability to customize data width per operation.
  • Uses a hardware modeling framework to simulate and project performance across different network configurations and FPGA devices.
  • Applies quantization-aware training principles to maintain accuracy in low-precision models, particularly for ResNet-34.
  • Maps network layers to FPGA resources with custom pipelining and parallelization to maximize throughput.

Experimental results

Research questions

  • RQ1How can FPGA-based hardware be optimized to efficiently perform 1-bit and 2-bit inference operations?
  • RQ2What is the trade-off between throughput, energy efficiency, and accuracy in low-precision deep learning inference on FPGAs?
  • RQ3To what extent can ternary and binary weight networks maintain accuracy when mapped to FPGA hardware?
  • RQ4How does the performance of low-precision inference scale across different FPGA devices and network architectures?
  • RQ5Can near-single-precision accuracy be achieved with sub-8-bit precision using FPGA-optimized hardware?

Key findings

  • A 2-bit activation and ternary-weighted AlexNet achieved 3,700 images per second on ImageNet with a top-1 accuracy of 49%.
  • The FPGA design achieved significant memory and bandwidth savings due to reduced data path widths, enabling higher throughput.
  • A modified ResNet-34 model on a Stratix 10 FPGA achieved only a 3.7% accuracy degradation compared to single-precision inference.
  • The hardware modeler projected that the Stratix 10 device could deliver up to 55.5 TOPS of performance for low-precision inference.
  • The framework demonstrated that FPGAs can efficiently exploit computation-level optimizations at sub-8-bit precision, which most general-purpose hardware cannot.
  • The results show that low-precision inference is viable on FPGAs with minimal accuracy loss when combined with tailored hardware mapping and quantization techniques.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.