[Paper Review] TSRFormer: Table Structure Recognition with Transformers
TSRFormer proposes a novel table structure recognition method that formulates separation line prediction as a line regression problem using a two-stage DETR-based framework called SepRETR, which improves accuracy and robustness on distorted, borderless, and complex tables. It achieves state-of-the-art performance on SciTSR, PubTabNet, and WTW benchmarks, with strong generalization on a challenging in-house dataset.
We present a new table structure recognition (TSR) approach, called TSRFormer, to robustly recognizing the structures of complex tables with geometrical distortions from various table images. Unlike previous methods, we formulate table separation line prediction as a line regression problem instead of an image segmentation problem and propose a new two-stage DETR based separator prediction approach, dubbed extbf{Sep}arator extbf{RE}gression extbf{TR}ansformer (SepRETR), to predict separation lines from table images directly. To make the two-stage DETR framework work efficiently and effectively for the separation line prediction task, we propose two improvements: 1) A prior-enhanced matching strategy to solve the slow convergence issue of DETR; 2) A new cross attention module to sample features from a high-resolution convolutional feature map directly so that high localization accuracy is achieved with low computational cost. After separation line prediction, a simple relation network based cell merging module is used to recover spanning cells. With these new techniques, our TSRFormer achieves state-of-the-art performance on several benchmark datasets, including SciTSR, PubTabNet and WTW. Furthermore, we have validated the robustness of our approach to tables with complex structures, borderless cells, large blank spaces, empty or spanning cells as well as distorted or even curved shapes on a more challenging real-world in-house dataset.
Motivation & Objective
- To address the challenge of recognizing complex, geometrically distorted, and borderless tables in real-world images.
- To overcome limitations of segmentation-based methods that rely on heuristic post-processing for mask-to-line conversion.
- To improve convergence and localization accuracy in two-stage DETR for separation line prediction.
- To develop a robust, end-to-end framework that directly regresses separation lines and recovers spanning cells.
- To validate performance on diverse, real-world table scenarios including curved, empty, and large-blank-space tables.
Proposed method
- Formulates table separation line prediction as a line regression problem instead of image segmentation, avoiding heuristic mask-to-line conversion.
- Proposes a two-stage DETR-based separator regression module (SepRETR) that first predicts reference points and then regresses full separation lines using a transformer decoder.
- Introduces a prior-enhanced matching strategy to accelerate convergence of the DETR framework in the separation line prediction task.
- Designs a novel cross-attention module that samples features directly from high-resolution convolutional feature maps to improve localization precision with low computational cost.
- Employs a relation network-based cell merging module to recover row and column spanning cells from intersecting separator lines.
- Uses a set prediction loss in the transformer decoder to eliminate dependency on heuristic label assignment and NMS.
Experimental results
Research questions
- RQ1Can line regression be more effective than segmentation for predicting table separation lines in distorted and borderless tables?
- RQ2How can the two-stage DETR framework be improved for high-precision, low-cost separation line regression in TSR?
- RQ3Does a prior-enhanced matching strategy significantly accelerate convergence in DETR-based TSR models?
- RQ4Can direct feature sampling from high-resolution feature maps improve localization accuracy without increasing computational cost?
- RQ5How robust is the proposed method to complex real-world table variations such as curvature, large blank spaces, and spanning cells?
Key findings
- TSRFormer achieves state-of-the-art F1 scores of 95.2% on the WTW benchmark, outperforming prior methods.
- On the SciTSR dataset, the model achieves an F1 score of 92.6%, demonstrating strong generalization on scientific tables.
- The ablation study confirms that the proposed SepRETR module with set prediction and high-resolution feature sampling improves F1 by 0.5% compared to baseline designs.
- The prior-enhanced matching strategy enables convergence in 20 epochs with performance matching that of standard DETR trained for 40 epochs.
- Qualitative results show the method is robust to curved, borderless, and heavily distorted tables, outperforming segmentation-based baselines in challenging in-house evaluations.
- The model maintains high accuracy on tables with large blank spaces, empty cells, and spanning cells, confirming its practical robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.