extractbench-eval
ExtractBench: A Benchmark and Evaluation Methodology for Complex Structured Extraction — Ferguson et al. (2026) (arXiv:2602.12247, 2026)
What this evaluates
Evaluates LLMs on complex, schema-driven PDF-to-JSON structured extraction, testing their ability to handle nested objects, arrays, heterogeneous field types, and strict correctness criteria across enterprise-scale documents.
Datasets
Metrics
Pass Rate (primary) — range: percent
- Field-level pass rate where invalid extractions contribute 0. Computed as the fraction of fields that pass their schema-defined metric.
Valid JSON — range: percent
- Fraction of model outputs that are parseable and conform to the provided JSON Schema.
Acc (Valid) — range: percent
- Pass rate conditioned only on extractions that produced valid JSON.
string_semantic — range: [0, 1]
- LLM-based equivalence metric for free text, allowing domain-specific instructions for acceptable variations.
number_tolerance — range: [0, 1]
- Numeric comparison within a specified margin (e.g., 0.1%).
array_llm — range: percent
- Semantic alignment of object arrays using an LLM judge to map matched pairs, missed gold items, and spurious predictions, then computing precision, recall, and F1.
Input / output format
Input: PDF documents paired with a JSON Schema that defines the target extraction structure and per-field evaluation configurations.
Output: A JSON object containing extracted fields matching the schema structure. Must be parseable and schema-conforming to be considered valid.
Scoring recipe
def evaluate(gold, pred, schema):
if not is_valid_json(pred, schema):
return {"valid_json": False, "pass_rate": 0.0}
scores = []
for field in schema.fields:
g_val = gold.get(field.name)
p_val = pred.get(field.name)
if g_val is None and p_val is None:
scores.append(True)
elif g_val is None and p_val is not None:
scores.append(False) # hallucination
elif g_val is not None and p_val is None:
scores.append(False) # omission
else:
scores.append(field.metric(g_val, p_val, field.config))
return {"valid_json": True, "pass_rate": sum(scores)/len(scores)}
Common pitfalls
- Applying a single global metric (e.g., exact match) across all fields ignores heterogeneous correctness criteria like numeric tolerance or semantic equivalence.
- Ignoring the three-way missing value distinction (present, null, MISSING) conflates omissions with hallucinations and structural errors.
- Using position-based matching for arrays fails when models reorder, omit, or duplicate items, leading to artificially low scores.
Evidence (verbatim from paper)
Pass Rate: field-level pass rate (invalid extractions contribute 0). Acc (Valid): pass rate conditioned on valid extraction only.
Citation
@misc{ferguson2026extractbench,
title={ExtractBench: A Benchmark and Evaluation Methodology for Complex Structured Extraction},
author={Ferguson et al. (2026)},
year={2026},
note={arXiv:2602.12247}
}
1---2name: extractbench-eval3description: Evaluates LLMs on complex, schema-driven PDF-to-JSON structured extraction, testing their ability to handle nested objects, arrays, heterogeneous field types, and strict correctness criteria across enterprise-scale documents. Use when the user wants to benchmark on ExtractBench, or asks about evaluating this task. Reports Pass Rate.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/extractbench-eval6 skill_kind: dataset_eval7 source_arxiv: 2602.122478 bibtex_key: ferguson2026extractbench9 confidence: high10---1112# extractbench-eval1314> ExtractBench: A Benchmark and Evaluation Methodology for Complex Structured Extraction — Ferguson et al. (2026) (arXiv:2602.12247, 2026)1516## What this evaluates1718Evaluates LLMs on complex, schema-driven PDF-to-JSON structured extraction, testing their ability to handle nested objects, arrays, heterogeneous field types, and strict correctness criteria across enterprise-scale documents.1920## Datasets2122- **ExtractBench** — total 35; splits: benchmark (35); repo https://github.com/ContextualAI/extract-bench2324## Metrics2526- `Pass Rate` **(primary)** — range: percent27 - Field-level pass rate where invalid extractions contribute 0. Computed as the fraction of fields that pass their schema-defined metric.28- `Valid JSON` — range: percent29 - Fraction of model outputs that are parseable and conform to the provided JSON Schema.30- `Acc (Valid)` — range: percent31 - Pass rate conditioned only on extractions that produced valid JSON.32- `string_semantic` — range: [0, 1]33 - LLM-based equivalence metric for free text, allowing domain-specific instructions for acceptable variations.34- `number_tolerance` — range: [0, 1]35 - Numeric comparison within a specified margin (e.g., 0.1%).36- `array_llm` — range: percent37 - Semantic alignment of object arrays using an LLM judge to map matched pairs, missed gold items, and spurious predictions, then computing precision, recall, and F1.3839## Input / output format4041**Input**: PDF documents paired with a JSON Schema that defines the target extraction structure and per-field evaluation configurations.4243**Output**: A JSON object containing extracted fields matching the schema structure. Must be parseable and schema-conforming to be considered valid.4445## Scoring recipe4647```python48def evaluate(gold, pred, schema):49 if not is_valid_json(pred, schema):50 return {"valid_json": False, "pass_rate": 0.0}51 scores = []52 for field in schema.fields:53 g_val = gold.get(field.name)54 p_val = pred.get(field.name)55 if g_val is None and p_val is None:56 scores.append(True)57 elif g_val is None and p_val is not None:58 scores.append(False) # hallucination59 elif g_val is not None and p_val is None:60 scores.append(False) # omission61 else:62 scores.append(field.metric(g_val, p_val, field.config))63 return {"valid_json": True, "pass_rate": sum(scores)/len(scores)}64```6566## Common pitfalls6768- Applying a single global metric (e.g., exact match) across all fields ignores heterogeneous correctness criteria like numeric tolerance or semantic equivalence.69- Ignoring the three-way missing value distinction (present, null, MISSING) conflates omissions with hallucinations and structural errors.70- Using position-based matching for arrays fails when models reorder, omit, or duplicate items, leading to artificially low scores.7172## Evidence (verbatim from paper)7374> Pass Rate: field-level pass rate (invalid extractions contribute 0). Acc (Valid): pass rate conditioned on valid extraction only.7576## Citation7778```bibtex79@misc{ferguson2026extractbench,80 title={ExtractBench: A Benchmark and Evaluation Methodology for Complex Structured Extraction},81 author={Ferguson et al. (2026)},82 year={2026},83 note={arXiv:2602.12247}84}85```8687- arXiv: 2602.12247