MQBench: Towards Reproducible and Deployable Model Quantization Benchmark

Yuhang Li, Mingzhu Shen, Jian Ma, Yan Ren, Mingxin Zhao +4 more
11/5/2021
cs.LGcs.CV
benchmark-datasetquantization-pruning

Official code: ModelTC/MQBench (890 stars, Python, Apache-2.0, last commit 2025-04-20).

Abstract

Model quantization has emerged as an indispensable technique to accelerate deep learning inference. While researchers continue to push the frontier of quantization algorithms, existing quantization work is often unreproducible and undeployable.

Show full abstract

This is because researchers do not choose consistent training pipelines and ignore the requirements for hardware deployments. In this work, we propose Model Quantization Benchmark (MQBench), a first attempt to evaluate, analyze, and benchmark the reproducibility and deployability for model quantization algorithms. We choose multiple different platforms for real-world deployments, including CPU, GPU, ASIC, DSP, and evaluate extensive state-of-the-art quantization algorithms under a unified training pipeline. MQBench acts like a bridge to connect the algorithm and the hardware. We conduct a comprehensive analysis and find considerable intuitive or counter-intuitive insights. By aligning the training settings, we find existing algorithms have about the same performance on the conventional academic track. While for the hardware-deployable quantization, there is a huge accuracy gap which remains unsettled. Surprisingly, no existing algorithm wins every challenge in MQBench, and we hope this work could inspire future research directions.

View on arXivView PDF

Code Implementations(1)

ModelTC/MQBenchOfficial100%
Apache-2.0

Model Quantization Benchmark

890146Python, C++Aug 19, 20211 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2021mqbench,
  title  = {MQBench: Towards Reproducible and Deployable Model Quantization Benchmark},
  author = {Yuhang Li and Mingzhu Shen and Jian Ma and Yan Ren and Mingxin Zhao and Qi Zhang and Ruihao Gong and Fengwei Yu and Junjie Yan},
  year   = {2021},
  eprint = {2111.03759},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.03759}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.03759.svg)](https://codeofpaper.com/paper/2111.03759)

Discussion