NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Rethinking Detection Based Table Structure Recognition for Visually Rich Document Images

Bin Xiao, Murat Şimşek, Burak Kantarcı, Ala Abu Alkheir · DOI

Abstract

Table Structure Recognition (TSR) is a widely discussed task aiming at transforming unstructured table images into structured formats, such as HTML sequences, to make text-only models, such as ChatGPT, that can further process these tables. One type of solution is using detection models to detect table components, such as columns and rows, then applying a rule-based post-processing method to convert detection results into HTML sequences. However, existing detection-based models usually cannot perform as well as other types of solutions regarding cell-level TSR metrics, such as TEDS, and the underlying reasons limiting the performance of these models on the TSR task are also not well-explored. Therefore, we revisit existing detection-based models comprehensively and explore the underlying reasons hindering these models' performance, including the improper problem definition, the mismatch issue of detection and TSR metrics, the characteristics of detection models, and the impact of local and long-range features extraction. Based on our analysis and findings, we apply simple methods to tailor a typical two-stage detection model, Cascade R-CNN, for the TSR task. The experimental results show that the tailored Cascade R-CNN based model can improve the base Cascade R-CNN model by 16.35% on the FinTabNet dataset regarding the structure-only TEDS, outperforming other types of state-of-the-art methods, demonstrating that our findings can be a guideline for improving detection-based TSR models and that a purely detection-based solution is competitive with other types of solutions, such as graph-based and image-to-sequence solutions.

Introduction

Table Structure Recognition (TSR) is the critical process of converting table images into machine-readable formats like HTML. This transformation is essential for downstream applications, particularly for Large Language Models (LLMs) that require structured data to interpret tabular information accurately. Historically, TSR research has diverged into three main strategies: image-to-sequence (pixels to HTML), graph-based (cell relationship prediction), and detection-based (identifying rows, columns, and cells via object detection).

Despite their intuitive nature, detection-based models have recently lagged behind in cell-level metrics such as Tree-Edit-Distance-Based Similarity (TEDS). This paper argues that this performance gap is not due to the inherent limitations of detection architectures, but rather to improper problem framing, a mismatch between standard detection metrics (mAP) and TSR objectives, and a failure to account for the unique spatial geometry of tables.

Methodology

To address these issues, the authors propose TSRDet, a tailored version of the standard two-stage Cascade R-CNN detector. The architecture, illustrated in Figure 1, incorporates several key modifications designed specifically for the TSR task.

Architecture of the tailored Cascade R-CNN (TSRDet) for Table Structure Recognition.

Key Architectural Enhancements

  • Pseudo-Class Generation: Standard two-stage detectors struggle with multi-label tasks, such as a bounding box representing both a "Row" and a "Header." By refactoring ground truth into "Pseudo Classes," the authors convert overlapping components into a single-label classification task, simplifying the learning objective.
  • RPN Tuning: Standard object detectors typically use anchor box aspect ratios near 1:1. However, table components are often extremely wide (rows) or tall (columns). TSRDet expands the aspect ratio range significantly (from 0.0125 to 80) to better fit these geometric realities.
  • Spatial Attention Module (SAM) & Deformable Convolutions: Table components are "sparse," consisting of text fragments separated by white space. While standard convolutions focus on local features, the integration of a SAM helps the model capture long-range spatial dependencies across the entire table. Deformable convolutions further allow the model to adapt its receptive field to irregular cell shapes.

Experimental Results and Analysis

The model was evaluated on four major benchmarks: SciTSR, FinTabNet, PubTabNet, and PubTables1M. To ensure rigorous evaluation, the authors utilized "cleaned" versions of SciTSR and FinTabNet to mitigate the impact of ground truth noise.

Performance Gains

The tailored Cascade R-CNN achieved a significant 16.35% improvement in TEDS score on the FinTabNet dataset compared to the baseline model. Furthermore, TSRDet outperformed state-of-the-art (SOTA) transformer-based models like Deformable-DETR and Sparse R-CNN. On the PubTables1M dataset, it achieved a TEDS-struc score of 98.55%, establishing that a properly tuned detection-based solution is highly competitive.

Critical Insights

  • Metric Mismatch: The study found that high Mean Average Precision (mAP) does not always translate to better table structure. Models can be over-optimized for IoU (Intersection over Union) while failing to preserve the structural integrity needed for reconstruction.
  • Sparsity vs. Density: Unlike natural objects (e.g., a cat) where pixels are clustered, a table row is a collection of distant text fragments. This makes long-range spatial attention more critical for TSR than for general object detection.

Conclusion

By rethinking the application of detection models to TSR, this work demonstrates that simple but effective modifications to standard architectures can yield SOTA results. While the current approach excels at visually rich, well-formatted documents, future work will focus on irregular tables—such as those that are rotated or distorted—by integrating instance segmentation techniques to handle non-rectangular cell structures.

Summary updated

BibTeX
@misc{xiao2023rethinking,
  author = {Bin Xiao and Murat Şimşek and Burak Kantarcı and Ala Abu Alkheir},
  title = {{Rethinking Detection Based Table Structure Recognition for Visually Rich Document Images}},
  year = {2023},
  eprint = {2312.00699},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.00699},
}
Figure