Pruning vs Quantization: Which is Better?

Andrey Kuzmin, Markus Nagel, Mart van Baalen, Arash Behboodi, Tijmen Blankevoort
7/6/2023
cs.LG

Official code: Qualcomm-AI-research/pruning-vs-quantization (26 stars, BSD-3-Clause-Clear, last commit 2024-03-01).

Abstract

Neural network pruning and quantization techniques are almost as old as neural networks themselves. However, to date only ad-hoc comparisons between the two have been published. In this paper, we set out to answer the question on which is better: neural network quantization or pruning? By answering this question, we hope to inform design decisions made on neural network hardware going forward. We provide an extensive comparison between the two techniques for compressing deep neural networks. First, we give an analytical comparison of expected quantization and pruning error for general data distributions. Then, we provide lower bounds for the per-layer pruning and quantization error in trained networks, and compare these to empirical error after optimization. Finally, we provide an extensive experimental comparison for training 8 large-scale models on 3 tasks. Our results show that in most cases quantization outperforms pruning. Only in some scenarios with very high compression ratio, pruning might be beneficial from an accuracy standpoint.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause-Clear
265MATLAB, PythonOct 23, 20232 years agoBSD-3-Clause-Clear

Similar Papers

Cite this paper

@article{kuzmin2023pruning,
  title  = {Pruning vs Quantization: Which is Better?},
  author = {Andrey Kuzmin and Markus Nagel and Mart van Baalen and Arash Behboodi and Tijmen Blankevoort},
  year   = {2023},
  eprint = {2307.02973},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.02973v2},
  journal = {NEURIPS 2023 2023}
}

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/2307.02973.svg)](https://codeofpaper.com/paper/2307.02973)

Discussion