Introduction
Table Structure Recognition (TSR) is a critical task in document analysis, converting table images into machine-readable formats like HTML or Excel. Despite its importance, TSR remains challenging due to complex spanning cells and "empty cells" that lack text anchors. Traditional bottom-up methods, which rely on text detection, often fail to identify these empty regions, leading to misaligned rows and columns. Conversely, top-down methods often struggle with irregular spanning structures.
LGPMA (Local and Global Pyramid Mask Alignment) addresses these issues by integrating local text-region features with global layout context, using a novel "soft" pyramid mask for precise boundary regression.
Methodology
The LGPMA framework is built upon the Mask R-CNN architecture, enhanced with a dual-path alignment strategy to capture both fine-grained local details and broad structural patterns.
Local and Global Alignment
LGPMA introduces two specialized branches for alignment:
- Local Pyramid Mask Alignment (LPMA): This branch focuses on individual text regions. Instead of binary masks, it utilizes a Pyramid Soft Mask, where pixel values represent a gradient from the center (1) to the boundaries (0). This continuous signal provides a stronger learning signal for precise boundary regression.
- Global Pyramid Mask Alignment (GPMA): By analyzing the entire table layout, this branch enables the model to infer the presence of cells—including empty ones—based on the overall alignment of rows and columns, effectively learning the "rhythm" of the table.
Refinement and Structure Recovery
To achieve sub-pixel accuracy, LGPMA employs a sophisticated refinement pipeline. The pyramid mask values are treated as coordinates in 3D space, and Least Squares plane fitting is used to determine mathematically optimal cell boundaries.
Following detection, a Maximum Clique Search algorithm groups cells into a coherent grid. A dedicated merging step utilizes the global segmentation map to accurately incorporate empty regions into the final structure, solving the long-standing problem of missing cells in TSR.
Evaluation and Results
LGPMA was evaluated on three gold-standard benchmarks: ICDAR 2013, SciTSR, and PubTabNet. The results demonstrate its superiority in handling complex structures:
- PubTabNet: The model achieved a state-of-the-art 94.6 TEDS score (Tree Edit Distance-based Similarity), rising to 96.7 when excluding OCR errors.
- SciTSR-COMP: On tables specifically designed to test complicated spanning structures, LGPMA reached an F1-score of 98.0%, a significant improvement over previous state-of-the-art methods (95.5%).
Ablation studies confirmed that the GPMA branch is vital, improving the detection of non-empty aligned boxes and significantly boosting the accuracy of empty cell identification.
Conclusion
LGPMA represents a significant advancement in TSR by effectively combining local precision with global structural awareness. The introduction of pyramid soft masks and plane-fitting refinement allows for unprecedented accuracy in handling complex and empty table cells. While the model currently depends on initial text detection, future work may involve tighter integration with OCR processes to further mitigate errors in noisy or low-resolution documents.
Summary updated