Evaluation of Deep Convolutional Nets for Document Image Classification and Retrieval.

Adam W. Harley, Alex Ufkes, Konstantinos G. DerpanisarXiv 2015

TL;DR

This paper establishes a new state-of-the-art for document image classification and retrieval by leveraging deep Convolutional Neural Networks (CNNs). The authors demonstrate that features learned by CNNs vastly outperform traditional hand-crafted alternatives, transfer remarkably well from natural image domains (like ImageNet), and maintain high performance even under extreme dimensionality compression.

What Problem Does This Paper Address?

Document image analysis is crucial for digital libraries and databases where documents are archived as images before (or completely separate from) Optical Character Recognition (OCR) processing. The goal is to classify and retrieve documents based purely on their visual layout and structural style (e.g., distinguishing a letter from a memo or a form).

This task is exceptionally challenging due to two main factors:

  1. High intra-class variability: Two documents of the same type (e.g., letters) rarely share the exact same spatial layout of headers, dates, and signatures.
  2. High inter-class similarity: Documents from entirely different categories can look visually similar (e.g., an advertisement styled to look like a news article).

Traditional approaches relied heavily on hand-crafted features or rigid template matching, which fail to generalize to flexible document structures. This paper investigates whether deep learning can overcome these limitations.

Methods

The authors evaluate three primary deep learning strategies and compare them against traditional baselines:

  • Holistic CNN: A single network (based on the standard AlexNet/ImageNet architecture) trained on the entire document image. This approach relies on the network's capacity to automatically learn spatial specificities.
  • Region-based Guidance (Ensemble): To explicitly enforce structural awareness, the authors design an ensemble of five CNNs. Four are trained on specific cropped regions (header, left body, right body, footer), and the fifth is trained on the whole image. Features from all five networks are extracted, compressed via Principal Component Analysis (PCA), and concatenated into a single descriptor.
Pipeline for constructing the region-based document representation.
  • Transfer Learning: The authors test how well weights pre-trained on a completely different task (the ILSVRC 2012 ImageNet challenge of natural objects) transfer to document analysis, both with and without fine-tuning.

These methods are compared against state-of-the-art hand-crafted baselines, including Bag-of-Words (BoW) models using SURF features pooled via spatial pyramids, and GIST descriptors.

Datasets

The evaluation is performed on two versions of the IIT-CDIP Test Collection, which contains scanned documents from public records of lawsuits against American tobacco companies:

  1. SmallTobacco: A standard benchmark dataset consisting of 3,482 images across 10 unevenly distributed categories.
  2. BigTobacco: A massive, new subset introduced by the authors to properly train and evaluate deep networks. It contains 400,000 labeled images evenly distributed across 16 categories (25,000 images per category).

Key Insights and Ideas

  • Object Recognition Features Transfer to Layouts: Surprisingly, CNNs trained on natural images (cats, dogs, cars) learn generic edge and texture features that are highly effective at describing document layouts, even without any fine-tuning on text or documents.
  • Data Scale Obsoletes Region Priors: On the small dataset, explicitly guiding the network with region-based crops (the Ensemble approach) yielded the best results. However, when scaled to the large dataset, the single Holistic CNN caught up and actually outperformed the complex ensemble. Given enough data, a holistic CNN naturally learns region-specific features on its own.
  • Extreme Robustness to Compression: CNN feature vectors (originally 4,096 dimensions) can be compressed using PCA down to just 16 dimensions with virtually no loss in retrieval performance. This makes deep features incredibly practical for fast, low-memory image retrieval systems.

Key Results

Classification Accuracy

  • SmallTobacco: The Ensemble of CNNs achieved 79.9% accuracy, shattering the previous state-of-the-art of 65.4%.
  • BigTobacco: The Holistic CNN achieved the highest overall accuracy at 89.8%, slightly outperforming the Ensemble (89.3%) and completely crushing the best hand-crafted Spatial Pyramid BoW model, which managed only 49.3%.

Document Retrieval

The holistic CNN consistently achieved the highest Mean Average Precision (mAP@10) on the large dataset.

Retrieval performance (mAP) across different numbers of retrieved documents on SmallTobacco (left) and BigTobacco (right).

Even when the feature vectors were aggressively compressed down to 16 dimensions using PCA, the retrieval performance of the Holistic CNN remained higher than any alternative method at full dimensionality.

Limitations and Future Work

The authors point out a potential bias in the dataset that might overstate the "cleverness" of the model in certain instances. For example, in some query categories, the top retrievals frequently shared the exact same letterhead or author signature. While impressive, it raises the question of whether the network is truly understanding document "genre" or simply over-indexing on highly specific, recurring visual artifacts.

Specific directions for future work are not explicitly detailed in the paper.

Summary updated

BibTeX
@misc{harley2015evaluation,
  author = {Adam W. Harley and Alex Ufkes and Konstantinos G. Derpanis},
  title = {{Evaluation of Deep Convolutional Nets for Document Image Classification and Retrieval.}},
  year = {2015},
  eprint = {1502.07058},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1502.07058},
}
Figure