Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking Quantized Neural Networks on FPGAs with FINN

Q. Ducasse, Pascal Cotret|arXiv (Cornell University)|Feb 2, 2021
Advanced Neural Network ApplicationsComputer Science22 references13 citations
TL;DR

This paper benchmarks mixed-precision quantized neural networks on FPGAs using the FINN framework, demonstrating that 2–8 bit quantization enables up to 62× higher throughput with minimal accuracy loss. The study evaluates parallelization configurations and shows that compressed networks can be efficiently mapped to FPGAs, achieving high performance with low resource usage through optimized quantization and hardware-aware training.

ABSTRACT

The ever-growing cost of both training and inference for state-of-the-art neural networks has brought literature to look upon ways to cut off resources used with a minimal impact on accuracy. Using lower precision comes at the cost of negligible loss in accuracy. While training neural networks may require a powerful setup, deploying a network must be possible on low-power and low-resource hardware architectures. Reconfigurable architectures have proven to be more powerful and flexible than GPUs when looking at a specific application. This article aims to assess the impact of mixed-precision when applied to neural networks deployed on FPGAs. While several frameworks exist that create tools to deploy neural networks using reduced-precision, few of them assess the importance of quantization and the framework quality. FINN and Brevitas, two frameworks from Xilinx labs, are used to assess the impact of quantization on neural networks using 2 to 8 bit precisions and weights with several parallelization configurations. Equivalent accuracy can be obtained using lower-precision representation and enough training. However, the compressed network can be better parallelized allowing the deployed network throughput to be 62 times faster. The benchmark set up in this work is available in a public repository (https://github.com/QDucasse/nn benchmark).

Motivation & Objective

  • To evaluate the impact of mixed-precision quantization on neural network inference performance when deployed on FPGAs.
  • To assess the effectiveness of the FINN and Brevitas frameworks in enabling low-precision deployment on reconfigurable hardware.
  • To analyze how different quantization bit widths (2–8 bits) and parallelization strategies affect throughput and accuracy.
  • To provide a publicly available benchmark suite for reproducible evaluation of quantized networks on FPGAs.

Proposed method

  • The authors use the FINN and Brevitas frameworks from Xilinx to quantize neural networks to 2–8 bit fixed-point representations.
  • They apply post-training quantization and fine-tuning to maintain model accuracy at lower precision levels.
  • The quantized networks are mapped to FPGAs using hardware-aware compilation and optimized for parallel execution.
  • Throughput is measured across various bit-widths and parallelization configurations to assess performance gains.
  • A public benchmark repository is established to ensure reproducibility and facilitate future comparisons.

Experimental results

Research questions

  • RQ1How does mixed-precision quantization affect the accuracy and throughput of neural networks on FPGAs?
  • RQ2What is the maximum performance gain achievable through 2–8 bit quantization on FPGA platforms?
  • RQ3How do different parallelization strategies influence the efficiency of quantized networks on FPGAs?
  • RQ4To what extent can accuracy be preserved when reducing precision from full-precision to 2–8 bits?

Key findings

  • Quantized networks with 2–8 bit precision achieved equivalent accuracy to full-precision models after fine-tuning.
  • The deployed network throughput increased by up to 62 times compared to full-precision inference on FPGAs.
  • Lower-precision representations enabled more aggressive parallelization, significantly boosting throughput.
  • The benchmark setup is publicly available, enabling reproducible evaluation of quantized models on FPGAs.

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.