id stringlengths 15 73 | category stringclasses 1
value | pdf stringlengths 24 82 | data_schema stringclasses 42
values | expected_output stringlengths 450 110k | field_rules stringlengths 2 1.17M | repeated_structure stringclasses 16
values | tags listlengths 4 11 |
|---|---|---|---|---|---|---|---|
short/00581-2011-p0050 | short | docs/short/00581-2011-p0050.pdf | {"$defs": {"CodedEntry": {"type": "object", "title": "Coded box entry", "properties": {"code": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Code", "description": "The single-letter (or short) code printed at the left of the entry inside this Part III box, verbatim uppercase as printed (e... | {"final_k1": false, "amended_k1": false, "partnership_ein": "26-1287244", "partnership_name": "TELCO EXPERTS LLC", "partnership_address": "38 PARK AVENUE, RUTHERFORD, NJ 07070", "irs_center": "OGDEN, UT", "is_publicly_traded_partnership": false, "partner_id": "20-2113320", "partner_name": "ESK CONSULTANTS LLC", "partne... | {"final_k1": {"comparator": "boolean", "evidence": [{"page": 1, "bbox": [0.5491, 0.0764, 0.0284, 0.0155], "quote": null, "value": false, "coarse": true}], "source_policy": "verbatim", "evidence_required": true, "verified": true, "verified_by": "human"}, "amended_k1": {"comparator": "boolean", "evidence": [{"page": 1, "... | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
short/00581-2011-p0052 | short | docs/short/00581-2011-p0052.pdf | {"$defs": {"CodedEntry": {"type": "object", "title": "Coded box entry", "properties": {"code": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Code", "description": "The single-letter (or short) code printed at the left of the entry inside this Part III box, verbatim uppercase as printed (e... | {"final_k1": false, "amended_k1": false, "partnership_ein": "26-1287244", "partnership_name": "TELCO EXPERTS LLC", "partnership_address": "38 PARK AVENUE, RUTHERFORD, NJ 07070", "irs_center": "OGDEN, UT", "is_publicly_traded_partnership": false, "partner_id": "082-50-3812", "partner_name": "ADAM GOLDBERG", "partner_add... | {"final_k1": {"comparator": "boolean", "evidence": [{"page": 1, "bbox": [0.5493, 0.0753, 0.0284, 0.014], "quote": null, "value": false, "coarse": true}], "source_policy": "verbatim", "evidence_required": true, "verified": true, "verified_by": "human"}, "amended_k1": {"comparator": "boolean", "evidence": [{"page": 1, "b... | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
short/00581-2011-p0098 | short | docs/short/00581-2011-p0098.pdf | {"$defs": {"CodedEntry": {"type": "object", "title": "Coded box entry", "properties": {"code": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Code", "description": "The single-letter (or short) code printed at the left of the entry inside this Part III box, verbatim uppercase as printed (e... | {"final_k1": false, "amended_k1": false, "partnership_ein": "26-1287244", "partnership_name": "TELCO EXPERTS LLC", "partnership_address": "38 PARK AVENUE, RUTHERFORD, NJ 07070", "irs_center": "OGDEN, UT", "is_publicly_traded_partnership": false, "partner_id": "20-2113320", "partner_name": "ESK CONSULTANTS LLC", "partne... | {"final_k1": {"comparator": "boolean", "evidence": [{"page": 1, "bbox": [0.5437, 0.0757, 0.03, 0.0143], "quote": null, "value": false, "coarse": true}], "source_policy": "verbatim", "evidence_required": true, "verified": true, "verified_by": "human"}, "amended_k1": {"comparator": "boolean", "evidence": [{"page": 1, "bb... | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
short/00581-2011-p0102 | short | docs/short/00581-2011-p0102.pdf | {"$defs": {"CodedEntry": {"type": "object", "title": "Coded box entry", "properties": {"code": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Code", "description": "The single-letter (or short) code printed at the left of the entry inside this Part III box, verbatim uppercase as printed (e... | {"final_k1": false, "amended_k1": false, "partnership_ein": "26-1287244", "partnership_name": "TELCO EXPERTS LLC", "partnership_address": "38 PARK AVENUE, RUTHERFORD, NJ 07070", "irs_center": "OGDEN, UT", "is_publicly_traded_partnership": false, "partner_id": "082-50-3829", "partner_name": "PETER GOLDBERG", "partner_ad... | {"final_k1": {"comparator": "boolean", "evidence": [{"page": 1, "bbox": [0.5399, 0.0761, 0.0304, 0.014], "quote": null, "value": false, "coarse": true}], "source_policy": "verbatim", "evidence_required": true, "verified": true, "verified_by": "human"}, "amended_k1": {"comparator": "boolean", "evidence": [{"page": 1, "b... | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
short/02-10121 H-12 7-2-2024 F-22628 | short | docs/short/02-10121 H-12 7-2-2024 F-22628.pdf | "{\"$defs\": {}, \"properties\": {\"operator_name\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\":(...TRUNCATED) | "{\"operator_name\": \"Devon Energy Production Co., L.P.\", \"operator_p5_no\": \"216378\", \"rrc_di(...TRUNCATED) | "{\"operator_name\": {\"comparator\": \"case_insensitive\", \"evidence\": [{\"page\": 1, \"bbox\": [(...TRUNCATED) | {} | ["source:real","challenge:T3.a","perception:P2","perception:P3","delivery:G1","delivery:G4","length:(...TRUNCATED) |
short/07021-2016-p0014 | short | docs/short/07021-2016-p0014.pdf | "{\"$defs\": {\"CodedEntry\": {\"type\": \"object\", \"title\": \"Coded box entry\", \"properties\":(...TRUNCATED) | "{\"final_k1\": false, \"amended_k1\": true, \"partnership_ein\": \"26-3839121\", \"partnership_name(...TRUNCATED) | "{\"final_k1\": {\"comparator\": \"boolean\", \"evidence\": [{\"page\": 1, \"bbox\": [0.5103, 0.0617(...TRUNCATED) | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
short/07021-2016-p0016 | short | docs/short/07021-2016-p0016.pdf | "{\"$defs\": {\"CodedEntry\": {\"type\": \"object\", \"title\": \"Coded box entry\", \"properties\":(...TRUNCATED) | "{\"final_k1\": false, \"amended_k1\": true, \"partnership_ein\": \"26-3839121\", \"partnership_name(...TRUNCATED) | "{\"final_k1\": {\"comparator\": \"boolean\", \"evidence\": [{\"page\": 1, \"bbox\": [0.5064, 0.0585(...TRUNCATED) | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
short/07021-2016-p0018 | short | docs/short/07021-2016-p0018.pdf | "{\"$defs\": {\"CodedEntry\": {\"type\": \"object\", \"title\": \"Coded box entry\", \"properties\":(...TRUNCATED) | "{\"final_k1\": false, \"amended_k1\": true, \"partnership_ein\": \"26-3839121\", \"partnership_name(...TRUNCATED) | "{\"final_k1\": {\"comparator\": \"boolean\", \"evidence\": [{\"page\": 1, \"bbox\": [0.5141, 0.0584(...TRUNCATED) | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
short/07021-2016-p0026 | short | docs/short/07021-2016-p0026.pdf | "{\"$defs\": {\"CodedEntry\": {\"type\": \"object\", \"title\": \"Coded box entry\", \"properties\":(...TRUNCATED) | "{\"final_k1\": false, \"amended_k1\": true, \"partnership_ein\": \"26-3839121\", \"partnership_name(...TRUNCATED) | "{\"final_k1\": {\"comparator\": \"boolean\", \"evidence\": [{\"page\": 1, \"bbox\": [0.5127, 0.0534(...TRUNCATED) | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
short/07021-2016-p0029 | short | docs/short/07021-2016-p0029.pdf | "{\"$defs\": {\"CodedEntry\": {\"type\": \"object\", \"title\": \"Coded box entry\", \"properties\":(...TRUNCATED) | "{\"final_k1\": false, \"amended_k1\": true, \"partnership_ein\": \"26-3839121\", \"partnership_name(...TRUNCATED) | "{\"final_k1\": {\"comparator\": \"boolean\", \"evidence\": [{\"page\": 1, \"bbox\": [0.5141, 0.0539(...TRUNCATED) | {} | [
"source:real",
"challenge:T3.a",
"delivery:G1",
"delivery:G4",
"length:short",
"domain:D1"
] |
ExtractBench
Quick links: [📜 Paper] [💻 Code]
Given a document and a schema, a system returns structured data with evidence. The input is a full document, born-digital or scanned, and a schema written by the user. The output is a schema-valid JSON object, with the source page and a bounding box for each value as evidence. It must return correct, exhaustive values (including repeated records), correctly use null for absent information, and ground each extracted value.
ExtractBench contains 370 documents (4,869 pages) across 8 business domains and 67 document types. Each document type has one schema shared across its documents. Each document is tagged by task challenge, perception challenge, table structure, domain, and length.
The evaluation framework runs pipelines and reports scores by split, tag, and system.
Dataset Introduction
A document type is a family of documents that carry the same kind of information, such as SEC 13F filings, utility bills, or mortgage closing disclosures, however much their layouts differ. In ExtractBench, each document type has exactly one schema, shared by all of its documents.
The benchmark spans finance and fund holdings (D1), energy-sector regulatory forms (D2), government procurement and customs (D3), auto valuation (D4), supply-chain and other transactional documents (D5), healthcare remittance (D6), legal and bankruptcy filings (D7), and real-estate closing disclosures (D8).
A task challenge defines the nature of the extraction task and what makes it difficult:
- T1: long-list completeness. Recover every record of a repeated structure that can span many pages. Typical failures are truncation, duplicated or merged rows, hallucinated records, and values attached to the wrong record.
- T2: needle-in-haystack. Find a small number of requested facts in a long document. T2 has few target records but many plausible mentions, only one of which is canonical; failures are missed targets, wrong occurrences, and unnormalized paraphrases.
- T3: dense documents. Fill many fields from a document dense with labels, blanks, checkboxes, handwriting, and scan artifacts. The characteristic failure is over-extraction, inventing a value for a field that is actually blank, compounded by missed checkboxes and mislabeled fields.
| Task challenge | Documents | Pages | Expected values |
|---|---|---|---|
| T1: Long-list completeness | 154 | 3,710 | 813,792 |
| T2: Needle-in-haystack | 39 | 1,109 | 10,300 |
| T3: Dense documents | 214 | 905 | 31,200 |
| Total (unique) | 370 | 4,869 | 841,934 |
A document can carry more than one task challenge, so the rows overlap; totals reflect unique documents, pages, and values.
ExtractBench tags each document along five independent axes: task challenge (what makes extraction hard), perception challenge (how the page was captured), table structure, length, and business domain. Because the axes are independent, a low score can be traced to its actual cause.
Documents fall into three length buckets: short (L1, up to 10 pages), medium (L2, 11 to 50), and long (L3, more than 50). The split files and page counts are listed under Usage.
Document sources and capture conditions
The benchmark is composed of real born-digital documents, synthetic long lists based on real layouts, and real regulatory and tax forms with schemas authored from blank templates. The public sources include SEC and other regulatory filings, government procurement and customs forms, court and agency exhibits, Texas Railroad Commission energy filings, and published business documents. PDF metadata has been removed from every file.
Of the 370 documents, 325 are real and 45 are synthetic long lists with values fixed before rendering. The dataset includes 134 documents with scanned page images and 55 with handwriting.
Another 38 documents are degraded re-captures of clean documents. Their expected values stay the same, so the difference between clean and degraded scores measures the effect of capture degradation.
Usage
Load a split with datasets:
from datasets import load_dataset
import json
ds = load_dataset("llamaindex/ExtractBench", split="short")
case = ds[0]
schema = json.loads(case["data_schema"])
expected = json.loads(case["expected_output"])
To run an extraction system, download the files in the layout expected by the evaluation framework, then run a pipeline:
uv run extract-bench download # data/<split>/<doc>.pdf + <doc>.test.json
uv run extract-bench run <pipeline> # inference -> evaluation -> reports
ExtractBench measures two things. Value accuracy asks whether a system returned the right values, and is scored with unified value F1 on every document. Grounding asks whether the system can show where each value came from, and is scored only on documents whose box ground truth is verified.
- Unified value F1: whether the extracted values match the expected output, under one definition for scalar fields and arrays of records.
- Word-level grounding F1: a field counts as grounded only when its value is correct and its predicted box overlaps an accepted box for that field at IoU 0.5.
- Page-level grounding F1: requires the correct source page rather than a box.
Scoring is fully deterministic: the same predictions and ground truth always produce the same score, with no model in the loop. The code repository contains the full metric definitions.
The evaluation dataset files include:
- short.jsonl: 252 test cases across 615 pages, up to 10 pages each
- medium.jsonl: 98 test cases across 2,438 pages, 11–50 pages each
- long.jsonl: 20 test cases across 1,816 pages, more than 50 pages each
- docs/: source PDFs organized by split
Dataset Format
Each line in a JSONL file represents one document-schema test case:
{
"id": "short/grafton_isotrope_invoice_19503", // Unique test-case id: <split>/<stem>
"category": "short", // Split name (short | medium | long)
"pdf": "docs/short/grafton_isotrope_invoice_19503.pdf", // Relative path to the source document
"data_schema": "{...}", // JSON-encoded JSON Schema the output must validate against
"expected_output": "{...}", // JSON-encoded ground-truth extraction
"field_rules": "{...}", // JSON-encoded per-field scoring rules (see below)
"repeated_structure": "{...}", // JSON-encoded record-identity config for arrays of records
"tags": ["source:real", "challenge:T3.b", "length:short", "domain:D1"]
}
Because schemas differ by document, data_schema, expected_output, field_rules, and repeated_structure are stored as JSON-encoded strings rather than fixed columns. Decode them with json.loads. On the largest long-list document, field_rules reaches 21 MB, so the dataset viewer shows only a preview of each cell. The downloaded file contains the complete data.
field_rules maps each schema path to a scoring rule:
comparator: how predicted values are compared (exact,case_insensitive,number,date,boolean,enum, ...)evidence: accepted readings and their source locations, stored as{page, bbox, quote, value}; any accepted reading counts as correctsource_policy: whether the value must appear verbatim in the documentevidence_required/verified: whether grounded evidence exists and was verified by a person
repeated_structure gives the identity key used to align records in an array. For example, invoice line items may be matched by (description, amount). Array order does not affect the score. This field also records the completeness requirements for exhaustive lists.
Tag Taxonomy
The five analysis axes are:
challenge:T1.a–T1.efor long-list completeness,T2.a–T2.dfor needle-in-haystack, andT3.a–T3.efor dense documents.perception: rotated or image-only capture (P1), scanned page images (P2), and handwriting (P3).structure: merged or hierarchical headers (S1), a header that does not sit above its data (S2), a table that continues across pages (S3), a table beyond 1,000 rows (S4), and a table packed inside a single cell (S5).length:short(L1, up to 10 pages),medium(L2, 11 to 50), andlong(L3, more than 50). This tag always matchescategory.domain:D1finance (145),D2energy (98),D3government (49),D4automotive (27),D5supply chain (20),D6healthcare (15),D7legal (10), andD8real estate (6).
The dataset also records delivery requirements (G1–G4) and whether the source is real (325) or synthetic (45).
Data Display
Long lists (T1)
Needle-in-haystack (T2)
Dense documents (T3)
Scanned, handwritten, and degraded captures
Copyright Statement
All source documents come from publicly available records. The dataset is released under the Apache 2.0 License. For copyright questions or concerns, contact us through the GitHub repository.
Citation
@misc{zhang2026extractbenchbenchmarkschemaguidedenterprise,
title={ExtractBench: A Benchmark for Schema-Guided Enterprise Document Extraction},
author={Boyang Zhang and Adrian Lyjak and Eli Stewart and Zhaoqi Li and Simon Suo},
year={2026},
eprint={2607.29677},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2607.29677},
}
Links
- Code: run-llama/ExtractBench
- ParseBench: llamaindex/ParseBench, a companion benchmark for document parsing
- Downloads last month
- 155