liveBook · Manning

Confidence threshold

As explained in Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI

A cutoff on an annotation confidence measure chosen to achieve a desired level of annotation accuracy.

A confidence threshold is a cutoff for deciding when to trust an annotation or model prediction. Setting it requires balancing annotation accuracy against the cost of additional review and the risk of excluding difficult, nonrandom examples. section 8.3.5 section 9.3.1

For annotations, first choose a confidence measure. It can use the highest label probability, the difference between competing labels, or the full probability distribution. Compare the measure against ground-truth data to find a cutoff that meets the desired accuracy. If using uncertainty instead of confidence, trust items below the uncertainty cutoff rather than above it. section 8.3.5

Choosing an annotation cutoff

For one set of annotations, ground-truth comparisons indicate that trusting items with agreement uncertainty below about 0.65 achieves approximately 0.96 annotation accuracy. The cutoff applies to that uncertainty measure and evaluation data; it is not a universal threshold. section 8.3.5

When an annotation falls below the confidence threshold, possible actions include:

  • Send it to another annotator and recalculate confidence. section 8.3.5
  • Ask an expert annotator to adjudicate the correct label. section 8.3.5
  • Exclude it, if review is impractical. This wastes prior effort and risks bias because difficult tasks are unlikely to be random. section 8.3.5

A model can also supply labels for predictions above a confidence threshold. Human review can help tune the cutoff. Per-label thresholds, or selecting the top N predictions per label, can prevent easy-to-predict labels from dominating. Confident predictions alone may amplify bias or miss novel cases, so combine them with active learning for more representative data. section 9.3.1

A detection threshold serves a different purpose when selecting candidates for object detection: keep it low to avoid finding only objects similar to those already in the data. A low cutoff can produce many false positives, so sample across confidence bands rather than simply raising it. Reviewing non-objects can also help the model learn what not to detect. section 6.1.5

Figure 6.5 Stratifying by confidence: sampling an equal number of items at 0–10% confidence, 10–20% confidence, and so on up to 90–100% confidence. In this example, one item is sampled from each 10% confidence interval for label A. Stratifying by confidence helps most when you have a large number imbalance between labels.

The figure illustrates sampling equal numbers from confidence intervals, preserving lower-confidence candidates without reviewing them all. section 6.1.5

How Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI covers it

How deep it goes
Explains confidence measures, ground-truth threshold selection, review options, and sampling tradeoffs.
Examples
Uses an annotation uncertainty cutoff near 0.65 for approximately 0.96 accuracy and object-detection samples drawn from confidence bands.
What you can do after
Operate/configure confidence thresholds using ground-truth comparisons, per-label choices, and review or sampling strategies.
How it connects
Connects confidence thresholds to annotation uncertainty, active learning, object detection, bias, and semi-supervised learning.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI. The section links point to the parts of the book it draws on.