Datasets:
Upload MarathonDocBench (data + GT + README + patch)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- MarathonDocBench.json +3 -0
- README.md +169 -0
- assets/baidu.png +3 -0
- assets/leaderboard.png +3 -0
- assets/overview.png +3 -0
- images/mp3lan_0101/page_1.png +3 -0
- images/mp3lan_0101/page_10.png +3 -0
- images/mp3lan_0101/page_100.png +3 -0
- images/mp3lan_0101/page_101.png +3 -0
- images/mp3lan_0101/page_102.png +3 -0
- images/mp3lan_0101/page_103.png +3 -0
- images/mp3lan_0101/page_104.png +3 -0
- images/mp3lan_0101/page_105.png +3 -0
- images/mp3lan_0101/page_106.png +3 -0
- images/mp3lan_0101/page_107.png +3 -0
- images/mp3lan_0101/page_108.png +3 -0
- images/mp3lan_0101/page_109.png +3 -0
- images/mp3lan_0101/page_11.png +3 -0
- images/mp3lan_0101/page_110.png +3 -0
- images/mp3lan_0101/page_111.png +3 -0
- images/mp3lan_0101/page_112.png +3 -0
- images/mp3lan_0101/page_113.png +3 -0
- images/mp3lan_0101/page_114.png +3 -0
- images/mp3lan_0101/page_115.png +3 -0
- images/mp3lan_0101/page_116.png +3 -0
- images/mp3lan_0101/page_117.png +3 -0
- images/mp3lan_0101/page_118.png +3 -0
- images/mp3lan_0101/page_119.png +3 -0
- images/mp3lan_0101/page_12.png +3 -0
- images/mp3lan_0101/page_120.png +3 -0
- images/mp3lan_0101/page_13.png +3 -0
- images/mp3lan_0101/page_14.png +3 -0
- images/mp3lan_0101/page_15.png +3 -0
- images/mp3lan_0101/page_16.png +3 -0
- images/mp3lan_0101/page_17.png +3 -0
- images/mp3lan_0101/page_18.png +3 -0
- images/mp3lan_0101/page_19.png +3 -0
- images/mp3lan_0101/page_2.png +3 -0
- images/mp3lan_0101/page_20.png +3 -0
- images/mp3lan_0101/page_21.png +3 -0
- images/mp3lan_0101/page_22.png +3 -0
- images/mp3lan_0101/page_23.png +3 -0
- images/mp3lan_0101/page_24.png +3 -0
- images/mp3lan_0101/page_25.png +3 -0
- images/mp3lan_0101/page_26.png +3 -0
- images/mp3lan_0101/page_27.png +3 -0
- images/mp3lan_0101/page_28.png +3 -0
- images/mp3lan_0101/page_29.png +3 -0
- images/mp3lan_0101/page_3.png +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
MarathonDocBench.json filter=lfs diff=lfs merge=lfs -text
|
MarathonDocBench.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7db0e659c76661ce87d4e1b3d47e010edbd48adfb446e3e2ee37260c60adf51c
|
| 3 |
+
size 114122727
|
README.md
CHANGED
|
@@ -1,3 +1,172 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-text
|
| 5 |
+
language:
|
| 6 |
+
- zh
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- document-parsing
|
| 10 |
+
- ocr
|
| 11 |
+
- multi-page
|
| 12 |
+
- long-document
|
| 13 |
+
- benchmark
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
pretty_name: MarathonDocBench
|
| 17 |
---
|
| 18 |
+
|
| 19 |
+
<div align="center">
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<hr>
|
| 26 |
+
|
| 27 |
+
<h1 align="center">MarathonDocBench</h1>
|
| 28 |
+
|
| 29 |
+
<div align="center">
|
| 30 |
+
|
| 31 |
+
<a href="https://huggingface.co/baidu/Unlimited-OCR2">
|
| 32 |
+
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Unlimited OCR Works 2-ffc107?color=ffc107&logoColor=white" />
|
| 33 |
+
</a>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
<div align="center">
|
| 37 |
+
<a href="https://arxiv.org/abs/2606.23050">
|
| 38 |
+
<img alt="arXiv" src="https://img.shields.io/badge/arXiv-Unlimited OCR Works 2-b31b1b?logo=arxiv&logoColor=white" />
|
| 39 |
+
</a>
|
| 40 |
+
<a href="https://x.com/Baidu_Inc" target="_blank">
|
| 41 |
+
<img alt="Twitter Follow" src="https://img.shields.io/badge/Twitter-Baidu Inc.-white?logo=x&logoColor=white" />
|
| 42 |
+
</a>
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
<h3 align="center">A New Benchmark for Ultra-Long Document Parsing: Targeting Hundred-Page-Scale Documents.</h3>
|
| 48 |
+
|
| 49 |
+
<!-- <div align="center">
|
| 50 |
+
|
| 51 |
+

|
| 52 |
+
|
| 53 |
+
</div> -->
|
| 54 |
+
|
| 55 |
+
MarathonDocBench is the first benchmark specifically designed for **hundred-page document parsing**. It contains 100 documents spanning **100–300 pages** (~18k pages, ~205k annotated layout elements, mixed Chinese/English), with rich cross-page structures — cross-page text and tables appear frequently and densely across documents. Structural annotations (bounding boxes, block type, hierarchy, reading order, and cross-page continuations of text and tables) are initialized from a strong page-by-page parser and carefully refined by human annotators; content transcriptions are verified through an iterative VLM-based refinement pipeline, with flagged disagreements adjudicated by human annotators.
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
<div align="center">
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
|
| 62 |
+
</div>
|
| 63 |
+
|
| 64 |
+
This repository ships the **data** (page images + ground-truth annotations).
|
| 65 |
+
Evaluation reuses the **MPDocBench-Parse** toolkit — see *Usage* below.
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## 1. Dataset
|
| 70 |
+
|
| 71 |
+
```
|
| 72 |
+
MarathonDocBench.json # ground-truth annotations (100 documents)
|
| 73 |
+
images/
|
| 74 |
+
├── PDF1/page_1.png …
|
| 75 |
+
├── PDF1/page_2.png …
|
| 76 |
+
├── PDF1/ … # one folder of page images per document
|
| 77 |
+
├── PDF2/page_1.png
|
| 78 |
+
└── … # ~18k PNG pages total
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
Each entry in `MarathonDocBench.json` follows the MPDocBench schema (`page_info` / `layout_dets` / `extra`): `layout_dets` carries per-element `category_type`, `text`/`html`/`latex`, reading `order`, heading `anno_id`, and `poly` boxes; `extra.relation` lists cross-page `truncated` merges.
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
---
|
| 86 |
+
|
| 87 |
+
## 2. Usage
|
| 88 |
+
|
| 89 |
+
Evaluate with the **MPDocBench-Parse** toolkit; this dataset is a drop-in ground-truth replacement (same schema, same eight metrics).
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
# 1. Get the toolkit
|
| 93 |
+
git clone https://github.com/Tongyi-Zhiwen/Qwen-Doc.git
|
| 94 |
+
cd Qwen-Doc/MPDocBench
|
| 95 |
+
pip install -r requirements.txt
|
| 96 |
+
pip install mmeval # needed by the dataset loader, not pinned upstream
|
| 97 |
+
|
| 98 |
+
# 1b. Replace 3 evaluator files with the accelerated drop-in from THIS repo
|
| 99 |
+
# (metric-identical; only adds doc-level parallelism + a configurable match
|
| 100 |
+
# timeout — vanilla hardcodes a 30s serial match that under-scores ultra-long
|
| 101 |
+
# docs and can take days). Overwrites dataset/end2end_dataset.py,
|
| 102 |
+
# metrics/cal_metric.py and utils/data_preprocess.py:
|
| 103 |
+
cp -r /path/to/MarathonDocBench/utils/mpdocbench_patch/* .
|
| 104 |
+
|
| 105 |
+
# 2. Place this dataset where the config can find it, e.g.
|
| 106 |
+
# data/MarathonDocBench.json and data/images/...
|
| 107 |
+
|
| 108 |
+
# 3. Generate predictions: one Markdown file per document, named <doc_id>.md
|
| 109 |
+
# (e.g. mp3lan_0101.md). Figure tags must follow the required format:
|
| 110 |
+
# 
|
| 111 |
+
# (N = 1-based page index; x1,y1,x2,y2 = integer coords on a 1000x1000 grid.)
|
| 112 |
+
# Any parser is fine, as long as figure tags follow this format.
|
| 113 |
+
|
| 114 |
+
# 4. Point configs/end2end.yaml at the dataset (ground_truth.data_path ->
|
| 115 |
+
# data/MarathonDocBench.json, prediction.data_path -> predictions/your_model_md),
|
| 116 |
+
# then run with the settings used for the leaderboard. MPDOC_TEDS_TIMEOUT is
|
| 117 |
+
# required: a few tables have tens of thousands of cells and pure-Python TEDS
|
| 118 |
+
# would run for hours on them; past the cap such a table scores 0.
|
| 119 |
+
MPDOC_EVAL_NPROC=32 MPDOC_MATCH_TIMEOUT=1800 MPDOC_DOC_BUDGET=0 \
|
| 120 |
+
MPDOC_TEDS_NPROC=32 MPDOC_TEDS_TIMEOUT=300 \
|
| 121 |
+
python pdf_validation.py --config ./configs/end2end.yaml
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
Per-metric results are written to `result/`. The leaderboard `Overall` is the mean of the eight metrics — compute it from the per-metric outputs.
|
| 125 |
+
|
| 126 |
+
> - **Running a general VLM?** Whole-document inference can fail on provider caps: too many input images per request, request/JSON size limits, or the output-token ceiling (long docs truncate mid-table). Our competitor baselines send all pages in one request, progressively downscale images on oversize/timeout and retry, skip docs over the image cap, and leave failures as empty predictions so the denominator stays 100.
|
| 127 |
+
> - **Evaluation notes.** Headings must be real Markdown headings (`#`, `##`, …) — emphasis such as `**bold**` is NOT counted as a heading (it will lower HeadingTEDS). Figure page attribution is part of the score: a figure tagged with the wrong `pageN` is matched against the wrong page and penalized by FigureF1. The documents are very long; with the accelerated evaluator above (`MPDOC_EVAL_NPROC` + a large `MPDOC_MATCH_TIMEOUT`) a full 100-document run takes tens of minutes instead of hours.
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## 3. Leaderboard
|
| 133 |
+
|
| 134 |
+
Sorted by `Overall` (the mean of the eight metrics), ascending. All entries are end-to-end VLM-based parsers.
|
| 135 |
+
|
| 136 |
+
| Model | Overall | TextEdit | T-TextEdit | TableTEDS | T-TableTEDS | FormulaCDM | ReadOrderEdit | FigureF1 | HeadingTEDS |
|
| 137 |
+
|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
|
| 138 |
+
| Doubao-Seed-2.1-Pro | 5.54 | 10.75 | 4.25 | 3.15 | 4.76 | 2.82 | 7.13 | 7.52 | 3.92 |
|
| 139 |
+
| GLM-5.3-Flash | 7.51 | 14.01 | 6.43 | 7.12 | 6.65 | 4.50 | 7.70 | 7.10 | 6.55 |
|
| 140 |
+
| Doubao-Seed-2.1-Turbo | 8.50 | 18.38 | 8.97 | 5.87 | 5.07 | 6.00 | 10.18 | 8.16 | 5.37 |
|
| 141 |
+
| DeepSeek-4.1-Flash | 12.34 | 26.00 | 6.67 | 12.74 | 12.59 | 10.45 | 15.70 | 6.95 | 7.62 |
|
| 142 |
+
| Minimax-M3 | 17.97 | 34.09 | 18.22 | 17.79 | 14.84 | 14.20 | 23.73 | 3.67 | 17.16 |
|
| 143 |
+
| Qwen-3.8-Max | 22.93 | 39.96 | 19.63 | 15.20 | 13.71 | 18.82 | 26.67 | 33.39 | 16.09 |
|
| 144 |
+
| Gemini-3.1-Pro Preview | 27.0 | 48.4 | 23.6 | 28.5 | 21.7 | 30.4 | 34.6 | 18.9 | 9.7 |
|
| 145 |
+
| Qwen-3.8-Flash-Next | 27.8 | 45.6 | 24.7 | 25.4 | 21.0 | 28.3 | 32.1 | 24.1 | 21.5 |
|
| 146 |
+
| Gemini-3.8-Flash | 28.6 | 48.1 | 34.2 | 23.4 | 19.6 | 26.4 | 31.3 | 18.6 | 27.3 |
|
| 147 |
+
| Kimi-K3 | 33.7 | 52.5 | 33.6 | 27.8 | 26.3 | 40.5 | 38.9 | 21.4 | 28.9 |
|
| 148 |
+
| **Unlimited OCR Works 2** | **77.06** | **89.6** | **87.7** | **74.8** | **71.1** | **87.9** | **85.3** | **71.8** | **48.2** |
|
| 149 |
+
|
| 150 |
+
---
|
| 151 |
+
|
| 152 |
+
## License & Copyright
|
| 153 |
+
|
| 154 |
+
Annotations and tooling references are released under Apache-2.0. The page images are derived from publicly accessible documents and are provided **for academic and research use only**; redistribution of the source documents is not granted by this license. If any content raises copyright concerns, contact the maintainers and it will be addressed promptly.
|
| 155 |
+
|
| 156 |
+
## Acknowledgement
|
| 157 |
+
|
| 158 |
+
We build on [MPDocBench-Parse](https://github.com/Tongyi-Zhiwen/Qwen-Doc) for the evaluation toolkit and annotation schema, and thank [OmniDocBench](https://github.com/opendatalab/OmniDocBench) and [CDM](https://github.com/opendatalab/UniMERNet/tree/main/cdm) for the metrics and ideas this benchmark reuses.
|
| 159 |
+
|
| 160 |
+
## Citation
|
| 161 |
+
|
| 162 |
+
```bibtex
|
| 163 |
+
@misc{shu2026unlimitedocrworks2,
|
| 164 |
+
title={Unlimited OCR Works 2},
|
| 165 |
+
author={Baidu ERNIE Team},
|
| 166 |
+
year={2026},
|
| 167 |
+
eprint={xx},
|
| 168 |
+
archivePrefix={arXiv},
|
| 169 |
+
primaryClass={cs.CV},
|
| 170 |
+
url={xx},
|
| 171 |
+
}
|
| 172 |
+
```
|
assets/baidu.png
ADDED
|
Git LFS Details
|
assets/leaderboard.png
ADDED
|
Git LFS Details
|
assets/overview.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_1.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_10.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_100.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_101.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_102.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_103.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_104.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_105.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_106.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_107.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_108.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_109.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_11.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_110.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_111.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_112.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_113.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_114.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_115.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_116.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_117.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_118.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_119.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_12.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_120.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_13.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_14.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_15.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_16.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_17.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_18.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_19.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_2.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_20.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_21.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_22.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_23.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_24.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_25.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_26.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_27.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_28.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_29.png
ADDED
|
Git LFS Details
|
images/mp3lan_0101/page_3.png
ADDED
|
Git LFS Details
|