An extraction confidence score, also called field confidence, is a number attached to each value that a system extracts from a document, expressing how likely that value is correct. In Document AI, these scores decide whether an invoice total, a date or a name flows straight through to downstream systems or is routed to a human reviewer.
Scores usually range from 0 to 1 or 0 to 100. They are produced by the OCR engine, the extraction model or a separate verification step, and they are only useful when they are calibrated: a field scored at 0.9 should be right about nine times out of ten. Without calibration, a confidence score is merely a ranking signal and cannot safely drive automation.
How extraction confidence scores are produced
An extraction confidence score combines evidence from several pipeline stages into one estimate per field. Character recognition contributes per-character or per-word probabilities, the extraction model contributes the probability of the predicted label or span, and business rules contribute validation outcomes such as a passing checksum.
| Signal source | What it measures | Typical weakness |
|---|---|---|
| OCR word confidence | Certainty of recognized characters | Ignores whether the right field was chosen |
| Token classification probability | Softmax score of the field label | Often overconfident without calibration |
| Generative model log-probabilities | Likelihood of the generated value tokens | Unavailable or unstable in some APIs |
| Validation rules | Format, checksum, cross-field consistency | Binary, covers only some fields |
| Agreement between models | Consistency of independent extractions | Doubles inference cost |
Layout-aware models such as LayoutLM output token-level probabilities that are aggregated into a field score, commonly by taking the minimum or the mean over the span. Taking the minimum is more conservative, because one doubtful digit can make an amount wrong.
Calibration and why raw scores mislead
A score is calibrated when its stated probability matches the observed accuracy. Modern neural networks tend to be systematically overconfident, so raw softmax values cluster near 0.99 even for wrong answers. Language model extraction adds another issue: a verbal self-assessment such as “high confidence” is weakly correlated with correctness.
Teams calibrate scores on a held-out labeled set that reflects production documents. The table lists common techniques.
| Technique | How it works | When to prefer it |
|---|---|---|
| Temperature scaling | Divides logits by one fitted constant | Single model, plenty of validation data |
| Platt scaling | Fits a logistic curve to raw scores | Binary correct or incorrect outcome |
| Isotonic regression | Learns a monotonic mapping from bins | Large datasets, irregular distortion |
| Per-field calibration | Separate mapping for each field type | Fields with very different difficulty |
Calibration quality is measured with expected calibration error (ECE) and reliability diagrams. Calibration must be repeated after model updates or when the document mix changes, because a new supplier layout can shift accuracy without moving the scores.
Thresholds and straight-through processing
The business value of a confidence score comes from threshold-based routing. Fields above an acceptance threshold are posted automatically; fields below it go to a review queue. The share of documents that pass without any human touch is the straight-through processing (STP) rate.
Choosing a threshold is a trade-off between automation and error rate. Raising it lowers the number of wrong values that slip through but sends more correct values to people. The right setting depends on the cost of a missed error compared with the cost of a review.
| Field type | Typical threshold | Reason |
|---|---|---|
| Payment amount | 0.98 or higher | Errors cause direct financial loss |
| Bank account number | 0.99 plus checksum | Fraud and misdirected payment risk |
| Invoice date | About 0.90 | Errors are visible and easy to correct |
| Supplier name | About 0.85 plus master data match | Lookup corrects small spelling errors |
| Free-text description | About 0.70 | Low impact on downstream processes |
Thresholds should be set from a precision-coverage curve built on labeled data: for each candidate threshold, measure the accuracy of accepted fields and the share of fields accepted, then pick the point that meets the target error rate.
Field, document and table confidence
Confidence can be expressed at several levels, and each answers a different operational question. Field confidence supports targeted review of single values. Document confidence, often the minimum over required fields, decides whether the whole document can skip review. For line item extraction and table extraction, row-level and cell-level confidence help reviewers focus on the uncertain parts of large tables.
A related but separate signal is classification confidence, which estimates whether the document type was recognized correctly. A low classification score should block extraction results, because the wrong schema makes all field scores meaningless.
Limitations and common mistakes
Confidence scores reduce review work only when they are treated as measured statistics rather than promises. The following mistakes appear frequently in production deployments.
- Using one global threshold: fields differ in difficulty and in the cost of errors.
- Trusting vendor scores without testing: scores from different engines are not comparable.
- Ignoring missing fields: a model may confidently return nothing when a value exists.
- Confusing OCR confidence with extraction confidence: perfectly read text can still be assigned to the wrong field.
- Never recalibrating: drift in templates, scan quality or languages silently erodes reliability.
Reviewer corrections are the best source of fresh labels. Feeding them back into calibration and threshold tuning keeps the scores honest over time.
A non-technical view
An extraction confidence score is the software saying how sure it is. It reads a value from a document, such as a total amount. Then it adds a number that shows its certainty.
High scores mean the value can usually go through on its own. Low scores mean a person should check it. The score helps only if it is honest about its own mistakes, so teams test it against real documents.
A concrete example
An accounts payable team processes about 12,000 supplier invoices per month. Its extraction system reads the supplier, date, total, tax amount and bank details. At first, the team accepts every field scored above 0.90, but an audit of 1,000 invoices shows that about 4 percent of accepted totals are wrong, because raw scores are overconfident.
The team calibrates scores per field with isotonic regression on 5,000 labeled invoices. It then raises the total amount threshold to 0.98 and requires a checksum and a vendor master data match for bank details. The straight-through rate settles near 70 percent, errors in accepted totals fall below 0.5 percent, and reviewers now see only the fields that genuinely need attention.