piushorn/pdf-parse-bench

Dataset

2

stars

14

commits

13

linked in READMEs

Mar 27, 2026

updated

benchmark
llm-as-a-judge
mathematical-formulas
ocr
pdf-parsing
tables

README

PDF Parse Bench

GitHub PyPI arXiv arXiv

Benchmark for evaluating how effectively PDF parsing solutions extract mathematical formulas and tables from documents.

We generate synthetic PDFs with diverse formatting scenarios, parse them with different parsers, and score the extracted content using LLM-as-a-Judge. This semantic evaluation approach substantially outperforms traditional metrics in agreement with human judgment.

Leaderboard (2026-Q1)

Results are based on two benchmark datasets, each containing 100 synthetic PDFs:

ParserTablesFormulas
Gemini 3 Flash9.509.79
LightOnOCR-2-1B9.089.57
Mistral OCR8.899.48
dots.ocr8.739.55
Mathpix8.539.66
Chandra8.439.45
Qwen3-VL-235B8.439.84
MonkeyOCR-pro-3B8.399.50
GLM-4.5V7.989.37
GPT-5 mini7.145.57
Claude Sonnet 4.67.028.50
Nanonets-OCR-s6.929.21
PP-StructureV36.869.59
Gemini 2.5 Flash6.856.51
MinerU2.56.499.32
GPT-5 nano6.484.78
DeepSeek-OCR5.758.97
PaddleOCR-VL5.398.47
PyMuPDF4LLM5.254.53
GOT-OCR2.05.138.01
olmOCR-2-7B4.059.35
GROBID2.107.01

All scores are LLM-as-a-Judge ratings on a 0–10 scale, judged by Gemini 3 Flash via OpenRouter.

Datasets

  • 2026-q1-tables-only — 100 PDFs with 451 tables (simple, moderate, complex)
  • 2026-q1-formulas-only — 100 PDFs with 1413 inline + 657 display-mode mathematical formulas

PDFs are generated synthetically using LaTeX with randomized parameters (document class, fonts, margins, column layout, line spacing). Since PDFs are generated from LaTeX source, ground truth is obtained automatically.

How to Evaluate Your Parser

pip install pdf-parse-bench

See the full evaluation guide at github.com/phorn1/pdf-parse-bench.

Why LLM-as-a-Judge?

Rule-based metrics correlate poorly with human judgment. We validated this in two human annotation studies:

  • formula-metric-study — 750 human ratings: text metrics r = 0.01, CDM r = 0.31, LLM judges r = 0.74–0.82
  • table-metric-study — 1,500+ human ratings: rule-based (TEDS, GriTS) top at r = 0.70, LLM judges r = 0.94

Citation

@misc{horn2025formulabench,
    title = {Benchmarking Document Parsers on Mathematical Formula Extraction from PDFs},
    author = {Horn, Pius and Keuper, Janis},
    year = {2025},
    eprint = {2512.09874},
    archivePrefix = {arXiv},
    primaryClass = {cs.CV},
    url = {https://arxiv.org/abs/2512.09874}
}

@misc{horn2026tablebench,
    title = {Benchmarking PDF Parsers on Table Extraction with LLM-based Semantic Evaluation},
    author = {Horn, Pius and Keuper, Janis},
    year = {2026},
    eprint = {2603.18652},
    archivePrefix = {arXiv},
    primaryClass = {cs.CV},
    url = {https://arxiv.org/abs/2603.18652}
}

Acknowledgments

This work has been supported by the German Federal Ministry of Research, Technology and Space (BMFTR) in the program "Forschung an Fachhochschulen in Kooperation mit Unternehmen (FH-Kooperativ)" within the joint project LLMpraxis under grant 13FH622KX2.

BMFTR HAW

Contributors

piushorn

13 commits

PH
phorn3

1 commits

piushorn/pdf-parse-bench

Dataset

2

stars

14

commits

13

linked in READMEs

Mar 27, 2026

updated

benchmark
llm-as-a-judge
mathematical-formulas
ocr
pdf-parsing
tables

README

PDF Parse Bench

GitHub PyPI arXiv arXiv

Benchmark for evaluating how effectively PDF parsing solutions extract mathematical formulas and tables from documents.

We generate synthetic PDFs with diverse formatting scenarios, parse them with different parsers, and score the extracted content using LLM-as-a-Judge. This semantic evaluation approach substantially outperforms traditional metrics in agreement with human judgment.

Leaderboard (2026-Q1)

Results are based on two benchmark datasets, each containing 100 synthetic PDFs:

ParserTablesFormulas
Gemini 3 Flash9.509.79
LightOnOCR-2-1B9.089.57
Mistral OCR8.899.48
dots.ocr8.739.55
Mathpix8.539.66
Chandra8.439.45
Qwen3-VL-235B8.439.84
MonkeyOCR-pro-3B8.399.50
GLM-4.5V7.989.37
GPT-5 mini7.145.57
Claude Sonnet 4.67.028.50
Nanonets-OCR-s6.929.21
PP-StructureV36.869.59
Gemini 2.5 Flash6.856.51
MinerU2.56.499.32
GPT-5 nano6.484.78
DeepSeek-OCR5.758.97
PaddleOCR-VL5.398.47
PyMuPDF4LLM5.254.53
GOT-OCR2.05.138.01
olmOCR-2-7B4.059.35
GROBID2.107.01

All scores are LLM-as-a-Judge ratings on a 0–10 scale, judged by Gemini 3 Flash via OpenRouter.

Datasets

  • 2026-q1-tables-only — 100 PDFs with 451 tables (simple, moderate, complex)
  • 2026-q1-formulas-only — 100 PDFs with 1413 inline + 657 display-mode mathematical formulas

PDFs are generated synthetically using LaTeX with randomized parameters (document class, fonts, margins, column layout, line spacing). Since PDFs are generated from LaTeX source, ground truth is obtained automatically.

How to Evaluate Your Parser

pip install pdf-parse-bench

See the full evaluation guide at github.com/phorn1/pdf-parse-bench.

Why LLM-as-a-Judge?

Rule-based metrics correlate poorly with human judgment. We validated this in two human annotation studies:

  • formula-metric-study — 750 human ratings: text metrics r = 0.01, CDM r = 0.31, LLM judges r = 0.74–0.82
  • table-metric-study — 1,500+ human ratings: rule-based (TEDS, GriTS) top at r = 0.70, LLM judges r = 0.94

Citation

@misc{horn2025formulabench,
    title = {Benchmarking Document Parsers on Mathematical Formula Extraction from PDFs},
    author = {Horn, Pius and Keuper, Janis},
    year = {2025},
    eprint = {2512.09874},
    archivePrefix = {arXiv},
    primaryClass = {cs.CV},
    url = {https://arxiv.org/abs/2512.09874}
}

@misc{horn2026tablebench,
    title = {Benchmarking PDF Parsers on Table Extraction with LLM-based Semantic Evaluation},
    author = {Horn, Pius and Keuper, Janis},
    year = {2026},
    eprint = {2603.18652},
    archivePrefix = {arXiv},
    primaryClass = {cs.CV},
    url = {https://arxiv.org/abs/2603.18652}
}

Acknowledgments

This work has been supported by the German Federal Ministry of Research, Technology and Space (BMFTR) in the program "Forschung an Fachhochschulen in Kooperation mit Unternehmen (FH-Kooperativ)" within the joint project LLMpraxis under grant 13FH622KX2.

BMFTR HAW

Contributors

piushorn

13 commits

PH
phorn3

1 commits