Research Careers Contact

GlossaryConfidence score

Confidence score

A confidence score is a number attached to a model's output that estimates the probability that the output is correct. Systems use it to decide what to accept automatically, what to send for review and when to try a stronger model.

How it works

Classification and detection models produce a probability for each possible label, and the top probability serves as the confidence score. Language models have token probabilities, which give a rough signal, and they can also be asked to state their own confidence or to judge whether an answer is true. Research found that large language models are reasonably good at judging whether their own answers are correct on some tasks, though less so on unfamiliar ones.

A score is only useful if it is calibrated: among all outputs scored at 0.9, about nine in ten should be correct. Research on deep neural networks showed that they are often overconfident, giving high scores to wrong answers, and that a simple fix called temperature scaling, fitted on held-out data, improves calibration a great deal.

Systems also build confidence from agreement. Sampling several answers and checking whether they match, or comparing a claim with retrieved sources, gives a signal that does not depend on the model's own estimate.

Confidence score vs accuracy

Accuracy is measured over a whole set of outputs: how many were right. A confidence score is a per-output estimate. A model with high accuracy and poor calibration still sends confident wrong answers through. Both have to be measured on real data.

Why it matters

Confidence thresholds decide the split between automatic handling and human review. A well-calibrated score lets a team set that threshold to match the cost of an error. An overconfident score lets errors through with no flag, and an underconfident one floods reviewers with work the model handled correctly.

How to get it right

  • Measure calibration on real data, not only accuracy.
  • Calibrate scores on held-out data before setting thresholds.
  • Set thresholds by the cost of an error for each task.
  • Combine model scores with agreement checks and source checks.
  • Recalibrate after changing the model, the data or the task.
  • Track how often reviewed low-confidence items were actually wrong.

Confidence scores in robotics and drone hardware

Inspection systems on a production line flag defects with a confidence score, and the threshold sets how many boards go to a human inspector. Too low a threshold floods reviewers with false calls. Too high lets defects through. On robots, detection confidence decides when the vehicle acts on what it sees and when it slows, stops or calls an operator. Document tools use the same split: a value read from a datasheet with high confidence goes into the parts record, while a low-confidence pin count or temperature rating goes to an engineer with the source page attached.

Learn more