Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation
arXiv:2302.09664
Abstract
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.
arXiv commentInternational Conference on Learning Representations 2023 (Spotlight)
Cited by in corpus (6)
- RELIC: Investigating Large Language Model Responses using Self-Consistency
- Reducing Large Language Model Safety Risks in Women's Health using Semantic Entropy
- On the attribution of confidence to large language models
- Simplifying Data Integration: SLM-Driven Systems for Unified Semantic Queries Across Heterogeneous Databases
- Information Theory of Meaningful Communication
- What Comes Next? Evaluating Uncertainty in Neural Text Generators Against Human Production Variability