The four parts of a criterion.
“It should be accurate” cannot be accepted or rejected. This can: “On the 250 held-back orders, the quantity on every line posted without review is correct in at least 99.9% of lines. A line below the confidence level goes to the review queue.”
That sentence names four things. Leave one out, and the discussion at the end of the phase is about opinions.
- The field or question. What exactly must be right: the quantity on an order line, the queue an email is sent to, the source an answer cites.
- The sample. Which cases it is measured on, who decided the right answers, and which cases the system has never seen.
- The threshold. The share that must be right, as a number.
- The consequence. What happens to a case the system is unsure about, and what happens to the project if the threshold is missed.
Choosing the sample, and holding part back.
Take the sample from real traffic: every sender, every format, and a full month so that month-end is in it. A sample of the tidiest cases measures nothing you will meet in production.
The right answers come from the people who do the work, taken from what was finally entered or decided. A sample labeled by the supplier measures the supplier’s understanding of your process.
Before any work starts, set part of the sample aside. The system is built and tuned on the rest, and accepted on the part it has never seen: the evaluation set. Use it once. If the build is adjusted after seeing those results, the set is used up, and acceptance needs a fresh one.
Size it for the claim. If a test finds no errors in a number of cases, the true error rate can still be about 3 divided by that number (the “rule of three”, at 95% confidence). Three hundred clean cases support “under 1%”, not “99.9% correct”. This is why field-level criteria count values, not documents: 250 orders hold about 4,000 values.
Setting thresholds from the cost of an error.
Set one threshold per field, not one for the document. A single figure hides the field that matters: an order can be 98% right overall and still ship the wrong quantity.
Then do the multiplication. An order with sixteen values, each right 99% of the time, is right in every value only 85% of the time. At 99.9% per value it is 98%. Per-field thresholds have to be stricter than they first sound.
Start from two numbers you have, or can measure in two weeks: how often the manual process gets the field wrong today, and what one error costs. A wrong quantity is a return and a credit note. A wrong internal reference is an annoyance. The first deserves the stricter threshold.
There are two ways to be wrong, and they do not cost the same. A wrong value that goes through unreviewed is expensive. A correct value sent to review costs a minute. The confidence threshold trades one for the other, so agree both numbers: the accuracy of what goes straight through, and the share that must go straight through for the project to be worth it.
One caution. A model’s confidence score is not a probability until it has been checked against your sample. A widely cited study of modern neural networks found their scores poorly calibrated: more confident than they were accurate. Set the confidence level from measured results, never from the score’s face value.
What happens below the threshold.
For a single case, the answer is a queue. The case goes to a named person, with the uncertain values marked, inside a time limit agreed in advance. “The system flags it” is not a consequence until someone owns the flag.
The decision to go live belongs to the buyer, on a written report that lists every error. For a field that misses its threshold, there are three honest outcomes:
- Raise the confidence level. More cases go to review, the rest get more accurate, and the straight-through share drops. Measure both again.
- Fix the cause, such as a missing reference table or one sender’s layout, and measure again on fresh held-back cases.
- Leave the field manual. The rest of the document can still be automated around it.
A table you can copy.
One row per criterion. Replace the values with yours: the four columns are the point.
| Criterion | Measured on | Threshold | If it is not met |
|---|---|---|---|
| Accuracy of each field posted without review | Held-back cases, labeled by your team | ≥ 99.9% per field | Confidence level raised; measured again on fresh cases |
| Cases posted without review that contain any wrong value | Held-back cases | Below today’s manual error rate | No go-live |
| Share of cases handled without review | Held-back cases, then a parallel run on live cases | ≥ 50% | Scope reduced to the senders that pass, or the phase stops |
| Every decision traceable | Audit log, sampled | 100% of cases | Release blocked |
| Time a case waits in review | Parallel run | Within one working day | Review capacity agreed before go-live |
| Cost per case | Provider invoices during the parallel run | Within the agreed limit | Model or provider changed; evaluation repeated |
Common mistakes.
- One accuracy figure for the whole document instead of one per field.
- A sample chosen or labeled by the supplier.
- Acceptance on the same cases the system was built on.
- A threshold of 100%. Nothing reaches it, the manual process included, and the criterion turns into a negotiation.
- No baseline, so nobody can say whether 97% is an improvement.
- No rule for after go-live. Inputs drift and providers change their models: measure again on a small fresh sample every month, and after any change.
Sources.
- James A. Hanley and Abby Lippman-Hand, If Nothing Goes Wrong, Is Everything All Right? Interpreting Zero Numerators, JAMA 249(13), 1983. The rule of three.
- Chuan Guo, Geoff Pleiss, Yu Sun and Kilian Q. Weinberger, On Calibration of Modern Neural Networks, ICML 2017.