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

Robust table structure recognition with dynamic queries enhanced detection transformer

Jiawei Wang, Weihong Lin, Chixiang Ma, Mingze Li, Zheng Sun, Lei Sun, Qiang HuoPattern Recognition 2023 · DOI · OpenReview

TL;DR

This paper introduces TSRFormer, a novel approach for robustly recognizing table structures in images, even those with significant geometric distortions. It reformulates table separation line prediction as a line regression problem and proposes a new Dynamic Queries enhanced DETR (DQ-DETR) model that progressively predicts line points for improved accuracy.

What Problem Does This Paper Address?

Accurately recognizing the structure of tables in images is a crucial but challenging task in document understanding. Existing methods often struggle with tables that are geometrically distorted, curved, or have complex layouts (e.g., borderless cells, large blank spaces, empty or spanning cells). Many deep learning approaches rely on image segmentation for separation line prediction, which can be brittle, or on OCR engines, which are not robust to missing text. This paper aims to overcome these limitations by developing a more robust and accurate method for table structure recognition, particularly for challenging, real-world table images.

Methods

The core of TSRFormer lies in its two main components:

  • DQ-DETR based split module: This module predicts all row and column separation lines. Instead of image segmentation, it frames separation line prediction as a line regression problem. The key innovation here is the DQ-DETR (Dynamic Queries enhanced DETR) model. Unlike standard DETR, DQ-DETR uses a progressive regression strategy where queries dynamically evolve across decoder layers, adding new points to refine the line's position iteratively. This dynamic query generation and progressive refinement lead to higher localization accuracy, especially for distorted lines. To improve training efficiency, they also introduce a prior-enhanced bipartite matching strategy and leverage factorized self-attention and deformable attention modules.
  • Relation network based cell merging module: This module recovers spanning cells by merging adjacent cells predicted by the split module. It uses a lightweight relation network, similar to prior work, to predict cell merging relationships.

Datasets

The authors evaluate their TSRFormer on several public benchmarks:

  • SciTSR: Axis-aligned tables from scientific literature.
  • PubTabNet: Large-scale dataset with axis-aligned tables.
  • FinTabNet: Large dataset of tables from S&P 500 company reports.
  • WTW: Tables collected from complex real-world scenes, focusing on bordered tabular objects.
  • cTDaR TrackB2-Modern: A challenging dataset for table detection and recognition.

Additionally, they collected a more challenging in-house dataset containing diverse table types (complex structures, borderless, large blank spaces, empty/spanning cells, distorted/curved shapes) captured by cameras, to specifically demonstrate robustness.

Key Insights and Ideas

  • Line Regression for Separation Lines: Framing separation line prediction as a regression problem, rather than segmentation, is a novel and effective approach that bypasses the need for heuristic post-processing and improves robustness to distortions.
  • Dynamic Queries and Progressive Regression: The DQ-DETR's ability to dynamically generate and refine queries across decoder layers, progressively predicting points on a line, is crucial for achieving high localization accuracy on complex and distorted table structures. This iterative refinement helps overcome the limitations of direct, single-stage regression.
  • Prior-Enhanced Matching: Leveraging prior information about reference point locations significantly accelerates the convergence of the DETR-based model, making training more efficient.
  • Robustness to Distortions: The proposed method demonstrates superior performance on challenging, distorted tables compared to previous state-of-the-art methods, highlighting its practical applicability.

Key Results

TSRFormer, particularly with the DQ-DETR module, achieves state-of-the-art performance on several public benchmarks, including SciTSR, PubTabNet, FinTabNet, WTW, and cTDaR TrackB2-Modern. For instance, it achieves the highest TEDS-Struct score of 97.5% on PubTabNet and outperforms previous methods on challenging datasets like WTW and cTDaR TrackB2-Modern. On their in-house dataset, TSRFormer significantly improves the F1-score from 92.3% to 95.7% compared to RobusTabNet, showcasing its robustness to complex and distorted table structures. Ablation studies confirm the effectiveness of the SCNN feature enhancement, cell merging module, and the progressive regression strategy.

Limitations and Future Work

The authors acknowledge that the progressive regression approach still struggles with excessively curved tables due to potential cumulative errors and limited training data. Extremely dense tables with extreme sizes also pose a challenge. Future work will focus on improving the progressive regression to mitigate cumulative errors and exploring adaptive scaling strategies for tables of extreme sizes. They also plan to investigate the full potential of the Dynamic Query concept in other regression tasks.

Summary updated

BibTeX
@misc{wang2023robust,
  author = {Jiawei Wang and Weihong Lin and Chixiang Ma and Mingze Li and Zheng Sun and Lei Sun and Qiang Huo},
  title = {{Robust table structure recognition with dynamic queries enhanced detection transformer}},
  year = {2023},
  eprint = {2303.11615},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.11615},
}
Figure