Abstract
Automated invoice processing is transitioning from template-based OCR to flexible Large Language Model (LLM) architectures. This paper evaluates two primary strategies: native multi-modal image processing and text-based parsing via Markdown conversion. Through a systematic benchmark of eight state-of-the-art models—including the GPT-5, Gemini 2.5, and Gemma 3 families—across three diverse datasets, we demonstrate that native vision processing significantly outperforms text-based pipelines. Google’s Gemini 2.5 Pro emerged as the leading model, particularly in handling the noise and layout complexities of real-world scanned documents.
Introduction
Invoice processing remains a high-stakes task where accuracy is paramount. Traditional systems often fail due to the structural variety of documents. While LLMs offer a solution, a fundamental architectural question persists: should models process raw images directly using vision capabilities, or should documents be parsed into structured text first? This study provides a head-to-head comparison to determine the most effective strategy for processing clean invoices, scanned receipts, and complex industry documents.
Methodology
We evaluated eight models: GPT-5 (Chat, Mini, Nano), Gemini 2.5 (Pro, Flash, Flash-Lite), and Gemma 3 (12b-it, 4b-it). Two processing pipelines were tested:
- Native Image Processing: Direct input of document images to multi-modal LLMs.
- Docling Processing: Conversion of images to Markdown using a document parsing tool (Docling) before LLM processing.
The benchmarks utilized three datasets:
- Clean Invoices (Donut): 500 synthetic, clear documents with complex layouts.
- Scanned Receipts (SROIE): 1,000 real-world scans with noise and skew.
- Scanned Invoices (inv-cdip): 350 industry documents with stamps and handwriting.
All tests employed zero-shot prompting to extract fields into structured JSON.
Results and Discussion
The Superiority of Native Vision
Native image processing significantly outperformed the text-parsing approach across all datasets. On the Scanned Receipts (SROIE) dataset, the performance gap was particularly stark.
As shown in the performance data for Scanned Receipts, the best native model (Gemini 2.5 Pro) achieved 87.46% accuracy, whereas the best text-parsed approach reached only 47.00%. This "Docling Bottleneck" suggests that initial OCR and layout conversion steps introduce irreversible errors, while native vision allows models to leverage spatial context to resolve ambiguities.
Performance on Scanned Invoices
The trend continued with more complex industry documents. Gemini 2.5 Pro maintained its lead, followed closely by the GPT-5 family and the open-source Gemma 3 12b-it.
Gemini 2.5 Pro reached 92.71% accuracy on scanned invoices. Notably, the Gemma 3 12b-it model showed strong competitiveness (82.09%), indicating that high-quality automation is increasingly viable with open-source weights.
Challenges with Fine-Grained Recognition
Despite high overall accuracy, all models struggled with highly unstructured alphanumeric strings, such as IBAN numbers. Frequent "OCR-style" errors (e.g., confusing '0' with 'O') suggest that even advanced multi-modal models require improved character-level grounding for dense, non-dictionary strings.
Conclusion
Native multi-modal processing is the superior strategy for automated invoice extraction, effectively bypassing the errors introduced by intermediate text-parsing tools. While Gemini 2.5 Pro is currently the state-of-the-art, the rapid progress of smaller and open-source models like Gemma 3 suggests a narrowing gap. Future research should focus on improving character-level recognition for noisy alphanumerics and exploring hybrid models that combine vision with specialized layout understanding.
Summary updated