Deterministic Routing between Layout Abstractions for Multi-Scale Classification of Visually Rich Documents

Ritesh Sarkhel, Arnab NandiIJCAI 2019

Abstract

Classifying heterogeneous visually rich documents is a challenging task. Difficulty of this task increases even more if the maximum allowed inference turnaround time is constrained by a threshold. The increased overhead in inference cost, compared to the limited gain in classification capabilities make current multi-scale approaches infeasible in such scenarios. There are two major contributions of this work. First, we propose a spatial pyramid model to extract highly discriminative multi-scale feature descriptors from a visually rich document by leveraging the inherent hierarchy of its layout. Second, we propose a deterministic routing scheme for accelerating end-to-end inference by utilizing the spatial pyramid model. A depth-wise separable multi-column convolutional network is developed to enable our method. We evaluated the proposed approach on four publicly available, benchmark datasets of visually rich documents. Results suggest that our proposed approach demonstrates robust performance compared to the state-of-the-art methods in both classification accuracy and total inference turnaround.

Introduction

Classifying "Visually Rich Documents" (VRDs) such as tax forms, resumes, or medical journals is a complex task because semantic information is encoded not just in text, but in spatial layout. While multi-scale deep learning models are effective at capturing these patterns, they are often computationally prohibitive for real-time applications requiring inference in under 500ms. This paper introduces a "smart shortcut" that balances high accuracy with rapid performance by identifying the most efficient layout abstraction for a given document.

Methodology

The Spatial Pyramid Model

The core of the approach is a spatial pyramid model that leverages the natural hierarchy of document layouts. Instead of processing raw pixels, the system generates "anonymized equivalent images" at five distinct hierarchical levels: Page, Column, Paragraph, Text-line, and Word. This allows the model to capture structural features at varying granularities.

The five levels of layout abstraction in the spatial pyramid model, ranging from page-level to word-level granularity.

Deterministic Routing and Classification

To maintain efficiency, the system employs a two-stage workflow. A lightweight "Coordinator Network" called LadderNet (based on MobileNetV2) performs a rapid initial pass on the input document. The resulting inferred label is used to query a Multiplex-table, which identifies the single most discriminative pyramid level for that specific document class.

The end-to-end pipeline featuring the LadderNet coordinator, deterministic routing via the Multiplex-table, and the final multi-column classifier.

Once the optimal level is selected, a specialized Multi-column Classifier processes the document. This classifier utilizes five parallel columns to extract unique layout features through various morphological transformations, ensuring robust feature extraction without the overhead of processing all pyramid levels.

Experimental Evaluation

The model was evaluated on four benchmark datasets:

  • NIST Special Dataset-6: Filled IRS-1040 tax forms.
  • MARG: Front pages of medical journals.
  • Tobacco Litigation: A subset of the IIT-CDIP collection.
  • RVL-CDIP: A large-scale dataset with 400,000 images across 16 categories.

Performance and Efficiency

The proposed method achieved state-of-the-art accuracy across all datasets, with notable dominance in the Tobacco and RVL-CDIP benchmarks. Crucially, the system achieved an average turnaround time of 362ms, representing a speedup of up to 6.83x over ensemble-based competitors. Ablation studies confirmed that the routing strategy is vital; bypassing it to process all levels simultaneously increased latency by nearly 4x with negligible accuracy gains.

Conclusion

By combining a hierarchical spatial pyramid with a deterministic routing scheme, this work demonstrates that high-accuracy VRD classification is possible within strict real-time constraints. Future work will explore integrating layout construction into an end-to-end trainable pipeline and investigating dynamic attention-based routing mechanisms.

Summary updated

BibTeX
@inproceedings{sarkhel2019deterministic,
  author = {Ritesh Sarkhel and Arnab Nandi},
  title = {{Deterministic Routing between Layout Abstractions for Multi-Scale Classification of Visually Rich Documents}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  url = {https://openreview.net/forum?id=t3wyU4HQvqg},
}
Figure