The Well-Tempered Classifier: Some Elementary Properties of Temperature Scaling

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mattei, Pierre-Alexandre, Loureiro, Bruno
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916054686498816
author Mattei, Pierre-Alexandre
Loureiro, Bruno
author_facet Mattei, Pierre-Alexandre
Loureiro, Bruno
contents Temperature scaling is a simple method that allows to control the uncertainty of probabilistic models. It is mostly used in two contexts: improving the calibration of classifiers and tuning the stochasticity of large language models (LLMs). In both cases, temperature scaling is the most popular method for the job. Despite its popularity, a rigorous theoretical analysis of the properties of temperature scaling has remained elusive. We investigate here some of these properties. For classification, we show that increasing the temperature increases the uncertainty in the model in a very general sense (and in particular increases its entropy). However, for LLMs, we challenge the common claim that increasing temperature increases diversity. Furthermore, we introduce two new characterisations of temperature scaling. The first one is geometric: the tempered model is shown to be the information projection of the original model onto the set of models with a given entropy. The second characterisation clarifies the role of temperature scaling as a submodel of more general linear scalers such as matrix scaling and Dirichlet calibration: we show that temperature scaling is the only linear scaler that does not change the hard predictions of the model.
format Preprint
id arxiv_https___arxiv_org_abs_2602_14862
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle The Well-Tempered Classifier: Some Elementary Properties of Temperature Scaling
Mattei, Pierre-Alexandre
Loureiro, Bruno
Machine Learning
Artificial Intelligence
Information Theory
Methodology
62-08, 60F10
G.3
Temperature scaling is a simple method that allows to control the uncertainty of probabilistic models. It is mostly used in two contexts: improving the calibration of classifiers and tuning the stochasticity of large language models (LLMs). In both cases, temperature scaling is the most popular method for the job. Despite its popularity, a rigorous theoretical analysis of the properties of temperature scaling has remained elusive. We investigate here some of these properties. For classification, we show that increasing the temperature increases the uncertainty in the model in a very general sense (and in particular increases its entropy). However, for LLMs, we challenge the common claim that increasing temperature increases diversity. Furthermore, we introduce two new characterisations of temperature scaling. The first one is geometric: the tempered model is shown to be the information projection of the original model onto the set of models with a given entropy. The second characterisation clarifies the role of temperature scaling as a submodel of more general linear scalers such as matrix scaling and Dirichlet calibration: we show that temperature scaling is the only linear scaler that does not change the hard predictions of the model.
title The Well-Tempered Classifier: Some Elementary Properties of Temperature Scaling
topic Machine Learning
Artificial Intelligence
Information Theory
Methodology
62-08, 60F10
G.3
url https://arxiv.org/abs/2602.14862