Polish dataset card and publisher metadata
Browse files
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 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
The
|
| 46 |
|
| 47 |
## Complexity Stressors
|
| 48 |
|
| 49 |
-
|
| 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
|
| 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-
|
| 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 |
|
| 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
|
| 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
|
| 151 |
-
3. **Generic record matching.** Operations,
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 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/)
|
| 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
|
| 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 = {
|
|
|
|
| 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 |
```
|