Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network Quantization

About

Learning to synthesize data has emerged as a promising direction in zero-shot quantization (ZSQ), which represents neural networks by low-bit integer without accessing any of the real data. In this paper, we observe an interesting phenomenon of intra-class heterogeneity in real data and show that existing methods fail to retain this property in their synthetic images, which causes a limited performance increase. To address this issue, we propose a novel zero-shot quantization method referred to as IntraQ. First, we propose a local object reinforcement that locates the target objects at different scales and positions of the synthetic images. Second, we introduce a marginal distance constraint to form class-related features distributed in a coarse area. Lastly, we devise a soft inception loss which injects a soft prior label to prevent the synthetic images from being overfitting to a fixed object. Our IntraQ is demonstrated to well retain the intra-class heterogeneity in the synthetic images and also observed to perform state-of-the-art. For example, compared to the advanced ZSQ, our IntraQ obtains 9.17\% increase of the top-1 accuracy on ImageNet when all layers of MobileNetV1 are quantized to 4-bit. Code is at https://github.com/zysxmu/IntraQ.

Yunshan Zhong, Mingbao Lin, Gongrui Nan, Jianzhuang Liu, Baochang Zhang, Yonghong Tian, Rongrong Ji• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-100 (test)
Accuracy66.8
3518
Image ClassificationCIFAR-10 (test)
Accuracy91.52
3381
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy66.47
2386
Image ClassificationImageNet (val)
Top-1 Acc69.94
1206
Image ClassificationCIFAR-100 (val)--
781
Image ClassificationCIFAR-10 (val)
Top-1 Accuracy91.49
377
Image ClassificationImageNet (val)--
300
Image ClassificationImageNet--
184
Image ClassificationCIFAR-10
Accuracy (4-bit)91.5
26
Showing 9 of 9 rows

Other info

Code

Follow for update