Newsroom Wire

US10-23 00:11⏱ 4 min read

A Developer’s Guide to OmniParseBench: Leaderboard Benchmarks and OCR Testing

In this tutorial, we implement OmniParseBench, Datalab’s open benchmark for document parsers, which grades a parser’s output with 16,288 small pass-or-fail tests across 2,937 pages, from scanned forms and handwriting to arXiv math and dense tables.

Rather than trust the leaderboard, we rebuild it from the verdicts Datalab released for 27 parsers, after feeding the scorer a hand-made page to see which mistakes flip a verdict.We then measure ranking certainty, slice it by document type, test whether the two models the card names as helping build tests behave differently on tests a model corrected, and run Tesseract and Indra OCR ourselves on a 50-page sample.

Along the way, we find that the top two parsers are statistically tied, the leader changes on most slices, and one launch figure doesn’t match the released files.

We install omni-parse-bench pinned to 1.0.0rc1, because a bare pip install still resolves to 0.2.0, an older release with a different API.The benchmark extra brings the parser adapters, the Hugging Face client, and pyarrow for the manifest, and on Colab we add Tesseract with its script models through apt.

We also pin the dataset to one commit, since the repository changes as parsers are added.Printing the families shows the structure the benchmark rests on: present, order, and repeat tests form the text family; table_cell forms the tables family; and layout_kind forms the layout family.

Before trusting a score, we want to see what a verdict means, so we write a gold file by hand with thirteen tests on an invented page and grade predictions with unit_tests.score, the function the benchmark itself uses.

A base prediction passes everything, and each variant changes one thing.A one-letter typo, a lost minus sign, a different symbol in an equation, swapped headings and a mislabelled block each flip exactly one test to fail, with a reason attached.

The controls still pass: capitals, a dropped thousands separator and dfrac in place of frac, because text is folded and equations are compared after KaTeX renders them.

With the scorer understood, we download the manifest, the gold files, and the published verdicts at the pinned revision, skip the 1.5 GB of page images, and read every page’s tests through unit_tests.gold.

The counts match the dataset card, including 92 languages once the undetermined and no-language codes are removed.Two fields deserve attention.Tags such as handwriting, rotated, or table never decide a verdict; they only let us slice results.

Derivation records how each answer was established, from publisher markup and text layers to model panels and human review, which lets us test later whether test construction favored any parser.

Because results.parquet holds one row per parser per test, we can rebuild the leaderboard by passing each parser’s rows to unit_tests.summarize.The headline is the mean of the text, tables and layout pass rates with unsupported tests left out, so a parser that cannot return layout blocks, such as Tesseract, gets no headline at all.

All 108 entries in the card’s table match its one-decimal values.The recomputation also exposes a near tie at the top: Datalab accurate and Gemini 3.8 Flash both round to 92.9, 0.024 points apart, and pooling every test instead of averaging families puts Gemini first.

A gap that small raises the question of how much of the order is noise.Tests on one document tend to pass or fail together, so we resample documents rather than tests: each of 2,000 draws picks 2,343 documents with replacement and recomputes every headline from per-document pass counts with one matrix product.

The gap between the top two runs ranges from about -0.9 to +0.9 points, and each leads in roughly half the draws, so the honest reading is a tie.Datalab balanced, 1.35 points behind the leader, is clearly separated from it, and so is every parser below.

Slicing by tag shows what a single headline hides about the documents we actually have.We recompute the headline on handwriting, rotated pages, tables, single scripts, and other slices with the same family-mean rule, after an assertion confirms that the rule reproduces the official headlines on the full set.

The overall leader comes first on only three of thirteen slices.Gemini 3.8 Flash leads on handwriting, math, and forms; Claude Sonnet 5.5 on rotated pages; and Mistral OCR on Greek.Armenian and Lao rest on six and five documents, so we treat them as hints rather than rankings.

The dataset card marks Gemini 3.8 Flash and Claude Sonnet 5.5 as used in creating and verifying some tests without saying which, so we ask a narrower question with a difference-in-differences: does a parser’s pass rate on one derivation split, relative to its rate elsewhere, change differently for the starred pair?

On the 102 model_review tests, which a vision model corrected, both groups pass far less often than elsewhere, but the starred pair falls about 25 points less.The human_review placebo shows a smaller gap in the

Snapshot for aggregated reading; content from the public web, © the original publishers.

AI NewsCove

Opening article…