Models for Deciding Which Documents Need Manual Review: Start With a Calibrated Error Predictor
A document needs human review when review is expected to prevent a costly error. Here is how selective classification, calibration, learning to defer and conformal risk control fit into one routing workflow.
A document needs manual review when a reviewer is expected to prevent a material error that costs more than the review itself. The practical starting model is a calibrated error predictor, such as logistic regression or boosted trees, that combines critical-field confidence with missing data, validation failures, image quality and document novelty. Its review threshold should be chosen on held-out data with a risk-coverage curve, the tool from selective classification. Learning to defer becomes worth the effort once reviewer outcomes have been measured, and conformal risk control fits when one specific loss must stay under a stated limit.
Review is worth paying for only when it prevents a material error
The question "does this document need review?" is easier to answer once four terms are pinned down. A document is materially incorrect when its processed output would cause a wrong payment, a wrong decision or a correction later. Error severity is the loss when that happens. Reviewer effort and delay are the cost of a human look. Reviewer success is the share of real errors that a reviewer actually catches.
Microsoft's transparency note for Document Intelligence, last updated on October 19, 2026, gives a useful example of severity. One wrong character in an invoice may be insignificant, but the same error in the paid amount can make the whole invoice incorrect. The same note shows why counting words misleads: 2 wrong words out of 30 is a 6% word error rate, but if they fall in 2 of 10 names, the name error rate is 20%.
These definitions lead to a simple expected-cost rule for each document:
review if (p_auto - p_reviewed) × L > C_review
Here p_auto is the probability of a material error if the document is processed automatically, and p_reviewed is the probability after review. L is the loss from an error, and C_review is the cost of reviewer time and delay. The rule assumes one average loss per error, and it assumes that review never introduces new errors. Both assumptions should be replaced with measured values where they are available.
Suppose that a missed error costs $200 on average, a review costs $2.67, and reviewers catch 80% of the errors they see. Review then pays when 0.8 × p_auto × 200 > 2.67, which means a calibrated error probability above about 1.7%.
The rule needs labels that record real errors. Three kinds of history are easy to confuse:
- A historical routing label records that someone sent a document to review. It shows past policy, not whether the document was wrong.
- A verified correction label records whether a reviewer or a later process actually changed a material field. It is the target that an error predictor should learn.
- A reviewer-performance record shows whether a reviewer who saw a document produced the correct final answer. Learning to defer needs this record.
A model that is trained on routing labels learns to copy the old routing policy. A model that is trained on verified corrections learns where errors actually occur.
Field confidence is a useful signal, but it is not a decision rule
Document extraction services already produce confidence scores. Microsoft's accuracy guide describes field confidence as an estimated probability that the prediction is correct, so a value of 0.95 should be right about 19 times out of 20. Its transparency note gives an example policy in which results at or above 0.80 go straight through and results below 0.80 go to a person.
The same documentation explains why that threshold cannot be copied into production. Microsoft says that customers "should conduct their own evaluations" and should run a pilot that represents their use case before they set thresholds. The accuracy guide says that not all fields return a confidence score. It also says that the confidence of the text-reading step does not affect key-value confidence, so both must be checked. A low document-type confidence points to a template or layout that differs from the training documents.
There is also a general reason for caution. Guo and colleagues showed at ICML 2017 that modern neural networks are poorly calibrated, unlike networks from a decade earlier. Their tests covered image and document classification. A score of 0.9 from such a model does not mean that the result is right 90% of the time on your documents.
A calibrated error predictor combines the signals into one probability
An error predictor is a separate, small model that estimates the probability that a processed document contains a material error. Its inputs are signals that the pipeline already produces:
- A low critical-field confidence on the amount, date, supplier or account field raises the chance that a key value is wrong.
- Missing data, such as a required field that came back empty, means that the record cannot be processed as it stands.
- Validation failures, such as line items that do not add up to the total, show an error that no confidence score would flag.
- Poor image quality, seen in a low read-step confidence, low resolution or rotation, makes misread characters more likely.
- Document novelty, such as a low document-type confidence or an unseen supplier, means that the extraction model has little matching training data.
Logistic regression and gradient-boosted trees both suit this task, because they train quickly on tabular features and their outputs can be calibrated. The scikit-learn documentation describes CalibratedClassifierCV, which fits the calibrator on data that the base model did not train on. It warns that fitting a calibrator on training-data outputs gives a biased result. Sigmoid calibration suits small samples, while isotonic calibration overfits small samples and does as well or better above about 1,000 examples.
A reliability diagram is the direct check. It groups predictions into bins and plots the average predicted probability against the observed error rate in each bin. The scikit-learn guide warns that a lower Brier score alone does not prove better calibration, because the score also rewards discrimination.
Extraction, error prediction, route choice and action execution should stay separate
A review gate is easier to test and to audit when each step has one job. The extraction step produces fields and confidences. The error predictor produces a probability of material error. A route chooser picks one allowed route. The workflow system then carries out that route.
The route chooser can be framed as a state, a question and a fixed list of options. A worked example for one supplier invoice might look like this:
- The state holds the extracted fields: a supplier that is new to the system, a total of $18,420.00, a due date and no purchase-order number. The line items sum to $18,240.00. The lowest critical-field confidence is 0.71, the read confidence is 0.93 and the document-type confidence is 0.64. The calibrated error probability is 9%.
- The question asks which processing route this invoice should take under the accounts-payable policy.
- The options are post automatically, send to an accounts-payable reviewer to check the total and purchase order, request a new scan, send to the supplier-onboarding team, and reject as an unsupported document type.
In this example, the 9% error probability is well above the 1.7% break-even, and the totals fail validation. The sensible route is the accounts-payable reviewer. The route chooser can only select from these options, and the workflow system, not the model, executes the choice. Keeping the steps apart means that a change in the extraction model can be tested without retraining the router.
A risk-coverage curve shows what each threshold buys
Geifman and El-Yaniv's 2017 paper on selective classification gives the vocabulary for this trade. The term coverage means the share of cases that the system accepts without abstaining. The term selective risk means the error rate among those accepted cases. The risk-coverage curve plots selective risk against coverage for every threshold. The authors also show that a confidence score only needs to rank cases well to be useful for this purpose, even if its values are not true probabilities.
For a document workflow, a team should measure each of these quantities separately on the final test set:
- Material-error recall is the share of all material errors that the gate sends to review.
- The error rate among automatically processed documents is the selective risk that downstream systems actually receive.
- Review volume is the share of documents sent to people, which sets staffing.
- Reviewer success is the share of routed errors that reviewers actually fix.
- Calibration is shown by a reliability diagram and an expected calibration error on the test set.
- Latency is the time that the gate adds per document, with the hardware stated.
- Total cost is processing plus review plus the expected loss from missed errors.
Two of these numbers are often confused. The share of all documents that are processed automatically and wrong is an overall expected loss. The error rate among automatically processed documents is a conditional rate, because it divides by the number of accepted documents. A gate can hold one steady while the other moves.
The test set must come from documents that the model has effectively not seen
Document data leaks easily, because many invoices from the same supplier share one template. If those invoices appear in both training and test data, the test score measures memorised layouts. The scikit-learn GroupKFold splitter keeps each group out of either training or testing, so grouping by supplier or template prevents this leak. StratifiedGroupKFold does the same while trying to keep the error rate similar across folds.
Traffic also changes over time. The scikit-learn guide warns that standard shuffled splits give poor estimates on time-correlated data, and TimeSeriesSplit trains on earlier periods and tests on later ones. A sound design uses three sets: one for training the error predictor, one for calibration and threshold choice, and a final test set that is drawn from later months and includes unfamiliar document types.
A gate that only learns from reviewed documents has a blind spot. Documents that went straight through were never checked, so their errors never become labels. Auditing a small random sample of automatically processed documents, for example one percent, gives unbiased labels for the accepted side of the gate. It also measures the error rate among accepted documents directly.
Learning to defer needs measured reviewer outcomes
Learning to defer trains the classifier and the rejector together, so the system learns which cases a human handles better than the model. Mozannar and Sontag's ICML 2020 paper builds this from "samples of the expert's decisions" and reduces it to cost-sensitive learning. A difficult document is not always one that a reviewer can fix, and this method can learn that difference.
The method needs records of what reviewers concluded and whether they were right, across many document types. Verma and Nalisnick showed at ICML 2022 that the original softmax formulation is "not calibrated with respect to expert correctness" and proposed a one-vs-all version that gives calibrated estimates. Mozannar and colleagues showed at AISTATS 2023 that common training methods can miss a good human-AI split even when one exists. Teams without reviewer-performance records should stay with the error predictor and the expected-cost rule.
Conformal risk control fits when one monotone loss can be named
Conformal risk control, by Angelopoulos, Bates, Fisch, Lei and Schuster at ICLR 2024, chooses a threshold on held-out calibration data so that the expected value of a chosen loss stays at or below a target. The paper's main theorem requires the loss to be bounded and non-increasing as the rule becomes more conservative. It also requires calibration and test documents to be exchangeable, which roughly means that they come from the same distribution. The paper shows that risk control can fail by an arbitrary amount when the loss is not monotone.
For document review, a loss that fits is "this document was processed automatically and contained a material error". That loss can only fall as more documents go to review, so the method can bound its average across all documents. The error rate among automatically processed documents is a ratio, and it is not the loss that this guarantee covers. A new supplier mix or a new template also breaks exchangeability, so the guarantee needs recalibration on recent data after traffic changes.
TOD is a candidate route chooser that should be benchmarked frozen and pinned
Parsec's TOD is one option for the route-choosing step. Parsec describes it as a "universal decision model" that reads text, images, policy and task state, and ranks the next action from a supplied list of allowed actions. It does not generate free text or invent actions. The TOD page lists a price of $0.30 per 1,000 decisions and says that TOD reads up to 48,000 tokens of context per decision.
TOD's predict function returns one probability per supplied option, and those probabilities sum to 1. That makes them scores that compare the listed routes, not a calibrated probability that the document is correct. They would need the same calibration and risk-coverage tests as any other score. The published release is LoRA adapters on google/gemma-4-12B-it plus a ModernBERT-base retriever. The adapters are listed as Apache-2.0, but the base weights are not included and users must accept the Gemma 4 licence.
A fair test pins the release labelled "TOD decision v1" from 29 September 2026 and keeps it frozen. On public JevBench, the TOD page reports that it scored below its own untrained base model, and the repo says that TOD is not state of the art there. The page and the repo also publish latency figures on different GPUs, so those two sets should not be combined. Parsec also offers to tune decision models on a customer's own decisions, with no published price. Custom tuning is worth testing only if frozen TOD and the simpler baselines leave a gap that held-out data can measure.
A month of 100,000 documents shows that review volume drives the cost
A worked example shows where the money goes. The assumptions are illustrative and should be replaced with your own numbers:
- The team processes 100,000 documents a month, and 3% of them contain a material error.
- A missed material error costs $200 on average.
- A review takes 4 minutes at a loaded $40 an hour, which comes to $2.67 per document.
- Reviewers catch 80% of the errors in the documents that they see.
- The gate sends 15% of documents to review, and those documents hold 80% of the material errors.
| Policy | Review cost | Missed errors | Loss from missed errors | Total |
|---|---|---|---|---|
| Review nothing | $0 | 3,000 | $600,000 | $600,000 |
| Review everything | $266,667 | 600 | $120,000 | $386,667 |
| Gate sends 15% to review | $40,000 | 1,080 | $216,000 | $256,000 plus gate fee |
The gate's 1,080 missed errors come from two places. Of the 2,400 errors that it routes, reviewers miss 480. The other 600 errors are in the 85,000 documents that went through automatically. That is 0.6% of all documents as an overall loss, but 0.71% among the automatically processed documents.
The gate itself costs little by comparison. TOD at its listed price would add $30 for 100,000 decisions. A prompted gpt-6-luna gate that reads 3,000 input tokens and writes 50 output tokens per document would cost about $32.50 at OpenAI's listed $0.10 and $0.50 per million tokens. A logistic regression has no per-call list price. A change of a few points in review volume or in error recall moves the total by thousands of dollars, so the choice between gates should be decided by those two measurements.
A gate is ready for production only after a documented head-to-head test
No published study compares field-confidence thresholds, calibrated error predictors, prompted models and option-scoring decision models on the same document-review task. That comparison has not been measured, so each team needs to run it on its own data before trusting any gate. A useful test includes explicit review rules, a field-confidence threshold, a calibrated logistic regression or boosted-tree model, a prompted baseline with a pinned model version, and any option-scoring decision model, frozen at a named release.
The report should name the dataset and its date range, the split method, every model version and the hardware used for latency. Each metric should carry a confidence interval, for example from a bootstrap over documents grouped by supplier. Risk-coverage curves for every candidate should be plotted on the same axes. The audit sample of automatically processed documents should continue after launch, because it is the only source of fresh labels for the documents that the gate accepts.
Sources
- Geifman and El-Yaniv, Selective Classification for Deep Neural Networks: https://arxiv.org/abs/1705.08500
- Guo et al., On Calibration of Modern Neural Networks: https://proceedings.mlr.press/v70/guo17a
- Mozannar and Sontag, Consistent Estimators for Learning to Defer to an Expert: https://proceedings.mlr.press/v119/mozannar20b.html
- Mozannar et al., Who Should Predict? Exact Algorithms for Learning to Defer to Humans: https://proceedings.mlr.press/v206/mozannar23a.html
- Verma and Nalisnick, Calibrated Learning to Defer with One-vs-All Classifiers: https://proceedings.mlr.press/v162/verma22c.html
- Angelopoulos et al., Conformal Risk Control (Google Research): https://research.google/pubs/conformal-risk-control/
- Angelopoulos et al., Conformal Risk Control (arXiv): https://arxiv.org/abs/2208.02814
- Microsoft Learn, Transparency note for Document Intelligence: https://learn.microsoft.com/en-us/legal/cognitive-services/document-intelligence/characteristics-and-limitations
- Microsoft Learn, Interpret and improve model accuracy and confidence scores: https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/concept-accuracy-confidence
- scikit-learn, Probability calibration: https://scikit-learn.org/stable/modules/calibration.html
- scikit-learn, Cross-validation: https://scikit-learn.org/stable/modules/cross_validation.html
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/
- Parsec, TOD model card: https://huggingface.co/parsecai/tod
- Parsec, TOD repository: https://github.com/daseinlabs/tod