OmniDocBench: Benchmarking Diverse PDF Document Parsing with Comprehensive Annotations
- Publication
- CVPR 2025Conference
- First submitted to arXiv
- arXiv:2412.07626
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{modelevaluationomnidocbench2024,
title = {{OmniDocBench: Benchmarking Diverse PDF Document Parsing with Comprehensive Annotations}},
author = {Linke Ouyang and Yuan Qu and Hongbin Zhou and Jiawei Zhu and Rui Zhang and Qunshu Lin and Bin Wang and Zhiyuan Zhao and Man Jiang and Xiaomeng Zhao and Jin Shi and Fan Wu and Pei Chu and Minghao Liu and Zhenxiang Li and Chao Xu and Bo Zhang and Botian Shi and Zhongying Tu and Conghui He},
year = {2024},
eprint = {2412.07626},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2412.07626}
}
By 2024 there were plenty of document parsing models. Pipeline tools chained together layout detection, OCR, and table and formula recognition; end-to-end models like Nougat and GOT read a whole page in one pass; and general-purpose VLMs such as GPT-4o and Qwen2-VL could be used off the shelf.
The question was: how do you compare them?
Nougat was tested only on English arXiv papers; GOT's full-page test set had just 90 pages of Chinese and English combined. Everyone used their own data and their own metrics, so even with the numbers side by side, it was hard to tell who was stronger at what.
OmniDocBench, proposed by Shanghai AI Laboratory and other institutions, sets out to be a benchmark that covers many kinds of documents, with complete annotations and fair scoring.
Defining the Problem
The authors see three shortcomings in existing benchmarks:
- Too few document types. Most contain only academic papers; common documents such as textbooks, exam papers, financial reports, and newspapers rarely appear.
- Unsuitable metrics. Whole pages are scored with edit distance or BLEU, but formulas and tables have many equivalent forms in LaTeX and HTML, so output that renders identically from a different string still loses points.
- Only one overall score. It can't show whether a model is weak on text, weak on formulas, or weak only on a certain kind of document.
Solving the Problem
Data: 981 Pages Out of Two Hundred Thousand PDFs
The authors first collected more than 200,000 PDFs from Common Crawl, Google and Baidu searches, and internal data. They extracted image features with ResNet-50, clustered them into 10 groups with Faiss, and picked 6,000 visually diverse pages. Annotators then labeled attributes such as document type, layout, and language, the categories were rebalanced, and 981 pages remained, spread across books, slides, financial reports, textbooks, exam papers, magazines, academic papers, notes, and newspapers, nine document types in all.
The annotations are very fine-grained:
- Layout: boxes for 19 block categories, such as titles, paragraphs, tables, and images; attributes for each box, such as the text language, whether there is a complex background, and whether a table has merged cells; reading order; and the relationships that tie figures and tables to their captions and connect paragraphs across pages.
- Content: text as plain text; formulas (including inline formulas) in LaTeX; tables in both HTML and LaTeX.
In total there are more than 100,000 annotations, including over 20,000 blocks and over 70,000 inline spans.
In the three-stage annotation process, LayoutLMv3, PaddleOCR, UniMERNet, and GPT-4o first pre-annotated the pages; annotators then corrected them character by character; finally, CDM's rendering tools flagged formulas and tables that failed to render, and three researchers reviewed them.
Scoring: Extract the Elements, Then Match

Output formats vary widely between models. Some write tables in HTML, others in Markdown; some write formulas in LaTeX, others in Unicode. Comparing whole-page strings directly isn't fair, so the authors designed a scoring pipeline:
- Preprocessing: remove images, strip Markdown markers at the start of the document, and normalize overly long runs of repeated characters.
- Extraction: use regular expressions to extract, in order, LaTeX tables, HTML tables, display formulas, Markdown tables (converted to HTML), and code blocks. What remains is plain text, split into paragraphs at blank lines.
- Inline formulas converted to Unicode: models output inline formulas so inconsistently that the authors don't score them separately; they convert them to Unicode and score them together with the text.
- Matching: a model may not split paragraphs the way the ground truth does; one paragraph may be cut in two, or two merged into one. The authors propose Adjacency Search Match: compute the normalized edit distance between every pair of paragraphs and match pairs whose similarity exceeds a threshold directly; for the rest, use fuzzy matching to check whether one is a substring of the other, and if so, try merging adjacent paragraphs until the edit distance stops improving.
- Ignoring: headers, footers, page numbers, page footnotes, and figure and table captions are handled too differently from model to model; they take part in matching but aren't scored.
After matching, each type of content gets its own metric:
- Text: normalized edit distance; lower is better.
- Tables: everything is converted to HTML and scored with TEDS (which measures the similarity of table structure through tree edit distance); higher is better.
- Formulas: CDM, which renders formulas as images and checks whether the character positions line up; higher is better.
- Reading order: normalized edit distance computed over the sequence of text elements.
What Edit Distance Measures
Start with text edit distance. Normalized edit distance is “how many characters must be changed to reach the correct answer,” divided by the length.
Suppose a page has 3,000 characters, and the model makes just one mistake: it reads the pickup code K7O2 as K702. The edit distance for the page is , which barely registers. But if you look only at that 4-character field, the edit distance is , and the field is now useless.
Page-level metrics are good for comparing overall reading ability; when a few key fields are wrong, they hardly show it. That is the scope of the metric itself, and it's worth knowing when you use it.
Discussion
Pipelines, Specialized VLMs, and General-Purpose VLMs
The authors divide the tested methods into three categories:
- Pipeline tools: MinerU, Marker, Mathpix.
- Specialized VLMs: GOT-OCR, Nougat.
- General-purpose VLMs: GPT-4o, Qwen2-VL-72B, InternVL2-76B.
Overall, pipeline tools such as MinerU and Mathpix perform best on text, formulas, and tables, and general-purpose VLMs are competitive too. Almost every method does better on English pages than on Chinese ones.
Broken down further by the nine document types:

Look at the two rightmost categories:
| Model | Notes | Newspapers |
|---|---|---|
| MinerU | 0.984 | 0.171 |
| GPT-4o | 0.607 | 0.751 |
| Qwen2-VL-72B | 0.168 | 0.676 |
| Nougat | 0.991 | 0.871 |
On handwritten notes, MinerU can barely read anything, while Qwen2-VL-72B is among the best in the whole table. Newspapers are the exact opposite, with MinerU at 0.171 and the general-purpose VLMs all above 0.67.
The authors reason that general-purpose VLMs are trained on very broad data, so they cope better with unusual formats and with image degradation such as blur, watermarks, and colored backgrounds; but on extremely text-dense pages like newspapers, limits on input resolution and token length often keep VLMs from reading everything. Pipeline tools segment the layout first and process it block by block, so they hold up better on complex layouts.
On multi-column and complex layouts, every method's reading order gets noticeably worse.
In their conclusion, the authors suggest that layout-aware designs and domain fine-tuning are promising directions for VLMs. Development over the following year or so largely took that path, with small “layout first, then recognition” VLMs such as PaddleOCR-VL and MinerU2.5 climbing to the top of this benchmark.
Later Versions
OmniDocBench has been revised several times since; the paper describes v1.0:
- v1.5 (September 2025): adds 374 pages, raises the image resolution of newspapers and notes from 72 DPI to 200 DPI, balances the number of Chinese and English pages, and increases the share of formulas. Chinese and English are no longer scored separately, and the overall score becomes .
- v1.6 (April 2026): adds 296 harder samples, such as nested tables, dense formulas, and unusual layouts, for 1,651 pages in total; the matching method now adjusts segmentation granularity on the prediction side only.
On the v1.6 leaderboard in the official README, the top entries are all specialized models of around one billion parameters, with overall scores close to 97. OmniDocBench README
Outside Criticism
As scores approached the ceiling, some began to question whether the benchmark could still tell the top models apart.
In February 2026, Jerry Liu of LlamaIndex wrote that OmniDocBench was close to saturation and that its documents skewed simple, with only 1,355 pages and 9 types, weighted toward academic papers and with little attention to complex financial presentations, legal documents, insurance claims, and forms. He also cited his company's own product, where a table correctly split into two, or scientific notation written in HTML instead of LaTeX, is semantically right but loses a lot on TEDS and edit distance. He argued for scoring that rewards semantic correctness over an exact format match. LlamaIndex, 2026-02-24
LlamaIndex has its own document parsing product, and the article's examples all come from its own output, so its position should be weighed accordingly. Still, the paper itself was aware that “a single ground truth is too strict about format.” The authors put a great deal of effort into element extraction, paragraph merging, and ignore rules precisely to reduce misjudgments caused by format differences.
Conclusion
OmniDocBench makes document parsing evaluation far more fine-grained than before:
- Nine document types, 981 pages, and more than 100,000 annotations, covering layout, reading order, attributes, and the relationships between elements.
- Extract, match, then give each type its own metric: edit distance for text, TEDS for tables, and CDM for formulas, to keep format differences from skewing the results as much as possible.
- Differences show up only when broken down: pipeline tools excel at newspapers and financial reports, general-purpose VLMs at handwritten notes and degraded images, and multi-column layouts are hard for everyone.
Its metrics work at the page level and suit comparisons of overall reading ability. Whether a particular number or a particular name was read correctly is a question for separate tests.