[Paper Review] Focused Quantization for Sparse CNNs
This paper proposes focused quantization (FQ), a hybrid quantization method for sparse convolutional neural networks that dynamically combines shift quantization and recentralized quantization based on layer-specific weight distributions. By exploiting statistical properties of pruned models, FQ achieves high compression ratios (18.08× in ResNet-50) with minimal accuracy loss (0.24% top-5 accuracy drop), while enabling efficient inference through bit-shift operations and reduced hardware resource usage.
Deep convolutional neural networks (CNNs) are powerful tools for a wide range of vision tasks, but the enormous amount of memory and compute resources required by CNNs pose a challenge in deploying them on constrained devices. Existing compression techniques, while excelling at reducing model sizes, struggle to be computationally friendly. In this paper, we attend to the statistical properties of sparse CNNs and present focused quantization, a novel quantization strategy based on power-of-two values, which exploits the weight distributions after fine-grained pruning. The proposed method dynamically discovers the most effective numerical representation for weights in layers with varying sparsities, significantly reducing model sizes. Multiplications in quantized CNNs are replaced with much cheaper bit-shift operations for efficient inference. Coupled with lossless encoding, we built a compression pipeline that provides CNNs with high compression ratios (CR), low computation cost and minimal loss in accuracy. In ResNet-50, we achieved a 18.08x CR with only 0.24% loss in top-5 accuracy, outperforming existing compression methods. We fully compressed a ResNet-18 and found that it is not only higher in CR and top-5 accuracy, but also more hardware efficient as it requires fewer logic gates to implement when compared to other state-of-the-art quantization methods assuming the same throughput.
Motivation & Objective
- To address the inefficiency of standard quantization in sparse CNNs, where uniform or logarithmic quantization levels are poorly utilized due to non-uniform weight distributions after fine-grained pruning.
- To develop a quantization strategy that adapts to varying sparsity levels across layers, maximizing quantization level utilization and minimizing computational overhead.
- To build a complete compression pipeline integrating pruning, focused quantization, and lossless encoding for high compression ratios and low hardware cost.
- To demonstrate that FQ enables more efficient hardware implementations than state-of-the-art quantization methods, requiring fewer logic gates and lower resource usage.
Proposed method
- FQ uses a Gaussian mixture model to identify high-probability regions in the weight distribution of pruned layers, enabling targeted quantization.
- For layers with multiple concentrated weight clusters, FQ applies recentralized quantization, mapping each cluster to a set of powers-of-two values for fine-grained representation.
- For layers with a single dominant weight cluster, FQ applies shift quantization using powers-of-two values to enable efficient bit-shift operations during inference.
- A Wasserstein distance metric between Gaussian components determines whether to use recentralized or shift quantization per layer, with a threshold of wsep = 2.0 used in experiments.
- The method fuses scaling factors into batch normalization layers during inference, eliminating additional multiplications and reducing hardware complexity.
- The full pipeline includes fine-grained pruning, FQ, and Huffman encoding to achieve high compression ratios with minimal accuracy degradation.
Experimental results
Research questions
- RQ1How can quantization be made more effective in sparse CNNs where weight distributions are skewed and non-uniform after fine-grained pruning?
- RQ2Can a hybrid quantization strategy combining shift and recentralized quantization outperform standard quantization in terms of compression efficiency and hardware cost?
- RQ3What metric can reliably determine when to switch between shift and recentralized quantization based on layer-specific sparsity and weight distribution?
- RQ4To what extent does focused quantization reduce model size and compute cost while preserving model accuracy in modern CNNs?
- RQ5How does FQ-based hardware design compare to state-of-the-art quantization methods in terms of logic gate usage and resource efficiency?
Key findings
- In ResNet-50, focused quantization achieved a 18.08× compression ratio with only a 0.24% drop in top-5 accuracy, outperforming existing methods.
- The fully quantized ResNet-18 model using FQ achieved higher compression and better top-5 accuracy than LQ-Net and ABC-Net while requiring fewer logic gates.
- FQ-based hardware accelerators demonstrated superior hardware efficiency, using fewer logic gates than ABC-Net and LQ-Net despite having more quantization levels and higher compression.
- The use of a Wasserstein distance threshold (wsep = 2.0) effectively differentiated layers requiring recentralized vs. shift quantization, improving quantization utilization.
- The FQ pipeline, including pruning, quantization, and Huffman encoding, enabled high compression with minimal accuracy loss, making it suitable for edge and IoT devices.
- FQ’s use of only powers-of-two values enabled efficient bit-shift operations, significantly reducing computational cost during inference.
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.