CasTabDetectoRS: Cascade Network for Table Detection in Document Images with Recursive Feature Pyramid and Switchable Atrous Convolution

Khurram Azeem Hashmi, Alain Pagani, Marcus Liwicki, Didier Stricker, Muhammad Zeshan Afzal · DOI

TL;DR

This paper introduces CasTabDetectoRS, a novel deep learning framework for accurately detecting tables in scanned documents. By cleverly combining a lightweight backbone with advanced feature extraction techniques, it achieves state-of-the-art results on multiple datasets without relying on heavy computational resources or complex pre/post-processing steps.

What Problem Does This Paper Address?

Extracting structured information from documents is crucial, and tables are a rich source of such data. However, accurately identifying and localizing these tables within scanned document images is a significant challenge. Traditional Optical Character Recognition (OCR) systems often fail to interpret tabular data, and existing deep learning methods for table detection can be computationally expensive, require extensive pre/post-processing, or struggle with the diverse layouts and visual variations of tables. This paper aims to provide a more efficient and robust solution for table detection.

Methods

The core of CasTabDetectoRS is built upon the Cascade Mask R-CNN architecture, a powerful object detection framework. The authors introduce two key innovations to enhance its performance for table detection:

  • Recursive Feature Pyramids (RFP): Instead of standard Feature Pyramid Networks (FPNs), RFP incorporates feedback connections from the top-down FPN layers back to the bottom-up backbone. This allows the network to process features multiple times, effectively enriching the feature representations and improving the detection of tables at various scales.
  • Switchable Atrous Convolution (SAC): The standard convolutional layers in the backbone (ResNet-50) and FPN are replaced with SAC. Atrous convolution (or dilated convolution) allows for an increased receptive field without increasing the number of parameters. SAC dynamically adjusts the atrous rate, enabling the network to adapt to different table structures and sizes more effectively, thus reducing the need for memory-intensive deformable convolutions.

The framework utilizes a ResNet-50 backbone, which is considered relatively lightweight compared to heavier alternatives like ResNet-101 or ResNeXt-152, demonstrating that high performance can be achieved without excessive computational cost.

Datasets

The proposed CasTabDetectoRS was evaluated on five publicly available datasets:

  • ICDAR-17 POD: A dataset for detecting graphical page objects, including tables.
  • ICDAR-19: Specifically, the Modern Track A subset, focusing on tables in modern documents.
  • TableBank: A large-scale dataset comprising annotated document images from arXiv.
  • UNLV: A dataset containing scanned documents from commercial and research sources.
  • Marmot: A dataset collected from Chinese and English conference papers.

The paper also includes extensive cross-dataset evaluations to demonstrate the generalization capabilities of the proposed method.

Key Insights and Ideas

  • Efficiency without Compromise: The paper strongly advocates that achieving state-of-the-art results in table detection doesn't necessitate heavy backbone networks or complex pre/post-processing. By intelligently integrating RFP and SAC into a Cascade Mask R-CNN, comparable or superior performance can be attained with a lighter architecture.
  • Recursive Feature Processing is Key: The RFP module's ability to re-process features through feedback loops appears crucial for capturing the intricate structures and varying scales of tables, which are often missed by standard FPNs.
  • Adaptability through Atrous Convolutions: SAC's dynamic adjustment of receptive fields is a smart way to handle the diverse visual characteristics of tables in scanned documents, making the model more robust.
  • Generalization is Achievable: The cross-dataset evaluation highlights that a well-designed model can perform reliably across different types of document images, which is a significant step towards practical applications.

Key Results

CasTabDetectoRS achieved state-of-the-art performance on four out of the five evaluated datasets: ICDAR-19, TableBank, UNLV, and Marmot. It demonstrated significant relative error reductions:

  • ICDAR-19: 56.36%
  • TableBank: 20%
  • UNLV: 4.5%
  • Marmot: 3.5%

On the ICDAR-17 POD dataset, it achieved comparable results to existing methods. The paper also reports that the model requires 9.9 GB of VRAM and achieves an inference speed of 10.8 frames per second, which is presented as a notable achievement given the complexity of the task and the lack of reporting from prior works.

Limitations and Future Work

  • Misinterpretation of Graphical Objects: The authors acknowledge that the model can sometimes misinterpret other graphical page objects (like figures or equations) as tables, especially when they have similar visual characteristics. This is particularly evident in datasets with low inter-class variance.
  • Future Work: The researchers plan to extend their framework to tackle the more challenging task of table structure recognition (i.e., identifying rows, columns, and cells within a detected table). They also suggest exploring attention mechanisms to further enhance the backbone and region proposal network. The cross-dataset evaluation is presented as a benchmark for future research in table detection.

Summary updated

BibTeX
@article{hashmi2021castabdetectors,
  author = {Khurram Azeem Hashmi and Alain Pagani and Marcus Liwicki and Didier Stricker and Muhammad Zeshan Afzal},
  title = {{CasTabDetectoRS: Cascade Network for Table Detection in Document Images with Recursive Feature Pyramid and Switchable Atrous Convolution}},
  journal = {J. Imaging},
  year = {2021},
  doi = {10.3390/jimaging7100214},
}
Figure