antonkayai commited on
Commit
051af9d
·
verified ·
1 Parent(s): 3abeb7b

Polish dataset card and publisher metadata

Browse files
Files changed (1) hide show
  1. README.md +24 -16
README.md CHANGED
@@ -17,6 +17,7 @@ tags:
17
  - large-array
18
  - long-range-evidence
19
  - insurance
 
20
  size_categories:
21
  - n<1K
22
  configs:
@@ -36,17 +37,17 @@ configs:
36
 
37
  # LongListBench
38
 
39
- LongListBench is a synthetic benchmark for measuring **long-list structured extraction** from insurance and commercial trucking PDFs: the task of extracting every item in a large repeating record set, without dropping records, merging neighboring records, inventing extras, or losing fields when the document has complex layout, OCR-transcribed text, or evidence spread across distant pages.
40
 
41
- Most document-extraction benchmarks emphasize document-level header fields. LongListBench focuses on the production failure mode that appears once the target is a long list: recall and precision degrade as the model must preserve many records, normalize repeated fields, and sometimes join values from sections separated by dozens or hundreds of pages.
42
 
43
- The dataset contains 32 PDF documents and 29,599 target records. All visible document content is synthetic and does not contain real customer PII.
44
 
45
- The intended task is per-document extraction: give a system one PDF or OCR transcript plus the target schema or field contract, then score the complete list it returns. The configs have different roles. `core_operations` contains high-density structured reports where deterministic row parsers or document-specific agent code may perform well; those files mainly test scale, OCR preservation, and output completeness. Its multisection IFTA packets additionally test OCR-layout preservation and cross-section joins. `claim_multihop` and `policy_packets` are the complex-packet regimes: target records require inherited context, heterogeneous schemas, distant supporting sections, and distractor material.
46
 
47
  ## Complexity Stressors
48
 
49
- LongListBench differs from array-only extraction datasets by explicitly tracking document-complexity stressors. Each row has a `problems` list with the stressors present in that PDF:
50
 
51
  | Tag | Meaning |
52
  |---|---|
@@ -65,7 +66,7 @@ LongListBench differs from array-only extraction datasets by explicitly tracking
65
  | `repeated_keys` | Common keys such as states or jurisdictions repeat across sections or returns, so the key alone is insufficient for matching. |
66
  | `heterogeneous_record_list` | A target list contains several record schemas, especially in policy packets. |
67
 
68
- These 14 tags are the canonical taxonomy. The manifest contains 45 distinct `problems` tokens because it also retains finer domain and implementation tags for auditing. Labels are metadata, not text printed inside the PDFs.
69
 
70
  The mapping is intended to be visually auditable:
71
 
@@ -81,9 +82,9 @@ The mapping is intended to be visually auditable:
81
 
82
  | Config | Description | Target field | Documents | Records/doc range | Target records | Page range |
83
  |---|---|---|---:|---:|---:|---:|
84
- | `core_operations` | 26 production-like commercial insurance and trucking PDFs with dense repeated operations, IFTA, and loss-run records. | `records` | 26 | 260-2571 | 28178 | 17-84 |
85
  | `claim_multihop` | 3 long claim PDFs where incident records must be assembled from distant sections. | `incidents` | 3 | 12-40 | 77 | 61-148 |
86
- | `policy_packets` | 3 long Businessowners, Workers Compensation, and Commercial General Liability policy packets where records must be assembled from distant sections. | `records` | 3 | 344-562 | 1344 | 99-133 |
87
 
88
  Pick one config when loading:
89
 
@@ -142,17 +143,22 @@ with open(f"{row['document_id']}.pdf", "wb") as f:
142
 
143
  ## Canonical Scoring
144
 
145
- The source repository includes the reference evaluator in `benchmarks/evaluation_metrics.py`. Strict normalized-record completeness is primary; field-value overlap is a secondary diagnostic.
146
 
147
  ### Method
148
 
149
  1. **Shape.** Run your extractor on each PDF or transcript and return an object matching `ground_truth`: `{"incidents": [...]}` for claim multi-hop rows or `{"records": [...]}` for all other list families. A bare list is also accepted by the repository evaluator.
150
- 2. **Claims matching.** Claim multi-hop incident rows are keyed by normalized `incident_number`. Strings are compared case-insensitively, dates are normalized to `MM/DD/YYYY`, claimant lists are sorted, zero-valued default financial-breakdown cells are omitted from field diagnostics, and non-zero financial breakdowns are rounded to cents. Each flattened `(incident_number, field_path, value)` tuple is one field-value diagnostic.
151
- 3. **Generic record matching.** Operations, external loss-run, and policy rows are heterogeneous. Strings are whitespace-normalized and compared case-insensitively; dates, decimals, percentages, currency, and accounting negatives are canonicalized. Unambiguous labels also normalize to the published target form: region names to codes, fuel descriptions to parenthetical codes, line-of-business names to acronyms, visible `Applies within` wrappers to their core clause scope, visible `Unit` prefixes in vehicle identifiers, and `Quarter Return`/`Quarterly Return` heading aliases. Extra heading context remains an error. For field diagnostics, exact records are anchored first and remaining records are matched deterministically using overlapping non-global field pairs. `record_type`, hidden row identifiers, and repeated document-level policy fields are excluded from field matching and field-pair scoring, but strict comparison uses the complete normalized public record.
152
  4. **Strict completeness.** An exact record must match every normalized target field. Exact-record recall is `exact_record_matches / ground_truth_count`. A document is complete only when the normalized predicted and ground-truth record multisets are identical, including duplicate multiplicity and with no extra records. Record order is not scored in this release.
153
  5. **Field diagnostics.** Field recall is `found_gold_field_pairs / total_gold_field_pairs`; precision is `found_field_pairs / total_pred_field_pairs`; F1 is their harmonic mean. Reports retain document-macro and corpus-micro field F1 to show partial correctness, but these are not substitutes for complete-list recovery.
154
 
155
- Official scoring uses the repository evaluator. Use it directly rather than copying an abbreviated scorer into another project; the evaluator contains the canonical case, date, decimal, accounting-negative, list, global-field, and heterogeneous-record normalization rules.
 
 
 
 
 
156
 
157
  ```python
158
  import json
@@ -187,7 +193,7 @@ for row in ds.remove_columns("pdf"):
187
 
188
  ## Current Baselines
189
 
190
- The release includes 4 full-corpus OCR-conditioned agentic baselines. Codex CLI invoked `gpt-5.6-sol` with xhigh reasoning; Claude Code CLI invoked `claude-fable-5` with xhigh effort; Codex CLI invoked `gpt-5.5` with xhigh reasoning; Claude Code CLI invoked `claude-opus-4-8` with xhigh effort. For each document, the runner created a temporary workspace containing the OCR transcript, field contract, prompt, and output directory. A macOS sandbox profile denied access to the benchmark repository, and the prompt prohibited using files outside the workspace. This was repository isolation, not a host-wide filesystem allowlist. Target values, target counts, ground-truth files, and generator code were not copied into the workspace. For generic records, the workspace did include a sample-specific field contract containing public field names and record groups derived from ground-truth object structure.
191
 
192
  Strict completeness on the released OCR transcripts:
193
 
@@ -223,7 +229,7 @@ Exact-record recall by extraction problem shows why aggregate scores should not
223
  | Mileage-by-vehicle scale controls | Scale control | 8 | 17,565 | 99.4% | 99.4% | 99.4% | 99.2% |
224
  | Vehicle-schedule scale controls | Scale control | 2 | 1,600 | 100.0% | 100.0% | 100.0% | 100.0% |
225
 
226
- The saved predictions and reports in [codex_gpt56_sol_full_current_ocr_v2](./evaluation/codex_gpt56_sol_full_current_ocr_v2/), [claude_fable5_full_current_ocr_v2](./evaluation/claude_fable5_full_current_ocr_v2/), [codex_full_current_ocr_v2](./evaluation/codex_full_current_ocr_v2/), [claude_opus48_full_current_ocr_v2](./evaluation/claude_opus48_full_current_ocr_v2/) allow the metrics to be recomputed without rerunning the models. Their run metadata binds every prediction to the manifest, transcript, field contract, prompt, runner source, model, effort, runtime version, and prediction hash. Full-context raw-API prompting remains a lower-bound stress test rather than a practical full-corpus protocol because large outputs can hit output or latency limits. The repository also includes raw OpenAI API and OpenAI Agents SDK adapters for future protocol comparisons on this release.
227
 
228
 
229
 
@@ -259,7 +265,7 @@ The documents are synthetic. Each sample was produced by a deterministic generat
259
 
260
  Policy packets are structurally inspired by commercial insurance policy workflows, but names, values, prose, and identifiers are generated fixtures.
261
 
262
- The release packages the fixed HTML, PDF, OCR, ground-truth, and metadata artifacts needed for reproducible evaluation. The private template tooling used to create the current production-like layouts is intentionally not part of the dataset repository, so the release does not claim bit-for-bit public regeneration of every PDF.
263
 
264
  No real insureds, claimants, policies, financial accounts, or customer documents are represented. Real documents were used only as structural references for layout and packet organization.
265
 
@@ -277,8 +283,10 @@ LongListBench is intended for measuring long-list, layout, OCR-conditioned, and
277
  @misc{fedoruk2026longlistbench,
278
  title = {LongListBench: A Benchmark for Long-List Entity Extraction from Complex Business PDFs},
279
  author = {Fedoruk, Anton and Shchoholiev, Serhii and Mehta, Akhil},
 
280
  year = {2026},
281
  version = {2.1.0},
282
- howpublished = {\url{https://github.com/kaydotai/longlistbench}}
 
283
  }
284
  ```
 
17
  - large-array
18
  - long-range-evidence
19
  - insurance
20
+ - trucking
21
  size_categories:
22
  - n<1K
23
  configs:
 
37
 
38
  # LongListBench
39
 
40
+ [GitHub](https://github.com/kaydotai/longlistbench) | [Release v2.1.0](https://github.com/kaydotai/longlistbench/releases/tag/v2.1.0) | [Paper source](https://github.com/kaydotai/longlistbench/tree/v2.1.0/paper)
41
 
42
+ **Developed and released by [Kay.ai](https://kay.ai).**
43
 
44
+ LongListBench measures **long-list structured extraction** from insurance and commercial trucking PDFs: return every target record without omissions, merged rows, invented extras, or lost fields under complex layout, OCR, and long-range evidence. It contains 32 synthetic PDFs and 29,599 target records, with no real customer PII.
45
 
46
+ The task is per-document extraction: give a system one PDF or OCR transcript plus the target contract, then score the complete list. `core_operations` emphasizes scale and output completeness; `claim_multihop` and `policy_packets` require inherited context, heterogeneous schemas, distant supporting sections, and distractors.
47
 
48
  ## Complexity Stressors
49
 
50
+ Unlike array-only extraction datasets, LongListBench records the stressors present in each PDF under `problems`:
51
 
52
  | Tag | Meaning |
53
  |---|---|
 
66
  | `repeated_keys` | Common keys such as states or jurisdictions repeat across sections or returns, so the key alone is insufficient for matching. |
67
  | `heterogeneous_record_list` | A target list contains several record schemas, especially in policy packets. |
68
 
69
+ These 14 tags are canonical. The manifest also retains finer audit tags, for 45 distinct `problems` tokens in total. Labels are metadata, not text printed inside the PDFs.
70
 
71
  The mapping is intended to be visually auditable:
72
 
 
82
 
83
  | Config | Description | Target field | Documents | Records/doc range | Target records | Page range |
84
  |---|---|---|---:|---:|---:|---:|
85
+ | `core_operations` | 26 production-like commercial insurance and trucking PDFs with dense repeated operations, IFTA, and loss-run records. | `records` | 26 | 260-2,571 | 28,178 | 17-84 |
86
  | `claim_multihop` | 3 long claim PDFs where incident records must be assembled from distant sections. | `incidents` | 3 | 12-40 | 77 | 61-148 |
87
+ | `policy_packets` | 3 long Businessowners, Workers Compensation, and Commercial General Liability policy packets where records must be assembled from distant sections. | `records` | 3 | 344-562 | 1,344 | 99-133 |
88
 
89
  Pick one config when loading:
90
 
 
143
 
144
  ## Canonical Scoring
145
 
146
+ The tagged [reference evaluator](https://github.com/kaydotai/longlistbench/blob/v2.1.0/benchmarks/evaluation_metrics.py) defines official scoring. Strict normalized-record completeness is primary; field overlap is a secondary diagnostic.
147
 
148
  ### Method
149
 
150
  1. **Shape.** Run your extractor on each PDF or transcript and return an object matching `ground_truth`: `{"incidents": [...]}` for claim multi-hop rows or `{"records": [...]}` for all other list families. A bare list is also accepted by the repository evaluator.
151
+ 2. **Claims matching.** Claim incidents are keyed by normalized `incident_number`; strings, dates, claimant lists, and non-zero financial breakdowns use the documented canonical forms.
152
+ 3. **Generic record matching.** Operations, loss-run, and policy values normalize case, whitespace, dates, decimals, currency, accounting negatives, and documented label equivalents. Exact records are anchored before deterministic field-overlap matching for partial-credit diagnostics. Strict comparison still uses every public target field.
153
  4. **Strict completeness.** An exact record must match every normalized target field. Exact-record recall is `exact_record_matches / ground_truth_count`. A document is complete only when the normalized predicted and ground-truth record multisets are identical, including duplicate multiplicity and with no extra records. Record order is not scored in this release.
154
  5. **Field diagnostics.** Field recall is `found_gold_field_pairs / total_gold_field_pairs`; precision is `found_field_pairs / total_pred_field_pairs`; F1 is their harmonic mean. Reports retain document-macro and corpus-micro field F1 to show partial correctness, but these are not substitutes for complete-list recovery.
155
 
156
+ Clone the matching release before running the example so the canonical evaluator is importable:
157
+
158
+ ```bash
159
+ git clone --branch v2.1.0 --depth 1 https://github.com/kaydotai/longlistbench.git
160
+ cd longlistbench
161
+ ```
162
 
163
  ```python
164
  import json
 
193
 
194
  ## Current Baselines
195
 
196
+ The release includes 4 full-corpus OCR-conditioned agentic baselines: Codex CLI invoked `gpt-5.6-sol` with xhigh reasoning; Claude Code CLI invoked `claude-fable-5` with xhigh effort; Codex CLI invoked `gpt-5.5` with xhigh reasoning; Claude Code CLI invoked `claude-opus-4-8` with xhigh effort. Each model received only the OCR transcript, public field contract, prompt, and output directory in a repository-denied workspace. Target values, counts, ground truth, and generator code were unavailable.
197
 
198
  Strict completeness on the released OCR transcripts:
199
 
 
229
  | Mileage-by-vehicle scale controls | Scale control | 8 | 17,565 | 99.4% | 99.4% | 99.4% | 99.2% |
230
  | Vehicle-schedule scale controls | Scale control | 2 | 1,600 | 100.0% | 100.0% | 100.0% | 100.0% |
231
 
232
+ The saved predictions and reports in [codex_gpt56_sol_full_current_ocr_v2](./evaluation/codex_gpt56_sol_full_current_ocr_v2/), [claude_fable5_full_current_ocr_v2](./evaluation/claude_fable5_full_current_ocr_v2/), [codex_full_current_ocr_v2](./evaluation/codex_full_current_ocr_v2/), [claude_opus48_full_current_ocr_v2](./evaluation/claude_opus48_full_current_ocr_v2/) recompute these metrics without model access. Run metadata binds each prediction to the manifest, transcript, field contract, prompt, runner, model, effort, runtime, and output hash.
233
 
234
 
235
 
 
265
 
266
  Policy packets are structurally inspired by commercial insurance policy workflows, but names, values, prose, and identifiers are generated fixtures.
267
 
268
+ The HF rows embed PDF, OCR, ground truth, and metadata; tagged GitHub releases also retain the rendered HTML. Private template tooling used to create the current layouts is not public, so the release does not claim bit-for-bit regeneration of every PDF from generator source.
269
 
270
  No real insureds, claimants, policies, financial accounts, or customer documents are represented. Real documents were used only as structural references for layout and packet organization.
271
 
 
283
  @misc{fedoruk2026longlistbench,
284
  title = {LongListBench: A Benchmark for Long-List Entity Extraction from Complex Business PDFs},
285
  author = {Fedoruk, Anton and Shchoholiev, Serhii and Mehta, Akhil},
286
+ publisher = {Kay.ai},
287
  year = {2026},
288
  version = {2.1.0},
289
+ howpublished = {Hugging Face dataset},
290
+ url = {https://huggingface.co/datasets/kaydotai/LongListBench}
291
  }
292
  ```