How to Independently Reproduce a Document Extraction API Benchmark in 48 Hours
A 48-hour plan for building a benchmark others can audit.

An independent document extraction API benchmark can be reproduced in 48 hours if the work follows a disciplined sequence. The credible result comes from a representative corpus, schemas fixed before testing, field-level scoring that penalizes missing rows and invented values, and evidence another team can audit. The goal is not another headline accuracy figure, but a defensible account of where each API succeeds, fails, and costs too much.
Why vendor-published extraction benchmarks are hard to trust and hard to reproduce
Clearing a benchmark is not the same as surviving production. A correct demonstration says little about whether a system sustains accuracy, reproducibility, and calibrated confidence over months of traffic. The figures vendors highlight often come from test sets they own or have curated, which independent teams cannot check before signing production contracts. Scores are abundant, but the underlying corpora, schemas, and scoring rules are rarely released together. Without that combination, a third party cannot establish what the number measures.
ExtractBench, published in July 2026, identifies failures that favorable demonstration documents are unlikely to expose, including missing rows in long lists, the wrong occurrence of a sparse fact, overfilled forms, and confused dates. These are not merely harder versions of reading clean text. They test completeness, selection, and restraint under conditions that production workflows encounter. Vendor benchmarks may therefore serve as a first screen, but clean, short, born-digital PDFs systematically flatter systems on precisely these failure modes. The credibility gap begins with what the test excludes.
What parsing benchmarks and extraction benchmarks each measure, and why the distinction controls your whole methodology
Before writing evaluation code, decide which pipeline stage the reproduction will test. Parsing tests whether document content becomes a representation an agent can reason on correctly, including layout, reading order, table structure, and formatting. ParseBench, published in April 2026, organizes that task around five capability dimensions, namely tables, charts, content faithfulness, semantic formatting, and visual grounding. Its results show a fragmented capability landscape, with no method consistently strong across all five dimensions and a highest overall score of 84.9%. Parsing quality is not a single interchangeable capability.
Extraction asks a different question of the output. It tests whether the system returns complete, schema-valid values for the fields a user asks for. ExtractBench defines schema-guided extraction as following a user-defined schema faithfully and returning correct output with source evidence as grounding metadata. The input is a document and a JSON Schema. Success requires choosing the right facts as well as showing what is on the page faithfully.
That distinction controls the rest of the methodology. Fixed-ontology extraction uses predefined fields and is easier to reproduce, but it says less about workflows whose schemas evolve. Enterprises write a new schema for almost every new workflow, so a test tied to one template cannot represent that requirement. For an extraction reproduction, compare extraction-stage systems and retain separate evidence about parsing failures where available. A composite score that conflates the stages cannot explain which tier caused a difference between APIs.
How existing benchmarks define the scoring problems a reproduction must solve
SROIE, DocILE, and RealKIE evaluate predefined fields, with the first two covering a single domain and the third spanning five domains. They provide reproducible tasks, but not an evaluation of user-defined schemas. ExtractBench instead combines long-record completeness, real scans and handwriting, word- and page-level grounding, and measured cost per page. Its challenge tags make aggregate results separable by the conditions that produced them.
Contextual AI’s ExtractBench, published in February 2026, supplies a complementary schema-driven framework. Each field declares its scoring rule, including exact match for identifiers, numeric tolerance for quantities, and semantic equivalence for names. Nested arrays require semantic alignment. The framework also separates omission from hallucination, so silence and invention do not become indistinguishable errors. Its schema-breadth stress test is especially instructive, as all tested models produced 0% valid output on a 369-field financial reporting schema.
A reproduction needs field-specific correctness rules, array alignment, completeness penalties, separate omission and hallucination counts, grounding scores, and measured cost. Include the broad-schema stress test in that design. Grounding must remain an independent dimension because a reviewer investigating a truncated schedule needs evidence that locates the source. Cost deserves equal visibility because a difference of one cent per page can determine financial viability at production volume.
Assembling a corpus that stress-tests APIs rather than flatters them
On day one, select documents for diagnostic coverage. EnterpriseDocBench uses public, permissively licensed documents from six enterprise domains, and its current pilot covers five of them. That approach permits redistribution and lets another team reproduce the test with the same inputs. A large pile of clean PDFs does not compensate for missing the conditions most likely to break extraction.
Stratification by challenge tag should be visible in the pile itself. Include at least one long invoice or fund schedule, a table that continues across pages, a scanned or handwritten form, a document with hierarchical headers, and a dense multi-field form. Financial filings, insurance claims, purchase orders, government forms, and healthcare records provide relevant business contexts. Long arrays need a close look because getting the early rows right can hide failures farther down the document. ExtractBench also uses synthetic long lists based on real layouts to expose truncation that a small selection of real documents may not trigger.
Public documents also carry a risk of test-set leakage. If a system saw them during fine-tuning or prompt engineering, its score may come from memorization. Where that risk is material, supplement the public corpus with proprietary documents and hand-annotated ground truth. Budget explicitly for that annotation within the 48-hour window. The minimum viable corpus is enough document-schema pairs to cover the major challenge tags.
Defining schemas and ground truth before looking at API output
Fix the schemas before making any API calls. Writing them after inspecting responses lets the systems under test influence what counts as correct, even without deliberate favoritism. Treat each JSON Schema as a production data contract, with fields, nesting, and types settled in advance. Version and timestamp both the schemas and their ground truth. This is a credibility requirement because later readers need evidence that the target did not move.
The rules for field-level evaluation must be part of that frozen specification. The Contextual framework uses evaluation_config annotations, including string_exact for identifiers, number_tolerance for quantities, string_semantic for free text, and boolean_exact for flags. Explicitly identify arrays and make order-insensitive matching the default, so reordered rows do not become false errors. Ground truth must also remain independent of the candidate APIs. Use at least two annotators for complex fields, adjudicate disagreements, and retain the adjudication record rather than silently replacing one interpretation with another.
The annotations must distinguish present values, explicit nulls, and absent output. Use present for extracted data, null for a field explicitly empty in the document, and MISSING for a field absent from the API response. Those states have different implications for scoring. A gold value paired with MISSING is an omission, while a gold null paired with an asserted value is a hallucination.
Running APIs against identical inputs and capturing traceable evidence
Once the corpus and schemas are frozen, run every API against exactly the same document bytes, schema, and runtime configuration. Record model version hashes or API version identifiers and timestamps for every run. Keep parsing-stage and extraction-stage comparisons separate while running the tests. A result without a version identifier cannot support a reliable comparison with a future release. Identical inputs establish the basis for attributing output differences to the systems.
Capture the evidence needed for more than value scoring. Retain per-field confidence scores and source citations, including bounding boxes or page references, alongside the final JSON. Without those signals, confidence calibration and grounding cannot be evaluated. For documents with long arrays, also log how many rows were returned and how many gold rows there are. That explicit record makes silent truncation visible even when an aggregate accuracy score obscures it.
The logs for each run must include wall-clock latency and cost per page for every call. ExtractBench reports measured costs ranging from 0.2¢ to 34¢ per page across its evaluated systems, illustrating why cost belongs in the run record. Store raw API responses with the scored outputs. A disputed match can then be rescored under a revised metric without repeating the call.
Scoring field-level accuracy, penalizing dropped rows, and separating omission from hallucination
Compute precision, recall, and F1 per field across all documents. This exposes fields that are consistently unreliable instead of allowing strong performance elsewhere to conceal them. Apply the metric preregistered for each scalar field. An identifier requires exact matching, while a quantity may allow numeric tolerance and free text may require semantic equivalence.
For arrays, align predicted rows with gold rows semantically, without requiring the same order. Then score the matched pairs field by field. Count unmatched gold rows as omissions that reduce recall, and unmatched predicted rows as hallucinations that reduce precision. This closes a major loophole in long-record evaluation.
The production consequence is incomplete data without an error signal. An agent reconciling fund holdings from a truncated schedule can make decisions without knowing records are absent. Explicit row penalties expose that failure rather than rewarding the correctness of the surviving rows alone. Keep scalar omission and hallucination results separate for the same reason. Failure to return an existing value and assertion of a value where the document is empty create different risks.
Score grounding independently from value accuracy by checking whether the cited bounding box or page reference contains the extracted value. Word-level and page-level grounding F1 distinguish precise traceability from approximate attribution. Next, group fields by their stated confidence band and compare that confidence with how often they are correct. A high-confidence band should be correct at approximately its stated rate, or the signal cannot serve as an automation gate. Finally, slice these scores by challenge tag so long records, scans, hierarchical headers, and cross-page tables produce a capability profile.
Auditing results with traceable evidence and publishing a reproduction-ready report
Publish the corpus, schemas, ground truth, scoring code, raw outputs, and version identifiers together wherever redistribution permits. The report should lead with per-field and per-challenge-tag findings. Label every result with the API version, the date of the run, and the hash of the input document. A reader investigating dense forms or long schedules should be able to locate the relevant evidence without inferring performance from an overall winner.
Both the Contextual framework and the July benchmark release datasets and evaluation frameworks on GitHub, establishing a practical standard for independent reproduction. Match that openness with explicit limits on interpretation. Flag plausible test-set leakage rather than silently discarding affected results, and show cost per page beside accuracy. Confidence calibration failures belong in the main findings. Even with strong value F1, threshold-based automation needs a confidence signal it can trust.
Another team can inspect a citation, challenge an annotation, or revise a matching rule against the retained raw response. That makes the output more durable than a one-time ranking. As APIs release new versions, the same corpus, schemas, and scoring harness can be rerun for ongoing production monitoring. The 48-hour exercise thus becomes a maintained test asset, with its claims bounded by evidence that others can examine.
Sources
- ExtractBench: A Benchmark for Schema-Guided Enterprise Document Extraction
- ParseBench: A Document Parsing Benchmark for AI Agents Boyang Zhang
- ExtractBench: A Benchmark for Schema-Guided Enterprise Document Extraction
- ExtractBench: A Benchmark and Evaluation Methodology for
- ExtractBench: A Benchmark and Evaluation Methodology for Complex Structured Extraction


