An Underexplored Dilemma between Confidence and Calibration in Quantized Neural Networks

Guoxuan Xia, Sangwon Ha, Tiago Azevedo, Partha Maji
11/10/2021
cs.LGcs.CV
quantization-pruning

Official code: Guoxoug/PTQ-acc-cal (1 star, Python, last commit 2021-12-02).

Abstract

Modern convolutional neural networks (CNNs) are known to be overconfident in terms of their calibration on unseen input data. That is to say, they are more confident than they are accurate.

Show full abstract

This is undesirable if the probabilities predicted are to be used for downstream decision making. When considering accuracy, CNNs are also surprisingly robust to compression techniques, such as quantization, which aim to reduce computational and memory costs. We show that this robustness can be partially explained by the calibration behavior of modern CNNs, and may be improved with overconfidence. This is due to an intuitive result: low confidence predictions are more likely to change post-quantization, whilst being less accurate. High confidence predictions will be more accurate, but more difficult to change. Thus, a minimal drop in post-quantization accuracy is incurred. This presents a potential conflict in neural network design: worse calibration from overconfidence may lead to better robustness to quantization. We perform experiments applying post-training quantization to a variety of CNNs, on the CIFAR-100 and ImageNet datasets.

View on arXivView PDF

Code Implementations(1)

10Python, ShellNov 21, 20215 years ago

Similar Papers

Cite this paper

@article{xia2021underexplored,
  title  = {An Underexplored Dilemma between Confidence and Calibration in Quantized Neural Networks},
  author = {Guoxuan Xia and Sangwon Ha and Tiago Azevedo and Partha Maji},
  year   = {2021},
  eprint = {2111.08163},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.08163}
}

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

Discussion