Skip to content
Last Dictionary

uncertainty quantification

nounAlso: UQ, epistemic uncertainty, aleatoric uncertainty, predictive uncertainty, model uncertainty, deep ensembles, Monte Carlo dropout

In plain wordsMeasuring how unsure an AI system's predictions are, and why, so that people know when to trust an answer and when to double-check it.

  1. The estimation and communication of how uncertain a model's predictions are. Two sources are commonly distinguished: aleatoric uncertainty, irreducible randomness or ambiguity in the data (a blurry image, a question with several valid answers), and epistemic uncertainty, the model's lack of knowledge, which more data could reduce and which grows on out-of-distributionout-of-distribution, adj.: Describes inputs that differ from anything an AI system saw in training — like a model trained on daytime photos facing a night scene — where its answers become less reliable. inputs. Methods include BayesianBayesian inference, n.: Reasoning that treats unknowns as uncertain beliefs and updates them with evidence using Bayes' theorem. The result is not one answer but a range of answers, each with a probability. approaches (posteriors over weights, Laplace approximations, variational inferencevariational inference, n.: A way of approximating a hard-to-compute probability distribution by picking the closest match from a simpler family of distributions, turning a hard problem of adding up every possibility into an optimization problem.), deep ensembles of independently trained networks, Monte Carlo dropout, distance-aware and evidential models, distribution-free conformal predictionconformal prediction, n.: A way to wrap any prediction model so that, instead of one guess, it gives a range or set of answers that contains the truth a chosen share of the time, such as 90%., and post-hoc calibrationcalibration, n.: How well a model's stated confidence matches reality: when a well-calibrated system says it is 80% sure, it turns out to be right about 80% of the time.. For language modelslarge language model, n.: A computer program trained on enormous amounts of text to predict the words that come next. At vast scale, that simple skill lets it chat, answer questions, translate, summarize and write code., uncertainty is estimated from token log-probabilitieslog probability, n.: The logarithm of the probability a model gives to a token or a text. Computers use it because multiplying many tiny probabilities runs into rounding problems, whereas adding their logarithms does not., from the entropyentropy, n.: A measure of unpredictability. A fair coin toss has more entropy than a rigged one; an AI that is unsure of its next word has high entropy. or disagreement of several sampled answers ('semantic entropy'), from verbalized confidence, or from probesprobing, n.: Testing what information is hidden inside an AI model by training a small, separate predictor on the model's internal activity: if the predictor can recover something, the model has stored it somewhere. on internal activationsactivation, n.: The numbers a neural network computes inside itself as it processes an input — a reading of which of its artificial neurons are firing, and how strongly, at that moment., and is used to trigger abstentionabstention, n.: When an AI declines to answer because it is not sure enough — saying 'I don't know' or asking for more information — instead of guessing and risking a confident mistake., retrieval or human review and to flag likely hallucinationshallucination, n.: When an AI states something false or made up — a fake fact, quotation or source — fluently and confidently, as if it were true..

    Disagreement among five sampled answers was our best uncertainty signal for routing questions to a human.

Origin

The aleatory–epistemic distinction comes from the philosophy of probability and engineering risk analysis. Yarin Gal and Zoubin Ghahramani's Monte Carlo dropout (2016), Balaji Lakshminarayanan and colleagues' deep ensembles (2017) and Alex Kendall and Gal's 2017 analysis of the two uncertainty types brought it into deep learning; semantic entropy for language models was proposed by Lorenz Kuhn, Gal and Sebastian Farquhar (2023).

Related

See also
  • calibrationcalibration, n.: How well a model's stated confidence matches reality: when a well-calibrated system says it is 80% sure, it turns out to be right about 80% of the time.
  • conformal predictionconformal prediction, n.: A way to wrap any prediction model so that, instead of one guess, it gives a range or set of answers that contains the truth a chosen share of the time, such as 90%.
  • Bayesian inferenceBayesian inference, n.: Reasoning that treats unknowns as uncertain beliefs and updates them with evidence using Bayes' theorem. The result is not one answer but a range of answers, each with a probability.
  • abstentionabstention, n.: When an AI declines to answer because it is not sure enough — saying 'I don't know' or asking for more information — instead of guessing and risking a confident mistake.
  • out-of-distributionout-of-distribution, adj.: Describes inputs that differ from anything an AI system saw in training — like a model trained on daytime photos facing a night scene — where its answers become less reliable.
  • hallucinationhallucination, n.: When an AI states something false or made up — a fake fact, quotation or source — fluently and confidently, as if it were true.
  • entropyentropy, n.: A measure of unpredictability. A fair coin toss has more entropy than a rigged one; an AI that is unsure of its next word has high entropy.

Mentioned in

Bayesian inferenceBayesian inference, n.: Reasoning that treats unknowns as uncertain beliefs and updates them with evidence using Bayes' theorem. The result is not one answer but a range of answers, each with a probability., fuzzy logicfuzzy logic, n.: A kind of logic that allows degrees of truth, so a statement like 'the room is warm' can be 70 percent true, which helps machines handle vague everyday categories., Bayesian neural networkBayesian neural network, n.: A neural network that keeps a whole range of plausible settings for its internal numbers instead of one best guess, so that it can say how unsure it is about each prediction., Dempster–Shafer theoryDempster–Shafer theory, n.: A theory of reasoning with uncertain evidence that lets you hold back belief — in effect saying 'I don't know' — instead of being forced to divide all your confidence among the possibilities.