paper · First submission: February 19, 2023

Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation

Uncertainty estimation groups answers by meaning rather than treating every wording as a separate outcome.

Lorenz Kuhn, Yarin Gal and Sebastian Farquhar ask how to measure a language model’s uncertainty when several differently worded answers mean the same thing. Their 2023 paper introduces semantic entropy: an estimate of how widely the model’s possible answers differ in meaning, rather than wording alone.[1]

From sampled answers to meanings

The method samples multiple answers from one generating model, clusters answers judged to imply each other in both directions, and combines their probabilities before estimating entropy. The question is included when testing equivalence: a one-word answer can have a clear meaning in that context. The paper’s implementation uses a DeBERTa natural-language-inference classifier, trained on MNLI, for these pairwise tests; it does not require retraining the generating model.[1]

The paper illustrates the distinction with a capital-city question. If “Paris” and “It’s Paris” are treated as separate outcomes, variation in phrasing contributes to uncertainty even though both express the same answer. Grouping them removes that contribution while preserving disagreement with an answer such as “London.” This is an illustrative probability example, not an observed question-answering result.[1]

Evaluation and findings

The experiments use pretrained OPT models from 2.7 billion to 30 billion parameters. CoQA supplies about 8,000 questions with supporting passages; an 8,000-question TriviaQA subset tests answers without such passages. The evaluation asks whether uncertainty helps distinguish correct from incorrect answers, using AUROC, a ranking measure. Answer correctness is operationalized by reference-answer overlap using a Rouge-L threshold above 0.3, rather than independent verification of every claim.[1]

In Table 2’s 30-billion-parameter, ten-answer setting, semantic entropy achieves AUROC 0.77 on CoQA and 0.83 on TriviaQA, compared with 0.66 and 0.79 for simply counting distinct meanings. These are discrimination scores, not percentages of answers made correct. The broader comparisons report advantages over sequence entropy, lexical similarity and the authors’ implementation of asking the model whether an answer is true. Sampling temperature matters: greater diversity can reveal alternatives while also producing poorer answers.[1]

What the estimate cannot establish

Clustering depends on an imperfect entailment classifier, and finite samples may miss important alternative answers. A model can also be consistently wrong: agreement in meaning does not authenticate an external fact. The fabricated-citation case poses that additional problem—checking that an independent record actually exists and supports a claim. This question-answering evaluation does not validate legal citation checking.

The entry follows arXiv v1, submitted February 19, 2023, whose PDF identifies it as an ICLR 2023 conference paper. The contribution is a more suitable unit for uncertainty estimation in language: disagreement between meanings, with evidence and truth still requiring separate checks.[1]

Explore the chronology →

Sources

  1. Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation · Source record ref-semantic-uncertainty-2023 · Back to claim ↑1 ↑2 ↑3 ↑4 ↑5 ↑6

Article updated 2026-10-31