TL;DR
This paper introduces RobusTabNet, a novel approach for robustly detecting tables and recognizing their structure in diverse document images. It achieves state-of-the-art results by employing CornerNet for improved table proposal generation and a novel split-and-merge strategy with spatial CNNs for accurate structure recognition, even in challenging cases like distorted or borderless tables.
What Problem Does This Paper Address?
The automated extraction of structured information from documents is crucial for many downstream applications like information retrieval and question answering. Tables are a prevalent way to represent structured data, but their detection and structure recognition from images present significant challenges. These include:
- Complex Table Structures: Tables can have intricate layouts, borderless designs, and varying cell sizes (spanning cells, empty cells).
- Diverse Content: Table cells can contain not just text but also complex objects like paragraphs, figures, or formulas.
- Image Quality Issues: Real-world document images, especially those captured by mobile devices, often suffer from poor quality, geometric distortions (skewing, curvature), and noise.
Existing methods, while improving, often struggle with these complexities, particularly with non-axis-aligned tables, and their performance can degrade significantly with higher localization accuracy requirements.
Methods
RobusTabNet comprises two main components:
- Table Detection (CornerNet-FRCN):
- Novelty: Instead of traditional region proposal networks (RPNs), the authors use CornerNet to detect the top-left and bottom-right corners of table bounding boxes. This approach leverages the precise inference of corners from visual cues like ruling lines and cell alignment.
- Integration: These corner proposals are then fed into a Faster R-CNN (FRCN) framework. FRCN is used to prune non-table proposals and refine the bounding boxes of detected tables.
- Backbone: A lightweight ResNet-18 network with dilated convolutions is used as the backbone for efficiency.
- Table Structure Recognition (Split-and-Merge):
- Novelty: A two-stage approach that is robust to distorted tables.
- Stage 1: Separation Line Prediction: A spatial CNN module is employed to predict row and column separator masks. Spatial CNNs are crucial for propagating contextual information across the entire table, enabling robust detection of separation lines even in large blank spaces or curved tables.
- Stage 2: Cell Merging: A Grid CNN module is used to merge wrongly split cells, particularly spanning cells. The table is represented as a compact grid, allowing the Grid CNN to efficiently learn merging relationships.
- Backbone: A ResNet-FPN network is used for this component.
Datasets
The authors evaluated their approach on several public benchmarks:
- Table Detection:
- cTDaR TrackA
- PubLayNet
- IIIT-AR-13K
- Table Structure Recognition:
- SciTSR
- PubTabNet
- cTDaR TrackB2-Modern
- In-house Dataset: A custom dataset of 9,000 training and 700 testing images, specifically designed to include many skewed and curved tables, to further validate robustness.
Key Insights and Ideas
- Corner Detection for Proposals: Using corner detection (CornerNet) as a region proposal mechanism for table detection significantly improves the quality and localization accuracy of proposals compared to traditional RPNs. This is critical for achieving high precision in table detection.
- Spatial CNNs for Robust Separation Lines: The spatial CNN module's ability to propagate contextual information is key to overcoming the challenge of detecting separation lines in borderless or distorted tables, where local features alone are insufficient.
- Grid CNN for Efficient Merging: Representing the table as a grid and using a Grid CNN for cell merging simplifies the problem and leads to more effective handling of spanning cells compared to other relational methods.
- State-of-the-Art on Challenging Cases: The approach demonstrates strong performance not only on standard benchmarks but also on a more challenging in-house dataset featuring distorted and curved tables, highlighting its practical applicability.
Key Results
- Table Detection: Achieved state-of-the-art performance on cTDaR TrackA (WAvg. F1-score of 94.9%), PubLayNet (AP0.5:0.95 of 97.0%), and IIIT-AR-13K (AP of 98.2% on validation, 97.7% on testing). Notably, it showed superior performance at higher IoU thresholds (e.g., 92.9% at IoU=0.9 on cTDaR TrackA).
- Table Structure Recognition: Achieved state-of-the-art results on SciTSR (F1-score of 99.3%), PubTabNet (TEDS-Struct of 97.0%), and cTDaR TrackB2-Modern (WAvg. F1-score of 55.3%, significantly outperforming prior methods).
- Robustness: Demonstrated significant improvement on the in-house dataset (WAvg. F1-score of 94.6% vs. 63.8% for SPLERGE), showcasing its effectiveness on distorted and curved tables.
Limitations and Future Work
- Limitations:
- The table detector still struggles with very nearby tables.
- The table structure recognizer is not fully robust to cells containing multi-line content.
- Extremely dense tables with overlapping separation masks can pose challenges.
- The current evaluation is primarily on datasets with standard backgrounds and line colors; generalization to diverse backgrounds and colors needs further study.
- Future Work:
- Investigate header analysis techniques to disambiguate nearby tables.
- Incorporate textual information into the Grid CNN module to improve handling of multi-line cell content.
- Explore adaptive scaling for dense tables.
- Develop an end-to-end solution where the table detector and structure recognizer share a backbone for latency reduction.
Summary updated