Introduction
Tables serve as the primary medium for presenting structured, data-dense information in scientific and technical documents. However, for automated systems, these tables often exist only as raw pixel data within PDF files or scanned images. Extracting this data into machine-readable formats like HTML or Excel requires solving two complex sub-tasks: structure recognition (identifying rows, columns, and spanning cells) and content recognition (transcribing the text within each cell). This paper presents a comprehensive framework to address these challenges through a massive new dataset, a specialized neural architecture, and a more robust evaluation metric.
The Encoder-Dual-Decoder (EDD) Architecture
To effectively decouple the recognition of a table's skeleton from its textual content, the authors propose the Encoder-Dual-Decoder (EDD) model. Unlike traditional image-to-text architectures that utilize a single decoder, EDD employs a specialized dual-decoder system.
The process begins with a ResNet-based Encoder that extracts high-level visual features from the table image. These features are then processed by two distinct but interconnected Recurrent Neural Networks (RNNs):
- Structure Decoder: This component predicts the sequence of HTML tags (e.g.,
<thead>,<tr>,<td>,colspan) that define the table's structural layout. - Cell Decoder: This decoder is triggered specifically when the structure decoder identifies a new table cell. It utilizes an attention mechanism to focus on the relevant visual region of the image to transcribe the cell's text content.
By passing the hidden state of the structure decoder to the cell decoder, the model ensures that content and structure remain synchronized, allowing the cell decoder to "know" which part of the table it should be transcribing.
The PubTabNet Dataset
A significant bottleneck in table recognition research has been the lack of large-scale, high-quality training data. To solve this, the authors introduced PubTabNet, a dataset containing over 568,000 table images. These were automatically generated by pairing XML and PDF versions of articles from the PubMed Central™ Open Access Subset.
As shown in the comparison above, PubTabNet significantly dwarfs previous benchmarks like ICDAR 2013. While other large datasets exist, PubTabNet is unique in providing both complex structural information (including row and column spans) and full cell content, making it the most comprehensive resource for end-to-end table recognition training.
Tree-Edit-Distance-based Similarity (TEDS)
Standard evaluation metrics for table recognition, such as adjacency relation F1 scores, are often brittle. A single misidentified row can shift the entire grid, resulting in a near-zero score despite the content being largely correct. To provide a fairer assessment, the authors propose TEDS. By representing tables as hierarchical trees, TEDS measures the edit distance required to transform a predicted tree into the ground truth. This approach accounts for both structural accuracy and OCR precision, providing a metric that aligns more closely with human perception of "correctness."
Key Results and Conclusion
The EDD model demonstrates state-of-the-art performance, outperforming previous models like WYGIWYS by a significant 9.7% absolute TEDS score. Notably, EDD excels at "complex" tables with merged cells, achieving an 85.4% TEDS score where traditional tools like Tabula often fail. Furthermore, the model proves robust when working with raw images, maintaining high accuracy even when PDF metadata is unavailable. By providing the community with PubTabNet, the EDD architecture, and the TEDS metric, this work establishes a new foundation for the field of automated table data extraction.
Summary updated