[Paper Review] Mix and Match: A Novel FPGA-Centric Deep Neural Network Quantization Framework
This paper proposes a novel FPGA-centric DNN quantization framework, Mix and Match, that applies mixed quantization schemes—sum-of-power-of-2 (SP2) and fixed-point—across different rows of a weight matrix to exploit heterogeneous FPGA resources. By matching quantization schemes to weight distribution characteristics, it achieves 2.1×–4.1× performance improvement over DSP-only implementations while maintaining or improving accuracy.
Deep Neural Networks (DNNs) have achieved extraordinary performance in various application domains. To support diverse DNN models, efficient implementations of DNN inference on edge-computing platforms, e.g., ASICs, FPGAs, and embedded systems, are extensively investigated. Due to the huge model size and computation amount, model compression is a critical step to deploy DNN models on edge devices. This paper focuses on weight quantization, a hardware-friendly model compression approach that is complementary to weight pruning. Unlike existing methods that use the same quantization scheme for all weights, we propose the first solution that applies different quantization schemes for different rows of the weight matrix. It is motivated by (1) the distribution of the weights in the different rows are not the same; and (2) the potential of achieving better utilization of heterogeneous FPGA hardware resources. To achieve that, we first propose a hardware-friendly quantization scheme named sum-of-power-of-2 (SP2) suitable for Gaussian-like weight distribution, in which the multiplication arithmetic can be replaced with logic shifter and adder, thereby enabling highly efficient implementations with the FPGA LUT resources. In contrast, the existing fixed-point quantization is suitable for Uniform-like weight distribution and can be implemented efficiently by DSP. Then to fully explore the resources, we propose an FPGA-centric mixed scheme quantization (MSQ) with an ensemble of the proposed SP2 and the fixed-point schemes. Combining the two schemes can maintain, or even increase accuracy due to better matching with weight distributions.
Motivation & Objective
- To address the inefficiency of applying uniform quantization schemes across all DNN weight rows on FPGAs.
- To exploit heterogeneous FPGA resources—LUTs and DSPs—by matching quantization schemes to weight distribution characteristics.
- To develop a hardware-aware quantization framework that optimizes accuracy, performance, and resource utilization for FPGA-based DNN inference.
- To enable efficient, parameterized GEMM architectures that support mixed-precision computation using LUTs and DSPs.
- To evaluate the framework across diverse DNN models and FPGA platforms, demonstrating superior performance and accuracy.
Proposed method
- Proposes a new hardware-friendly quantization scheme, sum-of-power-of-2 (SP2), for Gaussian-like weight distributions, enabling efficient LUT-based multiplication via bit shifts and additions.
- Uses fixed-point quantization for uniform-like weight distributions, which is efficiently implemented using FPGA DSP blocks.
- Designs a parameterized GEMM architecture with two heterogeneous cores: one using LUTs for SP2 weights and another using DSPs for fixed-point weights.
- Develops an MSQ (Mixed Scheme Quantization) training algorithm that jointly optimizes quantization ratios and model accuracy based on FPGA resource characterization.
- Employs a partitioning strategy that assigns different weight rows to SP2 or fixed-point schemes based on their distribution and hardware efficiency.
- Integrates a resource-aware training loop that minimizes quantization error while respecting FPGA resource constraints and maximizing throughput.

Experimental results
Research questions
- RQ1Can applying different quantization schemes to different rows of a DNN weight matrix improve FPGA inference performance compared to uniform quantization?
- RQ2How can SP2 quantization be effectively used to exploit LUT resources for Gaussian-like weight distributions in FPGA implementations?
- RQ3What is the optimal trade-off between SP2 and fixed-point quantization schemes in terms of accuracy, performance, and resource utilization on FPGAs?
- RQ4Can a mixed-scheme quantization framework maintain or improve accuracy while significantly boosting inference throughput on FPGAs?
- RQ5How does the proposed MSQ training algorithm adapt to varying weight distributions and FPGA hardware constraints?
Key findings
- The proposed Mix and Match framework achieves 2.1× to 4.1× higher performance than DSP-only implementations on Zynq XC7Z020 and XC7Z045 FPGAs.
- The MSQ scheme maintains or improves accuracy compared to baseline quantization methods, due to better matching with weight distribution characteristics.
- Throughput reaches up to 549.3 FPS and 493 GOPS on the XC7Z045 and XC7Z020, respectively, with optimal SP2/fixed-point ratios.
- The framework achieves 5.747 GOPS/kLUT on the XC7Z045, demonstrating high efficiency in LUT utilization.
- The proposed SP2 quantization enables efficient LUT-based multiplication, reducing reliance on DSPs and improving resource utilization.
- The parameterized GEMM architecture with heterogeneous cores enables flexible, high-throughput inference across diverse DNN models.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.