Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

We introduce a method to measure uncertainty in large language models. For tasks like question answering, it is essential to know when we can trust the natural language outputs of foundation models. We show that measuring uncertainty in natural language is challenging because of "semantic equivalence" -- different sentences can mean the same thing. To overcome these challenges we introduce semantic entropy -- an entropy which incorporates linguistic invariances created by shared meanings. Our method is unsupervised, uses only a single model, and requires no modifications to off-the-shelf language models. In comprehensive ablation studies we show that the semantic entropy is more predictive of model accuracy on question answering data sets than comparable baselines.

Lorenz Kuhn, Yarin Gal, Sebastian Farquhar• 2023

Related benchmarks

TaskDatasetResultRank
Hallucination DetectionTriviaQA
AUROC0.8192
621
Hallucination DetectionHotpotQA
AUROC0.8184
249
Hallucination DetectionTriviaQA (test)
AUC-ROC73
243
Question AnsweringTriviaQA
EM70.2
182
Hallucination DetectionTruthfulQA
AUC (ROC)0.656
178
Hallucination DetectionHaluEval (test)
AUC-ROC61.57
176
Hallucination DetectionHaluEval
AUROC0.682
131
Hallucination DetectionGSM8K
AUROC72.51
115
Correctness PredictionTriviaQA
AUROC0.8312
113
Hallucination DetectionTruthfulQA (test)
AUC-ROC71
112
Showing 10 of 262 rows
...

Other info

Follow for update