Introduction
Table Structure Recognition (TSR) is the task of converting table images into machine-readable formats like HTML or LaTeX. While seemingly straightforward, this task is fraught with challenges, particularly when dealing with large, complex tables found in scientific literature and financial reports. Traditional approaches have struggled to balance the need for end-to-end efficiency with the requirement for spatial accuracy. The Divide Rows and Conquer Cells (DRCC) framework introduces a hierarchical approach that mirrors the natural structure of tables to overcome these hurdles.
The Challenge of Large-Scale Table Recognition
Most modern TSR systems rely on "image-to-text" paradigms, treating the problem as an image captioning task. These models generate a long string of HTML tags autoregressively. However, this approach faces two critical "deal-breakers":
- Error Accumulation: In large tables with hundreds of cells, a single mistake early in the sequence can cause the model to lose its place, leading to "hallucinations" or a complete breakdown of the table structure.
- Spatial Inconsistency: Tables are inherently 2D, but HTML is 1D. Standard models often fail to maintain the vertical alignment between rows, as the tokens for Row 1 and Row 10 may be separated by hundreds of steps in the sequence.
The DRCC Framework: A Hierarchical Approach
To address these issues, DRCC proposes a cascaded, two-step Transformer architecture that breaks the massive sequence generation task into smaller, manageable chunks.
The "Divide" (Row Decoder)
Instead of predicting the entire table at once, the model first employs a Row Decoder. This component predicts the vertical boundaries (top and bottom) and tags for all rows simultaneously in a non-autoregressive manner. By identifying the row structure first, the model establishes a stable spatial skeleton for the table.
The "Conquer" (Cell Decoder)
Once the rows are identified, the Cell Decoder takes over. For every detected row, this decoder predicts the constituent cells. Crucially, this process is semi-autoregressive; it predicts all cells in a single row at once but leverages "history" features from previous rows and "future" features from upcoming rows. This contextual awareness allows the model to accurately handle complex elements like spanning cells that cross multiple rows.
Visual Grounding
The framework utilizes ROIAlign to "crop" specific features from the CNN backbone based on the predicted row and cell locations. This ensures that the model's predictions are always grounded in the actual pixels of the input image, further preventing the "drift" common in long-sequence generation.
Experimental Evaluation
The DRCC model was evaluated on three major public benchmarks, demonstrating its robustness across various table styles:
- PubTabNet: On this dataset of 500k scientific tables, DRCC achieved a state-of-the-art (SOTA) 97.8% TEDS (Tree Edit Distance-based Similarity), a significant 1% improvement over previous models.
- SciTSR-COMP: In the "complicate" subset of SciTSR, which features many spanning cells, the model reached 99.2%, proving its effectiveness on non-standard layouts.
- SynthTabNet: DRCC outperformed the previous best model (TableFormer) by 2% on structure recognition.
One of the most significant findings was the model's stability. While traditional models see a sharp drop in performance as table size increases, DRCC maintains a nearly flat performance curve, showing only a 0.61% drop on large tables compared to the 1.97% to 3.08% drops seen in competing architectures.
Conclusion and Future Directions
By mirroring the inherent hierarchy of tables (Table -> Rows -> Cells), DRCC provides a more robust and spatially consistent solution for table structure recognition. While the current framework excels at logical structure recognition, future work aims to integrate text spotting directly into the pipeline. This would allow for a truly unified, end-to-end multi-modal system capable of both structuring and reading complex tables in a single pass.
Summary updated