What is AI uncertainty estimation?
Uncertainty estimation produces, for each model prediction, a measure of how far it can be trusted. Two main types are distinguished: aleatoric uncertainty captures noise inherent in the observations, while epistemic uncertainty reflects missing knowledge that enough data could explain away.
Model calibration asks how well predicted probabilities reflect the true likelihood of being correct. Uncertainty estimation covers methods producing such confidence measures, ideally well calibrated.
- Topic
- Evaluation and quality
- Also known as
- Uncertainty quantification, predictive uncertainty
- Origin
- Bayesian models; 2016 and 2017 deep learning studies
How AI uncertainty estimation works
- Bayesian neural networks learn a distribution over weights but need significant changes to training and are computationally expensive.
- Dropout training can be cast as approximate Bayesian inference, giving model uncertainty from existing networks at no cost in computational complexity or test accuracy.
- Deep ensembles combine several networks; they parallelise easily and can express higher uncertainty on out-of-distribution examples.
- For language models several answers are sampled, answers with the same meaning are clustered and entropy is computed over meanings: semantic entropy.
In more detail
Semantic entropy
Because one idea can be expressed in many ways, measuring uncertainty over word sequences can mislead. Semantic entropy computes uncertainty at the level of meaning rather than specific word sequences: several answers are sampled for each question and clustered by whether answers in the same cluster entail each other bidirectionally, a step that relies on natural language inference. The method needs no task-specific data and generalises to unseen tasks.
Commonly confused terms
| Term | How it differs |
|---|---|
| Out-of-distribution detection | Out-of-distribution detection focuses on deciding whether an input comes from the training data distribution. Uncertainty estimation produces a confidence measure for every prediction; because a good estimate can show higher uncertainty on out-of-distribution examples, it also supports such detection. |
Why AI uncertainty estimation matters for on-premises AI
When uncertainty is high a system can avoid answering, warn the user or back the answer with more grounded retrieval. A 2024 Nature study used semantic entropy to detect arbitrary and incorrect generations, a type of hallucination, without task-specific data and improved question-answering accuracy by refusing uncertain questions. A 2022 study found larger language models well calibrated on multiple choice questions posed in the right format.
An insurer's claims classifier outputs an uncertainty score with each file. Files above a threshold skip automatic processing and go to expert review as a human-in-the-loop step.
Common questions
Can a model estimate its own confidence?
Partly. In a 2022 study models were asked to propose answers and then evaluate the probability that they were correct, with encouraging results. Models also learned to predict whether they know an answer but struggled to calibrate this on new tasks.
Does uncertainty estimation catch all hallucinations?
No. The 2024 study's method targets a subset of hallucinations, arbitrary and incorrect generations.
Related terms
- Model calibration
- Hallucination detection
- Out-of-distribution detection
- Ensemble learning
- Conformal prediction
Sources
- What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?, NIPS, 2017
- Simple and Scalable Predictive Uncertainty Estimation using Deep Ensembles, NIPS, 2017
- Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning, ICML, 2016
- Detecting hallucinations in large language models using semantic entropy, Nature, 2024
In the glossary: Glossary, R to Z