English

Layer-Stack Temperature Scaling

Machine Learning 2022-11-21 v1

Abstract

Recent works demonstrate that early layers in a neural network contain useful information for prediction. Inspired by this, we show that extending temperature scaling across all layers improves both calibration and accuracy. We call this procedure "layer-stack temperature scaling" (LATES). Informally, LATES grants each layer a weighted vote during inference. We evaluate it on five popular convolutional neural network architectures both in- and out-of-distribution and observe a consistent improvement over temperature scaling in terms of accuracy, calibration, and AUC. All conclusions are supported by comprehensive statistical analyses. Since LATES neither retrains the architecture nor introduces many more parameters, its advantages can be reaped without requiring additional data beyond what is used in temperature scaling. Finally, we show that combining LATES with Monte Carlo Dropout matches state-of-the-art results on CIFAR10/100.

Keywords

Cite

@article{arxiv.2211.10193,
  title  = {Layer-Stack Temperature Scaling},
  author = {Amr Khalifa and Michael C. Mozer and Hanie Sedghi and Behnam Neyshabur and Ibrahim Alabdulmohsin},
  journal= {arXiv preprint arXiv:2211.10193},
  year   = {2022}
}

Comments

10 pages, 7 figures, 3 tables

R2 v1 2026-06-28T06:12:33.245Z