How to Set Confidence Thresholds for AI Document Extraction
How should you set confidence thresholds for AI document extraction?
Set a separate confidence threshold for each extracted field, based on what an error in that field would cost. Then test each threshold on a labelled sample of your own documents before go-live. Fields at or above the threshold continue automatically. Fields below it go to a person for review. Revisit the thresholds whenever the model, the document mix or the downstream process changes.
A single threshold for the whole document is easy to configure, but it usually sets the wrong level of caution for most fields. A payment amount and a free-text description should not share a threshold.
What does a confidence score actually tell you?
A confidence score is the extraction system's own estimate of how likely a value is to be correct. It is useful for ranking values from more to less trustworthy. It does not tell you how often a value is right in your documents unless you check it against labelled examples.
Scores are often poorly calibrated. A value scored at 0.9 is not necessarily right nine times in ten. Calibration also varies between fields and document types. Treat the score as an input that you measure, and do not read it as a guarantee.
Confidence also cannot catch every error. A model can be highly confident about a value it read correctly from the wrong part of the page, such as a supplier's bank details printed in a remittance footer. Keep validation rules alongside thresholds. How AI document processing works explains where scores come from in the extraction pipeline.
Why should thresholds be set per field by cost of error?
The right threshold depends on what happens when a wrong value passes through without review. Ask three questions for each field:
- What does a wrong value cause? A misdirected payment, a wrong tax entry, a delayed order, or a cosmetic error in a description.
- Will a later control catch it? For example, a total checked against line items, or a purchase order match.
- How easy is it to reverse? Correcting a draft record costs less than recovering a payment.
Fields with a high cost of error, no downstream check and hard reversal need a high threshold, or mandatory review whatever the score. Fields with a low cost of error and a reliable later check can tolerate a lower one.
What does a threshold decision table look like?
Group fields into tiers and decide the approach for each tier before testing any numbers.
| Field tier | Example fields | Cost of an undetected error | Starting approach |
|---|---|---|---|
| Critical | Bank account, payee, payment amount | Money sent to the wrong place or in the wrong amount | Always review, or a very high threshold plus a validation rule |
| High | Invoice total, tax amounts, PO number | Wrong posting or a failed match that needs rework | High threshold, with cross-checks against PO and line totals |
| Medium | Invoice date, due date, supplier reference | Wrong ageing, missed duplicate check | Moderate threshold, with format and range rules |
| Low | Line descriptions, notes, contact name | Cosmetic or easily corrected | Lower threshold, with spot checks in sampling |
The tier sets the level of caution. The labelled sample sets the actual number.
How do you test thresholds on a labelled sample?
Build a sample of real documents with the correct value for every field you extract, checked by someone who knows the process. Include the difficult cases: poor scans, unusual layouts, multiple pages, handwritten notes and other languages, in proportion to how often you receive them. Building a test dataset for ERP and CRM AI agents covers how to assemble and maintain one.
Run extraction on the sample and record, for each field, the value, the score and whether the value was correct. Then, for each candidate threshold, work out two figures:
- Auto-accepted error rate: the share of values at or above the threshold that were wrong.
- Review rate: the share of values below the threshold that would go to a person.
Raising the threshold lowers the first figure and raises the second. Choose the lowest threshold whose auto-accepted error rate is acceptable for the tier, then check that your reviewers can handle the review rate it produces.
What does a worked example look like?
The numbers below are illustrative only. They are not measurements from any product or customer.
A team extracts the invoice total from a labelled sample of 500 supplier invoices. It agrees that for this high-tier field, no more than 1 auto-accepted value in 200 may be wrong before other checks catch it.
| Candidate threshold | Values auto-accepted | Wrong among auto-accepted | Sent to review |
|---|---|---|---|
| 0.80 | 470 | 9 | 30 |
| 0.90 | 440 | 4 | 60 |
| 0.95 | 400 | 1 | 100 |
| 0.98 | 330 | 0 | 170 |
At 0.90, 4 wrong values in 440 is about 1 in 110, which misses the target. At 0.95, 1 in 400 meets it, with 100 invoices in 500 reviewed for this field. At 0.98 the sample shows no errors, but review volume rises by 70 invoices for little extra assurance on a sample this size. The team picks 0.95 and keeps the check of totals against line items as a second control.
For the line description field, the same analysis might support a much lower threshold, because errors there are cheap and visible. The bank account field stays on mandatory review whatever its score.
A sample of 500 cannot reliably show very rare errors. Where a single miss is expensive, rely on review and validation rules and do not treat a clean sample as proof.
How should low-confidence fields be routed to review?
Route the field, not only the document. Show the reviewer the extracted value, the score, the reason it was flagged and the region of the source page it came from. Let the reviewer confirm, correct or reject the value, and record which they chose.
Hold dependent steps until review is complete. If the total is under review, the invoice should not be posted. Designing an AI workflow exception queue covers ownership and priority, and planning human capacity for exception review helps you check that the review rate you chose is sustainable.
Reviewer corrections are labelled data. Feed them back into the sample to keep testing current.
When should thresholds be revisited?
Re-test thresholds against the labelled sample when any of these change:
- The extraction model or its version, including provider-side updates.
- Prompts, templates or pre-processing such as image clean-up.
- The document mix, such as new suppliers, layouts, languages or scan sources.
- The downstream process, such as removing a cross-check that used to catch errors.
Between changes, sample auto-accepted values regularly to check that the error rate has not drifted. Validating model updates in AI automation describes a release check that fits this step, and running an AI workflow in shadow mode lets you compare new thresholds on live traffic before switching them on.
What are the common mistakes?
One threshold for every field. It reviews too much low-risk data and too little high-risk data.
Copying a default value. A vendor default or a number from another team was not tested on your documents.
Treating the score as accuracy. Measure how scores relate to correctness before you rely on them.
Ignoring review capacity. A threshold that sends more work to review than people can clear creates a backlog. It does not add control.
Dropping validation rules. Confident errors exist. Format, range and cross-document checks still matter.
Setting thresholds once. Model and document changes shift scores without notice.
When does this approach not apply?
If your extraction system returns no field-level scores, or returns scores that show no relationship to correctness on your sample, thresholds cannot do this job. Rely on validation rules, cross-checks and sampled review, and consider whether the system suits the workflow. For very low volumes, reviewing every document may cost less than building and maintaining a labelled sample.
Frequently asked questions
What is a good default confidence threshold?
There is no reliable default. The right value depends on the field, the model and your documents, so derive it from a labelled sample.
How large should the labelled sample be?
Large enough to include each important document type and difficult case several times. The rarer and costlier the error you need to detect, the larger the sample needs to be.
Should a low score on one field send the whole document to review?
Only when other fields depend on it. Otherwise route the single field, so reviewers check what is uncertain and nothing more.
Can thresholds replace human approval?
No. Thresholds decide what needs checking. Approval rules for payments and record changes still apply, as covered in human-in-the-loop approval steps.