The Well-Tempered Classifier: Some Elementary Properties of Temperature Scaling
Pierre-Alexandre Mattei, Bruno Loureiro

TL;DR
This paper provides a rigorous theoretical analysis of temperature scaling, revealing its effects on model uncertainty and clarifying misconceptions about its impact on diversity in language models.
Contribution
It introduces new geometric and algebraic characterizations of temperature scaling, enhancing understanding of its properties and limitations.
Findings
Increasing temperature increases model entropy in classification.
Contrary to common belief, increasing temperature does not necessarily increase diversity in LLMs.
Temperature scaling is uniquely the linear scaler that preserves hard predictions.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsExplainable Artificial Intelligence (XAI) · Natural Language Processing Techniques · Big Data and Digital Economy
