Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

On Calibration of Modern Neural Networks

Temperature scaling fixes overconfident predictions in modern neural networks

  • Problem Modern neural networks are poorly calibrated, so their confidence no longer matches how often they are right. Older networks from a decade ago were well calibrated, and deeper, more accurate models drift further apart.
  • Method Temperature scaling divides every logit by one scalar T before the softmax. The network's weights stay fixed, and T is picked by minimizing NLL on a validation set.
  • Results On ResNet 110 on CIFAR-100, temperature scaling cut ECE from 16.53% to 1.26%. Matrix scaling left ECE at 25.49%.

Why accuracy gains hid a calibration problem

Neural networks now make decisions in applications such as self-driving cars and medical diagnosis. A system that reports its own uncertainty lets people decide when to step in, so the probability it reports has to mean something. Back in 2005, neural networks were shown to give well-calibrated probabilities on binary tasks, which makes the newer picture a surprise.

The authors compare a 5-layer LeNet with a 110-layer ResNet on CIFAR-100. LeNet's average confidence closely matches its accuracy, so its reliability diagram sits near the diagonal. The ResNet is more accurate, but its confidence stays well above its accuracy, so its confidence no longer tracks correctness.

That gap raises the question of what changed in training and architecture, and which cheap fixes can close it.

Measuring calibration with reliability diagrams and ECE

Perfect calibration means that among predictions made with confidence p, a fraction p is correct, for every p between 0 and 1. Confidence is a continuous variable, so this condition can't be checked on finitely many samples, and the authors use binned estimates instead.

Reliability diagrams group predictions into M interval bins and plot each bin's accuracy against its average confidence. A calibrated model traces the identity line, but the diagram doesn't show how many samples fall in each bin, so it can't say how many predictions are calibrated.

ECE averages the gap between accuracy and confidence over the bins, weighted by each bin's share of the samples. MCE keeps only the largest gap, which suits high-risk settings where the worst bin matters most. The authors use ECE as their main metric, with M = 15 bins in their main table.

Negative log likelihood scores how well a probabilistic model fits the labels, and in expectation it is minimized only when the model recovers the true conditional distribution. Because of that property, the calibrators in this paper use NLL as the objective when they are fitted on the validation set.

Capacity, Batch Normalization and weight decay

The authors don't claim causality, but they find that larger model capacity and weaker regularization go together with miscalibration. On CIFAR-100, increasing ResNet depth and width lowers classification error, yet ECE rises with capacity. Once the training set is almost fit, NLL keeps falling only by raising confidence, so the model becomes overconfident on average.

Models trained with Batch Normalization were more miscalibrated in the authors' experiments. A 6-layer ConvNet gets worse calibration with Batch Normalization, even though its accuracy improves slightly. The authors observed this for low and high learning rates, but they can't pinpoint how Batch Normalization changes the final probabilities.

Weight decay has become less common, since models with less L2 regularization are often reported to generalize better. The authors trained a 110-layer ResNet on CIFAR-100 with varying weight decay and found that less weight decay hurts calibration. Calibration kept improving with more weight decay after accuracy had peaked, so calibration and accuracy don't share one best setting.

In a 110-layer ResNet with stochastic depth, test NLL overfits after the learning rate drops at epoch 250, while test error keeps falling. The authors read this as overfitting that shows up in probabilities rather than in the 0/1 loss, so confidence and correctness drift apart.

Post-processing calibrators from binning to Platt scaling

Every method here is a post-processing step that runs after training, and each one is fitted on a hold-out validation set. The network's own weights stay fixed during this stage, so the calibrator only learns a map from raw outputs to probabilities.

Histogram binning splits the uncalibrated predictions into bins and gives each bin the average label of its samples. Isotonic regression instead learns a non-decreasing piecewise constant function, which generalizes histogram binning because its bin edges are also fitted. BBQ averages over many binning schemes, weighted by their Bayesian likelihood on the validation data.

Platt scaling feeds the logit z into a logistic regression with two scalars a and b, giving \( \hat{q}_i = \sigma(a z_i + b) \). Matrix scaling extends this to K classes by applying a learned matrix W and bias b to the logits before the softmax. Vector scaling restricts W to a diagonal matrix, because matrix scaling's parameter count grows quadratically with K.

How temperature scaling works

Temperature scaling divides every logit by one scalar T before the softmax, giving \( \hat{q}_i = \max_k \sigma_{SM}(z_i/T)^{(k)} \). T is chosen by minimizing NLL on the validation set, and the network itself is not retrained. Because dividing by T leaves the largest logit as the largest value, the predicted class doesn't change.

A T above 1 softens the softmax and pushes confidence toward 1/K, while T near 0 collapses it to a point mass. The authors use this as a single-parameter variant of Platt scaling, and they note that a related constrained entropy maximization gives the same form. The authors aren't aware of prior use of this form to calibrate probabilistic models.

A conjugate gradient solver finds the optimal T in about 10 iterations, and even a naive line search is faster than the other methods. In Torch7 this is a constant multiplier of 1/T inserted between the logits and the softmax, with T set to 1 during training and tuned afterwards.

ECE on vision and NLP datasets

Table 1 reports ECE before calibration and after each method, on the vision and NLP datasets. Most models have ECE of about 4 to 10% before calibration, and the two exceptions, SVHN and Reuters, sit below 1%. The miscalibration isn't specific to one architecture, since convolutional, recurrent and averaging networks all show it.

On Birds, temperature scaling cut ECE from 9.19% to 1.85%, compared to 4.34% for histogram binning. On CIFAR-100 with ResNet 110, ECE falls from 16.53% to 1.26% with temperature scaling, while matrix scaling leaves it at 25.49%. The authors report that temperature scaling is the most effective on the vision tasks, and it is roughly comparable to the other methods on the NLP datasets.

Vector scaling, which is strictly more general, still does no better than temperature scaling here. Its learned vector has nearly constant entries, so it behaves like a single scalar transformation. The authors conclude that network miscalibration is essentially low dimensional, which is why one scalar is enough.

The authors attribute this to the parameter count, since a calibrator with tens of thousands of parameters overfits a small validation set. Binning methods improve calibration on most datasets but don't beat temperature scaling, and histogram binning typically beats isotonic regression and BBQ.

On CIFAR-100 with ResNet-110 (SD), ECE drops from 12.67% to 0.96% with temperature scaling, compared to 2.46% for histogram binning. The reliability diagrams show each bin close to the diagonal, even though only one parameter changed.

Limitations

Temperature scaling didn't calibrate Reuters, which the authors describe as already well calibrated. Because there was little room for improvement, post-processing may not be needed there, and the authors allow that the split or the binning scheme may matter.

Reliability diagrams don't show sample counts per bin, so sparse bins can look fine. Matrix scaling and other calibrators with tens of thousands of parameters are expected to overfit small validation sets, even with regularization.

All methods assume the validation, test and training sets come from the same distribution. The paper leaves open why these architectural trends hurt calibration while improving accuracy.

Paper info

Authors
Guo, Chuan, Pleiss, Geoff, Sun, Yu, Weinberger, Kilian Q.
Venue
arXiv · Preprint
First published
2017-6-14
Added
2026-11-12
Updated
2017-8-3
Version
v2
arXiv
1706.04599
Category
cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Guo, Chuan, Pleiss, Geoff, Sun, Yu, Weinberger, Kilian Q. (2017). On Calibration of Modern Neural Networks. arXiv:1706.04599v2. https://arxiv.org/abs/1706.04599v2

BibTeX
@misc{chuan2017calibration,
  title = {{On Calibration of Modern Neural Networks}},
  author = {Guo, Chuan and Pleiss, Geoff and Sun, Yu and Weinberger, Kilian Q.},
  year = {2017},
  eprint = {1706.04599},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.04599v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up