How to trust data extracted from invoices
Extracted invoice data is only useful if you know which values you can use without looking. A tool that’s right 97% of the time still gets about one field in thirty wrong, and nothing tells you which one. So the question isn’t how accurate a tool is overall. It’s whether each value carries proof, and whether the ones without proof are clearly marked.
This guide lists the checks that give that proof, what each one catches, and what none of them can catch. Then it shows how Unfela applies them.
The checks that matter
These apply to any extraction tool, not just ours.
| Check | What it asks | What it catches |
|---|---|---|
| Evidence | Can you point to the value in the document? | Values a model made up or took from somewhere else |
| Label | Is the value next to a label that fits, like “Total due”? | The right kind of number in the wrong role, such as the subtotal as total |
| Checksum | Do the check digits work out? | Typos and misread digits in IBANs and some tax IDs |
| Arithmetic | Does net + VAT (+ shipping − discount) equal the total? | One wrong amount among the three |
| Date order | Is the due date on or after the issue date? | Swapped dates, misread days and months |
| Format agreement | Does 1.234,56 fit the currency? |
A euro amount read with a dollar sign, or the reverse |
| Disagreement | Is there another, equally strong candidate? | Two totals on one page, an amount repeated with a different value |
| Anchor | Is anything in the record solid, such as the total or invoice number? | Records where everything looks fine but nothing is confirmed |
IBAN checksums are the clearest example. Each IBAN carries two check digits computed with the MOD 97-10 method of ISO 7064; rearranged and divided by 97, a correct IBAN leaves a remainder of 1, as the Central Bank of the Republic of Türkiye’s IBAN rules set out. A single wrong digit almost always fails it. Some guides describe IBAN validation as a Luhn check; it isn’t.
What no check catches
Be clear about the limits before you rely on any tool:
- A correct-looking value that’s wrong. A bank account that belongs to someone else passes the IBAN checksum. A fraudulent invoice with changed bank details is internally consistent. Compare new or changed payment details with what you already have for that supplier.
- Fields with nothing to check against. A vendor name has no checksum. The best a tool can do is find it next to a fitting label, or recognise the layout from earlier documents.
- What the document itself gets wrong. If the supplier’s own total is wrong, extraction can only flag that it doesn’t add up. It can’t know which number they meant.
- Accuracy on your documents. Published accuracy figures, ours included, come from test sets. How we benchmark Unfela explains why our 97.6% is an upper bound and not a prediction.
Confidence scores versus states
Many tools attach a score to each value: 0.92, 0.71. A score summarises how sure the reader was, but it doesn’t say which check passed, so it can’t tell you whether to book the value. Two values with the same score can be right and wrong.
Unfela uses three states instead, each with a reason: Verified, Needs Review or Missing. When is an extracted value actually verified? walks through them with an example.
How Unfela applies them
A field is Verified only when it has evidence in the document, its label fits, its checks pass and no equally strong candidate disagrees. Otherwise it’s Needs Review, with the reason, or Missing if the document doesn’t contain it. Then checks across fields run on the whole record:
| Rule | What happens |
|---|---|
| Net + VAT (+ shipping − discount) must equal the total, to the cent | If not, the total goes to Needs Review |
| The due date can’t be before the issue date | If it is, the due date goes to Needs Review |
| A currency only counts as the currency of a Verified total | Without one, the currency goes to Needs Review |
1.234,56 written with a $ or £ sign is a contradiction |
The currency goes to Needs Review |
| A currency symbol read by OCR needs the currency code somewhere in the document, or a learned template | Otherwise Needs Review, because OCR confuses symbols |
| A record needs a Verified total or invoice number as an anchor | Without either, nothing in it is Verified |
| IBANs must pass MOD 97-10 | A failing IBAN isn’t Verified |
| Turkish tax IDs (VKN, TCKN) must pass their checksums; VAT IDs from Germany, the Netherlands, the UK, France, Austria, Belgium, Italy and Spain must match their country’s format | Otherwise the tax ID isn’t Verified. On a printed document, a tax ID in a format Unfela doesn’t know isn’t Verified either; in an e-invoice it’s taken as the seller states it |
For e-invoices such as XRechnung or ZUGFeRD, the values come from the structured data rather than from reading the page, and the same arithmetic still runs. Our e-invoice guide covers that side.
When on-device AI helps, which only happens when important fields stay unverified, its proposals go through the same gate: a value it proposes is never Verified unless it’s found in the document.
Questions to ask any extraction tool
- Can I see where in the document each value came from?
- Which checks run on each field, and which ones does a value fail?
- What happens to a value that fails a check: is it marked, or silently kept?
- Are uncertain amounts left out of totals, or summed with the rest?
- Is the accuracy figure measured on real documents or a test set, and who made the test set?
- Where are my documents processed, and are they kept?
If a tool can’t answer the first three, you’ll end up checking everything yourself, which defeats the point.
Step-by-step articles
How we benchmark Unfela, and where the numbers stop
The test set, method and results behind Unfela's benchmark, including its biggest limit: the documents are synthetic and we generated them ourselves.
When is an extracted invoice value actually verified?
Why Unfela uses three states instead of confidence scores, and the checks a value must pass before it is marked Verified.
Questions
Is a high confidence score good enough?
No. A confidence score says how sure a model is, not whether the value is right. A value can be read perfectly and still be the wrong number, such as the subtotal taken as the total. Checks against the document and against other fields catch that; the score doesn't.
Does a valid IBAN mean it's safe to pay?
No. The checksum only catches typos and misread digits. An IBAN that belongs to someone else passes it. Compare new or changed bank details with what you already know about the supplier before paying.
Can I check every field automatically?
No. Some fields have nothing to check against, such as the vendor name. The aim is to check what can be checked and send the rest to a person with the reason, rather than mark it correct.
Does Unfela use AI?
Sometimes. Rules and templates read most documents. With Apple Intelligence on, on-device AI helps when important fields stay unverified, and its proposals are never Verified unless they are found in the document.