Parsing Table Structures in the Wild

Rujiao Long, Wen Wang, Nan Xue, Feiyu Gao, Zhibo Yang, Yongpan Wang, Gui-Song XiaICCV 2021

Abstract: This paper tackles the problem of table structure parsing (TSP) from images in the wild. In contrast to existing studies that mainly focus on parsing well-aligned tabular images with simple layouts from scanned PDF documents, we aim to establish a practical table structure parsing system for real-world scenarios where tabular input images are taken or scanned with severe deformation, bending or occlusions. For designing such a system, we propose an approach named Cycle-CenterNet on the top of CenterNet with a novel cycle-pairing module to simultaneously detect and group tabular cells into structured tables. In the cycle-pairing module, a new pairing loss function is proposed for the network training. Alongside with our Cycle-CenterNet, we also present a large-scale dataset, named Wired Table in the Wild (WTW), which includes well-annotated structure parsing of multiple style tables in several scenes like photo, scanning files, web pages, etc.. In experiments, we demonstrate that our Cycle-CenterNet consistently achieves the best accuracy of table structure parsing on the new WTW dataset by 24.6% absolute improvement evaluated by the TEDS metric. A more comprehensive experimental analysis also validates the advantages of our proposed methods for the TSP task.

The Challenge of Real-World Table Parsing

Extracting data from tables is a cornerstone of document AI, but most existing systems share a common weakness: they expect perfection. They thrive on neatly scanned, perfectly aligned PDF documents but often fail when encountering a crumpled receipt, a tilted photo of a whiteboard, or a curved page in a thick book.

Table Structure Parsing (TSP) involves identifying where a table is, locating its individual cells, and determining the row/column relationships between those cells. Until now, the field has been dominated by datasets like ICDAR-2013 or TableBank, which consist mostly of "well-behaved" tables from digital PDFs. In these cases, cells are usually rectangular and aligned with the image axes. However, "in the wild"—think photos taken with a smartphone—tables suffer from non-rigid deformation, perspective distortion, and occlusions.

Comparison of table structure parsing in standard document images versus "in the wild" scenarios, showing the superior performance of the proposed method over baselines.

Cycle-CenterNet: A Robust Architecture

To address these challenges, the researchers propose Cycle-CenterNet, which builds upon the anchor-free CenterNet object detection framework. Instead of just drawing boxes, the model learns the "mutual-directed relationship" between cell centers and their corners (vertices) through a novel Cycle-Pairing Module.

This module utilizes a two-way learning process:

  1. Center-to-Vertex: The model predicts the location of a cell's four corners based on its center point.
  2. Vertex-to-Center: Conversely, it predicts the center points of the four surrounding cells that share a specific corner.

By learning this "cycle," the model can effectively "stitch" discrete cells together into a coherent table structure. This approach is significantly more robust than traditional methods because the relationship between a cell's center and its own corners remains relatively stable even if a table is bent or tilted. To optimize this, a Pairing Loss function was introduced to force the network to focus on the most difficult geometric relationships.

The Wired Table in the Wild (WTW) Dataset

A major contribution of this work is the Wired Table in the Wild (WTW) dataset, the first large-scale dataset specifically targeting complex, real-world table images. It consists of 14,581 images featuring seven challenging cases: inclined, curved, occluded/blurred, extreme aspect ratios, overlaid tables, multi-color/grid tables, and irregular structures.

An example of a table from the WTW dataset with cell boundaries correctly identified despite perspective distortion.

Key Results and Insights

The results on the WTW dataset were striking. The model achieved an absolute improvement of 24.6% in the Tree Edit Distance-based Similarity (TEDS) metric—the gold standard for measuring logical table structure accuracy. It also improved the F1-score for physical coordinate accuracy from 73.1% to 78.3%.

Several key insights emerged from this research:

  • Cells as Small Objects: Representing cells as individual objects is far more robust to image deformation than detecting the entire table as one large rectangle.
  • Mutual Constraints: The "cycle" of center-to-vertex and vertex-to-center predictions acts as a geometric constraint that prevents logically impossible grouping errors.
  • Anchor-Free Flexibility: Traditional anchor-based detectors struggle with the arbitrary shapes of distorted cells, whereas an anchor-free approach provides the flexibility needed for "wild" geometry.

Conclusion

Cycle-CenterNet and the WTW dataset represent a significant step toward moving table parsing out of the "clean room" and into everyday reality. While challenges remain—particularly in cases of extreme occlusion or "wireless" tables without visible borders—this work provides a robust foundation for future practical document AI systems.

Summary updated

BibTeX
@inproceedings{long2021parsing,
  author = {Rujiao Long and Wen Wang and Nan Xue and Feiyu Gao and Zhibo Yang and Yongpan Wang and Gui-Song Xia},
  title = {{Parsing Table Structures in the Wild}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=JucMwxHe4N},
}
Figure