v2 scorecard
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186---license: otherlicense_name: nutrient-commercialpipeline_tag: image-text-to-textlanguage:- entags:- document-ai- decision-model- system-one- grounding- document-classification- document-split- object-detection- token-classification- hallucination-detection- pii-detection- open-vocabulary- calibrated-confidencemetrics:- accuracy- f1- roc_auc---
# nutrient-document-decision-v2 Β· _commercial_
**Ask a document anything typed β yes/no, pick-one, a score, where on the page, which words β and get every answerfrom one read, each with a confidence you can trust.**
`nutrient-document-decision-v2` is a document specialist in a field of generalists. It reads page images and textonce and answers any number of typed questions about them. No text is generated. v2 adds **boxes** (find and labelregions on a page), **spans** (find and label exact words in a text field), **page-stream splitting that follows yourinstructions**, and confidence scores **calibrated per output type**: across many answers, 0.8 means right about 80% ofthe time.
- π― **Try it:** [nutrient-document-decision-v2-demo](https://huggingface.co/spaces/nutrientdocs/nutrient-document-decision-v2-demo)- π **Leaderboards:** [grounding](https://huggingface.co/spaces/nutrientdocs/grounding-leaderboard) Β· [document classification](https://huggingface.co/spaces/nutrientdocs/document-classification-leaderboard) Β· [open-vocabulary classification](https://huggingface.co/spaces/nutrientdocs/doc-openvocab-leaderboard) Β· [document split](https://huggingface.co/spaces/nutrientdocs/doc-split-leaderboard)- π **Previous version:** [nutrient-document-decision](https://huggingface.co/nutrientdocs/nutrient-document-decision) (v1)
## What it answers
| Question type | Answer ||---|---|| `noul` | yes / no, with the probability of yes || `choice` | one of your options, with a probability per option || `score` | a value on an ordinal scale, with probabilities || `box` / `boxes` | regions on a page, optionally labelled, each with a confidence (right place *and* right label) and a label confidence || `spans` | exact character spans in a text field, optionally labelled, each with a confidence (overlaps a correct span by β₯ 50%) and a label confidence |
One request can mix all of them, over one page or a stream of pages, with the questions written in plain language.
## Results
Same benchmark, same scorer, same rows for every column unless a note says otherwise. **v1** is the previous version;the **specialist** is the separately trained Nutrient model for that one task; **best other** is the strongestnon-Nutrient system on that leaderboard.
<!-- RESULTS-TABLE:START -->### Grounding β is a claim supported by its source? (ROC AUC)
| | **v2** | v1 | specialist ([grounding-en](https://huggingface.co/nutrientdocs/grounding-en) / [grounding-multilingual](https://huggingface.co/nutrientdocs/grounding-multilingual)) | best other ||---|---|---|---|---|| English (5,000 pairs) | **0.941** | 0.923 | 0.925 | 0.884 (Jev TypeSafe) || Multilingual (8,421 pairs) | 0.949 | 0.949 | **0.965** | 0.916 (Jev TypeSafe) |
### Document classification, image + OCR (macro-F1)
| Track | **v2** | v1 | specialist ([document-classification-v2](https://huggingface.co/nutrientdocs/document-classification-v2)) | best other ||---|---|---|---|---|| DocLayNet | **0.995** | 0.914 | 0.968 | 0.832 (Claude Opus 4.5 / 5, Gemini Flash, GPT-sol) || Forms | **1.000** | 0.997 | **1.000** | **1.000** (several) || OOD (unseen document types) | 0.768 | 0.632 | **0.946** | β || OOV (unseen label wording) | **0.919** | 0.812 | 0.830 | β || Tobacco3482 | 0.834 | **0.940** | 0.735 | 0.894 (OpenAI Decisions, gpt-6-luna) |
### Open-vocabulary / figure classification (top-1, 9,375 images)
| Track | **v2** | v1 | specialist ([doc-img-classification](https://huggingface.co/nutrientdocs/doc-img-classification)) | best other ||---|---|---|---|---|| Broad (48 labels) | **0.944** | 0.911 | 0.880 | 0.822 (OpenAI Decisions, gpt-6-luna) || Specialized | **0.891** | 0.827 | 0.713 | 0.596 (OpenAI Decisions, gpt-6-luna) || Synonym (label-wording robustness) | 0.848 | 0.833 | 0.730 | **0.880** (OpenAI Decisions, gpt-6-luna) |
### Document split β page-stream boundaries (F1)
| Stream | **v2** | v1 | specialist ([doc-split-v2](https://huggingface.co/nutrientdocs/doc-split-v2)) | best other ||---|---|---|---|---|| our-200 | 0.936 | **0.962** | 0.944 | 0.942 (GPT-sol) || OpenPSS-short | 0.624 | **0.683** | 0.652 | 0.598 (Gemini Flash) || OpenPSS-long | 0.923 | **0.959** | 0.891 | 0.244 (Gemini Flash) || TABME++ | **0.994** | 0.960 | 0.943 | β || Tobacco800 | **0.990** | 0.987 | 0.969 | β || val-full | 0.926 | **0.958** | 0.917 | β |
### Hallucinated spans β which words of an answer does the context not support? (LettuceDetect v2 test)
| | **v2** | Vela 3.1-fast | Vela 3-fast | LettuceDetect v2 (mmBERT-base) ||---|---|---|---|---|| Example F1 | **89.5** | 87.7 | 87.2 | 84.7 || Character span F1 | 59.1 | **66.4** | 65.4 | 62.7 || RAGTruth example F1 / span F1 | **79.1** / 50.1 | 78.1 / 57.5 | β | 79.2 / **58.9** (LettuceDetect-large v1) |
v2: all 10,698 test answers (prose and code), measured by us. The other columns are the numbers reported on the[vela3.1-fast](https://huggingface.co/vllm-sr/vela3.1-fast) model card, on its 8,490 "clean" answers of the same test(RAGTruth row: the RAGTruth answers), so the rows are not identical. v2 detects *that* an answer hallucinates as wellor better; it marks *which* words less precisely. v2 on non-English answers: example F1 95.4.
### PII signal β does a text contain personal data? (ROC AUC, router-signal-suite test, same 3,000 rows)
| | **v2** | Vela (released) | mmBERT-32K (released) ||---|---|---|---|| All 3,000 texts | **0.946** | 0.943 | 0.920 || 1,502 texts from sources v2 never trained on | **0.947** | 0.946 | 0.923 |
Models trained on this suite's own training split score higher (0.96β0.99): they learn the suite's labellingconvention. The table compares released models only.
### New in v2 (this model only)
**Page-stream splitting that follows instructions** β "split at every page", "one document per type", "keepattachments with their parent", "group all pages of a type together"β¦ Accuracy per page decision:
| Instruction family | Accuracy ||---|---|| Default splitting (stream / by type) | 0.902 / 0.813 || Split every page | 1.000 || Group pages of a type | 0.945 || *Held-out wordings and families:* attach to type / group by type / group several types / only before / every page | 0.897 / 0.819 / 0.777 / 0.832 / 0.897 |
**Boxes** β AP@0.5 on held-out pages (40 pages per source): DocLayNet layout 0.861, PubLayNet 0.860, DocGenome 0.871,form fields (CommonForms) 0.576, extraction fields 0.627.
**Policy decisions (JevBench)** β accuracy easy 1.000 / original 0.903 / hard 0.604.
**Calibration** β expected calibration error on held-out validation data, mean over sources (lower is better):
| Output | ECE ||---|---|| yes / no Β· choice Β· score | 0.044 Β· 0.069 Β· 0.046 || boxes Β· box label | 0.044 Β· 0.058 || span (the whole span) Β· span words Β· span label | 0.034 Β· 0.026 Β· 0.041 || "nothing to find" (boxes Β· spans) | 0.002 Β· 0.012 |<!-- RESULTS-TABLE:END -->
**Speed** (one NVIDIA RTX PRO 6000, batch 1): document classification 8.3 pages/s (p50 116 ms), grounding 10.7pairs/s, hallucinated spans 8.3 answers/s (p50 91 ms), PII 11.1 texts/s, document split 2.3β7.3 pages/s.
## Where v1 is still stronger
v2 trades some page-stream splitting accuracy for instruction-following: on the standard streams it trails v1 by0.03β0.06 F1 (our-200, OpenPSS, val-full) while beating it on TABME++ and Tobacco800. On Tobacco3482 classificationv1 leads (0.940 vs 0.834). v1 remains available for those workloads.
## Intended use & limits
Built for document-heavy workflows β contracts, filings, forms, invoices, mixed page streams, RAG answers β where onecalibrated pass has to answer several typed questions about the same document. Not a chat assistant: it returns typedanswers, not prose.
- Calibration is per output type, not per document source: on a source very different from its training data a confidence can drift. Contract-clause spans in particular are over-confident (right far less often than their confidence suggests) β validate before relying on them unattended.- Returned spans and boxes carry their own confidence; filter on it (0.5 is the default threshold).- Text in images is read from the page; very small print lowers box confidence.
## License & data
Commercial. Benchmarked on publicly available evaluation sets; see the linked leaderboards and benchmark datasets forsources and licenses per track.
> ### π© Get access>> `nutrient-document-decision-v2` is commercial and its weights are not downloadable here. To run it on-prem β> **contact Nutrient: [nutrient.io/contact-sales](https://www.nutrient.io/contact-sales/).**
## About the author
<a href="https://nutrient.io/"> <img src="https://avatars2.githubusercontent.com/u/1527679?v=3&s=200" height="80" /></a>
This project is maintained and funded by [Nutrient](https://nutrient.io/) - The deterministic document infrastructure enterprises run their highest-stakes workflows on: replayable output, clear exceptions, and full audit trails on the messy, regulated documents where AI alone breaks.README.mdAdded+186