TL;DR
This paper challenges the traditional two-stage document extraction pipeline (OCR + Text Model) by demonstrating that modern Multimodal Large Language Models (MLLMs) can extract structured information directly from raw document images. Using real-world industrial datasets, the authors show that image-only inputs can match or even outperform OCR-enhanced setups while significantly simplifying system architecture.
What Problem Does This Paper Address?
Document Information Extraction (DIE)—turning unstructured documents like invoices, receipts, and financial statements into structured JSON data—is a cornerstone of enterprise automation. Historically, mature industrial systems rely on a two-stage framework: first, an Optical Character Recognition (OCR) engine extracts the text and layout coordinates, and second, a specialized NLP model parses that text into a predefined schema.
However, this traditional approach is brittle. It introduces high system complexity, suffers from error propagation (if the OCR misreads a word, the downstream model can't fix it), and struggles to generalize across diverse domains or languages. With the rise of powerful MLLMs natively trained on both text and visual data, a compelling question emerges: Is OCR still necessary, or can we move to a streamlined, image-only extraction pipeline?
Methods
The authors evaluate a suite of state-of-the-art MLLMs (including Google's Gemini series, OpenAI's GPT-4o, Anthropic's Claude, and Amazon's Nova Pro) across three distinct input modalities:
- Image-only: Feeding the raw document image directly to the MLLM.
- OCR-only: Feeding only the text extracted by a high-performance, in-house OCR engine (preserving layout via whitespace delimiters).
- Image + OCR (Multimodal): Providing both the raw image and the extracted text.
To understand exactly why models fail, they introduce an automated Hierarchical Error Analysis Framework. Instead of manually auditing thousands of outputs, they leverage an LLM-based pipeline to categorize errors into three main buckets: text misinterpretation, image-to-text extraction issues, and schema ambiguity.
Datasets
The study uses two large-scale, high-quality internal industrial datasets that reflect real-world enterprise challenges:
- C1 (Supply Chain Domain): Dominated by delivery notes and shipping documents.
- C2 (Finance Domain): Composed of complex financial statements and invoices.
Together, the datasets comprise around 1,000 high-density documents. Unlike standard academic benchmarks, these datasets are highly challenging due to their multilinguality (spanning English, German, Spanish, French, and more) and structural complexity (featuring nested tables, stacked cells within line items, and heterogeneous header layouts).
Key Insights and Ideas
- Implicit OCR is Real: Web-scale pretraining has equipped top-tier MLLMs with powerful internal visual tokenizers and 2D attention layers. They can recognize characters, reading orders, and layout hierarchies directly from pixels without explicit text transcription.
- OCR Can Introduce "Schema Ambiguity": When text is flattened by an OCR engine, crucial spatial and typographic cues are often lost or distorted. The error analysis revealed that OCR-only inputs suffer heavily from layout misinterpretation. Image-only inputs drastically reduce these errors because the vision encoder natively preserves the document's physical structure.
- The Multimodal Fusion Penalty: Surprisingly, adding OCR text to an image input doesn't always help. For certain models (like Pixtral and Claude 3.5 Sonnet), performance actually dropped when text was combined with the image, suggesting these models struggle to optimally fuse multimodal features.
Key Results
The quantitative benchmarking yielded several landmark results across the tested models:
- Gemini 1.5 Pro emerged as the top performer, achieving a mean F1-score of 76.8% using image-only input, notably outperforming its OCR-only counterpart (74.1%).
- Prompt Engineering Boosts Image-Only Performance: By optimizing the prompt template—clarifying schema descriptions, refining format constraints, and adding explicit reasoning cues—the authors boosted Gemini 1.5 Pro's image-only performance to 78.9%, surpassing both the OCR-only and combined multimodal baselines.
- Error Reductions: As shown in the error analysis breakdown, the image-only approach yielded the lowest total error count among the top-performing models, primarily driven by a massive reduction in schema ambiguity errors.
Limitations and Future Work
While the results strongly favor an image-only future for document AI, the authors acknowledge a few limitations in their current work:
- Few-Shot Learning: The study focused primarily on zero-shot extraction; the impact of few-shot exemplars was not systematically explored.
- Advanced Reasoning Cues: Advanced techniques like Chain-of-Thought (CoT) prompting or self-reflection mechanisms were omitted due to computational resource constraints.
- Reasoning-Centric Models: The error analysis framework relied on standard LLMs. The authors note that integrating next-generation reasoning models (such as OpenAI's o1 or DeepSeek-R1) could significantly improve the depth and accuracy of automated error diagnosis.
Summary updated