Manuscript Offprint

arXiv:2610.32126

Data Quality in RVL-CDIP: A Systematic Audit

Stefan Larson, Kevin Leach

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

Keywords: document classification, data quality, benchmark auditing, label errors, data leakage, spurious correlations, de-identification, data privacy

1 Introduction

The RVL-CDIP corpus (Harley et al., 2015) was introduced in 2015 as a computer vision benchmark and has since become what prior work has called the de facto standard benchmark for document page classification (Larson et al., 2023), a description that our own survey of the literature confirms. Its 400,000 labeled document images across 16 categories made it large enough to train deep architectures at a time when comparable resources did not exist, and the community adopted it accordingly. Modern document understanding models, among them LayoutLMv3 (Huang et al., 2022), Donut (Kim et al., 2022), and UDOP (Tang et al., 2023), report document classification results on RVL-CDIP alone. Of the 34 papers we surveyed that report document classification results on RVL-CDIP, 23 evaluate classification on that dataset and nothing else, and 29 evaluate only on datasets derived from the archive from which RVL-CDIP was sampled (Section 2.2). Of the five that use a dataset from another source, two use proprietary in-house collections that cannot be reproduced. The other three all use NIST tax forms (Special Database 2 or 6, two sets of the same 1988 IRS forms), on which they report 99.99 to 100% accuracy; these datasets are therefore saturated. RVL-CDIP is the most popular benchmark for this task and effectively the only standardized

©2026 Larson and Leach.

benchmark of comparable scale, so that a claim about document classification performance is in practice usually a claim based on RVL-CDIP.

Performance on this benchmark has increased steadily and now appears close to saturation. Early convolutional models reported accuracies between 88% and 91% (Afzal et al., 2017); contemporary multi-modal architectures report the high 90s, with LayoutLLM (Fujitake, 2024) reporting 98.8%. Progress of this kind is normally interpreted as evidence that the underlying task is being solved, which depends on an assumption that is rarely examined: that the benchmark measures what it is taken to measure, and that successive improvements on it are improvements in document understanding and not an increasingly effective use of the properties of the benchmark itself.

There is good reason to examine that assumption: a body of work across natural language processing and computer vision has found that widely used benchmarks frequently contain substantial label noise (Northcutt et al., 2021a), significant overlap between test and training data (Allamanis, 2019; Elangovan et al., 2021), and collection artifacts that permit models to shortcut the intended task (Gururangan et al., 2018; McCoy et al., 2019; Niven and Kao, 2019). RVL-CDIP is a plausible candidate for such problems, because its documents are sampled from IIT-CDIP (Lewis et al., 2006), a collection of roughly seven million documents released through litigation against the American tobacco industry, which was assembled for legal discovery and was never curated for machine learning. Harley et al. themselves noted that the source collection had “missing or erroneous tags” and acknowledged that “the final categories are not perfectly distinct”, but did not publish category definitions against which those concerns could be assessed.

This paper reports a systematic audit of RVL-CDIP. Our central finding is that the benchmark is compromised along several independent dimensions simultaneously, and that a reported accuracy on RVL-CDIP is therefore a composite quantity: partly a measurement of document classification ability, and partly a measurement of a model's ability to learn the benchmark's defects. We organize the audit around five axes, four of which concern the dataset itself: the validity of its labels, the integrity of its train and test splits, the presence of spurious visual cues, and the narrowness of its distribution. The fifth concerns the evaluation protocol: because RVL-CDIP is distributed as images without a text layer, every text-based and multi-modal model must obtain its text from an optical character recognition engine of its own choice, and the choice of OCR engine, which is uncontrolled across the literature, has a larger effect on accuracy than the architectural differences on which these models are compared.

One further defect is separate from these five, and we treat it first: RVL-CDIP contains a large quantity of sensitive personal data (Social Security numbers, dates and places of birth, home addresses), which does not affect what a score on a document classification benchmark means but does determine what can responsibly be released. We quantify that exposure, de-identify the affected documents by replacing each sensitive entity with a synthetic but plausible one, and show that doing so changes none of the predictions of a DiT classifier on 445 resumes (Section 3). Because de-identification has almost no effect on classification, we run the entire audit on the de-identified corpus, so that the version of RVL-CDIP we measure model performance on is the same version that we release publicly.

Figure 1 shows an example page of each defect together with the corresponding result. Each of these defects has, in isolation, a bounded effect that could be dismissed as a known

(a) Label errors

Figure

labeled handwritten, is a letter (12.0% wrong)

(b) Test-train duplicates

Figure

test page (left) and a training page on the same form (35.2% of test pages have one)

(c) Identification codes

Figure

TIMN 0141540

7 of 7 image models: news_article with the code, scientific_publication without

(d) Narrow distribution

Figure

RVL-CDIP page (left) and a page from another source (image models: 14 to 28 points lower)

(e) OCR engine

Figure

November 3, 1975

Vol 234, No 5

Textract

November 3, 1975 Vol 234, No 5

Tesseract

Noveotera, 3575— Vol234.NoS.

the same line read by two engines (4.1 to 8.3 points between engines)

(f) Sensitive data

Expiration Date (optional) ___ 7/31/84

Expiration Date (optional) ___ 5/31/SS

a value before and after synthetic replacement (16,000 documents)

Figure 1: The defects of RVL-CDIP examined in this paper, each with an example page and the corresponding result. The addressee of the letter in (a) is masked, and the image models in (c) are those trained on the original labels.

limitation. Considered together they raise a question that cannot be answered by studying any one of them: what does an RVL-CDIP score measure when all of them are controlled at once? We construct a corpus in which all five axes are remediated at once and re-benchmark 24 models against it. We also test whether the defects are independent of one another, since defects that co-occur in the same documents cannot be corrected one at a time and their effects on accuracy are not additive.

This paper is a benchmark audit: we do not propose a new model or a new training procedure. It consolidates and substantially extends five of our earlier conference papers (Larson et al., 2022, 2023, 2024, 2025, 2026), each of which examined a single axis in isolation; the joint remediation and defect-interaction analyses and the OCR protocol analysis are new here.

We make the following contributions:

  1. An audit of sensitive personal data in RVL-CDIP, finding 15,956 affected documents (4.0% of the corpus) including 2,342 US Social Security numbers, and a de-identification pipeline, based on synthetic replacement, that changes none of the predictions of a DiT classifier on 445 resumes and on whose output the remainder of this paper's experiments are run (Section 3).

  2. An exhaustive, 400,000-document review of RVL-CDIP establishing a label error rate of approximately 10.5%, nearly nine times the error rate of the leading models, with per-category rates from 1.5% (resume) to 31.3% (letter). The rate is measured against published category criteria, absent from the original release (Sections 4 and 5).

  3. A filter-and-refine method for detecting test–train overlap in scanned document collections, finding that approximately 35.2% of RVL-CDIP's test set has a near-duplicate counterpart in training. The validation split shows nearly the same rate, which indicates that the leakage was introduced when the corpus was assembled and not when it was split (Section 6).

  4. A quantification of litigation ID codes as spurious cues: these codes appear on 92% of the corpus, and a classifier given only features of the codes classifies RVL-CDIP documents with 69% accuracy, and a state-of-the-art model loses 11.0 accuracy points when the codes are removed. We release an automatic detector and code-free versions of RVL-CDIP (Section 7).

  5. Two out-of-distribution evaluation sets, RVL-CDIP-N and RVL-CDIP-O, on which RVL-CDIP-trained image-only models lose 14 to 28 accuracy points, against 3 to 4 for text models, and the image-only models' ability to separate in-domain from out-of-domain input decreases toward chance (Section 8).

  6. An analysis of OCR engine choice as an uncontrolled confound in the multi-modal document classification literature, where holding architecture fixed and varying only the engine changes accuracy by 4.1 to 8.3 points, against 0.19 to 0.82 points between successive LayoutLM generations (Section 9).

  7. A joint remediation experiment measuring model performance with all confounds controlled simultaneously (Section 10), and a defect-interaction analysis establishing whether they are independent (Section 11).

  8. Public release of all annotations, corrected corpus variants, and evaluation data (Appendix A).

The paper is organized as follows: Section 2 describes RVL-CDIP, the collection from which it is derived and the benchmark-auditing literature; Section 3 quantifies the corpus's sensitive personal data and defines the de-identified corpus on which every later measurement is made; Section 4 provides the category criteria that the original release omitted, on which every subsequent measurement depends; Sections 5 through 9 examine the five axes in turn; and Sections 10 and 11 report the joint remediation and defect-interaction analyses.

References (100)

Couldn't load all references. Reload the page to try again.