Research23 April 2026 · 8 min read · Sairaj Dhamal

Benchmarking Modern Document Intelligence: OCR, VLMs, and Layout Parsers

Which extraction architecture yields the highest fidelity across diverse document types? We ran six engines in parallel to find out.

Document Intelligence Benchmarking Concept

Abstract: This study evaluates six document extraction methodologies (PaddleOCR, LlamaParse, Gemini Vision, PyMuPDF4LLM, MinerU+Qwen, Azure Document Intelligence) across five document types (digital text, scanned images, tables, charts, handwriting). Our findings indicate that no single engine dominates; rather, document type is the primary determinant for optimal engine selection.

The Extraction Challenge

While extracting text from well-formed PDFs is largely solved, real-world documents contain scanned images, complex tables, charts, and handwriting. Poor extraction directly degrades downstream systems like Retrieval-Augmented Generation (RAG) pipelines.

We built the DocExtract Framework—a parallel orchestration engine—to empirically compare these architectures and provide actionable guidance for developers.


The 6 Engines Under Review

PaddleOCR

Traditional Local OCR

Deep learning CNN/CRNN. Fast, private, but lacks layout understanding.

PyMuPDF4LLM

Heuristic Layout-Aware

Uses PDF metadata. Great for digital text, fails on scanned images.

LlamaParse

Cloud RAG Parser

Optimized for LLM-ready Markdown and structured table extraction.

Gemini Vision

Vision-Language Model

Multimodal reasoning. Excellent zero-shot handwriting recognition.

MinerU + Qwen

Hybrid Local AI

Structural analysis with VLM refinement. Dominates chart interpretation.

Azure Doc Intel

Enterprise Cloud

Prebuilt models offer the highest accuracy for scanned and handwritten text.

System Architecture

DocExtract Parallel Extraction Architecture

FastAPI backend dispatching requests to 6 engines in parallel via asyncio.gather().


Evaluation Dataset & Methodology

📄
01

Digital PDFs

Selectable text layer

📸
02

Scanned Image

No embedded text

📊
03

Tables

Multi-column bordered

📈
04

Charts

Bar, line, pie visual data

✍️
05

Handwriting

Cursive & printed notes

%

Weighted Scoring

0.20 × 1-page + 0.30 × 5-page + 0.50 × 10-page (penalizes compounding errors).

Dimensions

Text completeness, structural fidelity, table quality, and semantic coherence (0-10 scale).


Benchmark Results

Composite Benchmark Scores Bar Chart
Document TypePaddleOCRLlamaParseGemini VisionPyMuPDF4LLMMinerU+QwenAzure DI
Digital PDF10.2310.3310.3310.3310.3310.23
Scanned Image3.334.908.178.600.008.80
Structured Tables5.207.804.456.205.705.80
Charts3.108.025.770.008.923.40
Handwriting2.503.138.405.137.358.85

Category Champions

10.33
Digital Text
All Engines
8.80
Scanned Docs
Azure DI
7.80
Tables
LlamaParse
8.92
Charts
MinerU + Qwen
8.85
Handwriting
Azure DI
Key Insight

No single engine dominates all categories. Document type is the primary determinant of optimal engine selection.


Engine Selection Guide

Engine Selection Decision Flowchart
PyMuPDF4LLM

High-Volume Digital PDFs

Fastest extraction at zero API cost. Reconstructs layout from PDF metadata perfectly.

LlamaParse

Complex Tables for RAG

Optimized specifically for structured Markdown output, preserving row/col alignment.

MinerU + Qwen

Charts & Visual Data

Two-stage pipeline uniquely capable of local visual data interpretation.

Azure DI

Enterprise Intake (Scans/Handwriting)

Best OCR infrastructure with automatic fallback for cursive and printed handwritten notes.

Privacy vs. Performance

Local models (PaddleOCR, PyMuPDF4LLM, MinerU) are viable for sensitive PII/legal documents without external network calls.

Cost-Benefit

Cloud services incur API costs but solve complex edge cases. MinerU+Qwen offers a compelling zero-cost alternative for charts if you can manage deployment complexity.


Conclusion

This study proves that the assumption of a "one-size-fits-all" extraction tool is flawed. While cloud APIs like Azure DI and LlamaParse offer high fidelity for unstructured or heavily tabular data, local models like PyMuPDF4LLM and MinerU combined with VLMs provide competitive, cost-effective, and privacy-preserving alternatives for specific document types.

Future Work

  • Automated document-type classification for intelligent engine routing before extraction.
  • Benchmarking next-gen Gemini 2.5 Pro capabilities on charts/tables.
  • Quantitative cost-per-page scalability testing under concurrent loads.
#DocumentIntelligence#OCR#RAG#VLM#AzureDI#LlamaParse#PaddleOCR#LLM#DataExtraction