Uncertainty
In AI, uncertainty is how unsure a model's prediction is, and whether that uncertainty comes from noise in the data or from gaps in the model's knowledge.
Most models give an answer without saying how sure they are, and that is often the more useful information. A standard regression model might predict a house price of 853,000. Google's machine learning glossary contrasts this with a Bayesian neural network, which predicts a distribution instead, the same 853,000 with a standard deviation of 67,200. Knowing the spread tells a user how much weight to put on the number.
Researchers separate two kinds. In their 2017 paper on uncertainty in deep learning for computer vision, Alex Kendall and Yarin Gal described aleatoric uncertainty as noise inherent in the observations, which more data cannot remove, and epistemic uncertainty as uncertainty in the model itself, which enough data can explain away. A blurry photo is an aleatoric problem; an image unlike anything in the training data is an epistemic one.
For language models, the question becomes whether a model knows when it does not know. A 2022 study by Saurav Kadavath and colleagues found that larger models were well calibrated on multiple-choice and true or false questions when the questions were presented in the right format, and that models could be trained to predict whether they would answer a question correctly. That prediction generalised only partly, with weak calibration on new kinds of task.
Uncertainty also applies to evaluation results. A benchmark score is an estimate from a sample of questions, so it carries error. Anthropic's November 2024 guidance recommends reporting each eval score with a standard error and confidence interval, which makes clear when two models are effectively tied.
In practice, systems that report their uncertainty are easier to use safely: they can pass doubtful cases to a person, ask for more information or abstain. A model that is confidently wrong is more dangerous than one that says it is unsure.
Aleatoric uncertainty comes from noise or randomness in the data itself and cannot be reduced by collecting more data. Epistemic uncertainty comes from the model's limited knowledge, for example on inputs unlike its training data, and can in principle be reduced with more or better data. Partly. A 2022 study by Kadavath and colleagues found larger models were well calibrated on multiple-choice and true or false questions in the right format, and could learn to predict whether they knew an answer, but that ability transferred poorly to new kinds of task. It is the set of methods for estimating how uncertain a model's predictions are, such as predicting a distribution rather than a single value, as a Bayesian neural network does, or checking that a model's stated probabilities match how often it is actually right. The aim is a number that tells users how far to trust each prediction.Common questions
What is the difference between aleatoric and epistemic uncertainty?
Do large language models know when they are uncertain?
What is uncertainty quantification?
Search for "uncertainty quantification deep learning", "aleatoric vs epistemic uncertainty" or "LLM calibration". Peer-reviewed papers on arXiv and in major conference proceedings, machine learning glossaries from established providers, and evaluation research from AI labs are the most dependable. Be cautious with products that display confidence scores without explaining how they were calibrated.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.