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

  1. Bayesian neural networks learn a distribution over weights but need significant changes to training and are computationally expensive.
  2. Dropout training can be cast as approximate Bayesian inference, giving model uncertainty from existing networks at no cost in computational complexity or test accuracy.
  3. Deep ensembles combine several networks; they parallelise easily and can express higher uncertainty on out-of-distribution examples.
  4. 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

TermHow it differs
Out-of-distribution detectionOut-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.

ON-PREMISES EXAMPLE

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.

Sources

In the glossary: Glossary, R to Z

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.