Teaching Models to Express Their Uncertainty in Words

Stephanie Lin, Jacob Hilton, Owain Evans
5/28/2022
cs.CLcs.AIcs.LG

Official code: sylinrl/CalibratedMath (40 stars, Python, last commit 2022-05-26).

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").

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Teaching Models to Express Their Uncertainty in Words

407PythonMay 26, 20224 years ago

Similar Papers

Cite this paper

@article{lin2022teaching,
  title  = {Teaching Models to Express Their Uncertainty in Words},
  author = {Stephanie Lin and Jacob Hilton and Owain Evans},
  year   = {2022},
  eprint = {2205.14334},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14334}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.14334.svg)](https://codeofpaper.com/paper/2205.14334)

Discussion