Zero-Shot Quantization for Object Detectors using Off-the-Shelf Generative Models

Hyunho Lee, Kyomin Hwang, Hyeonjin Kim, Suyoung Kim, Sunghyun Wee, Nojun KwakarXiv 2026

TL;DR

GoodQ introduces a novel pipeline for Zero-Shot Quantization in Object Detection (ZSQ-OD) by leveraging off-the-shelf generative models to create diverse, information-dense training data. By addressing the unique challenges of multi-instance generation, severe class imbalance, and pseudo-label noise, it achieves state-of-the-art performance in ultra-low-bit regimes (W4A4 and W3A3) where traditional methods fail.

What Problem Does This Paper Address?

Quantization is essential for deploying deep learning models on resource-constrained edge devices because it compresses full-precision weights and activations into low-bit integers. However, Quantization-Aware Training (QAT) typically requires access to the original training data to maintain model accuracy. When this data is inaccessible due to strict privacy regulations or proprietary restrictions, Zero-Shot Quantization (ZSQ) must be used to synthesize proxy data instead.

While ZSQ has matured for image classification, adapting it to Object Detection (OD) introduces severe complications. Unlike classification images that usually feature a single prominent subject, OD requires images with high "information density"—multiple, distinct objects scattered across a scene. Furthermore, real-world OD datasets suffer from extreme long-tail class imbalances. Existing ZSQ-OD methods rely on noise optimization to synthesize data, but these images lack semantic diversity, causing model performance to collapse when pushed to low bit-widths like 4-bit or 3-bit.

Fig. 1: Left Performance degradation across different quantization bit-widths for the optimization-based method (Optim. based) and our proposed approach, relative to the real dataset baseline. Right A visual comparison of images from the real dataset alongside those generated with optimization, diffusion, and our method.

Methods

The authors propose GoodQ (Generative off-the-shelf models for object detector Quantization), a framework that utilizes a diffusion model (Stable Diffusion v1.5/2.1) to construct a high-quality training set via three distinct stages:

  1. Information-Dense Prompting (IDP): To force the generative model to produce complex, multi-instance scenes rather than isolated objects, GoodQ uses structured templates combining descriptive and quantitative adjectives (e.g., "A photo of many cars and a few people").
  2. Intrinsic Distribution-Aware Selection (IDAS): To replicate the long-tailed distribution of the original dataset without actually seeing it, GoodQ extracts the bias parameters from the pretrained model's detection head to estimate the target class ratios. A greedy selection algorithm then curates a representative subset from a large pool of generated images to match this distribution.
  3. Teacher-guided Adaptive Noise Reduction (TANR): Hard bounding-box pseudo-labels generated by a detector can introduce harmful noise during QAT. TANR bypasses hard labels entirely, utilizing soft predictions (logits) from the full-precision teacher model as targets, combined with an adaptive weighting mechanism to focus the student model on instances less susceptible to quantization noise.
Overview of the three-stage GoodQ pipeline.

Datasets

The framework was evaluated using the following datasets:

  • MS-COCO 2017: The primary benchmark used for training set synthesis and validation.
  • Pascal VOC & HomeObjects-3K: Used to demonstrate the framework's generalization capabilities across different data distributions.
  • Note on Synthesis: The method generates a large candidate pool of 160k images using Stable Diffusion and curates a final calibration/training set of 2k images.

Key Insights and Ideas

  • Data Diversity is King for Low Bits: Noise-optimization methods generate repetitive, unnatural patterns. Off-the-shelf diffusion models provide the semantic richness and feature-space dispersion necessary to keep heavily quantized models stable.
  • The Pretrained Model Knows the Data Distribution: A key "aha" moment in the paper is that you don't need the original dataset to know its class distribution; the bias weights of the pretrained detection head implicitly store this prior information.
  • Soft Labels Over Hard Pseudo-Labels: Relying on hard bounding-box pseudo-labels from an unquantized model introduces rigid errors. Embracing the teacher's soft logits allows the student model to learn a smoother, noise-resistant representation.

Key Results

  • State-of-the-Art Low-Bit Accuracy: GoodQ significantly outperforms previous methods like TSOD in low-bit settings. On YOLOv5-s at W4A4 (4-bit weight, 4-bit activation), GoodQ achieves 21.0 mAP, compared to TSOD's 18.4 mAP (which requires ground-truth labels) and TSOD's label-free variant at 15.0 mAP.
  • Breaking the W3A3 Barrier: In extreme W3A3 quantization, where traditional optimization-based methods completely collapse (dropping to 0.5 mAP on YOLOv11-s), GoodQ maintains a usable 14.2 mAP.
  • Architecture Agnostic: The approach generalizes well across architectures, showing strong performance on both single-stage detectors (YOLOv5, YOLOv11) and two-stage detectors (Mask R-CNN with a Swin-T backbone).

Limitations and Future Work

  • Generation Overhead: Relying on large generative models like Stable Diffusion to create a 160k image pool requires substantial offline computational time and resources before the QAT process can even begin.
  • Prompt Dependency: While IDP improves density, the quality and variety of the generated scenes are still bound by the vocabulary and inherent biases of the underlying off-the-shelf generative model.
  • Future Directions: The authors suggest exploring more compact or faster generative models, as well as extending this paradigm to video object detection where temporal consistency introduces an extra layer of complexity.

Summary updated

BibTeX
@misc{lee2026zero,
  author = {Hyunho Lee and Kyomin Hwang and Hyeonjin Kim and Suyoung Kim and Sunghyun Wee and Nojun Kwak},
  title = {{Zero-Shot Quantization for Object Detectors using Off-the-Shelf Generative Models}},
  year = {2026},
  eprint = {2606.31456},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.31456},
}
Figure