TL;DR
This paper tackles the critical issue of semantic uncertainty quantification (UQ) in language models (LMs), showing that current methods often fail to accurately reflect model confidence. They propose and demonstrate that optimizing a simple scalar temperature parameter (Temperature Scaling) significantly improves both calibration and discrimination of LMs for question-answering tasks, outperforming more complex methods.
What Problem Does This Paper Address?
Reliable uncertainty quantification (UQ) is crucial for understanding the trustworthiness of language models (LMs). While prior work has focused on "discrimination" (how well a model distinguishes correct from incorrect answers), it has largely neglected "calibration" (how well the model's confidence scores align with the actual probability of being correct). This is a significant omission because these two aspects capture different facets of uncertainty. A model can be perfectly discriminative without being well-calibrated, and vice-versa. The authors highlight that existing methods, particularly those using fixed temperature heuristics, produce poorly calibrated and discriminative confidence distributions. They aim to bridge this gap by systematically evaluating both calibration and discrimination and proposing a simple yet effective solution.
Methods
The core of the paper's contribution lies in its systematic evaluation and the proposed solution of optimized Temperature Scaling (TS).
- Semantic Confidence Measures: The authors introduce five novel semantic confidence (SC) measures (ML-SC, IC-SC, B-SC, T-SC, and G-SC) to complement existing ones (E-SC, L-SC). This broad evaluation across diverse measures is key to robust conclusions.
- Temperature Scaling (TS): Instead of using fixed temperature heuristics (like τ=0.5 or τ=1.0), they optimize a single scalar temperature parameter for each model and dataset. They argue this provides a suitable "inductive bias" that regularizes the model and better reflects overall sequence uncertainty.
- Comparison with Other Methods: They compare their optimized TS against:
- Base models: Uncalibrated LMs.
- Fixed temperature heuristics: SE (τ=0.5).
- More expressive methods: Adaptive Temperature Scaling (ATS) and Platt Scaling (Platt).
- Evaluation Metrics: They use Adaptive Calibration Error (ACE) for calibration and Area Under the Receiver Operating Characteristic Curve (AUROC) for discrimination.
Datasets
The authors evaluate their methods on several standard datasets for question-answering:
- TriviaQA: A closed-book QA dataset.
- Natural Questions (NQ): Another closed-book QA dataset.
- SQuAD: An open-book QA dataset.
These datasets are split into calibration training, calibration validation, and final test evaluation sets to ensure rigorous evaluation.
Key Insights and Ideas
- Calibration is Crucial: The paper strongly emphasizes that focusing solely on discrimination is insufficient for reliable UQ. Calibration is a distinct and equally important aspect.
- Simple is Often Better: Optimizing a single scalar temperature parameter (TS) is surprisingly effective, outperforming more complex and computationally expensive methods like ATS and Platt Scaling.
- Inductive Bias Matters: The global nature of scalar TS provides a beneficial inductive bias, preventing overfitting to semantically irrelevant tokens and leading to better generalization for semantic UQ.
- Heuristics are Suboptimal: Fixed temperature heuristics, common in prior work, are shown to be systematically miscalibrated and poorly discriminative.
- Principled Response Selection: Selecting the final response based on the most confident semantic cluster (SEconf) is more principled and effective than ad-hoc greedy decoding (SEvanilla).
Key Results
- Optimized Temperature Scaling (TS) consistently improves both semantic calibration (lower ACE) and discrimination (higher AUROC) across various semantic confidence measures and datasets.
- TS outperforms heuristic baselines (Base, SE) and more expressive methods (ATS, Platt) on most metrics. For example, on TriviaQA and NQ, TS achieves significantly better ACE and AUROC.
- The improvement from TS is particularly pronounced on datasets where base models exhibit poor calibration (e.g., TriviaQA, NQ).
- The paper demonstrates that TS enhances downstream semantic entropy, a key measure for UQ.
- The authors show that their proposed SEconf method, which selects the final answer from the most confident semantic cluster, yields superior discrimination compared to the SEvanilla method.
Limitations and Future Work
- Short-Form QA Focus: The study primarily focuses on short-form generative QA tasks where correctness is binary. The authors acknowledge that extending semantic calibration to tasks with partially correct outputs (like summarization) is challenging due to the less well-defined notion of calibration in such settings. This is identified as a direction for future research.
- Computational Cost: While TS is computationally efficient, the overall evaluation pipeline, especially sample generation and clustering, can still be resource-intensive. The authors note that a modest sample budget (around 10 generations) provides a good balance between coverage and computational cost.
- NLI Model Limitations: The paper mentions that off-the-shelf NLI models can struggle with numeric responses and varied date formats, leading to potential over-clustering. They propose normalization and hierarchical checking as remedies, but this highlights an ongoing challenge in semantic evaluation.
Summary updated