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.
| Property | Value | Practical implication |
|---|---|---|
| Total images | 400,000 | Large enough for deep model training |
| Classes | 16, balanced | Accuracy is a meaningful headline metric |
| Split | 320,000 train, 40,000 validation, 40,000 test | Standard comparison across papers |
| Image format | Grayscale TIFF, low resolution | Noisy OCR output for text-based models |
| Source | Subset of IIT-CDIP tobacco litigation scans | Older typography and scan artifacts |
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 family | Input used | Typical reported accuracy |
|---|---|---|
| Early CNNs (AlexNet-style) | Page image only | About 89 to 90 percent |
| Deeper CNNs (VGG, ResNet) | Page image, sometimes regions | About 90 to 92 percent |
| Image transformers such as DiT | Page image, self-supervised pretraining | About 92 to 93 percent |
| Layout-aware models such as LayoutLM | Image, OCR text and positions | About 94 to 96 percent |
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.
| Benchmark | Main task | Annotation level |
|---|---|---|
| RVL-CDIP | Document type classification | One label per page |
| FUNSD | Form understanding and entity linking | Words and key-value links |
| DocVQA | Document question answering | Question-answer pairs |
| PubLayNet | Layout analysis of articles | Bounding boxes per region |
| DocLayNet | Layout analysis across domains | Human-annotated regions |
| SROIE | Receipt field extraction | Key fields per receipt |
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 goal | How to use RVL-CDIP | Caveat |
|---|---|---|
| Research comparison | Report test accuracy with standard split | Note label noise when gaps are small |
| Production classifier | Fine-tune, then retrain on in-house pages | Class sets rarely match business needs |
| Robustness testing | Add out-of-distribution evaluation | Original test split overstates performance |
| Teaching and prototyping | Use a small balanced subset | Low resolution limits OCR quality |
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.