VLM vs. OCR for Invoice Extraction: Accuracy & Use Cases
By Sygnet Research, checked before publication

Key takeaways
- On clean, machine-generated invoices, modern VLMs reach roughly 96%+ field accuracy zero-shot, but a specialized IDP engine was measured at 98.7% overall accuracy in a 2025 benchmark, with 99.1% on amounts, at 3 to 4 seconds per invoice.
- The real differentiator is not clean PDFs but degraded input: complex background colors significantly hurt OCR pipeline accuracy while barely affecting VLMs.
- VLMs fail differently from OCR: an OCR engine returns an empty field when it cannot read text, whereas an LLM can manufacture a plausible-looking number, so a deterministic reconciliation layer is mandatory.
- Alphanumeric identifiers stay the weak point for both approaches, with IBAN extraction notably worse than other fields because of zero-versus-O and U confusions.
Should I use a VLM or traditional OCR for invoice extraction?
Use a VLM when your supplier mix is wide and layouts change; use a template or specialized OCR/IDP engine when you process a few high-volume, stable formats and need sub-second, deterministic behaviour. For most AP teams the honest answer is a hybrid: VLM or VLM-based IDP for extraction, plus a non-probabilistic validation layer that checks the arithmetic before anything touches the ERP.
The decision hinges on variance, not on average accuracy. Traditional OCR can hit up to 99% accuracy on documents with unchanging layouts, but degrades significantly on variable formats and lower-quality documents because it depends on templates and predefined rules that break with any layout change. An organisation processing 10,000+ invoices a month will have hundreds of vendors periodically updating their layouts, and maintaining templates per vendor and per layout version can consume more hours than processing manually. That maintenance curve, not the benchmark table, is what kills template pipelines in production.
Template OCR does not fail loudly when a vendor redesigns an invoice; it quietly returns the wrong number.
What do the published benchmarks actually show?
Zero-shot multimodal models land in the 82-96% range depending on scan quality, while specialized engines stay a point or two higher on clean inputs. In a 2025 invoice benchmark across three datasets, GPT-5 Chat and GPT-5 Mini both surpassed 96% overall accuracy on the clean invoice set, while performing a few points lower than the leading Gemini models on scanned sets. Gemini 2.5 Pro scored 96.50% on clean invoices and 92.71% on scanned documents. Model size matters sharply: gemma-3-12b-it reached 82.09% on scanned invoices with native image processing, while gemma-3-4b-it collapsed to 45.69% on clean invoices, indicating a capability threshold below which small models fail at visual extraction.
Two caveats before you trust any of this. First, the benchmark datasets are open source, so they may have appeared in model training data. Second, aggregate accuracy hides field-level risk. Simple unique fields such as totals and vendor names exceed 99%, while line items and multi-row tax breakdowns typically land at 95-97%.
Where does each approach break?
OCR breaks on visual degradation and layout change; VLMs break on precise alphanumeric strings and on inputs where they infer rather than read. OmniDocBench, a benchmark of 1,355 PDF pages across 9 document types, 4 layout types and 3 languages, is useful here because it separates sub-tasks. It found pipeline tools perform well on common data like academic papers and financial reports, while general VLMs generalise better on specialised data such as slides and handwritten notes, because pipeline tools are more constrained by their training data range. On tables the picture inverts: OCR-based table models showed superior overall performance, with general VLMs like Qwen2-VL-7B and InternVL2-8B lagging behind specialised solutions.
That matters for invoices, which are mostly a table problem. Line-item grids with merged cells, no frames and multi-line descriptions are precisely where several VLMs perform worse on tables with merged cells. If your downstream reconciliation needs per-line quantities and unit prices, test that specifically rather than on header fields.
| Criterion | Template/classical OCR | Specialized IDP engine | VLM (general multimodal) |
|---|---|---|---|
| Clean invoice accuracy | up to 99% on fixed layouts | 98.7% overall | 96%+ |
| Degraded scans | Drops hard | Moderate drop | Little impact from coloured backgrounds |
| New vendor layout | Needs a new template | Needs training samples | Works zero-shot |
| Failure mode | Empty or wrong field | Low confidence | Plausible fabricated value |
| Latency | Fastest | 3-4 s/invoice | Slowest, most expensive |
| Tables with merged cells | Robust | Robust | Weaker |
How do I stop a VLM hallucinating an invoice total?
Add a deterministic validation step that runs outside the model. The standard mitigation is a separate computational layer applied after extraction that verifies mathematics independently of the language model: if extracted line items do not sum to the extracted subtotal within a configurable tolerance, the invoice is flagged and routed to a human regardless of model confidence. This is cheap to build and catches the class of error that confidence scores miss, because a hallucinated value often carries high confidence.
Layer three checks, not one. Arithmetic reconciliation (lines → subtotal → tax → total), referential checks against your vendor master and PO data, and format checks on identifiers (IBAN checksum, VAT number structure, date plausibility). The IBAN case is instructive: benchmark authors traced errors to confusing zero with the letters O and U, which a mod-97 checksum catches instantly. Practical guidance on building that layer is in the invoice data validation guide. For the broader architectural question of running this yourself versus buying it, see build vs buy for IDP.
How should I benchmark this on my own invoices?
Run a two-week internal benchmark on 200 stratified documents before committing to any vendor or model. The recommended protocol: pull 200 representative invoices from the past quarter stratified by supplier, layout, language and scan quality; label the fields you care about as ground truth; run three or four candidate models with identical preprocessing; score at field level rather than document level, since a document has 20 fields and 18 may be right; compute F1 per field weighted by business impact, because a wrong remit-to address can cost a payment while a wrong line-item description is an annoyance; then measure whether subtotal plus tax equals total within tolerance.
Stratification is the part teams skip. Average accuracy across a sample dominated by clean digital PDFs tells you nothing about the 8% of phone photos that generate 60% of your exceptions. Handwritten annotations such as manually added PO numbers or hand-corrected totals typically drop accuracy into the 80-90% range, so those should route to a higher-scrutiny path by default. Sygnet publishes a checklist for evaluating extraction accuracy covering metric definitions and sampling.
Score at the field level and weight by business impact, or your benchmark will optimise for fields nobody reads.
Does the answer change if the output feeds a RAG system?
Yes. Extraction for a database needs exact field values; extraction for retrieval needs correct structure and reading order, which is a different failure surface. OmniDocBench evaluates text, tables, formulas and reading order as four separate metric modules for exactly this reason, and found that accuracy drops clearly across all models on multi-column and complex layouts for reading-order tasks. A pipeline that nails the invoice total can still shred a table into unusable markdown.
If your invoices land in a vector store rather than an ERP, headline character accuracy misleads badly. A 95% character-accurate page can still produce chunks where a line item's quantity is separated from its description, which retrieval cannot repair. That mechanism is unpacked in why 95% OCR accuracy fails RAG, and the RAG ingestion checklist covers chunking and layout preservation.
What about cost and latency at volume?
Cost scales with accuracy across tiers, and at high volume the gap is material. Traditional OCR is cheapest and fastest, LLM vision is most expensive and slowest, with AI/ML platforms in between. Latency differences are concrete: one 2025 study measured 10 seconds per document for a lightweight OCR and layout-based approach versus 30 seconds for an LLM-based extractor, with the accuracy trade being 94% versus 63% overall extraction accuracy in that particular comparison.
The sensible architecture at volume is routing. Send clean, known-layout invoices from your top 50 suppliers through the cheap deterministic path; route unknown vendors, poor scans and anything that fails reconciliation to the VLM. At 100,000 invoices per month, a 0.5% accuracy gap is 500 invoices, which is enough to justify an internal evaluation pipeline rather than trusting vendor claims.
FAQ
Is VLM accuracy good enough to post invoices without human review?
Not unconditionally. Even at 96-98% mean accuracy, errors compound once they enter an accounting system unchecked: a wrong VAT amount posts to the wrong tax bucket, a wrong invoice number creates duplicate records, a wrong date affects payment scheduling. Straight-through processing is reasonable for invoices that pass arithmetic reconciliation, vendor-master matching and identifier checksums. Everything else goes to review. Expect 70-90% automation, not 100%.
Can I just fine-tune a small open model instead of calling a frontier API?
Only above a size threshold. The 2025 invoice benchmark showed gemma-3-4b-it at 45.69% on clean invoices with direct image analysis, versus 82.09% for the 12B variant on scanned invoices. Fine-tuning helps, and benchmark authors flagged layout-specialised models like LayoutLM and LiLT as promising candidates, but those require labelled data and do not work zero-shot. Budget for annotation.
Does OCR still beat VLMs at anything on invoices?
Tables and speed. OCR-based table recognition models showed superior overall performance on OmniDocBench's table subset, and pipeline tools are not degraded by challenging table features such as merged cells. Classical OCR is also far cheaper per page and returns results in well under a second. For a fixed-layout, high-volume feed, that combination is hard to beat. The detailed trade-offs are laid out in Sygnet's OCR vs VLM comparison.
One email when we publish something worth your time.