RVL-CDIP

On this page 7

RVL-CDIP (Ryerson Vision Lab Complex Document Information Processing) is a public benchmark of 400,000 grayscale scanned document images labeled into 16 document classes, such as letter, invoice, memo and resume. In Document AI it is the most widely cited dataset for document image classification, the task of deciding what kind of document a page is before any field extraction begins.

The dataset was introduced in 2015 by researchers at Ryerson University to show that convolutional neural networks could classify documents from visual layout alone. It is drawn from the much larger IIT-CDIP Test Collection, which contains scans released during litigation against the tobacco industry, so its pages reflect office documents of past decades.

Structure and content of RVL-CDIP

RVL-CDIP is structured as a balanced classification dataset with 25,000 images per class and a fixed split into training, validation and test subsets. Images are grayscale and were downscaled so that the longer side is at most 1,000 pixels, which keeps layout visible but makes small print hard to read.

The table below summarizes the main properties of the dataset.

PropertyValuePractical implication
Total images400,000Large enough for deep model training
Classes16, balancedAccuracy is a meaningful headline metric
Split320,000 train, 40,000 validation, 40,000 testStandard comparison across papers
Image formatGrayscale TIFF, low resolutionNoisy OCR output for text-based models
SourceSubset of IIT-CDIP tobacco litigation scansOlder typography and scan artifacts
Key properties of the dataset

The sixteen classes cover letter, form, email, handwritten, advertisement, scientific report, scientific publication, specification, file folder, news article, budget, invoice, presentation, questionnaire, resume and memo. Several classes overlap visually, which makes the benchmark harder than its clean class list suggests.

How models are evaluated on RVL-CDIP

Models are evaluated on RVL-CDIP by top-1 accuracy on the 40,000-image test split. Because classes are balanced, accuracy is reported almost universally, although per-class confusion matrices reveal more about where a model fails.

Reported results have climbed across model generations, as the following table shows in approximate ranges.

Model familyInput usedTypical reported accuracy
Early CNNs (AlexNet-style)Page image onlyAbout 89 to 90 percent
Deeper CNNs (VGG, ResNet)Page image, sometimes regionsAbout 90 to 92 percent
Image transformers such as DiTPage image, self-supervised pretrainingAbout 92 to 93 percent
Layout-aware models such as LayoutLMImage, OCR text and positionsAbout 94 to 96 percent
Approximate accuracy by model family

The gain from multimodal models comes from combining OCR text with two-dimensional positions, which helps separate classes such as scientific report and scientific publication that look alike. Results above roughly 95 percent approach the ceiling imposed by label noise, so small differences between recent models are rarely meaningful.

RVL-CDIP compared with other Document AI benchmarks

RVL-CDIP differs from other Document AI benchmarks because it tests whole-page classification, while most neighbors test extraction, layout or question answering at a finer level.

BenchmarkMain taskAnnotation level
RVL-CDIPDocument type classificationOne label per page
FUNSDForm understanding and entity linkingWords and key-value links
DocVQADocument question answeringQuestion-answer pairs
PubLayNetLayout analysis of articlesBounding boxes per region
DocLayNetLayout analysis across domainsHuman-annotated regions
SROIEReceipt field extractionKey fields per receipt
Related benchmarks and their tasks

In practice, pretrained layout-aware language models are often reported on several of these datasets together, with RVL-CDIP serving as the classification checkpoint in a broader evaluation suite.

Known limitations and data quality issues

RVL-CDIP has well-documented limitations that affect how its results should be interpreted. Later audits estimated that several percent of labels are incorrect and found near-duplicate documents across the training and test splits, which can inflate accuracy.

  • Label noise: some pages are mislabeled or fit more than one class, such as a memo attached to a budget.
  • Train-test overlap: near-identical pages in both splits reward memorization.
  • Domain age: typewriter fonts and fax artifacts differ from modern born-digital PDFs.
  • Single-page labels: multi-page documents are reduced to one page, which ignores document splitting problems.
  • Sensitive content: the source archive contains personal information, which raises privacy considerations for redistribution.

To test robustness, researchers introduced out-of-distribution test sets such as RVL-CDIP-N, collected from different sources but with the same classes. Models that score highly on the original split often lose accuracy on these sets, which shows limited generalization.

Using RVL-CDIP in practical projects

In practical projects, RVL-CDIP is most valuable as a pretraining or warm-start dataset for document classifiers, not as proof that a model will work on a specific company’s documents.

Project goalHow to use RVL-CDIPCaveat
Research comparisonReport test accuracy with standard splitNote label noise when gaps are small
Production classifierFine-tune, then retrain on in-house pagesClass sets rarely match business needs
Robustness testingAdd out-of-distribution evaluationOriginal test split overstates performance
Teaching and prototypingUse a small balanced subsetLow resolution limits OCR quality
Recommended use by project goal

Teams should also confirm that the dataset license terms fit their intended use and that any model trained on it is validated on current, representative documents before deployment in an intelligent document processing pipeline.

In simple terms

RVL-CDIP is a large collection of scanned office pages. Each page has a label that says what kind of document it is. There are sixteen kinds, such as letters, invoices and resumes.

Researchers use it like a shared exam for computers. A model looks at each page and guesses its type. The score shows how well it sorts documents. One caution matters: a high score on this exam does not guarantee good results on modern company files.

A practical example

A logistics company receives about 20,000 scanned pages per day by email and mail, including invoices, delivery notes, customs forms and letters. Staff sorted them by hand before routing each page to the correct extraction workflow, which caused delays of up to two days.

The data team started from a layout-aware model pretrained on RVL-CDIP, which already distinguished invoices, forms and letters reliably. It then fine-tuned the model on 6,000 labeled in-house pages covering nine business-specific classes, including two classes, customs declarations and proof of delivery, that do not exist in the benchmark.

On a held-out set of recent scans, the classifier reached about 96 percent accuracy, and pages with low confidence went to a human reviewer. Sorting time fell from days to minutes. The team kept reporting accuracy on its own current documents, not on RVL-CDIP, because only that figure reflected real operating conditions.