Add methodology and results to dataset card
Browse files- README.md +91 -24
- results/train-00000-of-00001.parquet +3 -0
README.md
CHANGED
|
@@ -1,31 +1,37 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-nd-4.0
|
| 3 |
task_categories:
|
| 4 |
-
- image-to-text
|
| 5 |
-
- document-question-answering
|
| 6 |
language:
|
| 7 |
-
- en
|
| 8 |
size_categories:
|
| 9 |
-
- n<1K
|
| 10 |
tags:
|
| 11 |
-
- selection-detection
|
| 12 |
-
- checkbox-detection
|
| 13 |
-
- benchmark
|
| 14 |
-
- document-ai
|
| 15 |
-
-
|
|
|
|
| 16 |
configs:
|
| 17 |
-
- config_name: default
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
---
|
|
|
|
| 22 |
# PulseBench-Select
|
| 23 |
|
| 24 |
-
A benchmark for
|
| 25 |
|
| 26 |
-
PulseBench-Select contains 485 document images with
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
## Quick Start
|
| 31 |
|
|
@@ -33,30 +39,95 @@ PulseBench-Select contains 485 document images with cleaned ground-truth annotat
|
|
| 33 |
from datasets import load_dataset
|
| 34 |
import json
|
| 35 |
|
|
|
|
| 36 |
ds = load_dataset("pulse-ai/PulseBench-Select")
|
| 37 |
|
| 38 |
sample = ds["train"][0]
|
| 39 |
-
sample["
|
|
|
|
| 40 |
gt = json.loads(sample["ground_truth"])
|
| 41 |
-
gt["selected_items"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
```
|
| 43 |
|
| 44 |
## Dataset Overview
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
The benchmark focuses on pages where systems must determine which visible options are selected. Ground-truth coordinates are normalized eight-point polygons in reading order: `[x0, y0, x1, y1, x2, y2, x3, y3]`.
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
## Schema
|
| 49 |
|
|
|
|
|
|
|
| 50 |
| Column | Type | Description |
|
| 51 |
-
|---|---|---|
|
| 52 |
| `sample_id` | string | Stable public sample identifier |
|
| 53 |
| `image` | image | Document image |
|
| 54 |
| `ground_truth` | string | JSON with `page_count`, `annotations`, and `selected_items` |
|
| 55 |
| `annotation_count` | int | Number of cleaned page annotations |
|
| 56 |
| `selected_count` | int | Number of selected ground-truth items |
|
| 57 |
-
| `selection_candidate_count` | int | Number of annotations
|
| 58 |
| `selection_stats` | string | JSON summary for the row |
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
## Ground Truth Format
|
| 61 |
|
| 62 |
```json
|
|
@@ -83,10 +154,6 @@ The benchmark focuses on pages where systems must determine which visible option
|
|
| 83 |
}
|
| 84 |
```
|
| 85 |
|
| 86 |
-
## Scoring
|
| 87 |
-
|
| 88 |
-
The public scorer computes precision, recall, and F1 over the positive selected class. A predicted selected item matches a ground-truth selected item when it is on the same sample/page and its content token overlap is at least 0.80.
|
| 89 |
-
|
| 90 |
## License
|
| 91 |
|
| 92 |
This dataset is released under [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/).
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-nd-4.0
|
| 3 |
task_categories:
|
| 4 |
+
- image-to-text
|
| 5 |
+
- document-question-answering
|
| 6 |
language:
|
| 7 |
+
- en
|
| 8 |
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
tags:
|
| 11 |
+
- selection-detection
|
| 12 |
+
- checkbox-detection
|
| 13 |
+
- benchmark
|
| 14 |
+
- document-ai
|
| 15 |
+
- selection-f1
|
| 16 |
+
- ocr
|
| 17 |
configs:
|
| 18 |
+
- config_name: default
|
| 19 |
+
data_files:
|
| 20 |
+
- split: train
|
| 21 |
+
path: data/train-*.parquet
|
| 22 |
+
- config_name: results
|
| 23 |
+
data_files:
|
| 24 |
+
- split: train
|
| 25 |
+
path: results/train-*.parquet
|
| 26 |
---
|
| 27 |
+
|
| 28 |
# PulseBench-Select
|
| 29 |
|
| 30 |
+
**A benchmark for selected-option detection in document images.**
|
| 31 |
|
| 32 |
+
PulseBench-Select contains 485 cleaned document images with ground-truth annotations for checkboxes, radio buttons, and marked answer choices. Each sample pairs a document image with public ground truth for the visible options that are selected.
|
| 33 |
|
| 34 |
+
- **Scoring methodology (GitHub):** `https://github.com/Pulse-Software-Corp/PulseBench-Select`
|
| 35 |
|
| 36 |
## Quick Start
|
| 37 |
|
|
|
|
| 39 |
from datasets import load_dataset
|
| 40 |
import json
|
| 41 |
|
| 42 |
+
# Load benchmark data: document images plus cleaned ground truth.
|
| 43 |
ds = load_dataset("pulse-ai/PulseBench-Select")
|
| 44 |
|
| 45 |
sample = ds["train"][0]
|
| 46 |
+
sample["sample_id"] # Public sample id
|
| 47 |
+
sample["image"] # PIL image of the document page
|
| 48 |
gt = json.loads(sample["ground_truth"])
|
| 49 |
+
gt["selected_items"] # Selected options used for scoring
|
| 50 |
+
|
| 51 |
+
# Load aggregate benchmark results.
|
| 52 |
+
results = load_dataset("pulse-ai/PulseBench-Select", "results")
|
| 53 |
+
|
| 54 |
+
row = results["train"][0]
|
| 55 |
+
row["display_name"] # Provider display name
|
| 56 |
+
row["selection_f1"] # Corpus-pooled Selection F1
|
| 57 |
```
|
| 58 |
|
| 59 |
## Dataset Overview
|
| 60 |
|
| 61 |
+
| Split | Samples | Page Annotations | Selected Items | Selection Candidates |
|
| 62 |
+
|-------|---------|------------------|----------------|----------------------|
|
| 63 |
+
| train | 485 | 14,516 | 1,976 | 4,180 |
|
| 64 |
+
|
| 65 |
The benchmark focuses on pages where systems must determine which visible options are selected. Ground-truth coordinates are normalized eight-point polygons in reading order: `[x0, y0, x1, y1, x2, y2, x3, y3]`.
|
| 66 |
|
| 67 |
+
459 samples contain at least one selected item; 26 samples contain no selected items and are retained to measure false positives.
|
| 68 |
+
|
| 69 |
+
## Scoring: Selection F1
|
| 70 |
+
|
| 71 |
+
Selection F1 evaluates only the positive selected class.
|
| 72 |
+
|
| 73 |
+
1. **Parse** ground truth and predictions into selected-item records with `sample_id`, `page`, `content`, `bbox`, and `selected`.
|
| 74 |
+
2. **Match** each predicted selected item to the best unmatched ground-truth selected item on the same sample and page.
|
| 75 |
+
3. **Filter matches** with content token overlap >= 0.80. If both items include 8-point bounding boxes, the bbox centroid distance must also be <= 0.35 in normalized page units.
|
| 76 |
+
4. **Score** matched selected items as true positives, unmatched predictions as false positives, and unmatched ground-truth items as false negatives.
|
| 77 |
+
5. **Report** corpus-pooled micro precision, recall, and F1, along with per-sample macro diagnostics.
|
| 78 |
+
|
| 79 |
+
Token overlap is computed as:
|
| 80 |
+
|
| 81 |
+
```text
|
| 82 |
+
|tokens(ground_truth) intersect tokens(prediction)| / max(|tokens(ground_truth)|, |tokens(prediction)|)
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
The bbox centroid check is a veto used to prevent repeated labels with identical text, such as multiple `Yes` or `No` options on the same page, from matching the wrong spatial item. The public scorer supports disabling this check with `--centroid-max -1`.
|
| 86 |
+
|
| 87 |
+
## Results
|
| 88 |
+
|
| 89 |
+
We evaluated 6 systems using Selection F1. Scores below are corpus-pooled micro precision, recall, and F1 from the benchmark run associated with this release.
|
| 90 |
+
|
| 91 |
+
| Rank | Provider | Precision | Recall | Selection F1 |
|
| 92 |
+
|------|----------|-----------|--------|--------------|
|
| 93 |
+
| 1 | **Pulse** | **0.782** | **0.761** | **0.772** |
|
| 94 |
+
| 2 | GPT-5.5 | 0.383 | 0.311 | 0.343 |
|
| 95 |
+
| 3 | Gemini 3.1 Pro | 0.334 | 0.317 | 0.325 |
|
| 96 |
+
| 4 | Gemini 3.5 Flash | 0.317 | 0.311 | 0.314 |
|
| 97 |
+
| 5 | Claude Opus 4.8 | 0.307 | 0.293 | 0.300 |
|
| 98 |
+
| 6 | GPT-4o | 0.223 | 0.191 | 0.206 |
|
| 99 |
+
|
| 100 |
+
The `results` config includes these aggregate results plus macro precision, macro recall, and skipped-sample counts for each provider.
|
| 101 |
+
|
| 102 |
## Schema
|
| 103 |
|
| 104 |
+
### Default config
|
| 105 |
+
|
| 106 |
| Column | Type | Description |
|
| 107 |
+
|--------|------|-------------|
|
| 108 |
| `sample_id` | string | Stable public sample identifier |
|
| 109 |
| `image` | image | Document image |
|
| 110 |
| `ground_truth` | string | JSON with `page_count`, `annotations`, and `selected_items` |
|
| 111 |
| `annotation_count` | int | Number of cleaned page annotations |
|
| 112 |
| `selected_count` | int | Number of selected ground-truth items |
|
| 113 |
+
| `selection_candidate_count` | int | Number of annotations or cells containing visible selection marks |
|
| 114 |
| `selection_stats` | string | JSON summary for the row |
|
| 115 |
|
| 116 |
+
### Results config
|
| 117 |
+
|
| 118 |
+
| Column | Type | Description |
|
| 119 |
+
|--------|------|-------------|
|
| 120 |
+
| `rank` | int | Rank by corpus-pooled Selection F1 |
|
| 121 |
+
| `provider` | string | Provider identifier |
|
| 122 |
+
| `display_name` | string | Provider display name |
|
| 123 |
+
| `precision` | float | Corpus-pooled positive-class precision |
|
| 124 |
+
| `recall` | float | Corpus-pooled positive-class recall |
|
| 125 |
+
| `selection_f1` | float | Corpus-pooled positive-class F1 |
|
| 126 |
+
| `macro_precision` | float | Mean per-sample precision over scored samples |
|
| 127 |
+
| `macro_recall` | float | Mean per-sample recall over scored samples |
|
| 128 |
+
| `macro_skipped_samples` | int | Samples skipped from macro averaging because precision or recall was undefined |
|
| 129 |
+
| `metric_version` | string | Metric version used for the reported row |
|
| 130 |
+
|
| 131 |
## Ground Truth Format
|
| 132 |
|
| 133 |
```json
|
|
|
|
| 154 |
}
|
| 155 |
```
|
| 156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
## License
|
| 158 |
|
| 159 |
This dataset is released under [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/).
|
results/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:306be3b11d30fb24cacd15c30899bb0ad3f9b012adc88db863a1b037b830b64c
|
| 3 |
+
size 3626
|