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

A White Paper on Neural Network Quantization

About

While neural networks have advanced the frontiers in many applications, they often come at a high computational cost. Reducing the power and latency of neural network inference is key if we want to integrate modern networks into edge devices with strict power and compute requirements. Neural network quantization is one of the most effective ways of achieving these savings but the additional noise it induces can lead to accuracy degradation. In this white paper, we introduce state-of-the-art algorithms for mitigating the impact of quantization noise on the network's performance while maintaining low-bit weights and activations. We start with a hardware motivated introduction to quantization and then consider two main classes of algorithms: Post-Training Quantization (PTQ) and Quantization-Aware-Training (QAT). PTQ requires no re-training or labelled data and is thus a lightweight push-button approach to quantization. In most cases, PTQ is sufficient for achieving 8-bit quantization with close to floating-point accuracy. QAT requires fine-tuning and access to labeled training data but enables lower bit quantization with competitive results. For both solutions, we provide tested pipelines based on existing literature and extensive experimentation that lead to state-of-the-art performance for common deep learning models and tasks.

Markus Nagel, Marios Fournarakis, Rana Ali Amjad, Yelysei Bondarenko, Mart van Baalen, Tijmen Blankevoort• 2021

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringTextVQA
Accuracy84.8
1453
Visual Question AnsweringChartQA
Accuracy89.6
519
OCR EvaluationOCRBench
Score850
350
Visual Question AnsweringAI2D
Accuracy86.8
317
Text-to-Image GenerationGenEval
Overall Score0.64
277
Text-to-Image GenerationMJHQ-30K
Overall FID103.6
239
Object DetectionMS-COCO (val)
mAP0.3534
222
Document Visual Question AnsweringDocVQA
Accuracy93.8
203
Information Visual Question AnsweringInfoVQA
Accuracy78.2
110
Image ClassificationImageNet (val)
F-Acc76.07
24
Showing 10 of 14 rows

Other info

Follow for update