Table of Contents
AI read your invoices. Which ones are wrong? We compared three checks on 240 extractions
A model that reads most of your invoices perfectly still leaves you with a problem: you do not know which ones are wrong. Checking every invoice by hand throws away the savings. Checking none lets a wrong equipment line or a misfiled charge reach the ledger.
In our invoice extraction test, six models read 40 hard invoices: equipment rental, paint supplier and workforce screening. That gave us 240 extractions from the first pass with an exact answer key, and 33 of them had at least one wrong value. On December 1, 2026 we tried three ways of flagging an extraction for review and counted what each one caught.
- A second cheap model caught all 33. Run the invoice through another low-cost model and flag any disagreement. It also flagged 23 clean invoices, so 23% of the pile went to review.
- TypeSafe's Jev caught 30 of 33 at its looser setting, but flagged 79 clean invoices too, sending 45% to review. At the stricter setting it caught 20 and sent 29%.
- Arithmetic caught 1 of 33. Checking that the lines add up to the subtotal found almost nothing, because a misread equipment number or a charge in the wrong field still adds up.
The short version: if you automate invoice entry, pay for a second read by a different cheap model. It cost us about a tenth of a cent per invoice.
| Test setup | |
|---|---|
| Date | December 1, 2026 |
| Extractions checked | 240: six models, 40 hard invoices each, first pass |
| With an error | 33 extractions, 76 wrong values out of 5,358 |
| Check 1, arithmetic | Line amounts add up to the subtotal; quantity times unit price equals the line amount |
| Check 2, second model | Claude Haiku 5.5 reads the same invoice; flag if any value differs (GPT-6 Luna when Haiku is the one being checked) |
| Check 3, TypeSafe | Jev 1.14 is shown the page images and asked a yes/no question about each extracted value; flag if any probability is below a threshold |
| Data | Every check on every value |
The three checks, per invoice
| Check | Invoices with an error caught | Clean invoices flagged | Share of all invoices sent to review |
|---|---|---|---|
| Arithmetic | 1 of 33 | 0 of 207 | 0.4% |
| Second cheap model | 33 of 33 | 23 of 207 | 23% |
| TypeSafe, flag below 0.3 | 20 of 33 | 49 of 207 | 29% |
| TypeSafe, flag below 0.5 | 30 of 33 | 79 of 207 | 45% |
A review queue of 23% that contains every bad invoice is a workable process. A queue of 45% that still misses three is not much better than reading everything.
Why arithmetic checks miss
Adding up the lines is the first check most teams build, and it is free. It failed here for a plain reason. The errors these models make are not sums that fail to balance.
- A misread identifier. The model returns equipment number 907687039 where the invoice says 907680739. The amount is right, so the total balances.
- A charge in the wrong field. A transportation surcharge lands under delivery or sales items, and the grand total is unchanged.
- A dropped prefix or suffix. Job number 25539 for J-25539, or a vendor name without its "Inc.".
Keep the arithmetic check. It costs nothing and it catches a dropped line. Do not treat a balanced invoice as a verified one.
Why a second model works
Two different models rarely make the same mistake on the same value. When the first model misreads a digit on a scanned page, the second usually reads it correctly, and the two answers differ.
The second read is cheap: Claude Haiku 5.5 read a hard invoice for about a tenth of a cent, $1.27 per 1,000, in a median of 4.8 seconds. The price is the false alarms: 23 clean invoices were flagged because the second model was the one that got something wrong. Haiku checked by GPT-6 Luna had the most, 9 of 37, because Luna is the weaker reader.
Two limits apply. If both models share a blind spot they will agree on a wrong answer. In our test several models misfiled the same surcharge, but in different fields, so they still disagreed. And agreement tells you nothing when the schema itself is wrong.
What TypeSafe caught and missed
TypeSafe sells a different kind of model. Jev does not generate text. You send it content and typed questions, and it returns a probability for each answer. It is priced at $0.042 per million input tokens, with output free. We sent the invoice page images once per extraction and asked one yes/no question per number, for example whether 2,557.60 is the billed amount on the line for equipment 907680739.
It is fast and cheap. A hard invoice took about 10,000 tokens and a median of 0.31 seconds, which is 42 cents per 1,000 invoices. All 640 requests in this test cost 26 cents.
Value by value, at a threshold of 0.5 it caught 31 of the 76 real wrong values and raised a false alarm on 165 of 5,282 correct ones, which is 3.1%. That false-alarm rate sounds low, but these invoices average 22 checked values each, so nearly half of them ended up with at least one flag.
Real errors were too few to say what kind it handles well, so we also planted 485 errors of known types into correct extractions.
- Strong on gross errors. It caught every moved decimal point and every swapped day and month, 77 of 80 values copied from the wrong column, and all 10 real cases of a charge filed in the wrong field.
- Middling on swapped digits in an amount: 200 of 245.
- Weak on identifiers and line items. It caught 33 of 63 planted digit swaps in an equipment or product number and 8 of 41 real line-item errors. Those are the errors that matter most on rental invoices, and they sit in dense tables on scanned pages.
Two things to hold against these numbers. TypeSafe's documentation says image input is not yet ready for production, and images are all we gave it. And we wrote the questions ourselves without tuning them. Our first attempt asked one question per line with five numbers in it and caught 2 of 13 real line errors; one question per number did better. A team that tuned questions on its own invoices, or sent text from a digital PDF, could see different results.
What to do
- Run a second cheap model on every invoice and review the disagreements. Use a different vendor's model from your first reader so the mistakes differ.
- Keep arithmetic as a free first pass, and add a reconciliation of every charge against the total so an unplanned charge cannot hide.
- Consider a verifier like Jev as a pre-screen, not the gate. At 0.31 seconds and 42 cents per 1,000 invoices it is a cheap way to catch wrong-column and wrong-field errors early. On our scanned line tables it missed too much to stand alone.
- Measure on your own invoices. Take 50 you have already keyed by hand, run your reader and each check, and count what is caught and what is flagged.
How we checked
The extractions. These are the first-pass outputs of Gemini 4 Hydrogen, Claude Sonnet 5.5, GPT-6.2 Sol, Claude Haiku 5.5, GPT-6 Luna and Gemini 3.5 Flash-Lite on the 40 hard invoices from the extraction test. An extraction "has an error" when any header value or line item differs from the answer key or a line was invented.
The checks. Arithmetic is three rules in baselines.py. The second-model check compares two extractions with the same scorer used against the answer key. For TypeSafe, verify2.py renders each page to an image, asks one question per header value and per number on each line, and takes the lowest probability on a line as that line's score.
Planted errors. With a fixed random seed we corrupted about one value in eight in each extraction: two adjacent digits swapped, a decimal point moved, day and month exchanged, or a neighbouring column copied in. Planted errors are labelled in the data and reported apart from real ones.
Run it yourself
- Get the scripts and documents from the extraction test and run at least two models on the hard set.
- Compare the checks on your results:
export TYPESAFE_API_KEY=...
venv/bin/python verify2.py --run 1 --models claude-haiku-5-5,gpt-6-luna
venv/bin/python verify2.py --run 1 --plant --models claude-haiku-5-5,gpt-6-luna
venv/bin/python analyze_verify.py verify-b2/run1 verify-b2/run1-planted
venv/bin/python baselines.py 1
baselines.py expects all six models' results; edit its MODELS list to match the ones you ran. The TypeSafe calls for two models cost us about 7 cents. Expect the second-model check to catch nearly every bad invoice and arithmetic to catch almost none.
Keep in mind
- Thirty-three bad invoices. Enough to see that arithmetic fails and a second model works, not enough for precise rates.
- Generated invoices. Real paperwork has handwriting, stamps and missing pages.
Download the data
- checks-by-document.json: per model, how many bad and clean invoices each check flagged
- typesafe-checks.csv: all 10,716 checked values with Jev's probability, whether the value was really correct, and the planted error type; typesafe-summary.json
- Scripts: baselines.py, verify2.py, verify.py (the first, one-question-per-line version), analyze_verify.py, charts-checks.py
- The invoices, answer keys and model outputs are with the extraction test.
What changed
- December 2, 2026: First published.
