[Paper Review] What is the right way to represent document images?
This paper benchmarks three document image representation methods—shallow features (e.g., RunLength, Fisher Vector), deep CNN features, and hybrid architectures—across classification, clustering, and retrieval tasks. It finds that deep features outperform others when domain shift is minimal, but Fisher Vector features with PCA reduction generalize better under large domain shifts due to robustness to layout variability and aspect ratio changes.
In this article we study the problem of document image representation based on visual features. We propose a comprehensive experimental study that compares three types of visual document image representations: (1) traditional so-called shallow features, such as the RunLength and the Fisher-Vector descriptors, (2) deep features based on Convolutional Neural Networks, and (3) features extracted from hybrid architectures that take inspiration from the two previous ones. We evaluate these features in several tasks (i.e. classification, clustering, and retrieval) and in different setups (e.g. domain transfer) using several public and in-house datasets. Our results show that deep features generally outperform other types of features when there is no domain shift and the new task is closely related to the one used to train the model. However, when a large domain or task shift is present, the Fisher-Vector shallow features generalize better and often obtain the best results.
Motivation & Objective
- To evaluate and compare three types of document image representations: shallow features (RunLength, Fisher Vector), deep CNN features, and hybrid architectures.
- To assess the performance of these features across multiple tasks: classification, clustering, and retrieval.
- To investigate the transferability of features across different datasets and tasks, especially under domain shift.
- To determine whether hybrid architectures offer a practical compromise between the efficiency of shallow features and the performance of deep models.
- To provide empirical guidance on selecting the optimal representation method based on dataset similarity and task requirements.
Proposed method
- Extracted shallow features using RunLength encoding and Fisher Vector descriptors with spatial pyramid pooling.
- Trained and fine-tuned pre-trained Convolutional Neural Networks (e.g., GoogLeNet, VGG) to extract deep activation features from multiple layers.
- Constructed hybrid architectures by combining shallow features (e.g., FV256) with learnable layers, enabling end-to-end training while preserving interpretability.
- Applied PCA to reduce Fisher Vector dimensions (e.g., FV256+PCA) to improve efficiency and generalization.
- Evaluated features using standard protocols on public (RVL-CDIP, CLEF-IP) and in-house datasets (IH1, IH2, IH3) with controlled domain shifts.
- Conducted ablation studies across tasks and datasets to analyze generalization and transferability.
Experimental results
Research questions
- RQ1Do deep CNN features consistently outperform shallow and hybrid features in document image classification when no domain shift is present?
- RQ2How well do hybrid architectures generalize across datasets and tasks compared to pure shallow or deep features?
- RQ3Under what conditions do Fisher Vector features with PCA reduction outperform deep CNN features in document image understanding?
- RQ4How does domain shift (e.g., changes in layout, aspect ratio, or class distribution) affect the performance of different feature types?
- RQ5Can hybrid architectures achieve a favorable trade-off between performance and training cost in document image representation?
Key findings
- When no domain shift is present, deep CNN features (e.g., CNN-G-i4e) achieve the best performance across classification, clustering, and retrieval tasks.
- Hybrid architectures perform nearly as well as deep CNNs but require significantly less training cost, making them a strong alternative for resource-constrained settings.
- Under large domain shifts, especially with high intra-class variability or aspect ratio changes, FV256+PCA consistently outperforms both deep and shallow features.
- For datasets where layout geometry is critical (e.g., IH2 with fine-grained layout-based categories), CNN activation features (e.g., CNN-A-p5) outperform FV-based features.
- On the IH3 dataset with fine-grained customer-specific document classes, CNN-G-i4e features achieve the best retrieval results, though relevance is often affected by customer-specific variations.
- The RunLength descriptor with a 5-layer spatial pyramid (RL+SP) outperforms FV256 in clustering and retrieval on IH2, indicating that simple, geometry-aware shallow features can be competitive under layout-sensitive conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.