HQOD: Harmonious Quantization for Object Detection

Long Huang, Zhiwei Dong, Song-Lu Chen, Ruiyao Zhang, Shutong Ti +2 more
8/5/2024
cs.CV

No official code found. Best implementation: Menace-Dragon/VP-QOD (8 stars, Apache-2.0, last commit 2024-08-07).

Abstract

Task inharmony problem commonly occurs in modern object detectors, leading to inconsistent qualities between classification and regression tasks. The predicted boxes with high classification scores but poor localization positions or low classification scores but accurate localization positions will worsen the performance of detectors after Non-Maximum Suppression. Furthermore, when object detectors collaborate with Quantization-Aware Training (QAT), we observe that the task inharmony problem will be further exacerbated, which is considered one of the main causes of the performance degradation of quantized detectors. To tackle this issue, we propose the Harmonious Quantization for Object Detection (HQOD) framework, which consists of two components. Firstly, we propose a task-correlated loss to encourage detectors to focus on improving samples with lower task harmony quality during QAT. Secondly, a harmonious Intersection over Union (IoU) loss is incorporated to balance the optimization of the regression branch across different IoU levels. The proposed HQOD can be easily integrated into different QAT algorithms and detectors. Remarkably, on the MS COCO dataset, our 4-bit ATSS with ResNet-50 backbone achieves a state-of-the-art mAP of 39.6%, even surpassing the full-precision one.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A Versatile Playground for Quantizing Object Detectors

80Shell, PythonApr 18, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{huang2024hqod,
  title  = {HQOD: Harmonious Quantization for Object Detection},
  author = {Long Huang and Zhiwei Dong and Song-Lu Chen and Ruiyao Zhang and Shutong Ti and Feng Chen and Xu-Cheng Yin},
  year   = {2024},
  eprint = {2408.02561},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.02561v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.02561.svg)](https://codeofpaper.com/paper/2408.02561)

Discussion