Abstract: Tabular data in digital documents is widely used to express compact and important information for readers. However, it is challenging to parse tables from unstructured digital documents, such as PDFs and images, into machine-readable format because of the complexity of table structures and the missing of meta-information. Table Structure Recognition (TSR) problem aims to recognize the structure of a table and transform the unstructured tables into a structured and machine-readable format so that the tabular data can be further analysed by the down-stream tasks, such as semantic modeling and information retrieval. In this study, we hypothesize that a complicated table structure can be represented by a graph whose vertices and edges represent the cells and association between cells, respectively. Then we define the table structure recognition problem as a cell association classification problem and propose a conditional attention network (CATT-Net). The experimental results demonstrate the superiority of our proposed method over the state-of-the-art methods on various datasets. Besides, we investigate whether the alignment of a cell bounding box or a text-focused approach has more impact on the model performance. Due to the lack of public dataset annotations based on these two approaches, we further annotate the ICDAR2013 dataset providing both types of bounding boxes, which can be a new benchmark dataset for evaluating the methods in this field. Experimental results show that the alignment of a cell bounding box can help improve the Micro-averaged F1 score from 0.915 to 0.963, and the Macro-average F1 score from 0.787 to 0.923.
Introduction
Table Structure Recognition (TSR) is the task of converting unstructured tabular data from digital documents, such as PDFs and images, into machine-readable formats. While humans intuitively grasp the layout of a table, machines struggle to identify row and column relationships, especially in complex scenarios involving spanning cells, missing borders, or low-resolution scans. Traditional "top-down" segmentation methods often fail on irregular layouts, while "bottom-up" graph-based approaches frequently over-rely on coordinate features that lack cross-domain robustness.
The CATT-Net Framework
To address these challenges, the authors propose CATT-Net (Conditional Attention Network). This model treats TSR as a cell-association classification problem within a graph-based framework, where cells are vertices and their relationships are edges.
The process flow involves several key stages:
- Graph Construction: Utilizing a k-nearest neighbor (KNN) approach to efficiently evaluate relationships between a query cell and its neighbors.
- Feature Extraction: For each cell pair, the model extracts visual features from the individual cell images and a "cropped table image" containing both.
- Conditional Attention: This core module uses the specific features of the two cells to condition Channel and Spatial Attention on the surrounding table context, focusing the model on relevant visual cues like alignment or separators.
- Classification: The network determines if the relationship is a horizontal connection, a vertical connection, or no connection.
Data Representation and Aligned Bounding Boxes
A significant contribution of this research is the investigation into how cell "boxing" affects model performance. The authors identified two primary approaches: text-focused bounding boxes (tightly surrounding text) and aligned bounding boxes (extended to logical row/column boundaries).
To test this, the authors re-annotated the ICDAR2013 dataset to provide both types of labels. Their findings indicate that aligned boxes are vastly superior for machine learning, as they help the model understand the underlying grid even when cells are empty or text is sparse. When using aligned boxes, the Micro-F1 score on ICDAR2013 jumped from 0.915 to 0.963.
Key Results and Insights
Experimental results demonstrate that CATT-Net achieves state-of-the-art performance across multiple benchmarks:
- ICDAR2013: Achieved a Micro-F1 score of 0.963, significantly improving upon the previous SOTA of 0.930.
- SciTSR-COMP: Reached a Macro-F1 of 0.964, proving its effectiveness on highly complex scientific tables.
The study highlights that visual features are more robust than raw coordinates for cross-domain generalization. Furthermore, the ablation study confirmed that the Conditional Attention module is critical, outperforming simple feature concatenation by allowing the model to contextually weight visual information based on the specific cell pair being analyzed.
Conclusion and Future Directions
CATT-Net provides a robust, visually-driven solution for complex table parsing. However, the model currently assumes pre-detected cell bounding boxes; real-world performance is thus dependent on the accuracy of initial detection phases. Future work aims to integrate textual context (NLP features) alongside visual modalities to further enhance recognition accuracy in ambiguous layouts.
Summary updated