Verified Uncertainty Calibration

By Ananya Kumar, Percy Liang, Tengyu Ma. 2019

468 citations recorded by the source corpus.

Applications such as weather forecasting and personalized medicine demand models that output calibrated probability estimates---those representative of the true likelihood of a prediction. Most models are not calibrated out of the box but are recalibrated by post-processing model outputs. We find in this work that popular recalibration methods like Platt scaling and temperature scaling are (i) less calibrated than reported, and (ii) current techniques cannot estimate how miscalibrated they are. An alternative method, histogram binning, has measurable calibration error but is sample inefficient---it requires $O(B/\epsilon^2)$ samples, compared to $O(1/\epsilon^2)$ for scaling methods, where $B$ is the number of distinct probabilities the model can output. To get the best of both worlds, we introduce the scaling-binning calibrator, which first fits a parametric function to reduce variance and then bins the function values to actually ensure calibration. This requires only $O(1/\epsilon^2 + B)$ samples. Next, we show that we can estimate a model's calibration error more accurately using an estimator from the meteorological community---or equivalently measure its calibration error with fewer samples ($O(\sqrt{B})$ instead of $O(B)$). We validate our approach with multiclass calibration experiments on CIFAR-10 and ImageNet, where we obtain a 35% lower calibration error than histogram binning and, unlike scaling methods, guarantees on true calibration. In these experiments, we also estimate the calibration error and ECE more accurately than the commonly used plugin estimators. We implement all these methods in a Python library: this https URL

Subfields: Artificial Intelligence, Statistics and Probability, Evaluation & Benchmarks, Safety, Robustness & Interpretability

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. Percy Liang
  2. Sergey Levine
  3. Quoc V. Le
  4. Mohit Bansal
  5. Caiming Xiong
  6. Luke S. Zettlemoyer
  7. Jianfeng Gao
  8. Yoshua Bengio

In Statistics and Probability

  1. E.J. Candes
  2. Jacob Steinhardt
  3. Matteo Sesia
  4. Yaniv Romano
  5. Tengyu Ma
  6. Johannes Resin
  7. Caiming Xiong
  8. Fredrik Lindsten

In Evaluation & Benchmarks

  1. Percy Liang
  2. Dustin Tran
  3. Caiming Xiong
  4. Balaji Lakshminarayanan
  5. Neil Houlsby
  6. Ali Farhadi
  7. Jacob Steinhardt
  8. Nicholas Carlini

In Safety, Robustness & Interpretability

  1. Dawn Song
  2. Jacob Steinhardt
  3. Nicholas Carlini
  4. Dan Hendrycks
  5. Percy Liang
  6. Matthias Hein
  7. Aditi Raghunathan
  8. Bo Li

Citations in the corpus