Skip to content
View original post on X: Jerry Liu
Published

LlamaIndex explains severity-aware evaluation with ParseBench-2

AILlamaIndex says ParseBench-2 lets users tune deterministic document-parsing metrics with customizable severity policies, so severe errors count differently from harmless formatting differences. Its taxonomy covers more than 330 error types across five severity levels, including wrong digits, misplaced decimals, swapped values, and missing columns.
Jerry LiuVerified on X
@jerryjliu0
View on X

One of the hardest parts around document parsing is parsing complex tables.

Besides the task itself being difficult, it is also hard to measure what ‘good’ looks like. Ultimately it comes down to intuition around what is a catastrophic error for downstream knowledge work.
* Formatting differences (markdown vs. html tags) are harmless
* Making the header row a “data” row is also probably harmless (any human/model can interpret it as the header anyways)
* Swapping the signs on a number, particular in financial reporting, is much more severe.

It is hard to encode what “good” looks like in a quantifiable way. Existing deterministic tests/metrics (OmniDocBench/OlmOCR-Bench/ParseBench-1) use some variant of edit distance, or an average over binary tests, making it hard to distinguish severe errors from normal ones.

With our recent release of ParseBench-2, our answer is to tune any deterministic metric by a severity policy, where you can explicitly state how good or bad different errors are.
* For instance, in a finance setting, dropping digits/flipping signs is really bad! Our default severity weighting is 10, but you might decide 25 - the policy is meant to be customizable by the user.
* Check out the examples below highlighting this. You can compare the impact of “actually bad” or “harmless” perturbations on a few different benchmarks incl. ParseBench-2.

We have a taxonomy of 330+ error types, a big subset of which is defined around table errors, categorizing them from 5 severity levels:
* most severe: wrong digits, decimals misplaced, values swapped, column missing
* medium severe: body rows reordered, one cell split into two, etc.
* harmless: formatting errors, html markup

More details around table methodology in blog/tech report.
Blog: https://www.llamaindex.ai/blog/introducing-parsebench-v2
Tech report: https://www.llamaindex.ai/files/parsebench-v2-severity-aware-evaluation-of-document-parsing.pdf

Source details

Jerry Liu · x.comPublished · added here

Original title: One of the hardest parts around document parsing is parsing complex tables.