paper-with-me

홈 › Papers

ZeroQ: A Novel Zero Shot Quantization Framework

2020-01-01 · CVPR 2020 6 · Yaohui Cai, Zhewei Yao, Zhen Dong, Amir Gholami, Michael W. Mahoney, Kurt Keutzer

Quantization is a promising approach for reducing the inference time and memory footprint of neural networks. However, most existing quantization methods require access to the original training dataset for retraining during quantization. This is often not possible for applications with sensitive or proprietary data, e.g., due to privacy and security concerns. Existing zero-shot quantization methods use different heuristics to address this, but they result in poor performance, especially when quantizing to ultra-low precision. Here, we propose ZeroQ , a novel zero-shot quantization framework to address this. ZeroQ enables mixed-precision quantization without any access to the training or validation data. This is achieved by optimizing for a Distilled Dataset, which is engineered to match the statistics of batch normalization across different layers of the network. ZeroQ supports both uniform and mixed-precision quantization. For the latter, we introduce a novel Pareto frontier based method to automatically determine the mixed-precision bit setting for all layers, with no manual search involved. We extensively test our proposed method on a diverse set of models, including ResNet18/50/152, MobileNetV2, ShuffleNet, SqueezeNext, and InceptionV3 on ImageNet, as well as RetinaNet-ResNet50 on the Microsoft COCO dataset. In particular, we show that ZeroQ can achieve 1.71\% higher accuracy on MobileNetV2, as compared to the recently proposed DFQ method. Importantly, ZeroQ has a very low computational overhead, and it can finish the entire quantization process in less than 30s (0.5\% of one epoch training time of ResNet50 on ImageNet). We have open-sourced the ZeroQ framework\footnote{https://github.com/amirgholami/ZeroQ}.

📄 PDF Abstract BibTeX arXiv:2001.00281

Code (3)

amirgholami/ZeroQ 공식 구현 pytorch
jakc4103/DFQ pytorch
ricky40403/GDFQ pytorch

Tasks

Data Free QuantizationModel CompressionNeural Network CompressionQuantization

Methods 이 논문이 사용한 방법론

Test 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
RMSProp RMSProp is an unpublished adaptive learning rate optimizer proposed by Geoff Hinton. The motivation…
Auxiliary Classifier Auxiliary Classifiers are type of architectural component that seek to improve the convergence of very deep networks. They are classifier heads we attach to layers before the…
Inception-v3 Module Inception-v3 Module is an image block used in the Inception-v3 architecture. This architecture is used on the coarsest (8 ×…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Inception-v3 Inception-v3 is a convolutional neural network architecture from the Inception family that makes several improvements including using [Label…
Grouped Convolution A Grouped Convolution uses a group of convolutions - multiple kernels per layer - resulting in multiple channel outputs per layer. This leads to wider networks helping a…

Similar Papers 제목 키워드 기반

ZeroQuant-HERO: Hardware-Enhanced Robust Optimized Post-Training Quantization Framework for W8A8 Transformers

2023-10-26 · Zhewei Yao, Reza Yazdani Aminabadi, Stephen Youn, Xiaoxia Wu 외

Quantization techniques are pivotal in reducing the memory and computational demands of deep neural network inference. Existing solutions, such as ZeroQuant, offer dynamic quantization for models like BERT and GPT but ov…

Quantization

End-to-End On-Device Quantization-Aware Training for LLMs at Inference Cost

2025-08-21 · Qitao Tan, Xiaoying Song, Jin Lu, Guoming Li 외 arxiv

Quantization is an effective technique to reduce the deployment cost of large language models (LLMs), and post-training quantization (PTQ) has been widely studied due to its efficiency. However, existing PTQ methods are …

ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers

2022-06-04 · Zhewei Yao, Reza Yazdani Aminabadi, Minjia Zhang, Xiaoxia Wu 외

How to efficiently serve ever-larger trained natural language models in practice has become exceptionally challenging even for powerful cloud servers due to their prohibitive memory/computation requirements. In this work…

Knowledge DistillationQuantization

ZeroQuant(4+2): Redefining LLMs Quantization with a New FP6-Centric Strategy for Diverse Generative Tasks

2023-12-14 · Xiaoxia Wu, Haojun Xia, Stephen Youn, Zhen Zheng 외

This study examines 4-bit quantization methods like GPTQ in large language models (LLMs), highlighting GPTQ's overfitting and limited enhancement in Zero-Shot tasks. While prior works merely focusing on zero-shot measure…

Abstractive Text SummarizationCode GenerationQuantization

QERA: an Analytical Framework for Quantization Error Reconstruction

2024-10-08 · Cheng Zhang, Jeffrey T. H. Wong, Can Xiao, George A. Constantinides 외

he growing number of parameters and computational demands of large language models (LLMs) present significant challenges for their efficient deployment. Recently, there is an increasing interest in quantizing weights to …

parameter-efficient fine-tuningQuantization