--- license: other license_name: per-source license_link: https://github.com/davidleitw/fdem/blob/master/benchmark/README.md#sources-and-licences pretty_name: FDEM benchmark language: - en - zh - ja task_categories: - image-text-to-text - document-question-answering size_categories: - 1K.jsonl`, `answers/real-usage/.jsonl` | Each model's answers: `{"id", "answers"}`, with `skipped_fields` where a model was not asked a field. fdem-4b and fdem-9b answers come from the released merged weights. | | `answers/variants/-.jsonl`, `answers/real-usage/variants/-.jsonl` | Answers of fdem's compressed variants, `` one of `fp8`, `gguf-q8_0`, `gguf-q4_k_m`, `mlx-4bit`, `mlx-8bit`. | | `verdicts.jsonl` | 6,989 verdicts: `{"set", "doc", "field", "answer", "tier"}`, tier `info_wrong`, `form_only` or `gold_questionable`. | | `images/`, `images.sha256` | 622 page images (597 for the held-back and core halves, 25 for the real-usage set) and their checksums. | | `licenses/` | Licence texts and the per-document sources of the real-usage set (`real-usage.md`, `real-usage.zh-TW.md`). | ## Scoring The scorer and the runner come from the GitHub repository: ```bash git clone https://github.com/davidleitw/fdem && cd fdem python benchmark/score.py # held-back half python benchmark/score.py --data benchmark/data/real-usage.jsonl # real-usage set python benchmark/score.py my-answers.jsonl # your own answers file ``` - Right: the answer equals the gold or an alternative after NFKC, case and whitespace folding (numbers must be equal numbers, lists item by item), or its verdict is `form_only` or `gold_questionable`. - Wrong: its verdict is `info_wrong`. Blank: left empty although the document states the field. - Filled empty field: a value for a field whose gold is null, unless its verdict is `gold_questionable`. - A filled answer with no verdict is reported as unreviewed, never guessed. Fields in `skipped_fields` are left out. Verdicts come from OpenAI Codex and Claude reviewers who did not see which model wrote an answer; where two disagreed, the stricter verdict was kept. Claude Sonnet is also one of the scored models. ## Results Selected rows. Full tables and how every model was run: [docs/results.md](https://github.com/davidleitw/fdem/blob/master/docs/results.md). **Held-back, English** (2,957 stated, 218 empty fields): | Model | Right | Wrong | Blank | Filled empty fields | Documents fully right | |---|---|---|---|---|---| | fdem-9b | 2,900 | 19 | 38 | 8 / 218 | 302 / 343 | | fdem-4b | 2,899 | 30 | 28 | 7 / 218 | 297 / 343 | | nuextract3 | 2,897 | 30 | 30 | 19 / 218 | 281 / 343 | | qwen3.5-9b | 2,915 | 20 | 22 | 33 / 218 | 285 / 343 | | qwen3.5-4b | 2,892 | 48 | 17 | 39 / 218 | 269 / 343 | | claude-sonnet | 2,894 | 10 | 53 | 0 / 218 | 302 / 343 | | claude-haiku | 2,891 | 22 | 44 | 2 / 218 | 295 / 343 | | gpt-6-luna | 2,876 | 42 | 39 | 12 / 218 | 275 / 343 | | gemma-4-31b | 2,825 | 64 | 68 | 8 / 218 | 266 / 343 | **Real-usage** (1,757 stated, 389 empty fields): | Model | Right | Wrong | Blank | Filled empty fields | Documents fully right | |---|---|---|---|---|---| | fdem-9b | 1,604 | 114 | 39 | 21 / 389 | 102 / 198 | | fdem-4b | 1,570 | 121 | 66 | 21 / 389 | 87 / 198 | | qwen3.5-9b | 1,633 | 100 | 24 | 67 / 389 | 96 / 198 | | qwen3.5-4b | 1,576 | 147 | 34 | 92 / 389 | 68 / 198 | | nuextract3 | 1,580 | 155 | 22 | 77 / 389 | 70 / 198 | | clairic-flash (asked fields only) | 1,198 | 134 | 76 | 49 / 309 | 72 / 198 | clairic-flash (Cloudflare's hosted extraction model) was not asked fields its schema cannot express (currency, document type, item tables and others) on 187 of the 198 documents; its row is not directly comparable. On the held-back half, the `clairic` answers are from Cloudflare's November 2026 preview API, given OCR text on image rows. ## How the held-back half was used fdem was not trained on it. Each English source was split at random into the core and held-back halves before any model answer was read; forms were split by template. The released fdem models were picked on development sets; the held-back half served as a pass/fail check on the picked candidates and was read several times this way, so fdem's scores on it may be slightly optimistic. The real-usage set was first answered after both models were fixed, and no checkpoint was picked on it. ## Real-usage gold fixes After the real-usage set was frozen on 2026-11-27, 39 expected answers were changed: 6 corrected values and 33 fields dropped from scoring because two answers are equally defensible. Answers that differ from a corrected gold were judged blind again. Each change with its reason and evidence: [real-usage-changes.md](https://github.com/davidleitw/fdem/blob/master/benchmark/data/real-usage-changes.md). ## Sources and licences Each document keeps its source's licence; there is no single licence for the dataset. The code in the GitHub repository is Apache-2.0. **Held-back and core halves**, by `part`: | Part | Held-back / core documents | Source | Licence | |---|---|---|---| | varex | 200 / 136 | [IBM VAREX](https://huggingface.co/datasets/ibm-research/VAREX), US government forms with synthetic values | CDLA-Permissive-2.0 ([text](https://github.com/davidleitw/fdem/blob/master/benchmark/licenses/CDLA-Permissive-2.0.txt)) | | extractbench | 35 / 55 | [LlamaIndex ExtractBench](https://huggingface.co/datasets/llamaindex/ExtractBench), business PDFs, page images | Apache-2.0 | | receipts | 30 / 53 | [ReceiptSense](https://huggingface.co/datasets/abdoelsayed/CORU) (CORU), receipt photos published by `abdoelsayed` on Hugging Face (paper: [arXiv:2406.04493](https://arxiv.org/abs/2406.04493)). Changes: images unchanged; field lists and gold answers written for this benchmark | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) in its card metadata. Its card text says MIT, but the LICENSE file it links returned 404 on 2026-11-29. Both licences allow redistribution with credit. Card checked at revision [b032b74](https://huggingface.co/datasets/abdoelsayed/CORU/tree/b032b74f26346da8c4c090d37079b51adbadcb6d). | | forms | 48 / 61 | UK government forms (GOV.UK) filled with fictional values for this benchmark | Open Government Licence v3.0 | | companies-house | 30 / 43 | UK company accounts as filed on the Companies House public register. Source: Companies House | Companies House makes public-register filings available for public inspection under section 47 of the Copyright, Designs and Patents Act 1988 and sets no rules on how they are used; copyright stays with whoever created each document, and re-users must check third-party copyright themselves ([Companies House statement](https://www.gov.uk/government/publications/companies-house-accreditation-to-information-fair-traders-scheme/public-task-copyright-and-crown-copyright)). | | types | 0 / 81 | Requests written for this benchmark to cover dates, times, durations and lists | Apache-2.0 | | drcd | 270 / 30 | [DRCD](https://github.com/DRCKnowledgeTeam/DRCD), Delta Research Center (Delta Electronics): Traditional Chinese passages compiled and adapted from Chinese Wikipedia ([copyright notice](https://github.com/DRCKnowledgeTeam/DRCD#copyright-notice-版權聲明)). Changes: passages turned into field-extraction rows, with field lists and gold answers written for this benchmark | [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/). This converted copy is shared under the same licence. | | jawildtext | 320 / 30 | [JaWildText](https://huggingface.co/datasets/llm-jp/jawildtext), llm-jp (Japanese receipts) | Apache-2.0. Its card rules out identifying people or stores and profiling, and those limits apply here too. | Documents taken from public datasets are reproduced as their sources publish them, so some carry details printed on them, such as store phone numbers, staff names or IDs, guest Wi-Fi details, e-mail addresses and organisations' tax IDs. To have a document removed, open an [issue](https://github.com/davidleitw/fdem/issues). **Real-usage set**: per document in [licenses/real-usage.md](https://github.com/davidleitw/fdem/blob/master/benchmark/licenses/real-usage.md): 65 CC0 1.0 (mostly written for this benchmark), 41 US federal public domain, 35 Taiwan Open Government Data License 1.0, 21 CC BY 4.0, 10 UK Open Government Licence v3.0, 8 MIT (filled HTML templates), 8 SEC EDGAR public filings, 4 CC BY-SA, 6 others. Templates are filled with fictional values; documents written for the benchmark contain no real people's contact details. Contains public sector information licensed under the Open Government Licence v3.0. To have a document removed, open an [issue](https://github.com/davidleitw/fdem/issues). ## Citation ```bibtex @software{lei2026fdem, author = {Lei, David}, title = {{FDEM}: Field-level Data Extraction Model}, version = {0.1.0}, year = {2026}, url = {https://github.com/davidleitw/fdem} } ```