Loss aware post-training quantization

Yury Nahshan, Brian Chmiel, Chaim Baskin, Evgenii Zheltonozhskii, Ron Banner, Alex M. Bronstein, Avi Mendelson

Research output: Contribution to journalArticlepeer-review

78 Scopus citations

Abstract

Neural network quantization enables the deployment of large models on resource-constrained devices. Current post-training quantization methods fall short in terms of accuracy for INT4 (or lower) but provide reasonable accuracy for INT8 (or above). In this work, we study the effect of quantization on the structure of the loss landscape. We show that the structure is flat and separable for mild quantization, enabling straightforward post-training quantization methods to achieve good results. We show that with more aggressive quantization, the loss landscape becomes highly non-separable with steep curvature, making the selection of quantization parameters more challenging. Armed with this understanding, we design a method that quantizes the layer parameters jointly, enabling significant accuracy improvement over current post-training quantization methods. Reference implementation is available at https://github.com/ynahshan/nn-quantization-pytorch/tree/master/lapq.

Original languageEnglish
Pages (from-to)3245-3262
Number of pages18
JournalMachine Learning
Volume110
Issue number11-12
DOIs
StatePublished - 1 Dec 2021
Externally publishedYes

Keywords

  • Convolutional neural networks
  • Post-training quantization

ASJC Scopus subject areas

  • Software
  • Artificial Intelligence

Fingerprint

Dive into the research topics of 'Loss aware post-training quantization'. Together they form a unique fingerprint.

Cite this