TGRNet: A Table Graph Reconstruction Network for Table Structure Recognition

Wenyuan Xue, Baosheng Yu, Wen Wang, Dacheng Tao, Qingyong Li

Introduction

TGRNet is a novel end-to-end deep learning framework that redefines table structure recognition as a graph reconstruction problem. By jointly predicting both the spatial boundaries of cells and their logical row/column indices, it provides a robust and direct method for converting table images into structured data, overcoming the limitations of traditional adjacency-based or markup-sequence methods.

The Challenge of Table Structure Recognition

While humans intuitively grasp table structures, machines often struggle with unstructured formats like images or PDFs. Existing approaches typically fall into three categories, each with significant drawbacks:

  1. Detection-based: These identify cell bounding boxes but fail to capture the relationships between them.
  2. Markup-based: These convert images to code (e.g., LaTeX, HTML). However, the "one-to-many" nature of markup (different code can produce the same table) introduces noise.
  3. Adjacency-based: These predict if cells are neighbors. This requires complex, error-prone post-processing to derive actual row and column indices.

The authors argue that the logical location (e.g., "this cell spans Rows 1-2 in Column 3") is the most critical information. TGRNet is designed to predict these coordinates directly.

Comparison of existing table recognition paradigms and their limitations in capturing logical cell locations.

Methodology: TGRNet Architecture

TGRNet utilizes a dual-branch architecture built on a ResNet-50 backbone with a Feature Pyramid Network (FPN).

Cell Spatial Location Branch

This branch employs a segmentation-based approach to locate cells. A specialized Split-Aggregation Module applies row-wise and column-wise pooling to capture global table symmetry. This mimics human scanning behavior, allowing the model to recognize cell alignment across the entire table.

Cell Logical Location Branch

This branch represents the table as a graph where each cell is a node.

  • Graph Convolutional Network (GCN): A GCN enables nodes to exchange information with neighbors, refining features based on spatial proximity.
  • Ordinal Node Classification: Rather than simple classification, row and column indices are treated as an ordinal ranking problem. This respects the sequential nature of table indices and uses a specialized loss function (including Focal Loss) to manage the "long-tail" distribution of large tables.
The TGRNet pipeline: from input table image to a reconstructed table graph and various structured outputs.

Datasets and Benchmarks

To address the lack of comprehensive data, the researchers introduced TableGraph-350K, a massive dataset of 350,000 table images with full graph annotations derived from LaTeX sources on arXiv. They also evaluated TGRNet on:

  • TableGraph-24K: A subset for ablation studies.
  • CMDD: Medical laboratory reports.
  • ICDAR13 & ICDAR19-cTDaR: Standard benchmarks, including challenging historical documents.

Key Insights

  • Direct Logic over Adjacency: Predicting absolute coordinates (e.g., "Row 5, Col 2") is more stable than predicting relative links. A single missed link in an adjacency chain can cause the entire structure to fail, whereas logical indices are globally consistent.
  • The Power of Ordinality: Framing index prediction as an ordinal task allows the model to learn the inherent progression of table structures.
  • Symmetry Matters: The Split-Aggregation module leverages the inherent grid-like symmetry of tables, improving boundary detection.

Results and Performance

TGRNet demonstrated superior accuracy and robustness:

  • Accuracy: On TableGraph-24K, it achieved a logical location accuracy ($A_{all}$) of 0.832 and an F-score of 0.890.
  • Robustness: The model maintained stable performance even when cells were randomly removed, significantly outperforming previous state-of-the-art methods like ReS2TIM.
  • Efficiency: The end-to-end joint prediction of spatial and logical locations eliminates the need for heavy, rule-based post-processing.

Limitations and Future Work

Despite its strengths, TGRNet faces challenges with historical documents (e.g., ICDAR19-cTDaR), where hand-drawn lines and deformations hinder the GCN's accuracy. Additionally, the lack of empty cell annotations in some datasets can lead to gaps in the reconstructed graph. Future research will focus on handling extremely large tables (2,000+ cells) and improving resilience to handwritten or degraded archival documents.

Summary updated

BibTeX
@inproceedings{xue2021tgrnet,
  author = {Wenyuan Xue and Baosheng Yu and Wen Wang and Dacheng Tao and Qingyong Li},
  title = {{TGRNet: A Table Graph Reconstruction Network for Table Structure Recognition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00133},
}
Figure