Datasets:
Number parser: a hyphen joined to a word is not a minus sign; rescored baselines
Browse files- README.md +70 -49
- assets/leaderboard.png +3 -0
README.md
CHANGED
|
@@ -30,6 +30,76 @@ case can be replayed against any API that implements it. It is the sibling of
|
|
| 30 |
It is an **independent** benchmark. It is not affiliated with any vendor of
|
| 31 |
extraction models.
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
## What is different about it
|
| 34 |
|
| 35 |
- **The gold is fact, not a teacher's opinion.** Every answer is a human
|
|
@@ -115,55 +185,6 @@ count. It is reported with hallucination rate, miss rate, `p_null` AUROC, ECE,
|
|
| 115 |
and accuracy at 90% coverage (answering only the most confident 90%) for
|
| 116 |
predictors that report confidence.
|
| 117 |
|
| 118 |
-
## Leaderboard
|
| 119 |
-
|
| 120 |
-
Test split, 1,690 cases, 17,733 fields. **headline** is exact match averaged
|
| 121 |
-
over the 15 families; **present** is the same over fields that have a value;
|
| 122 |
-
**computed** is exact match on the 1,926 fields whose answer has to be worked out
|
| 123 |
-
(totals, counts, day spans). Every model sees the same request: the document and
|
| 124 |
-
the fields with their instructions, nothing else.
|
| 125 |
-
|
| 126 |
-
<!-- LEADERBOARD:BEGIN -->
|
| 127 |
-
| model | kind | headline | present | hallucination ↓ | miss ↓ | computed | `p_null` AUROC |
|
| 128 |
-
|---|---|---|---|---|---|---|---|
|
| 129 |
-
| [ScaleDown Extract](https://openrouter.ai/scaledown/extract) | extraction API | **0.782** | 0.723 | 0.117 | 0.200 | 0.570 | – |
|
| 130 |
-
| [Schematron V2 Small](https://openrouter.ai/inference-net/schematron-v2-small) | extraction LLM | **0.562** | 0.529 | 0.445 | 0.303 | 0.134 | – |
|
| 131 |
-
| [adaptive-classifier + MiniLM-L6](https://huggingface.co/adaptive-classifier/typed-extraction-minilm-l6) | candidate classifier | **0.315** | 0.166 | 0.109 | 0.600 | 0.005 | 0.789 |
|
| 132 |
-
| [adaptive-classifier + bge-small](https://huggingface.co/adaptive-classifier/typed-extraction-bge-small) | candidate classifier | **0.291** | 0.143 | 0.103 | 0.600 | 0.008 | 0.788 |
|
| 133 |
-
| always null | floor | **0.199** | 0.000 | 0.000 | 1.000 | 0.000 | – |
|
| 134 |
-
| regex rules | floor | **0.129** | 0.152 | 0.993 | 0.000 | 0.026 | 0.503 |
|
| 135 |
-
<!-- LEADERBOARD:END -->
|
| 136 |
-
|
| 137 |
-
- **ScaleDown Extract** is the bar. It returns values that are not in the text
|
| 138 |
-
(it does the arithmetic), and its weak spots are ExtractBench's long nested
|
| 139 |
-
schemas and relative dates.
|
| 140 |
-
- **The adaptive-classifier baselines** pick one of 40 candidate spans per field
|
| 141 |
-
with a single yes/no classifier, so they rarely hallucinate but cannot
|
| 142 |
-
compute, and for fields that have a value the right answer is among their
|
| 143 |
-
candidates only 49% of the time. That ceiling, not the classifier, is what holds them back. They are
|
| 144 |
-
published as reproducible open baselines, not as competitive extractors.
|
| 145 |
-
- **always null** answers nothing; it scores 0.199 because 31% of fields are
|
| 146 |
-
absent. A model below it is doing more harm than good.
|
| 147 |
-
- Remote models were called once, at temperature 0, with responses cached.
|
| 148 |
-
LLMs got a JSON schema with one nullable property per field; documents longer
|
| 149 |
-
than their context were cut (5 cases for Schematron), and that is counted.
|
| 150 |
-
- Rows for LFM2.5 and Clairic will be added when their runs finish.
|
| 151 |
-
|
| 152 |
-
### Scoring your model
|
| 153 |
-
|
| 154 |
-
```bash
|
| 155 |
-
pip install numpy pyarrow huggingface_hub
|
| 156 |
-
huggingface-cli download LocalLLaMA/typed-extraction --repo-type dataset --local-dir typed-extraction
|
| 157 |
-
python typed-extraction/score.py predictions.jsonl --by-family
|
| 158 |
-
```
|
| 159 |
-
|
| 160 |
-
`predictions.jsonl` has one line per test case,
|
| 161 |
-
`{"id": ..., "answers": {"<field>": {"value": ..., "p_null": ..., "confidence": ...}}}`,
|
| 162 |
-
with `null` (or `[]` for lists) for fields the document does not state.
|
| 163 |
-
`p_null` and `confidence` are optional and enable the calibration metrics.
|
| 164 |
-
Please report the headline, hallucination and miss together; any one alone can
|
| 165 |
-
be gamed.
|
| 166 |
-
|
| 167 |
## Gold quality
|
| 168 |
|
| 169 |
200 test fields were hand-checked against their documents, weighted towards
|
|
|
|
| 30 |
It is an **independent** benchmark. It is not affiliated with any vendor of
|
| 31 |
extraction models.
|
| 32 |
|
| 33 |
+

|
| 34 |
+
|
| 35 |
+
## Leaderboard
|
| 36 |
+
|
| 37 |
+
`test` split: 1,690 cases, 17,733 fields. This table lists models scored
|
| 38 |
+
zero-shot: they never saw `train`. Models fitted or trained on `train` are in the
|
| 39 |
+
second table below; the two tables are not comparable.
|
| 40 |
+
|
| 41 |
+
**Headline** is exact match averaged over the 15 families; **fields with a
|
| 42 |
+
value** is the same over fields whose gold is not null; **computed** is exact
|
| 43 |
+
match on the 1,926 fields whose answer has to be worked out (totals, counts, day
|
| 44 |
+
spans). Every model sees the same request: the document and the fields with
|
| 45 |
+
their instructions, nothing else.
|
| 46 |
+
|
| 47 |
+
<!-- LEADERBOARD:BEGIN -->
|
| 48 |
+
| # | Model | Kind | Headline ↑ | Fields with a value ↑ | Hallucination ↓ | Miss ↓ | Computed ↑ | `p_null` AUROC ↑ |
|
| 49 |
+
|---|---|---|---|---|---|---|---|---|
|
| 50 |
+
| 1 | **[ScaleDown Extract](https://openrouter.ai/scaledown/extract)** | extraction API | **0.782** | 0.723 | 0.117 | 0.200 | 0.570 | – |
|
| 51 |
+
| 2 | [Schematron V2 Small](https://openrouter.ai/inference-net/schematron-v2-small) | extraction LLM | **0.562** | 0.529 | 0.445 | 0.303 | 0.134 | – |
|
| 52 |
+
| – | Always null (answers nothing) | reference | **0.199** | 0.000 | 0.000 | 1.000 | 0.000 | – |
|
| 53 |
+
| – | Regex rules | reference | **0.129** | 0.152 | 0.993 | 0.000 | 0.026 | 0.503 |
|
| 54 |
+
|
| 55 |
+
### Fitted or fine-tuned on `train`
|
| 56 |
+
|
| 57 |
+
These models were trained on this benchmark's `train` split, so they are not
|
| 58 |
+
zero-shot and their scores are not comparable with the table above. The three
|
| 59 |
+
test-only families never appear in `train`, so they still test transfer.
|
| 60 |
+
|
| 61 |
+
| # | Model | Kind | Headline ↑ | Fields with a value ↑ | Hallucination ↓ | Miss ↓ | Computed ↑ | `p_null` AUROC ↑ |
|
| 62 |
+
|---|---|---|---|---|---|---|---|---|
|
| 63 |
+
| 1 | **[adaptive-classifier + MiniLM-L6](https://huggingface.co/adaptive-classifier/typed-extraction-minilm-l6)** | candidate classifier, trained on `train` | **0.315** | 0.166 | 0.109 | 0.600 | 0.005 | 0.789 |
|
| 64 |
+
| 2 | [adaptive-classifier + bge-small](https://huggingface.co/adaptive-classifier/typed-extraction-bge-small) | candidate classifier, trained on `train` | **0.291** | 0.143 | 0.103 | 0.600 | 0.008 | 0.788 |
|
| 65 |
+
| – | Always null (answers nothing) | reference | **0.199** | 0.000 | 0.000 | 1.000 | 0.000 | – |
|
| 66 |
+
| – | Regex rules | reference | **0.129** | 0.152 | 0.993 | 0.000 | 0.026 | 0.503 |
|
| 67 |
+
<!-- LEADERBOARD:END -->
|
| 68 |
+
|
| 69 |
+
### Notes on the rows
|
| 70 |
+
|
| 71 |
+
- **ScaleDown Extract** is the bar. It returns values that are not in the text
|
| 72 |
+
(it does the arithmetic), and its weak spots are ExtractBench's long nested
|
| 73 |
+
schemas and relative dates.
|
| 74 |
+
- **The adaptive-classifier baselines** pick one of 40 candidate spans per field
|
| 75 |
+
with a single yes/no classifier, so they rarely hallucinate but cannot
|
| 76 |
+
compute, and for fields that have a value the right answer is among their
|
| 77 |
+
candidates only 49% of the time. That ceiling, not the classifier, is what holds them back. They are
|
| 78 |
+
published as reproducible open baselines, not as competitive extractors.
|
| 79 |
+
- **Always null** answers nothing; it scores 0.199 because 31% of fields are
|
| 80 |
+
absent. A model below it is doing more harm than good.
|
| 81 |
+
- Remote models were called once, at temperature 0, with responses cached.
|
| 82 |
+
LLMs got a JSON schema with one nullable property per field; documents longer
|
| 83 |
+
than their context were cut (5 cases for Schematron), and that is counted.
|
| 84 |
+
- Rows for LFM2.5 and Clairic will be added when their runs finish.
|
| 85 |
+
|
| 86 |
+
### Scoring your model
|
| 87 |
+
|
| 88 |
+
```bash
|
| 89 |
+
pip install numpy pyarrow huggingface_hub
|
| 90 |
+
huggingface-cli download LocalLLaMA/typed-extraction --repo-type dataset --local-dir typed-extraction
|
| 91 |
+
python typed-extraction/score.py predictions.jsonl --by-family
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
`predictions.jsonl` has one line per test case,
|
| 95 |
+
`{"id": ..., "answers": {"<field>": {"value": ..., "p_null": ..., "confidence": ...}}}`,
|
| 96 |
+
with `null` (or `[]` for lists) for fields the document does not state.
|
| 97 |
+
`p_null` and `confidence` are optional and enable the calibration metrics.
|
| 98 |
+
Please report the headline, hallucination and miss together; any one alone can
|
| 99 |
+
be gamed. To be added to the leaderboard, open a discussion on this dataset with
|
| 100 |
+
the scorer's output and a link to the model, and say whether it was zero-shot or
|
| 101 |
+
trained on `train`.
|
| 102 |
+
|
| 103 |
## What is different about it
|
| 104 |
|
| 105 |
- **The gold is fact, not a teacher's opinion.** Every answer is a human
|
|
|
|
| 185 |
and accuracy at 90% coverage (answering only the most confident 90%) for
|
| 186 |
predictors that report confidence.
|
| 187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
## Gold quality
|
| 189 |
|
| 190 |
200 test fields were hand-checked against their documents, weighted towards
|
assets/leaderboard.png
ADDED
|
Git LFS Details
|