atlas

Research map / Large language models / Instruction and fine-tuning

Thermometer: Towards Universal Calibration for Large Language Models

ICML 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Thermometer, an auxiliary MLP trained across multiple tasks that predicts a dataset-level temperature from unlabeled prompts to calibrate LLMs on unseen tasks.

Problem

LLM confidence calibration is hard for new tasks because temperature scaling needs labeled held-out data, and LLMs are expensive to retrain or sample repeatedly; instruction tuning also degrades calibration.

Approach

Learn a shared recognition network, conditioned only on prompt features, that outputs a task-level temperature via amortized variational inference over multiple labeled tasks; at test time it predicts the temperature for an unseen task from unlabeled prompts alone, preserving accuracy since temperature scaling does not change argmax.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply Thermometer calibrationLLaMA-2-Chat 7B · MMLUECE: 0.260$\pm$0.025 -> 0.078$\pm$0.008Helped
Apply Thermometer calibrationLLaMA-2-Chat 7B · MRQA validationECE: 0.127$\pm$0.026 -> 0.065$\pm$0.008Helped
Apply Thermometer calibrationLLaMA-2-Chat 7B · BIG-benchECE: 0.233$\pm$0.035 -> 0.090$\pm$0.018Helped
Apply Thermometer calibrationFLAN-T5-XL · MMLUECE: 0.181$\pm$0.013 -> 0.080$\pm$0.008Helped
Apply Thermometer calibrationFLAN-T5-XL · BIG-benchECE: 0.192$\pm$0.032 -> 0.078$\pm$0.011Helped
Use a linear architecture instead of the Thermometer MLP (ablation)Thermometer on LLaMA-2-Chat 7B · MMLUECE: 0.078$\pm$0.008 -> 0.102$\pm$0.006Hurt
Use an MLP with one layer (ablation)Thermometer on LLaMA-2-Chat 7B · MMLUECE: 0.078$\pm$0.008 -> 0.079$\pm$0.004No clear effect
Use an MLP with three layers (ablation)Thermometer on LLaMA-2-Chat 7B · MMLUECE: 0.078$\pm$0.008 -> 0.075$\pm$0.004No clear effect
Set λreg to 1.0 (ablation)Thermometer on LLaMA-2-Chat 7B · MMLUECE: 0.078$\pm$0.008 -> 0.101$\pm$0.006Hurt
Set λreg to 10^-1 (ablation)Thermometer on LLaMA-2-Chat 7B · MMLUECE: 0.078$\pm$0.008 -> 0.087$\pm$0.004Hurt
Set λreg to 10^-3 (ablation)Thermometer on LLaMA-2-Chat 7B · MMLUECE: 0.078$\pm$0.008 -> 0.076$\pm$0.004No clear effect
Set training temperature inference batch size to 1 (ablation)Thermometer on LLaMA-2-Chat 7B · MMLUECE: 0.078$\pm$0.008 -> 0.083$\pm$0.009Hurt

Surprising findings

Limitations

Experimental setup

Datasets: MMLU BIG-bench MRQA

Benchmarks: MMLU BIG-bench MRQA

Metrics: ECE TL-ECE MCE NLL Brier

Baselines: Vanilla Temperature Scaling TS-CV MC-Dropout MC-Augment Elicitation Elicitation-Ensemble CAPE

Builds on: temperature scaling variational inference deep ensembles

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy