Data Quality in RVL-CDIP: A Systematic Audit
Organizations: Department of Computer Science, Vanderbilt University, Nashville, TN 37235, USA
Abstract
RVL-CDIP is the de facto standard benchmark for document classification, and reported accuracy on it is now 98.8%. In this paper, we audit RVL-CDIP for data quality issues and find that approximately 10.5% of its 400,000 documents have erroneous labels and that 35.2% of the test set has a duplicate or near-duplicate in the training set. Identification codes on the pages are sufficient to classify at 69% accuracy, and a state-of-the-art model loses 11 points without them. Image-only models trained on RVL-CDIP lose 16 to 28 points on documents from other sources, and the choice of OCR engine changes accuracy by 4.1 to 8.3 points. We find that nearly 16,000 RVL-CDIP documents contain sensitive personal data, and produce de-identified versions of these documents. We re-benchmark 25 models, and with all defects remediated, the 13 that we retrain are 0.9 to 2.9 points more accurate than in the original condition; the most accurate of them, LayoutLMv3, is 96.5% accurate. We release the corrected corpus, the annotations and the out-of-distribution data.
Figures & tables
| Category | Train | Val. | Test |
|---|---|---|---|
| advertisement | 19,963 | 2,522 | 2,515 |
| budget | 20,010 | 2,485 | 2,505 |
| 19,954 | 2,530 | 2,516 | |
| file_folder | 20,022 | 2,451 | 2,527 |
| form | 19,957 | 2,537 | 2,506 |
| handwritten | 20,034 | 2,434 | 2,532 |
| Model (Reported by) | Mod. | Acc. | Model (Reported by) | Mod. | Acc. |
|---|---|---|---|---|---|
| LayoutLLM ( Fujitake, 2024 ) | I, T, L | 98.80 | MGDoc ( Wang et al., 2022b ) | I, T, L | 93.64 |
| EAML ( Bakkali et al., 2021 ) | I, T | 97.70 | Dessurt ( Davis et al., 2022 ) | I | 93.60 |
| Bi-VLDoc ( Luo et al., 2025 ) | I, T, L | 97.17 | Bigbird-base ( Pham et al., 2022 ) | T | 93.48 |
| ERNIE-Layout-large ( Peng et al., 2022 ) | I, T, L | 96.27 | Pramanik et al. (2022) | I, T, L | 93.36 |
| UDOP-Dual ( Tang et al., 2023 ) | I, T, L | 96.22 | Bigbird-large ( Pham et al., 2022 ) | T | 93.34 |
| DocFormer-base ( Appalaraju et al., 2021 ) | I, T, L | 96.17 | Multimodal Ensemble ( Dauphinee et al., 2019 ) | I, T | 93.07 |
| Entity type |
|---|
| US Social Security number |
| Age |
| Date of birth |
| Sex/gender |
| Place of birth |
| Marital/parental/spousal status |
| Dataset size | 400,000 |
|---|---|
| US Social Security no. | 2,342 |
| Date of birth | 12,800 |
| Place of birth | 6,125 |
| Age | 219 |
| Home address | 3,908 |
| Home telephone | 1,801 |
| Category | Description | Notes |
|---|---|---|
| advertisement | Advertisements from print media such as newspapers and magazines; a smaller number of scripts for television or radio advertisements; a small number of advertisement order and insertion documents. | Excludes the recurring “IMAGE NOT AVAILABLE” page, which appears predominantly in this category. |
| budget | Expense, spending, sales, cash, and accounting reports and forecasts; budgets; quotes and estimates; income and bank statements. Also receipt-like documents including political campaign contribution requests, other receipts, and checks and check stubs. | Checks are assigned here rather than to invoice : 8.8% of reviewed budget documents were checks, against 3.8% of invoice . |
| Scanned images of printed email messages. | ||
| file_folder | Scanned images of folders and binders, often characterized by vertically oriented text indicating a folder label. | A moderate number contain handwritten notes. Some scans are indistinguishable from blank pages. |
| form | Documents with ruled lines or boxes indicating fillable fields; also documents composed largely of key–value pair elements, such as “Size: Large”, whether or not the fields are ruled. | Substantial overlap with questionnaire , many of which contain form-like elements. |
| handwritten | Handwritten documents, including handwritten letters and scientific notes. | Takes precedence over the content-based categories: a handwritten letter is handwritten . |
| Category | Unknown | Wrong | Mixed | Any Error | Unsure | Any + Unsure |
|---|---|---|---|---|---|---|
| advertisement | 5.89% | 0.60% | 1.62% | 8.12% | 1.50% | 9.61% |
| budget | 4.93% | 8.48% | 3.94% | 17.35% | 1.66% | 19.00% |
| 8.12% | 1.27% | 0.12% | 9.51% | 0.50% | 10.02% | |
| file_folder | 3.33% | 0.16% | 0.52% | 4.01% | 0.08% | 4.09% |
| form | 4.54% | 3.60% | 6.10% | 14.25% | 1.04% | 15.29% |
| handwritten | 9.50% | 2.12% | 1.03% | 12.66% | 0.00% | 12.66% |
| Category | Test | Validation | ||
|---|---|---|---|---|
| # Dup. | % Dup. | # Dup. | % Dup. | |
| advertisement | 856 | 34.04% | 843 | 33.43% |
| budget | 1,479 | 59.04% | 1,450 | 58.35% |
| 175 | 6.96% | 190 | 7.51% | |
| file_folder | 50 | 1.98% | 56 | 2.28% |
| form | 1,458 | 58.18% | 1,455 | 57.35% |
| Model | RVL-CDIP | Tob.3482 |
|---|---|---|
| Random chance | 6.25 | 17.8 |
| Zero-shot CLIP | 39.2 | 49.5 |
| Code feats. | 69.2 | 56.5 |
| Code feats. +CNN | 69.9 | 57.8 |
| File name only | 68.8 | 55.6 |
| Paper | Engine | Paper | Engine |
|---|---|---|---|
| LayoutLLM ( Fujitake ) | EasyOCR | UDoc ( Gu et al. ) | EasyOCR a |
| EAML ( Bakkali et al. ) | Tesseract 4.0 | LayoutLM ( Xu et al. ) | – b |
| Bi-VLDoc ( Luo et al. ) | Tesseract | MATrIX ( Delteil et al. ) | Textract |
| ERNIE-Layout ( Peng et al. ) | Microsoft OCR | MGDoc ( Wang et al. ) | EasyOCR |
| UDOP ( Tang et al. ) | – | Pramanik et al. | Tesseract |
| DocFormer ( Appalaraju et al. ) | Textract | Dauphinee et al. | Tesseract |
| Words per page | Empty (%) | Char. | Word | |||
|---|---|---|---|---|---|---|
| Category | Textract | Tesseract | Textract | Tesseract | distance | overlap |
| advertisement | 97 | 51 | 3.1 | 11.9 | 0.76 | 0.23 |
| budget | 153 | 107 | 0.7 | 1.6 | 0.58 | 0.46 |
| 124 | 118 | 0.0 | 0.2 | 0.11 | 0.85 | |
| file_folder | 4 | 6 | 54.3 | 22.6 | 0.86 | 0.17 |
| form | 164 | 139 | 0.3 | 0.8 | 0.35 | 0.61 |
| Condition | Test pages | Test labels | Trained on | |
| All test pages | ||||
| Orig. | all | original | original labels, with codes | 40,000 |
| Drop. | wrong labels removed | original | original labels, with codes | 35,280 |
| Fixed | uncorrectable removed | corrected | original labels, with codes | 36,446 |
| Fixed+RT | uncorrectable removed | corrected | corrected labels, with codes | 36,446 |
| De-duplicated test pages | ||||
| All test pages | De-duplicated | Codes removed | |||||||||
| Model | Orig. | Drop. | Fixed | Fixed+RT | Orig. | Drop. | Fixed | Fixed+RT | Test | +RT | Full |
| 40,000 | 35,280 | 36,446 | 36,446 | 25,923 | 22,530 | 23,132 | 23,132 | 40,000 | 40,000 | 23,132 | |
| Image | |||||||||||
| AlexNet | 89.3 | 92.5 | 90.2 | 92.8 | 85.8 | 90.0 | 88.5 | 90.4 | 84.9 | 88.5 | 90.2 |
| GoogLeNet | 89.2 | 92.6 | 90.3 | 93.2 | 86.0 | 90.3 | 88.7 | 91.0 | 85.7 | 88.5 | 90.8 |
| SqueezeNet | 88.7 | 92.3 | 90.1 | 92.6 | 85.8 | 90.3 | 88.9 | 90.8 | 83.8 | 87.7 | 90.5 |
| Model | Original | Fixed | No codes | Both | |
| Image | |||||
| AlexNet | 61.4 | 73.1 | 59.9 | 70.2 | 8.8 |
| GoogLeNet | 64.0 | 76.1 | 61.7 | 72.9 | 8.8 |
| SqueezeNet | 66.4 | 76.4 | 63.0 | 73.7 | 7.3 |
| VGG-16 | 66.8 | 79.6 | 67.0 | 77.7 | 10.9 |
| ResNet-50 | 66.6 | 78.1 | 63.6 | 76.7 | 10.1 |
| T-O | N-O | ||||
| Input | Model | MSP | Energy | MSP | Energy |
| Image | AlexNet | 0.880 | 0.914 | 0.645 | 0.673 |
| GoogLeNet | 0.837 | 0.845 | 0.604 | 0.594 | |
| ResNet-50 | 0.874 | 0.875 | 0.624 | 0.600 | |
| ResNeXt-50 | 0.882 | 0.889 | 0.618 | 0.612 | |
| VGG-16 | 0.889 | 0.930 | 0.661 | 0.668 | |
| T-O | N-O | |||||||
| Model | Original | Fixed | No codes | Both | Original | Fixed | No codes | Both |
| Image | ||||||||
| AlexNet | 0.877 | 0.905 | 0.872 | 0.902 | 0.643 | 0.731 | 0.645 | 0.717 |
| GoogLeNet | 0.860 | 0.884 | 0.855 | 0.876 | 0.620 | 0.702 | 0.619 | 0.688 |
| SqueezeNet | 0.877 | 0.899 | 0.873 | 0.901 | 0.648 | 0.744 | 0.642 | 0.738 |
| VGG-16 | 0.899 | 0.924 | 0.887 | 0.918 | 0.671 | 0.763 | 0.656 | 0.743 |
| Original labels | Errors fixed | |||||
|---|---|---|---|---|---|---|
| Model | Tesseract | Textract | Tesseract | Textract | ||
| TF-IDF SVM | 81.96 | 90.23 | +8.27 | 86.21 | 94.07 | +7.86 |
| BERT-base | 86.66 | 92.54 | +5.88 | 90.23 | 95.97 | +5.75 |
| RoBERTa-base | 86.50 | 92.47 | +5.97 | 90.38 | 95.97 | +5.59 |
| LayoutLM-base | 89.39 | 93.50 | +4.11 | 92.43 | 96.99 | +4.56 |
| Test | Validation | |||||||
|---|---|---|---|---|---|---|---|---|
| Label | Dupl. (%) | OR | OR, strat. | Dupl. (%) | OR | OR, strat. | ||
| Correct | 35,280 | 36.1 | – | – | 35,291 | 36.2 | – | – |
| Error or unsure | 4,719 | 28.1 | 0.69 | 0.67 | 4,709 | 29.5 | 0.74 | 0.75 |
| relabeled | 1,166 | 48.4 | 1.66 | 0.98 | 1,089 | 49.0 | 1.70 | 0.96 |
| not relabeled | 3,553 | 21.4 | 0.48 | 0.57 | 3,620 | 23.6 | 0.55 | 0.68 |
| Mean MSP | AUC N-O | AUC T-O | |||||
|---|---|---|---|---|---|---|---|
| Model | Accuracy N | N | O | MSP | Energy | MSP | Energy |
| AlexNet | 62.1 72.9 | 0.884 0.930 | 0.821 0.837 | ||||
| GoogLeNet | 63.1 73.5 | 0.900 0.933 | 0.861 0.870 | ||||
| ResNet-50 | 62.1 75.5 | 0.902 0.932 | 0.858 0.876 | ||||
| ResNeXt-50 | 65.2 77.9 | 0.893 0.944 | 0.846 0.865 | ||||
| VGG-16 | 67.0 80.3 | 0.933 0.963 | 0.884 0.892 | ||||
| Alone | Pairs | ||||||||
| Model | Labels | Codes | De-dup. | Sum | All three | Difference | L, C | L, D | C, D |
| Image | |||||||||
| AlexNet | 3.5 | 0.8 | 3.5 | 0.8 | 0.9 | 1.7 | 0.7 | 1.1 | 0.3 |
| GoogLeNet | 3.9 | 0.7 | 3.3 | 0.1 | 1.5 | 1.7 | 0.6 | 1.1 | 0.3 |
| SqueezeNet | 3.9 | 1.0 | 2.9 | 0.1 | 1.9 | 1.8 | 0.8 | 1.1 | 0.3 |
| VGG-16 | 3.4 | 0.5 | 3.2 | 0.3 | 1.0 | 1.3 | 0.3 | 1.1 | 0.2 |
| Model | Backbone | RVL-CDIP classifier | Availability |
| DiT ( Li et al., 2022 ) | authors | authors | Hugging Face, live |
| Donut ( Kim et al., 2022 ) | authors | authors | Hugging Face, live |
| DocXClassifier ( Saifullah et al., 2024a ) | authors | authors | institutional host, live |
| StrucTexTv2 ( Yu et al., 2023 ) | authors | authors | host refuses access |
| Stacked CNN ( Das et al., 2018 ) | authors | authors | 2018 cloud link, unverified |
| LayoutLMv1 ( Xu et al., 2020 ) | authors | third party | fidelity unverified |
Appendix figures & tables37 assets
Supplementary material from the paper’s appendix.
Appendix
| Artifact | Contents | Section |
|---|---|---|
| Category criteria | 16 operational definitions | Section 4 |
| Label annotations | 400,000 judgments; error type; corrected | Section 5 |
| label where determined | ||
| Corrected corpus variants | the conditions of Section 10 | Section 10 |
| Duplicate pairs | test–train and validation–train pairs | Section 6 |
| Duplicate calibration set | 1,528 pairs judged by hand, 403 matches | Section 6 |
| Paper | Tobacco3482 | Other classif. | Other tasks | Pre-training |
|---|---|---|---|---|
| Csurka et al. (2016) | — | NIST-2, MARG, CLEF-IP, IH1–3 | — | — |
| Tensmeyer and Martinez (2017) | — | ANDOC | — | — |
| Afzal et al. (2017) | — | — | RVL-CDIP | |
| Das et al. (2018) | — | — | — | — |
| Sarkhel and Nandi (2019) | NIST-6, MARG | — | — | |
| Dauphinee et al. (2019) | — | — | — | — |
| Entity type | Covers |
|---|---|
| US Social Security number | A full Social Security number, or a part of one such as the last four digits. |
| Date of birth | A person’s date of birth, in any format. |
| Age | A person’s age, stated as a number. |
| Place of birth | The city, state or country in which a person was born. |
| Marital/parental/spousal status | A person’s marital status and the number of their children, which are often in separate fields. |
| Home address | A residential address, in full or in its parts (street, city, state, ZIP code). The address of an employer or other organization is not included. |
| Entity type | Presidio | Google DLP | Azure | Amazon |
|---|---|---|---|---|
| US Social Security number | 0.97 | 0.93 | 0.70 | 0.77 |
| Date of birth | – | 0.82 | – | – |
| Age | 1.00 | 1.00 | 1.00 | 1.00 |
| Sex/gender | – | 1.00 | – | – |
| Place of birth | – | – | – | – |
| Marital/parental/spousal status | – | – | – | – |
| RVL-CDIP | Tob.3482 | Tob.800 | FUNSD | DocVQA | Total | |
| Dataset size | 400,000 | 3,482 | 1,290 | 199 | 12,767 | 417,738 |
| US Social Security no. | 2,342 | 9 | 5 | 2 | 70 | 2,428 |
| Date of birth | 12,800 | 62 | 7 | — | 232 | 13,101 |
| Place of birth | 6,125 | 29 | 7 | — | 123 | 6,284 |
| Age | 219 | — | — | — | 44 | 263 |
| Home address | 3,908 | 6 | 1 | 1 | 276 | 4,192 |
| Category | Replacement |
|---|---|
| Social Security number | Nine digits in the form the Social Security Administration issues: area 001 to 899 other than 666, group 01 to 99, serial 0001 to 9999. A partial number, such as the last four digits, is filled digit by digit in the layout of the original. |
| Date of birth | A date between 1930 and 1970, in the original’s format (numeric or with the month written out, its separators, and a two- or four-digit year). |
| Age | A number between 29 and 59. |
| Place of birth | A real US city, with the state written as in the original (postal code, traditional abbreviation, full name, or omitted). |
| Marital/parental/spousal status | One status (married, divorced, widowed or single) and one number of children (none to four) per document, written as in the original (a word, an initial, a coded entry such as “c. 2”, or a count of children). |
| Home address | A street line in the usual US form, named after a tree, a president, a surname, a US place or a numbered street, with a real US city and a ZIP code from the range of the state it is written beside. |
| Model | Test acc. | Estimate | Flagged | Precision | Recall | P at 4,719 |
|---|---|---|---|---|---|---|
| Image | ||||||
| AlexNet | 89.3 | 4.5 | 5.3 | 39.7 | 17.8 | 37.2 |
| GoogLeNet | 89.2 | 5.9 | 6.6 | 40.4 | 22.6 | 38.1 |
| SqueezeNet | 88.7 | 3.4 | 4.3 | 44.9 | 16.4 | 39.9 |
| VGG-16 | 91.3 | 6.0 | 6.3 | 42.6 | 22.8 | 38.6 |
| ResNet-50 | 90.9 | 5.2 | 5.7 | 44.3 | 21.5 | 39.6 |
| Category | Wrong labels | Flagged | Precision | Recall | |
|---|---|---|---|---|---|
| letter | 2,464 | 30.7 | 5.6 | 68.5 | 12.3 |
| budget | 2,505 | 21.3 | 5.2 | 63.5 | 14.9 |
| form | 2,506 | 16.5 | 10.6 | 47.7 | 30.1 |
| questionnaire | 2,435 | 15.2 | 5.9 | 55.8 | 20.1 |
| invoice | 2,477 | 14.8 | 4.6 | 55.6 | 16.6 |
| scientific_report | 2,498 | 13.2 | 10.3 | 31.9 | 23.8 |
| adv | bud | ema | fol | frm | hw | inv | let | mem | news | pres | qst | res | pub | rep | spec | Total | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| adv | – | 1 | 1 | 38 | 22 | 16 | 14 | 17 | 39 | 1 | 1 | 1 | 151 | ||||
| bud | – | 156 | 53 | 370 | 1,499 | 10 | 16 | 6 | 7 | 3 | 2,120 | ||||||
| ema | 2 | 15 | – | 3 | 7 | 2 | 52 | 138 | 32 | 49 | 1 | 2 | 15 | 318 | |||
| fol | 2 | 1 | – | 12 | 10 | 1 | 2 | 2 | 1 | 4 | 3 | 1 | 1 | 40 | |||
| frm | 62 | 6 | 100 | – | 74 | 188 | 82 | 90 | 1 | 21 | 6 | 20 | 255 | 905 | |||
| hw | 39 | 2 | 1 | 45 | 78 | – | 1 | 234 | 19 | 6 | 106 | 3 | 2 | 536 |
| Category | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| advertisement | 3.5 | 4.2 | 34.4 | 2.7 | 1.4 | 30.4 | 8.1 | 2.0 | 3.8 | 5.4 |
| budget | 1.5 | 0.7 | 37.6 | 0 | 0 | 2.2 | 4.5 | 0.7 | 7.0 | 9.1 |
| 0 | 0.2 | 54.4 | 0 | 0.4 | 16.4 | 0.2 | 14.0 | 0.2 | 0.2 | |
| file_folder | 5.8 | 0.6 | 76.4 | 0 | 1.1 | 2.3 | 1.3 | 1.9 | 5.9 | 1.7 |
| form | 2.4 | 0.7 | 64.4 | 0.1 | 1.0 | 18.0 | 2.6 | 0.4 | 4.1 | 5.6 |
| handwritten | 0 | 0 | 0 | 0 | 0.1 | 99.9 | 0 | 0 | 0 | 0 |
| Group | Features | N |
|---|---|---|
| Bounding box | position, height, width, area, and center of the main code’s box, the area and the center both in pixels and as shares of the page, and whether the box is wider than it is tall | 11 |
| All codes on the page | number of codes, the boxes and orientations of up to three codes, the box enclosing all of them, and the numbers of horizontal and vertical codes | 23 |
| Length and characters | length of the main code in characters and in tokens, the numbers and shares of digits and of letters, and its first character, also as indicators for a digit and for a letter | 9 |
| String structure | number of space-separated groups and the lengths of the first two, the leading run of digits as a number and its logarithm, the number of leading letters, and indicators for a trailing letter and for a hyphen | 8 |
| Format and prefixes | for the pattern of digits and letters of the main code and for each of its first one to five characters, the distribution over categories of the training codes that share it and the logarithm of their number | 102 |
| Nearest numbers | among training codes with the same pattern, the distribution over categories of the five nearest in numeric value, the logarithm of the distance to the nearest, and its category | 18 |
| Category | No code | Vertical | Two-part | Ten digits | Letters |
|---|---|---|---|---|---|
| advertisement | 4 | 73 | 30 | 39 | 5 |
| budget | 0 | 60 | 1 | 39 | 36 |
| 0 | 63 | 22 | 36 | 40 | |
| file_folder | 11 | 86 | 0 | 76 | 3 |
| form | 3 | 88 | 18 | 65 | 2 |
| handwritten | 0 | 94 | 98 | 0 | 1 |
| All test pages | De-duplicated | Codes removed | |||||||||
| Model | Orig. | Drop. | Fixed | Fixed+RT | Orig. | Drop. | Fixed | Fixed+RT | Test | +RT | Full |
| 40,000 | 35,280 | 36,446 | 36,446 | 25,923 | 22,530 | 23,132 | 23,132 | 40,000 | 40,000 | 23,132 | |
| Text | |||||||||||
| TF-IDF | 88.9 | 93.0 | 91.2 | 93.4 | 84.7 | 90.0 | 89.1 | 90.3 | 88.8 | 88.8 | 90.3 |
| TF-IDF + HW | 89.8 | 94.1 | 92.3 | 94.6 | 86.0 | 91.6 | 90.8 | 92.2 | 89.7 | 89.7 | 92.2 |
| TF-IDF, Tesseract text | 79.8 | 84.0 | 82.5 | 84.7 | 74.0 | 79.1 | 78.5 | 80.2 | 79.6 | 79.7 | 80.0 |
| Model | Original | Fixed labels | Codes removed | Both |
|---|---|---|---|---|
| Text | ||||
| TF-IDF | 84.6 | 85.7 | 84.5 | 86.1 |
| TF-IDF + HW | 90.5 | 92.1 | 90.3 | 92.1 |
| Image features | ||||
| ResNet-50 (ImageNet) | 56.0 | 62.1 | 54.0 | 60.5 |
| CLIP | 81.1 | 88.3 | 80.8 | 88.7 |
| All test pages | De-duplicated | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | Orig. | Drop. | Fixed | Orig. | Drop. | Fixed | Codes removed | Full | RVL-CDIP- N |
| 40,000 | 35,280 | 36,446 | 25,923 | 22,530 | 23,132 | 40,000 | 23,132 | 1,002 | |
| Jev 1.13 | 67.0 | 72.9 | 72.3 | 66.5 | 73.0 | 72.5 | 67.4 | 73.3 | 84.8 |
| Bespoke-Nimble-9B | 63.0 | 68.3 | 67.7 | 62.6 | 68.8 | 68.4 | 63.3 | 69.0 | 80.4 |
| clef-flash | 59.3 | 64.0 | 63.5 | 57.5 | 62.8 | 62.3 | 59.4 | 62.3 | 82.2 |
| Strands Decider 2B | 53.5 | 57.3 | 56.4 | 50.8 | 54.9 | 54.3 | 53.5 | 54.2 | 80.3 |
| All test pages | De-duplicated | |||||||
|---|---|---|---|---|---|---|---|---|
| Model | Prompt | Orig. | Drop. | Fixed | Orig. | Drop. | Fixed | RVL-CDIP- N |
| 38,377 | 33,796 | 34,922 | 24,324 | 21,062 | 21,624 | 1,001 | ||
| Llama 4 Maverick | 1, names only | 67.6 | 73.5 | 72.8 | 65.3 | 72.0 | 71.6 | 87.8 |
| 2, corpus-grounded | 73.8 | 80.4 | 79.9 | 69.3 | 76.6 | 76.4 | 88.3 | |
| 3, generic | 67.8 | 73.6 | 73.0 | 65.2 | 72.0 | 71.4 | 86.4 | |
| gpt-oss-20b | 1, names only | 64.6 | 70.2 | 69.7 | 63.8 | 70.1 | 69.7 | 84.3 |
| Test split | RVL-CDIP- N | ||||||
| Model | Orig. | Fixed+RT | Full | Original | Fixed | No codes | Both |
| Image | |||||||
| AlexNet | 89.3 | 92.7 | 87.0 | 62.9 | 71.7 | 63.4 | 70.1 |
| GoogLeNet | 89.2 | 93.0 | 87.5 | 66.2 | 74.2 | 65.1 | 72.2 |
| SqueezeNet | 88.6 | 92.5 | 87.3 | 66.2 | 74.9 | 64.8 | 73.1 |
| VGG-16 | 91.2 | 94.5 | 89.5 | 69.4 | 77.8 | 70.3 | 77.1 |
| T-O | N-O | |||||||
| Model | Original | Fixed | No codes | Both | Original | Fixed | No codes | Both |
| Image | ||||||||
| AlexNet | 0.912 | 0.931 | 0.894 | 0.923 | 0.676 | 0.741 | 0.661 | 0.723 |
| GoogLeNet | 0.874 | 0.879 | 0.860 | 0.856 | 0.627 | 0.691 | 0.626 | 0.660 |
| SqueezeNet | 0.885 | 0.882 | 0.852 | 0.869 | 0.644 | 0.719 | 0.665 | 0.722 |
| VGG-16 | 0.924 | 0.943 | 0.907 | 0.936 | 0.683 | 0.770 | 0.664 | 0.751 |
| T-O | N-O | |||||||||
| Model | MSP | Energy | MaxLogit | GEN | MCM | MSP | Energy | MaxLogit | GEN | MCM |
| AlexNet | 0.880 | 0.914 | 0.914 | 0.912 | – | 0.645 | 0.673 | 0.673 | 0.673 | – |
| AlexNet (corrected) | 0.886 | 0.919 | 0.919 | 0.917 | – | 0.740 | 0.751 | 0.751 | 0.755 | – |
| GoogLeNet | 0.837 | 0.845 | 0.845 | 0.849 | – | 0.604 | 0.594 | 0.595 | 0.599 | – |
| GoogLeNet (corrected) | 0.842 | 0.829 | 0.829 | 0.840 | – | 0.684 | 0.661 | 0.662 | 0.674 | – |
| ResNet-50 | 0.874 | 0.875 | 0.875 | 0.884 | – | 0.624 | 0.600 | 0.601 | 0.611 | – |
| T-O | N-O | |||||||||
| Model | MSP | Energy | MaxLogit | GEN | MCM | MSP | Energy | MaxLogit | GEN | MCM |
| AlexNet | 69.0 | 51.0 | 51.3 | 50.8 | – | 90.5 | 91.6 | 91.2 | 90.5 | – |
| AlexNet (corrected) | 66.2 | 49.8 | 50.1 | 50.6 | – | 86.3 | 86.7 | 85.6 | 85.5 | – |
| GoogLeNet | 74.5 | 62.8 | 63.1 | 62.8 | – | 93.3 | 92.8 | 93.0 | 92.9 | – |
| GoogLeNet (corrected) | 73.8 | 65.5 | 65.9 | 65.7 | – | 90.7 | 87.2 | 86.8 | 86.6 | – |
| ResNet-50 | 67.1 | 56.3 | 56.0 | 55.4 | – | 92.5 | 93.6 | 93.4 | 93.2 | – |
| Test set | Model | Prompt 1 | Prompt 2 | Prompt 3 | ||
|---|---|---|---|---|---|---|
| RVL-CDIP | Llama 4 Maverick | 67.61 0.47 | 73.79 0.44 | 67.77 0.47 | 1787.9 | |
| Mistral 7B | 56.96 0.50 | 54.56 0.50 | 55.07 0.50 | 175.9 | ||
| gpt-oss-20b | 64.63 0.48 | 70.62 0.46 | 64.80 0.48 | 1642.1 | ||
| Qwen 3 32B | 62.28 0.48 | 63.56 0.48 | 58.60 0.49 | 853.0 | ||
| RVL-CDIP- N | Llama 4 Maverick | 87.81 2.03 | 88.31 1.99 | 86.41 2.12 | 8.4 | 0.015 |
| Mistral 7B | 78.22 2.55 | 76.42 2.63 | 68.33 2.88 | 83.4 |
| Test set | Model | Contrast | (pp) | ||
|---|---|---|---|---|---|
| RVL-CDIP | Llama 4 Maverick | P1 vs. P2 | 1285/3654 | *** | |
| P1 vs. P3 | 1147/1207 | 0.448 ns | |||
| P2 vs. P3 | 3631/1322 | *** | |||
| Mistral 7B | P1 vs. P2 | 3530/2608 | *** | ||
| P1 vs. P3 | 2575/1847 | *** | |||
| P2 vs. P3 | 2682/2876 | 0.029 * |
| Rel. error reduction | Odds ratio (P2 vs. P1) | Interaction | |||||
|---|---|---|---|---|---|---|---|
| Model | RVL-CDIP | - N | RVL-CDIP | - N | |||
| Llama 4 Maverick | 2.84 | 1.26 | 0.009 ** | ||||
| Mistral 7B | 0.74 | 0.70 | 0.815 ns | ||||
| gpt-oss-20b | 2.92 | 0.58 | *** | ||||
| Qwen 3 32B | 1.24 | 0.22 | *** | ||||
| Model | Dropped | Contrast | scored as error | complete cases |
|---|---|---|---|---|
| Llama 4 Maverick | 278 | P1 vs. P2 | *** | *** |
| P1 vs. P3 | ns | ns | ||
| P2 vs. P3 | *** | *** | ||
| Mistral 7B | 2771 | P1 vs. P2 | *** | *** |
| P1 vs. P3 | *** | *** | ||
| P2 vs. P3 | ** | *** |
| Model | Prompt 1 | Prompt 2 | Prompt 3 | ||
|---|---|---|---|---|---|
| Llama 4 Maverick | 3.09 0.63 | 6.53 0.90 | 8.04 0.99 | 129.7 | |
| Mistral 7B | 13.13 1.23 | 8.25 1.00 | 20.14 1.46 | 285.8 | |
| gpt-oss-20b | 37.19 1.76 | 52.35 1.81 | 59.02 1.79 | 575.0 | |
| Qwen 3 32B | 62.22 1.76 | 50.74 1.82 | 64.15 1.74 | 282.0 |
| Model | Contrast | (pp) | ||
|---|---|---|---|---|
| Llama 4 Maverick | P1 vs. P2 | 31/131 | *** | |
| P1 vs. P3 | 13/157 | *** | ||
| P2 vs. P3 | 64/108 | 0.002 ** | ||
| Mistral 7B | P1 vs. P2 | 257/115 | *** | |
| P1 vs. P3 | 117/321 | *** | ||
| P2 vs. P3 | 57/403 | *** |
| Model | Prompt | Explicit | Own label | Unparseable |
|---|---|---|---|---|
| Llama 4 Maverick | 1 | 3.09 | 0.00 | 0.03 |
| 2 | 6.53 | 0.00 | 0.14 | |
| 3 | 8.04 | 0.00 | 0.07 | |
| Mistral 7B | 1 | 4.78 | 8.35 | 3.64 |
| 2 | 3.88 | 4.37 | 4.43 | |
| 3 | 8.42 | 11.72 | 7.46 |
| Model | Initial weights | Optimizer | Schedule | LR | Batch | Epochs |
|---|---|---|---|---|---|---|
| Six CNNs | ImageNet (torchvision) | SGD, momentum 0.9 | polynomial, power 0.5 | 64 | 30 | |
| DiT-base | microsoft/dit-base | AdamW | cosine, 10% warmup | 32 | 10 | |
| BERT-base | bert-base-uncased | AdamW | linear, 10% warmup | 16 | 5 | |
| RoBERTa-base | roberta-base | AdamW | linear, 10% warmup | 16 | 5 | |
| LayoutLM-base | microsoft/layoutlm-base-uncased | AdamW | linear, 10% warmup | 16 | 5 | |
| LayoutLMv3-base | microsoft/layoutlmv3-base | Adam | constant | 64 | 10 |
Document Image Understanding
Document image understanding turns page images into recognized text, layout, structured data, and answers grounded in visual evidence.
See all 148 papers