Grab What You Need: Rethinking Complex Table Structure Recognition with Flexible Components Deliberation

Hao Liu, Xin Li, Mingming Gong, Bing Liu, Yunfei Wu, Deqiang Jiang, Yinsong Liu, Xing Sun

Abstract

Table Structure Recognition (TSR) in the wild remains a significant challenge due to complex layouts and geometric distortions. Traditional methods often rely on rigid post-processing or single-modality features that fail under stress. This paper presents GrabTab, a framework that introduces a "deliberation" mechanism to dynamically combine diverse table components. By modeling separators as Bézier curves and utilizing a generative structure composer, GrabTab achieves state-of-the-art performance on challenging benchmarks like SciTSR-COMP-A and WTW.

Introduction

Converting table images into machine-readable formats is essential for automated document analysis. While standard digital tables are easily parsed, "Complex TSR" involves tables with spanning cells or those captured in warped, camera-based photos. Historically, models have focused on either boundary extraction or element relationships. Boundary-based models struggle without visible lines, while relationship-based models often ignore existing visual cues, leading to over-prediction. GrabTab addresses these issues by mimicking human cognition, "grabbing" the necessary combination of clues to resolve structural ambiguities without relying on fragile, hard-coded rules.

Methodology

The GrabTab architecture is designed to progressively refine table structure through four distinct stages:

  1. Candidate Components Extraction: Basic elements, such as text boxes and initial row/column relationships, are extracted using off-the-shelf tools.
  2. Separator Perceiver (SP): This module proposes both explicit (visible) and implicit (inferred) separator lines. To handle warped images, these lines are modeled as cubic Bézier curves, allowing them to follow the non-linear contours of distorted tables.
  3. Components Correlator (CC): Acting as the "deliberator," this Transformer-based module uses cross-attention to refine separator proposals based on text alignment and relational data.
  4. Structure Composer (SC): Moving away from heuristic grouping, GrabTab employs a sequence-to-sequence generative model to predict the four lines bounding each cell, resulting in the final logical structure.
The GrabTab framework: (a) separator types, (b) prediction challenges, and (c) the three-stage deliberation pipeline.

Experimental Evaluation

GrabTab was evaluated on a variety of datasets, ranging from regularized benchmarks (ICDAR-2013, PubTabNet) to complex, distorted ones (WTW, SciTSR-COMP-A).

The results demonstrate GrabTab's robustness:

  • SciTSR-COMP-A: Achieved a 94.0% F1-score, a 4.5% improvement over the previous state-of-the-art.
  • WTW (Wild Table Website): Reached a 95.1% F1-score.
  • SciTSR-COMP: Achieved a near-perfect 99.1% F1-score.

Qualitative analysis shows that the model excels at reconstructing tables with severe affine transformations and curved distortions where previous models typically fail.

Key Insights

  • Bézier Curve Representation: Using Bézier curves instead of straight lines is critical for handling the geometric distortions common in real-world document captures.
  • Context-Aware Deliberation: Visualization of attention maps reveals that explicit lines benefit from global relationships, while implicit lines rely on local text alignment to infer boundaries.
  • Generative vs. Rule-Based: The generative approach to cell composition eliminates the need for complex post-processing, making the system more adaptable to irregular layouts.

Conclusion

GrabTab represents a significant shift in TSR by replacing rigid pipelines with a flexible deliberation mechanism. While the current implementation relies on offline component extraction and carries high computational complexity, its superior performance on distorted tables sets a new standard for the field. Future work will focus on end-to-end integration and architectural optimization.

Summary updated

BibTeX
@inproceedings{liu2024grab,
  author = {Hao Liu and Xin Li and Mingming Gong and Bing Liu and Yunfei Wu and Deqiang Jiang and Yinsong Liu and Xing Sun},
  title = {{Grab What You Need: Rethinking Complex Table Structure Recognition with Flexible Components Deliberation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i4.28149},
}
Figure