Zero-Centered Fixed-Point Quantization With Iterative Retraining for Deep Convolutional Neural Network-Based Object Detectors

Sungrae Kim, Hyun Kim

Abstract

Deep Convolutional Neural Networks (CNNs) are the state-of-the-art for object detection but are computationally expensive for embedded deployment. This paper proposes a hardware-friendly quantization strategy—Zero-Centered Fixed-Point Quantization—combined with iterative retraining and adaptive bit allocation. By centering weight distributions at zero and gradually retraining, the authors compress YOLOv3 and YOLOv4 models to approximately 6 bits per weight with negligible loss in mean Average Precision (mAP) on the COCO dataset.

Introduction

While quantization is a common technique to reduce the precision of weights from 32-bit floating-point to lower-bit integers, it faces unique challenges in object detection. Unlike image classification, detection requires both accurate categorization and precise bounding box localization. Standard methods often cause significant accuracy drops in detectors. Furthermore, many existing methods still rely on floating-point scale factors, which are inefficient for pure fixed-point hardware like FPGAs or ASICs.

Methodology

The proposed framework addresses these issues through three integrated techniques:

Zero-Centered Weight Distribution

The authors observed that weight distributions in deep detectors are often biased (non-zero mean). Standard symmetric quantization grids lead to inefficient bin usage for such distributions. By calculating and subtracting the mean ($\mu$) of weights in a layer, the distribution is centered at zero before quantization, significantly reducing error.

Hardware-Friendly Fixed-Point Arithmetic

To maximize hardware efficiency, the method utilizes a pure fixed-point approach. The convolution operation is mathematically decomposed such that the bulk of the computation uses low-bit quantized weights, while the mean component is handled via simple summation and a single multiplication, avoiding complex floating-point logic.

Comparison between standard floating-point and the proposed hardware-friendly fixed-point representation.

Iterative Retraining and Adaptive Bit Allocation

To prevent accuracy "shock," the authors use an iterative retraining process. A $q\_rate$ parameter controls the gradual increase of quantized weights, allowing the remaining high-precision weights to compensate for errors. Additionally, an adaptive bit allocation strategy (mixed precision) is used to find the optimal bit-width for each layer, ensuring that critical detection layers receive more bits while less sensitive layers are compressed further.

Key Insights and Results

A primary insight of this work is the impact of biased weight distributions on quantization efficiency. Centering the weights allows for a more effective mapping to fixed-point levels, as illustrated in the distribution shifts.

Weight distribution transformation from (a) continuous to (b) biased discrete and finally (c) zero-centered quantized levels.

The method was evaluated on the CIFAR-10 and COCO benchmarks:

  • YOLOv3 on COCO: Compressed to an average of 6.58 bits (80% weight reduction) with an mAP of 54.52 (original: 54.64).
  • YOLOv4 on COCO: Compressed to 5.99 bits with an mAP of 63.54 (original: 64.17).

Conclusion

The Zero-Centered Fixed-Point Quantization strategy enables the deployment of high-performance object detectors on resource-constrained hardware. By combining statistical centering with iterative retraining and mixed precision, the authors achieve substantial compression without sacrificing the precision necessary for real-world applications.

Summary updated

BibTeX
@article{kim2021zero,
  author = {Sungrae Kim and Hyun Kim},
  title = {{Zero-Centered Fixed-Point Quantization With Iterative Retraining for Deep Convolutional Neural Network-Based Object Detectors}},
  journal = {IEEE Access},
  year = {2021},
  doi = {10.1109/access.2021.3054879},
}
Figure