Skip to main content
QUICK REVIEW

[Paper Review] Teaching Models to Express Their Uncertainty in Words

Stephanie Lin, Jacob Hilton|arXiv (Cornell University)|May 28, 2022
Topic ModelingComputer Science54 citations
TL;DR

The paper shows GPT-3 can learn to express calibrated verbalized uncertainty about its own answers in natural language, and evaluates calibration under distribution shift using a new CalibratedMath suite.

ABSTRACT

We show that a GPT-3 model can learn to express uncertainty about its own answers in natural language -- without use of model logits. When given a question, the model generates both an answer and a level of confidence (e.g. "90% confidence" or "high confidence"). These levels map to probabilities that are well calibrated. The model also remains moderately calibrated under distribution shift, and is sensitive to uncertainty in its own answers, rather than imitating human examples. To our knowledge, this is the first time a model has been shown to express calibrated uncertainty about its own answers in natural language. For testing calibration, we introduce the CalibratedMath suite of tasks. We compare the calibration of uncertainty expressed in words ("verbalized probability") to uncertainty extracted from model logits. Both kinds of uncertainty are capable of generalizing calibration under distribution shift. We also provide evidence that GPT-3's ability to generalize calibration depends on pre-trained latent representations that correlate with epistemic uncertainty over its answers.

Motivation & Objective

  • Motivate the need for calibrated uncertainty in language models to combat hallucinations and build user trust.
  • Introduce verbalized probability as a way for models to express epistemic uncertainty in natural language.
  • Create and use CalibratedMath to test calibration under distribution shift across arithmetic tasks.
  • Compare verbalized probability with logit-based calibration approaches and indirect logit methods.

Proposed method

  • Finite-tune GPT-3 (175B) on the Add-subtract training subset of CalibratedMath to produce verbalized probabilities alongside answers.
  • Define three probability sources for calibration: answer logit, indirect logit, and verbalized probability (natural language).
  • Evaluate calibration using Mean Squared Error (MSE) and Mean Absolute Deviation (MAD) across in-distribution and out-of-distribution evaluation sets.
  • Use supervised finetuning with labels derived from empirical accuracy per sub-task for verbalized probability and from ground-truth correctness for indirect logit.
  • Compare finetuned verbalized probability and indirect logit against zero-shot answer logit and a constant baseline.

Experimental results

Research questions

  • RQ1Can a GPT-3 model express calibrated uncertainty about its own answers in natural language (verbalized probability)?
  • RQ2Does calibration generalize under distribution shift to new task families within CalibratedMath?
  • RQ3How does verbalized probability compare to logit-based calibration methods in terms of calibration quality and generalization?
  • RQ4What mechanisms (latent representations vs. simple heuristics) support calibration generalization?

Key findings

  • Verbalized probability generalizes to new evaluation sets and remains moderately calibrated under distribution shift.
  • On Multi-answer, verbalized probability achieves lower MSE than answer logit and indirect logit baselines after finetuning.
  • On Multiply-divide, verbalized probability matches or exceeds a constant baseline in MAD and MSE.
  • Indirect logit shows strong calibration on Multiply-divide but is weaker on Multi-answer compared to verbalized probability.
  • Several analyses suggest GPT-3 uses latent pretraining features beyond logits to calibrate uncertainty, rather than relying solely on output token probabilities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.