---
site_search: "GET /ask?q={query} (read-only search over extend.ai and docs.extend.ai; returns links and quoted passages, not generated answers)"
title: "How to measure document processing accuracy beyond benchmarks"
description: "Documented examples of how document processing benchmarks mis-score results, and how to measure accuracy on your own documents."
author: "Ameya Joshi, Devin Logan, Jing Reyhan"
category: "Engineering"
published: 2026-11-24
image: "https://www.extend.ai/images/blog/how-to-measure-document-processing-accuracy-beyond-benchmarks/featured.webp"
canonical: https://www.extend.ai/resources/how-to-measure-document-processing-accuracy-beyond-benchmarks
---

# How to measure document processing accuracy beyond benchmarks

> Search this site and the docs: [`/ask?q=…`](/ask?q=webhook+retries) returns matching pages from extend.ai and docs.extend.ai, with quoted passages.

Benchmarks used to be academic endeavors run by independent labs with no stake in models being tested putting together massive datasets with human annotations for accuracy.

Today, many benchmarks are built to serve as marketing proof rather than meaningful evaluations of task completion success. This has led to a huge variation in benchmark quality that is not obvious to buyers.

**The most accurate eval is still an eval you run on your docs.** However, benchmarks can still be directionally useful as long as you're aware of their nuances.

## Common problems seen in document processing benchmarks

### Benchmark labels are hidden, biased, or rushed

Labels are the correct answers a benchmark scores each model against. Every score depends on them, so a benchmark is only as trustworthy as its labels.

| Problem | Example | Why it matters |
| --- | --- | --- |
| Scoring targets aren't published | One benchmark set its error penalties to match scores its authors picked by hand for 330 test cases. Those test cases aren't public. | Scoring reflects the authors' unverifiable opinions about which mistakes matter, not a measurement of how much a model got right. |
| Labels follow the publisher's model conventions | **Headers and footers:** one benchmark requires models to strip page headers and footers from their output (e.g. page numbers, notices, labels). If a model makes a decision to leave headers and footers intact, it loses points on that benchmark.<br><br>**Merged table cells:** one benchmark's labels repeat a merged cell's value in every cell it covers. Another's penalize the repetition.<br><br>**Layout:** labels that fix their own block boundaries penalize a model that splits the same text another way. | Many document processing tasks have more than one valid output format. Any model that formats its output differently is penalized. |
| Labels contain errors | Year headers were recorded as "299/251" instead of "2023/2022". Eight labels were corrected two days after release. | Models that read the page correctly lose points until someone notices. |

![Two page footers from two benchmarks, each shown with the same two outputs and how the benchmark grades them. Benchmark A: a journal page footer reads PLOS ONE, DOI:10.1371/journal.pone.0138287, September 23, 2015. The output that keeps the footer fails; the output that drops the footer passes. Benchmark B: a report page footer reads 13, Excelling Together. The output that keeps the footer gets no penalty; the output that drops the footer loses 8.5 points.](https://www.extend.ai/images/blog/how-to-measure-document-processing-accuracy-beyond-benchmarks/labels-headers-footers.webp)

*Two benchmarks with opposite rules for the same choice. On the first page, every boxed footer item must be absent from the output, so an empty output passes all five tests. On the second, leaving out the page footer costs 8.5 points.*

### Benchmark documents don't represent real workloads

A benchmark is only as representative as the documents in it. Even with perfect labels, a score tells you how a model performs on that particular set of documents (which may not look like your production documents).

| Problem | Example | Why it matters |
| --- | --- | --- |
| Documents are cherry-picked | A vendor runs its own model and competitors' models on a large dataset, then builds the benchmark from the cases where its own model comes out ahead. | A model can look worse overall because of a handful of selected cases. |
| Documents don't reflect production | **Source:** many benchmarks are built from public documents such as research papers, government forms, and financial filings, because they're easy to collect and share.<br><br>**Quality:** those are mostly clean digital PDFs. Production workloads include scanned or photographed pages, faxes, and handwriting.<br><br>**Length:** production documents often arrive as long packets, not single pages. | A high score on clean PDFs doesn't predict accuracy on your documents. |

**Benchmark documents vs. production documents**

Typical benchmark documents are clean, digital, single-page, and simple in layout: an empty table, a simple two-column table, a page of plain text, and a simple menu layout.

Production documents are dense forms, nested tables, checkboxes, and handwriting: a scanned straight bill of lading, a filled CMS 1500 claim form, an ACORD 125/126 insurance application, and a handwritten housing application.

### Benchmark tests and metrics measure the wrong things

A benchmark's tests and metrics decide what counts as success. A test defines what the model is asked to get right, and a metric turns its output into a number.

| Problem | Example | Why it matters |
| --- | --- | --- |
| Tests score details that don't matter | **Text styling:** losing italics costs the same 10 points as a wrong number in a table.<br><br>**Visual artifacts:** a table benchmark penalizes models for not reproducing the dots that connect rows in old printed tables even though the dots only help people read across rows. | Teams in healthcare, insurance, legal, and supply chain care about word accuracy, reading order, tables, forms, checkboxes, and signatures, not styling. |
| Gaps in metrics reward the wrong output | **Dropped rows:** keeping only the first half of each table's rows scores 1.0 on all 1,000 tables.<br><br>**Invented text:** adding a made-up paragraph leaves the text score unchanged on 196 of 200 pages.<br><br>**Minus signs:** hyphens are stripped before comparison, so "-1,200" and "1,200" count as the same value.<br><br>**Empty output:** an empty response scores 99% in one category, higher than every system on the leaderboard. | A model can lose data, invent it, or flip a sign without the score moving. |
| Scoring contradicts the documentation | The prompt asks for tables as HTML, but about 70% of the ground-truth files use markdown.<br><br>Another benchmark's documentation says markdown and HTML tables score the same, but scoring gives markdown tables a lower score. | A model that follows the instructions scores lower. |
| The overall score depends on the formula | **Failed documents:** one benchmark skips documents a system failed to return. Counting one as zero drops the top system below another.<br><br>**Category weights:** one overall score is a plain average of categories. Dropping a category that tests formatting preferences moves a model from 13th to 7th. | A lead can come from the formula, not the actual model performance. |

![One benchmark table shown twice, each with a model output and its score. First, the left columns of the table list five rows: Authenticity, Intimacy, Community, Social Justice, and Insights. The output returns only the header and the first row; rows 2 to 5 are not returned. Score: 1.0. Second, the right columns of the same table show Skew values of -1.84, -0.45, -1.10, -2.49, and -0.58. The output returns 1.84, 0.45, 1.10, 2.49, and 0.58, with the minus signs deleted. Score: 1.0.](https://www.extend.ai/images/blog/how-to-measure-document-processing-accuracy-beyond-benchmarks/scoring-gaps.webp)

*Two outputs that score a perfect 1.0 on one table benchmark: one returns only the first of five rows, and the other deletes every minus sign. Dropping half the rows scores 1.0 on all 1,000 tables in that benchmark.*

### Benchmarks reward correctly formatted wrong values

The worst problem is also the simplest. Many benchmarks check whether a model's answer matches the expected format, not whether the value is correct.

| Value | Correct, but penalized | Wrong, but rewarded | Why it matters |
| --- | --- | --- | --- |
| Date (label: "January 18, 2005") | "2005-01-18" scores 0. | "January 19, 2005" scores 0.94. | You can reformat a date downstream. You can't recover the right day. |
| Receipt amounts | Every amount correct but written without a thousands separator ("24000") scores 0.40. | The total changed from 28,000 to 38,000, with everything else copied exactly, scores 0.90. | A wrong total is a payment error. A missing comma isn't. |
| Table values | "\$1,200.00" written as "1200" scores 0.87. | Two numbers inflated tenfold scores 0.98. | A tenfold error in a revenue figure reads as nearly perfect. |

![A benchmark document with the field Date Assigned: January 18, 2005 boxed as the labelled answer. Three answers to the question and their scores: 2005-01-18, the right day, scores 0. 01/18/2005, the right day, scores 0. January 19, 2005, the wrong day, scores 0.94.](https://www.extend.ai/images/blog/how-to-measure-document-processing-accuracy-beyond-benchmarks/wrong-values-date.webp)

*A benchmark question asks for the date assigned. The correct date scores 0 in ISO or US format, while the wrong date written in the label's format scores 0.94.*

![A photographed benchmark receipt with each labelled amount boxed and joined by a line to the matching row of two answers. Printed amounts: 24,000, 4,000, subtotal 28,000, total 28,000, cash 100,000, change 72,000. Answer A has the right amounts with the commas left out (24000, 4000, 28000, 28000, 100000, 72000) and scores 0.40. Answer B keeps the commas but reports the total as 38,000, and scores 0.90.](https://www.extend.ai/images/blog/how-to-measure-document-processing-accuracy-beyond-benchmarks/wrong-values-receipt.webp)

*On this benchmark receipt, writing every amount correctly without thousands separators scores 0.40. Copying every amount exactly but getting the total wrong scores 0.90.*

## How to evaluate document processing vendors on your own data

A good benchmark tells you which vendors are worth testing. Your own documents tell you which one to choose. Most vendors, [including Extend](https://www.extend.ai/pricing), offer a free tier or pay-as-you-go pricing, so you can run an eval before committing.

A useful eval comes down to defining what you're measuring, building a dataset that reflects production, and running enough tests to trust the results.

### Define what your eval should measure

Before you test any vendor, decide what success looks like for your documents.

**1. Label data yourself.** Labeling a few documents by hand shows you:

- How hard the task is
- What to look for in a vendor
- How much effort a good model would save
- Which edge cases show up in your documents, such as low-quality scans, handwriting, or dense tables

> **Example:** labeling a few invoices can show that line items take most of the time, or that your system only needs totals and vendor names.

**2. Choose metrics based on the failures that would cost you the most.** A vendor's benchmark reflects the vendor's priorities, which may not be yours. Start from the failures that would cost you the most, for example:

- **Insurance claims:** one misread checkbox can approve a claim that should have been denied.
- **Logistics:** a dropped row on a bill of lading means a shipment goes unaccounted for.
- **Parsing for agent context:** the agent works from the full text, so word accuracy and reading order matter more than any single field.

Measure each failure directly, such as the share of checkboxes read correctly or line items captured. An overall score can hide these failures.

### Build an eval dataset that reflects production

A good eval dataset is consistent and representative of what you process.

**1. Normalize your values.** Pick one format for each kind of value:

- **Units:** pounds, kilograms, and grams in one dataset will throw off your results.
- **Currencies:** make sure values are extracted with the right symbol.
- **Formatting:** commas in numbers, date formats, and extra whitespace don't change meaning.

**2. Match your production mix.** Include each document type in roughly the proportions you see in production. If 40% of your documents are scanned receipts, but your eval set is mostly clean digital invoices the eval will produce a winner that will underperform in production.

**3. Have a person verify your ground truth.** Your ground truth is the set of labels you score each vendor against, and your results are only as reliable as those labels. A label counts as ground truth once a person has reviewed it: read the value from the document, pulled it from a system of record, or verified it by hand.

- **LLM-generated labels** aren't ground truth on their own. Have a person review them. If you can't review all of them, spot-check a random sample to estimate how many are wrong.
- **Labels from a vendor you're evaluating** need a full review. Otherwise that vendor's mistakes will look correct and penalize everyone else.

### Run enough tests to trust the results

Most document processing systems are built on AI models, so the same input can produce slightly different answers on different runs.

**1. Run each vendor more than once.** Use a dataset large enough that any difference between vendors is statistically significant.

**2. Compare confidence intervals, not single numbers.** Bootstrapping, which resamples your results many times to estimate how much the score varies, is a straightforward way to calculate them.

**3. Test the edge cases separately.** Just like with any software, you need to know where a model fails so you can build fallbacks around those failures. Score the edge cases you find in your own traffic as a separate set so your main results stay representative.

**4. Review the failures.** After running your eval, review the failures individually. Some will be real vendor mistakes, but others could trace back to your own ground truth or scoring, especially if every vendor is failing a particular test.

**Vendor eval best practices**

A PDF checklist you can share with your team.

PDF: <https://www.extend.ai/images/blog/how-to-measure-document-processing-accuracy-beyond-benchmarks/extend-eval-best-practices.pdf>

## How to use benchmarks alongside your own eval

Benchmarks can still be a useful complement to your own evaluation. If **you don't have your own dataset yet**, which is common when you're building something new, a benchmark built from real-world documents similar to yours can fill the gap. (We can also help you source documents for a good eval.)

When you use one, look for a benchmark that:

- Publishes its datasets and how it scores them
- Uses documents that resemble yours
- Reports cost and latency alongside accuracy
- Measures downstream task completion (e.g. Q&A accuracy) versus just an F1 accuracy score
- Explains how the overall score is calculated, such as whether failed documents count as zero or are left out

We built [Extend's benchmarks](https://www.extend.ai/benchmarks) to meet these criteria and reflect what teams run in production. We open-source our evaluation framework and datasets, and we also evaluate against third-party benchmarks that we neither commission nor design.

**Open benchmarks**

Video: <https://www.extend.ai/videos/blog/how-to-measure-document-processing-accuracy-beyond-benchmarks/open-benchmarks.mp4>

## Run your own eval with Extend

Our [Evaluation sets](https://docs.extend.ai/evaluation/creating-evaluation-sets) feature lets you pair each document with the output you expect, then run the set against any compatible extractor, classifier, or splitter to measure accuracy. You can build a set yourself, or convert a batch of reviewed results into one. We built this specifically to support document processing evals beyond benchmarks.

Unique to Extend, we also provide access to a technical document engineering team who can help with every step of your eval, from picking metrics and documents to building your ground truth and interpreting the results.

→ New accounts include [10,000 free credits ($100)](https://docs.extend.ai/general/how-credits-work) to test on your own documents.

→ [Book a call](https://www.extend.ai/get-started) with our document engineering team to start setting up your eval today.
