Quantization of Deep Neural Networks for Accurate EdgeComputing

Wentao Chen, Hailong Qiu, Jian Zhuang, Chutong Zhang, Yu Hu, Qing Lu, Tianchen Wang, Yiyu Shi, Meiping Huang, Xiaowei Xu

Abstract

Deep Neural Networks (DNNs) are often too computationally intensive for edge deployment. While quantization is typically used to compress these models at the cost of accuracy, this research demonstrates that it can serve as an effective regularization technique. By utilizing Incremental Network Quantization (INQ), the authors show that reducing weight precision can mitigate overfitting, leading to accuracy improvements of up to 4.23% alongside memory reductions of up to 6.4x. This paper validates these findings across biomedical segmentation, image classification, and speech recognition tasks.

Introduction

The rapid advancement of DNNs has created a "deployment gap," where state-of-the-art models are too massive for resource-constrained edge devices like smartphones and IoT sensors. Quantization—the process of converting 32-bit floating-point weights into low-precision formats—is a standard solution to bridge this gap. Traditionally, researchers have viewed quantization as a necessary evil, focusing on minimizing the inevitable accuracy loss. This study challenges that paradigm, investigating whether quantization can actually enhance model performance by acting as a form of regularization.

Methodology

The core of the proposed approach is Incremental Network Quantization (INQ). Unlike standard quantization that converts an entire network simultaneously, INQ employs a three-step iterative loop: weight partitioning based on absolute values, group-wise quantization to a low-precision "power-of-two" representation, and re-training of the remaining floating-point weights to compensate for precision loss.

Incremental Network Quantization (INQ) applied to the VGG-16 architecture.

Furthermore, the authors integrate this technique into a Suggestive Annotation (SA) framework for medical imaging. In this context, quantization helps generate a diverse ensemble of models. By forcing weights into a sparse, discrete space, the ensemble can more effectively identify uncertain regions in medical images, guiding human annotators toward the most informative samples.

Overview of the Suggestive Annotation with Quantization (QSA) framework for medical image segmentation.

Experimental Setup and Results

The methodology was evaluated across three distinct domains: biomedical image segmentation (MICCAI 2015), image classification (ImageNet-2012 with VGG-16), and automatic speech recognition (DARPA TIMIT with Deep Speech).

Key Insights

  • Quantization as Regularization: Much like Dropout, quantization prevents large, over-parameterized models from memorizing training noise. This effect is most pronounced in complex models; smaller models with less redundancy may still experience performance degradation.
  • The "Goldilocks" Bit-Width: Accuracy does not scale linearly with precision. A optimal zone was identified, typically around 7 or 8 bits, where models outperformed both their original 32-bit versions and ultra-low 2-bit versions.
  • Performance Gains: The quantized Deep Speech model saw a 4.23% accuracy improvement with a 3.6x memory reduction, while medical segmentation achieved a 1% accuracy boost with up to 6.4x memory reduction.

Conclusion

This research reframes quantization from a compression-only tool to a powerful regularization strategy for edge computing. While the memory benefits are clear, the authors note that real-time speedups depend on hardware support for low-precision arithmetic. Future work will explore the impact of quantizing activations and the potential for other compression techniques, such as pruning, to offer similar regularization benefits.

Summary updated

Abstract

Deep neural networks (DNNs) have demonstrated their great potential in recent years, exceeding the per-formance of human experts in a wide range of applications. Due to their large sizes, however, compressiontechniques such as weight quantization and pruning are usually applied before they can be accommodated onthe edge. It is generally believed that quantization leads to performance degradation, and plenty of existingworks have explored quantization strategies aiming at minimum accuracy loss. In this paper, we argue thatquantization, which essentially imposes regularization on weight representations, can sometimes help toimprove accuracy. We conduct comprehensive experiments on three widely used applications: fully con-nected network (FCN) for biomedical image segmentation, convolutional neural network (CNN) for imageclassification on ImageNet, and recurrent neural network (RNN) for automatic speech recognition, and experi-mental results show that quantization can improve the accuracy by 1%, 1.95%, 4.23% on the three applicationsrespectively with 3.5x-6.4x memory reduction.
BibTeX
@article{chen2021quantization,
  author = {Wentao Chen and Hailong Qiu and Jian Zhuang and Chutong Zhang and Yu Hu and Qing Lu and Tianchen Wang and Yiyu Shi and Meiping Huang and Xiaowei Xu},
  title = {{Quantization of Deep Neural Networks for Accurate EdgeComputing}},
  journal = {ACM J. Emerg. Technol. Comput. Syst.},
  year = {2021},
  doi = {10.1145/3451211},
}
Figure