arrow
Return

SelectQ: Calibration Data Selection for Post-training Quantization

delete2025-04-30
delete0
PRE
AI
张昭 cover
张昭 (Zhao Zhang) *
Y
Yangcheng Gao
J
Jicong Fan
Z
Zhong‐Qiu Zhao
杨
杨懿 (Yi Yang)
YAN Shuicheng cover
YAN Shuicheng (Shuicheng Yan)
DOI:10.1007/s11633-024-1518-0delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Post-training quantization (PTQ) can reduce the memory footprint and latency of deep model inference while still preserving the accuracy of model, with only a small unlabeled calibration set and without the retraining on full training set. To calibrate a quantized model, current PTQ methods usually randomly select some unlabeled data from the training set as calibration data. However, we show the random data selection would result in performance instability and degradation due to the activation distribution mismatch. In this paper, we attempt to solve the crucial task on appropriate calibration data selection, and propose a novel one-shot calibration data selection method termed SelectQ, which selects specific data for calibration via dynamic clustering. The setting of our SelectQ uses the statistic information of activation and performs layer-wise clustering to learn an activation distribution on training set. For that purpose, a new metric called knowledge distance is proposed to calculate the distances of the activation statistics to centroids. Finally, after calibration with the selected data, quantization noise can be alleviated by mitigating the distribution mismatch within activations. Extensive experiments on ImageNet dataset show that our SelectQ increases the top-1 accuracy of ResNet18 over 15% in 4-bit quantization, compared to randomly sampled calibration data. It's noteworthy that SelectQ does not involve both the backward propagation and batch normalization parameters, which means that it has fewer limitations in practical applications.
Keywords:
Model compression
low-bit model quantization
less performance loss
one-shot dynamic clustering
calibration data selection

Journal

Machine Intelligence Research cover
Machine Intelligence Research
IF:
8.7
Papers:
304
Citations:
882

Organization

T
the college of computer science and technology
Scholars:
2
Papers: 2
Citations: 0
S
S
School of Data Science
Scholars:
95
Papers: 62
Citations: 0
researcher View more organizations
Cited Papers

Cited Papers

Fine-grained Data Distribution Alignment for Post-Training Quantization
err2022-11-03
err0
errOAAI
errYunshan Zhong; Mingbao Lin; Mengzhao Chen; Ke Li; Yunhang Shen; Fei Chao; Yongjian Wu; Rongrong Ji
errShare
errSave
errShare
errSave
Diversifying Sample Generation for Accurate Data-Free Quantization
err2021-06-01
err0
errOAAI
errXiangguo Zhang; Haotong Qin; Yifu Ding; Ruihao Gong; Qinghua Yan; Renshuai Tao; Yuhang Li; Fengwei Yu; Xianglong Liu
errShare
errSave
ImageNet Large Scale Visual Recognition Challenge
err2015-04-11
err2.7W
PREAI
errRussakovsky, Olga; Deng, Jia; Su, Hao; Krause, Jonathan; Satheesh, Sanjeev; Ma, Sean; Huang, Zhiheng; Karpathy, Andrej; Khosla, Aditya; Bernstein, Michael; Berg, Alexander C.; Fei-Fei, Li
errShare
errSave
ZeroQ: A Novel Zero Shot Quantization Framework
err2020-06-01
err0
errOAAI
errYaohui Cai; Zhewei Yao; Zhen Dong; Amir Gholami; Michael W. Mahoney; Kurt Keutzer
errShare
errSave
errShare
errSave
MnasNet: Platform-Aware Neural Architecture Search for Mobile
err2019-06-01
err0
errOAAI
errMingxing Tan; Bo Chen; Ruoming Pang; Vijay Vasudevan; Mark Sandler; Andrew Howard; Quoc V. Le
errShare
errSave
researcher View more