AQD: Towards Accurate Quantized Object Detection

Peng Chen, Jing Liu, Bohan Zhuang, Mingkui Tan, Chunhua Shen

Introduction

Deep Neural Networks (DNNs) are essential for modern computer vision but remain computationally expensive and power-hungry, posing significant challenges for deployment on edge devices like smartphones and IoT sensors. Network quantization—reducing 32-bit floating-point values to low-bit integers—is a standard approach to mitigate these costs. However, object detection presents unique challenges compared to image classification, as it requires predicting both categories and precise bounding box coordinates.

Existing "quantized" models often still rely on floating-point units for operations like Batch Normalization (BN) or skip connections, creating hardware bottlenecks. AQD (Accurate Quantized object Detection) addresses this by providing a "floating-point free" inference framework that maintains high accuracy even at extremely low bit-widths.

Methodology

The AQD framework introduces several innovations to enable efficient integer-only inference:

Integer-aware Representation and Skip Connections

AQD adopts a representation where every tensor is decomposed into an integer mapping ($\eta$) and a floating-point scale factor ($\alpha$). During convolutions, only the integer components are multiplied, significantly reducing energy consumption. To handle skip connections entirely in the integer domain, AQD uses a bit-shift-based approximation to align the scales of two quantized tensors before addition.

The AQD inference pipeline showing integer-aware convolutions and fixed-point skip connections.

Multi-level Batch Normalization

Modern detectors typically use Feature Pyramid Networks (FPN) to detect objects at various scales. While Group Normalization (GN) is often preferred for its stability across pyramid levels, it cannot be fused into convolutional layers, requiring floating-point math at runtime. AQD resolves this by utilizing Multi-level Batch Normalization. By "privatizing" BN layers for each level of the feature pyramid, the model can capture the unique statistics of different object scales while allowing the BN layers to be fused into the preceding convolutions for zero-overhead inference.

Multi-level Batch Normalization strategy where each pyramid level has its own BN layer.

Quantization Function

The framework employs Learned Step Size Quantization (LSQ), making quantization intervals trainable. This allows the model to adapt dynamically to the data distribution, which is critical for maintaining performance at 3-bit or 4-bit quantization levels.

Experimental Results

The researchers evaluated AQD on the MS-COCO dataset, using RetinaNet and FCOS architectures.

  • RetinaNet (ResNet-18): A 4-bit AQD model achieved 34.1 AP, notably surpassing the 32.3 AP of the full-precision 32-bit baseline. This suggests that low-bit quantization can act as a regularizer, improving generalization.
  • FCOS (ResNet-50): At 2-bit quantization, AQD reached 35.4 AP, significantly outperforming previous state-of-the-art methods like Group-Net (28.9 AP).
  • Hardware Efficiency: The transition to fixed-point operations offers massive gains; 8-bit fixed-point multiplications are approximately 18.5x more energy-efficient and require 27x less silicon area than their 32-bit floating-point counterparts.

Discussion and Conclusion

AQD demonstrates that accurate, integer-only object detection is achievable. The key insight lies in balancing hardware-friendly operations (like BN) with architectural adjustments (multi-level privatization) to handle the sensitivity of detection heads.

While AQD significantly reduces the computational burden, some limitations remain. The model still requires passing floating-point scale factors between layers, and the training process remains dependent on floating-point arithmetic. Future work could explore fully quantizing these scale factors and optimizing the training pipeline for end-to-end integer efficiency. Nonetheless, AQD provides a robust path forward for deploying high-performance object detectors on resource-constrained hardware.

Summary updated

BibTeX
@inproceedings{chen2021aqd,
  author = {Peng Chen and Jing Liu and Bohan Zhuang and Mingkui Tan and Chunhua Shen},
  title = {{AQD: Towards Accurate Quantized Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00017},
}
Figure