CoolFace
Datasetpublic

ankitt6174/pdf-parse-bench

PDF Parse Bench 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… See the full description on the dataset page: https://huggingface.co/datasets/ankitt6174/pdf-parse-bench.

sourceHugging Facemitupdated 10d agoView on Hugging Face
0likes221downloads
Dataset Card

PDF Parse Bench

![GitHub](https://github.com/phorn1/pdf-parse-bench) ![PyPI](https://pypi.org/project/pdf-parse-bench/) ![arXiv](https://arxiv.org/abs/2512.09874) ![arXiv](https://arxiv.org/abs/2603.18652)

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

bash
pip install pdf-parse-bench

See the full evaluation guide at [github.com/phorn1/pdf-parse-bench](https://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](https://github.com/phorn1/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](https://github.com/phorn1/table-metric-study) — 1,500+ human ratings: rule-based (TEDS, GriTS) top at r = 0.70, LLM judges r = 0.94

Citation

bibtex
@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.

<p align="center"> <img src="https://raw.githubusercontent.com/phorn1/pdf-parse-bench/main/assets/BMFTRlogo.png" alt="BMFTR" width="150" /> <img src="https://raw.githubusercontent.com/phorn1/pdf-parse-bench/main/assets/HAWlogo.png" alt="HAW" width="150" /> </p>