Document classification is the process of assigning each document or page in a collection to a predefined type, such as invoice, letter, contract, deed, or medical record, so it can be indexed, routed, retained, and searched correctly. In large mixed archives, where decades of different record types sit together in the same boxes and folders, classification is the step that turns a pile of scanned pages into an organized collection. It is a core part of content digitization and depends on accurate OCR and document conversion to read what each page contains.
Classification looks simple until it meets a real archive. Document types change over time, many records do not fit neatly into one category, multi-page documents must be separated before they can be labeled, and scan quality varies widely. A workflow designed without these realities produces confident labels that are quietly wrong, which then misdirect retention decisions, search, and downstream data extraction.
This guide is for records managers, archivists, compliance officers, and digitization program leads. It covers why mixed archives are hard, what the RVL-CDIP benchmark teaches about labeling, what misclassification costs, how to design a taxonomy, how classification methods compare, how a workflow runs end to end, what drives cost and staffing, which metrics and targets to track, how classification connects to US compliance requirements, and what to ask a vendor or internal team.
Key Takeaways
- Classification quality starts with the taxonomy: Clear, mutually exclusive categories with written definitions and examples matter more than the choice of model, because no model can learn categories that people cannot apply consistently.
- Benchmarks show how easily labels go wrong: An analysis of a widely used document classification benchmark found about 8 percent label errors, many ambiguous documents, and overlap between training and test data.
- Misclassification is a liability, not just an error: A record filed under the wrong type can be destroyed too early, exposed to the wrong people, or produced in litigation, so risk should drive thresholds and review effort.
- Uncertain documents need a defined path: Confidence thresholds, an unknown category, and human review keep low-confidence documents from being forced into the wrong type.
- Evaluation must reflect real variety: Testing on held-out sources, templates, and time periods, rather than random pages, shows whether a classifier will work across the whole archive.
What Is Document Classification?
Classification can happen at three levels. Page classification assigns a type to each individual page. Document classification assigns a type to a complete document, which may span many pages. Packet splitting, sometimes called document separation, finds where one document ends and the next begins in a continuous stream of scanned pages, which is often the first problem in a mixed archive.
Most archive programs need all three. A scanned box may contain dozens of documents with no separator sheets, so the workflow must first find document boundaries, then classify each document, and finally attach the right metadata and retention rules.
Why Are Mixed Archives Hard to Classify?
- Many formats in one collection: A single box can hold typed letters, handwritten notes, printed forms, photographs, and computer printouts, each of which looks and reads differently to a classifier.
- Unclear document boundaries: Without separator sheets, multi-page documents must be split correctly before classification, and a split error can mislabel several documents at once.
- Templates that change over decades: Invoices, forms, and reports from different eras look very different, so a model trained on recent examples may fail on older versions of the same document type.
- Ambiguous documents: Some records legitimately belong to more than one category, such as a letter that serves as a contract amendment, which a single-label scheme cannot represent well.
- Variable scan quality: Faded originals, skewed scans, and handwriting reduce OCR quality, which weakens any classifier that depends on the text of the page.
- A long tail of rare types: Large archives often contain many document types that appear only a handful of times, which makes them hard for models to learn and easy to overlook.
What Does the RVL-CDIP Benchmark Teach Us?
RVL-CDIP is one of the most widely used benchmarks for document classification. It contains scanned business documents in 16 categories, such as letter, memo, invoice, form, and resume, and many published models report their accuracy on it. In a paper presented at EACL 2023, Larson, Lim, and Leach (2023) examined the benchmark closely and found three problems that every archive program should plan for.
- Label errors: The authors estimated that about 8.1 percent of the test set was mislabeled, ranging from 1.6 to 16.9 percent across categories. The lesson for archives is to measure label quality in your own ground truth before trusting any accuracy figure built on it.
- Ambiguous and multi-label documents: Many documents could reasonably belong to more than one category, which a single-label scheme cannot represent. This is why the taxonomy section below recommends deciding multi-label and precedence rules in advance.
- Overlap between training and test data: Near-duplicate documents and documents sharing common templates appeared in both training and test sets, which inflates reported accuracy. This is why the evaluation section recommends holding out whole sources and templates.
One further finding matters most. The original benchmark had no published labeling guidelines, so the authors had to write verifiable guidelines for each category before they could measure errors. Written category definitions are not paperwork; they are what makes classification measurable at all.
What Does It Cost to Get Classification Wrong?
Classification errors rarely stay contained. Because the category often decides retention, access, and disclosure, a single wrong label can create legal and operational exposure.
- A personnel record destroyed too early: An HR file misclassified as routine correspondence may be assigned a short retention period and destroyed, leaving the organization unable to produce it when an employment claim or audit later requires it.
- A privileged document surfacing in discovery: Attorney-client communications filed as general business records can be swept into a production set during litigation, creating a risk of privilege waiver and a costly effort to claw the documents back.
- Health information exposed to the wrong users: A patient record classified as administrative may be stored without the access controls that protected health information requires, which can trigger breach notification obligations.
- Rework across the collection: When a systematic error is found late, every affected document must be found, reclassified, and re-reviewed, which can consume far more reviewer hours than getting the labels right the first time.
How Do You Design the Taxonomy?
Start From How the Archive Will Be Used
Build categories around retention schedules, search needs, and downstream processes rather than around how documents happen to look. A category is only useful if it changes what happens to the document, such as its retention period, access level, or extraction workflow.
Make Categories Mutually Exclusive and Complete
Each document should have one clear home, and every document should have somewhere to go. Overlapping categories create inconsistent labels, while missing categories force reviewers to make arbitrary choices.
Use a Hierarchy Where It Helps
A two-level structure, such as Financial and then Invoice, Receipt, or Statement, lets the workflow classify broad groups reliably even when fine-grained types are uncertain. It also makes it easier to add new subtypes later.
Include Unknown and Other Categories
An explicit unknown category for documents the model cannot classify confidently, and an other category for genuine types outside the taxonomy, prevent forced labels and reveal gaps that the taxonomy should eventually cover.
Decide How to Handle Multi-Purpose Documents
Agree in advance whether documents can carry more than one label, or whether precedence rules decide which label wins. Write the rule down with examples, because this is where reviewers disagree most often.
Write Definitions and Examples for Every Category
Each category needs a written definition, inclusion and exclusion criteria, and several example pages, including borderline cases. These guidelines are the reference for annotators, reviewers, and anyone auditing the results later.
How Do Classification Methods Compare?
| Method | How it works | Strengths | Limitations |
| Rules and keywords | Matches words, phrases, or form numbers | Transparent and quick to set up | Breaks on variation and poor OCR |
| Visual classifiers | Learns from page images | Works without readable text | Confuses similar-looking documents |
| Text classifiers | Learns from OCR text | Strong on text-heavy documents | Depends heavily on OCR quality |
| Text and layout models | Combine words, position, and image, as in LayoutLMv3 | Handle forms and varied layouts well | Need labeled training examples |
| OCR-free models | Read the page image directly, as in Donut | Avoid OCR errors on difficult scans | Need training data and careful validation |
| Vision-language models | Classify from instructions without training | Fast to start on new categories | Less predictable, need careful validation |
Layout matters because document types are often defined by structure as much as by words. Researchers at Microsoft Research introduced LayoutLM (Xu et al., 2020), which jointly models text and its position on scanned pages, and its successor LayoutLMv3 (Huang et al., 2022) added unified text and image pre-training and reported state-of-the-art results on tasks including document image classification. A different line of work removes OCR from the pipeline: Donut (Kim et al., 2022) reads the page image directly, which avoids errors from poor OCR on degraded scans.
Most teams today are also evaluating general vision-language models, which can classify a page from a written instruction and a list of categories without task-specific training. They are fast to set up for new categories and useful for the long tail of rare types, but their output can vary between runs and they can be confidently wrong, so they should be validated against labeled ground truth before handling high-risk categories. Many production workflows combine a trained text and layout model for core categories, rules for fixed forms, vision-language models for rare types, and human review for the rest.
How Does a Classification Workflow Run?
The core stages of a classification workflow, with corrections feeding back into the model.
- Inventory and sample the archive: Survey the collection and pull a representative sample across series, eras, and formats, so the taxonomy and model are designed around what the archive actually contains.
- Build the taxonomy and guidelines: Define categories, write definitions and examples, and agree on how ambiguous and unknown documents will be handled before any labeling starts.
- Preprocess images and run OCR: Deskew, despeckle, correct rotation, and crop scanned pages, then run OCR, because poor images and unreadable text weaken every later step in the workflow.
- Create labeled ground truth: Have trained reviewers label the sample according to the guidelines and measure agreement with Cohen’s kappa for two reviewers or Fleiss’ kappa for larger groups, where many programs treat 0.8 or higher as strong agreement.
- Detect document boundaries: Split continuous page streams into individual documents using visual cues, page numbering, and text patterns, and review the splits on a sample.
- Train or configure the classifier: Train a model on the ground truth, or configure rules and prompts, and test it on documents it has not seen before rolling it out.
- Set confidence thresholds: Accept high-confidence predictions automatically and route low-confidence or unknown documents to human reviewers, with thresholds tuned per category.
- Review and adjudicate: Trained reviewers confirm or correct uncertain documents, and a senior reviewer resolves disputes, with each decision recorded as a new example.
- Feed corrections back: Use reviewed documents to retrain the model and refine the guidelines, so accuracy improves as the program moves through the archive.
How Do You Handle Low-Confidence and Unknown Documents?
Every archive contains documents that do not fit the model’s training. The workflow should treat them as a normal part of the process rather than an exception. Route low-confidence predictions to review, collect unknown documents in their own queue, and review that queue regularly to find recurring types that deserve a new category.
Thresholds should differ by category. A misclassified medical record or legal contract carries far more risk than a misclassified newsletter, so high-risk categories warrant higher confidence thresholds and more human review.
What Drives Cost, Throughput, and Staffing?
The effort behind a classification program depends mainly on six factors: total volume, the mix of document formats, scan quality, the size and depth of the taxonomy, the share of documents routed to human review, and the expertise reviewers need. Legal, medical, and financial categories need reviewers with domain training, while routine categories can be handled by generalists.
Review rates usually fall as a program matures. Early batches send a large share of documents to review while the model and guidelines settle, and later batches need far less as corrections feed back into training. The most reliable way to plan staffing and timelines is to run a sampled pilot, measure throughput and review rates on your own documents, and project the full program from those measurements rather than from general benchmarks.
How Should You Evaluate a Classifier?
Random splits of pages can make results look better than they are, because near-duplicate documents and shared templates appear in both training and test data, which is the overlap problem described in the RVL-CDIP section above. Evaluation should hold out whole sources, templates, departments, or time periods, so the test reflects documents the model has genuinely never seen.
Report results per category, not just overall. A classifier can achieve strong overall accuracy while failing badly on rare but important types, and a confusion matrix shows which categories are being mixed up and where guidelines or training data need attention.
Which Metrics Should You Track?
| Metric | What it shows | Example target |
| Precision per category | How often predicted labels are correct | 98 percent or higher for legal, medical, and HR categories |
| Recall per category | How many documents of each type are found | 95 percent or higher for retention-critical categories |
| Top confusion pairs | Which categories are mixed up most | Each pair below 2 percent of reviewed volume |
| Boundary accuracy | How often documents are split correctly | 99 percent or higher on sampled batches |
| Review rate | Share of documents sent to human review | Below 15 percent after the third production batch |
| Unknown rate | Share of documents with no confident class | Below 5 percent, reviewed weekly for new categories |
These targets are illustrative starting points. Set your own based on the risk of each category, the condition of the archive, and the results of a sampled pilot.
How Does Classification Connect to US Compliance Requirements?
Classification often decides how long a record is kept, who can see it, and whether it contains personally identifiable information (PII) or protected health information (PHI). In the United States, several frameworks make that decision consequential.
- HIPAA: Medical records containing PHI must be protected under HIPAA, so documents likely to contain health information should be classified with high confidence and routed into controlled storage.
- Federal records schedules: Federal agencies must follow NARA-approved records schedules, which tie retention and disposition to record type, so a classification error can lead directly to unauthorized destruction.
- SEC Rule 17a-4: Broker-dealers must preserve specified financial records for defined periods in compliant formats, which makes accurate identification of covered records essential.
- State privacy laws: Laws such as the California Consumer Privacy Act govern how personal information is handled, so documents containing PII should be flagged during classification.
- E-discovery under the FRCP: The Federal Rules of Civil Procedure require organizations to identify and produce relevant records in litigation, and accurate classification makes legal holds and privilege review far more reliable.
Workflows should map each category to its retention rule and access level, route categories likely to contain PII or PHI through additional review, and keep an audit trail of how each document was classified and by whom. Requirements depend on the organization and record type, so confirm the mapping with your records officer or legal counsel before applying automated decisions at scale.
What Are the Most Common Mistakes?
- Starting with the model instead of the taxonomy: A strong model cannot fix vague or overlapping categories, so unclear definitions produce inconsistent labels however advanced the technology is.
- Skipping preprocessing and document separation: Classifying skewed, noisy page streams without cleaning images and splitting them into documents first causes errors that spread across every page of a misjoined document.
- Forcing every document into a category: Without unknown and other options, reviewers and models make arbitrary choices that hide real gaps in the taxonomy.
- Evaluating on random page splits: Shared templates and near-duplicates between training and test data inflate accuracy and hide poor performance on unfamiliar documents.
- Treating all categories the same: Using one confidence threshold for every category ignores the very different risks of misclassifying legal, medical, financial, and routine documents.
Questions to Ask a Vendor or Internal Team
- How will the taxonomy be built: Ask who designs the categories, how they are tied to your retention schedules, and how definitions, examples, and edge-case rules will be documented.
- How is ground truth created and checked: Ask how reviewers are trained, which agreement statistic is measured, and what agreement level must be reached before training begins.
- How are risky categories handled: Ask how thresholds differ for legal, medical, HR, and financial records, and how documents containing PII or PHI are identified and protected.
- How is accuracy reported: Ask for per-category precision and recall, boundary accuracy, and review rates measured on held-out sources, not just an overall accuracy figure.
- What does the audit trail show: Ask whether every classification decision records the model version, confidence, reviewer, and any changes, so results can be defended later.
How Digital Divide Data Can Help
Designing taxonomies and labeling ground truth for a large mixed archive takes trained reviewers and careful planning, which is where an outside partner can help. Digital Divide Data (DDD) has delivered content digitization for 25 years, including more than 2 million pages of historic newspaper archives for the Library of Congress.
Our content digitization teams help design taxonomies, write category guidelines, separate documents, and label ground truth, while our OCR and document conversion services produce the text that classification depends on. Trained reviewers handle low-confidence and high-risk documents, with sample-based quality checks and documented accuracy for each batch. Talk to an expert.
Conclusion
The practical next step is to sample your archive across series and eras, draft the taxonomy and guidelines from that sample, measure how consistently reviewers can apply them, and only then choose and test a model against held-out sources.
References
Huang, Y., Lv, T., Cui, L., Lu, Y., & Wei, F. (2022). LayoutLMv3: Pre-training for document AI with unified text and image masking. Proceedings of the 30th ACM International Conference on Multimedia, 4083–4091. https://doi.org/10.1145/3503161.3548112
Kim, G., Hong, T., Yim, M., Nam, J., Park, J., Yim, J., Hwang, W., Yun, S., Han, D., & Park, S. (2022). OCR-free document understanding transformer. Computer Vision – ECCV 2022, 498–517. https://arxiv.org/abs/2111.15664
Larson, S., Lim, G., & Leach, K. (2023). On evaluation of document classification using RVL-CDIP. arXiv. https://doi.org/10.48550/arXiv.2306.12550
Xu, Y., Li, M., Cui, L., Huang, S., Wei, F., & Zhou, M. (2020). LayoutLM: Pre-training of text and layout for document image understanding. Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 1192–1200. https://doi.org/10.1145/3394486.3403172
Frequently Asked Questions
How many categories should a taxonomy have?
Start with roughly 10 to 30 top-level categories tied to retention and access rules, and add subtypes only where they change how documents are handled.
How long does a classification program take?
It depends on volume, formats, and review rates. A sampled pilot gives the most reliable timeline for your archive.
Do we need OCR before classification?
Usually yes for text and layout models. OCR-free models can classify from images, but still benefit from clean preprocessing.
Can vision-language models replace trained classifiers?
Not for high-risk categories without validation. They work well for rare types and new categories alongside trained models.
Which documents need the most human review?
Records likely to contain PII or PHI, legal and privileged documents, and anything with low model confidence.
What agreement level should reviewers reach?
Many programs treat a kappa of 0.8 or higher as strong agreement before ground truth is used for training.

Asit Dubey is a global operations leader with almost 30 years of experience across digitization, publishing, AI/ML, and LegalTech, currently serving as Executive Vice President at Digital Divide Data. He has led large-scale operations (3,500+ workforce) across APAC, EMEA, and North America, driving AI-led transformation and process excellence. A Six Sigma Black Belt, he specializes in automation, solutioning, and cost optimization, delivering productivity gains of over 300% and significant margin improvements. He has successfully scaled revenues from $750K to $3M+ monthly while turning around underperforming units. His expertise spans global delivery setup, GTM strategy, and client engagement. He is known for building resilient, multi-geo delivery models and enabling organizations to transition to AI-powered services.