Thermometer: Towards Universal Calibration for Large Language Models
Maohao Shen, Subhro Das, Kristjan Greenewald, Prasanna Sattigeri, Gregory Wornell, Soumya Ghosh
TL;DR
THERMOMETER tackles the universal calibration of large language models by learning a shared recognition network that predicts dataset-specific temperatures τ across multiple tasks. The approach uses a variational lower bound to jointly model per-task temperatures with amortized inference, enabling test-time estimation from unlabeled data and preserving the uncalibrated model's accuracy. Empirical results across MMLU, BIG-bench, and MRQA show consistent calibration improvements with minimal runtime overhead and strong transfer across model scales and benchmarks. The method demonstrates practical impact for deploying calibrated LLMs in diverse, real-world settings where labeled data for calibration is scarce or unavailable.
Abstract
We consider the issue of calibration in large language models (LLM). Recent studies have found that common interventions such as instruction tuning often result in poorly calibrated LLMs. Although calibration is well-explored in traditional applications, calibrating LLMs is uniquely challenging. These challenges stem as much from the severe computational requirements of LLMs as from their versatility, which allows them to be applied to diverse tasks. Addressing these challenges, we propose THERMOMETER, a calibration approach tailored to LLMs. THERMOMETER learns an auxiliary model, given data from multiple tasks, for calibrating a LLM. It is computationally efficient, preserves the accuracy of the LLM, and produces better-calibrated responses for new tasks. Extensive empirical evaluations across various benchmarks demonstrate the effectiveness of the proposed method.
