Up or Down? Adaptive Rounding for Post-Training Quantization

By Markus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos, Tijmen Blankevoort. 2020

883 citations recorded by the source corpus.

When quantizing neural networks, assigning each floating-point weight to its nearest fixed-point value is the predominant approach. We find that, perhaps surprisingly, this is not the best we can do. In this paper, we propose AdaRound, a better weight-rounding mechanism for post-training quantization that adapts to the data and the task loss. AdaRound is fast, does not require fine-tuning of the network, and only uses a small amount of unlabelled data. We start by theoretically analyzing the rounding problem for a pre-trained neural network. By approximating the task loss with a Taylor series expansion, the rounding task is posed as a quadratic unconstrained binary optimization problem. We simplify this to a layer-wise local loss and propose to optimize this loss with a soft relaxation. AdaRound not only outperforms rounding-to-nearest by a significant margin but also establishes a new state-of-the-art for post-training quantization on several networks and tasks. Without fine-tuning, we can quantize the weights of Resnet18 and Resnet50 to 4 bits while staying within an accuracy loss of 1%.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Dan Alistarh
  2. Elias Frantar
  3. Tijmen Blankevoort
  4. Luke S. Zettlemoyer
  5. Song Han
  6. Markus Nagel
  7. Ji Lin
  8. Zi-Mei Yao

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Luc Van Gool
  3. Yu Qiao
  4. Xiaogang Wang
  5. Yi Yang
  6. Jitendra Malik
  7. Ming-Hsuan Yang
  8. Andrew Zisserman

In Efficiency & Compression

  1. Dan Alistarh
  2. Elias Frantar
  3. Tijmen Blankevoort
  4. Markus Nagel
  5. Tim Dettmers
  6. Luke S. Zettlemoyer
  7. Song Han
  8. Ji Lin

Citations in the corpus