TL;DR
This paper introduces SEMv2, a novel approach to table structure recognition that treats table separation line detection as an instance segmentation problem. This allows for more robust parsing of complex and distorted tables, especially those captured in real-world scenarios. The authors also release iFLYTAB, a new challenging dataset to further advance research in this area.
What Problem Does This Paper Address?
Table structure recognition (TSR) is crucial for machines to understand tabular data. However, the complexity and diversity of table layouts, especially in real-world scenarios like camera-captured documents, pose significant challenges. Existing methods often struggle with distorted tables, noise, and the lack of clear visual cues, particularly for "wireless" tables (tables without explicit lines separating cells). The paper addresses the limitations of previous "split-and-merge" based methods, where errors in the initial "split" stage are difficult to rectify later. Specifically, they aim to improve the accuracy and robustness of the "split" stage by treating table separation line detection as an instance segmentation task.
Methods
SEMv2 builds upon the "split-and-merge" paradigm but introduces key innovations:
- Instance Segmentation for Table Separation Lines: Instead of semantic segmentation for lines, SEMv2 formulates table separation line detection as an instance segmentation task. This means it predicts individual masks for each row and column separation line, making it more robust to complex and distorted tables. This is achieved through a "splitter" module that uses a feature branch and a kernel branch, inspired by CondInst.
- Gather Module: To capture broader contextual information for line detection, a "Gather" module is introduced. This module uses repeated down-sampling and spatial CNNs to aggregate horizontal and vertical visual clues, enhancing feature representation.
- Parallel Decoder for Merger: The "merger" module, responsible for combining basic table grids into cells, now uses a parallel decoder based on conditional convolution. This significantly improves efficiency compared to the sequential decoder used in previous methods, without sacrificing accuracy.
- Embedder Module: This module extracts grid-level feature representations from the table grids identified by the splitter, using RoIAlign and a transformer to capture long-range dependencies.
Datasets
- SciTSR: A dataset of axis-aligned tables from scientific literature.
- PubTabNet: A large-scale dataset of axis-aligned tables from scientific articles.
- cTDaR TrackB1-Historical: Contains historical documents with handwritten tables.
- WTW: Focuses on wired tables in wild complex scenes, including distorted and curved tables.
- iFLYTAB (New Dataset): Introduced by the authors, this dataset is more challenging as it includes:
- Both wired and wireless tables.
- Tables from various scenarios: digital documents and camera-captured photos.
- Images with complex backgrounds and non-rigid deformations, making it more representative of real-world scenarios.
- Comprehensive annotations for physical coordinates and row/column information.
Key Insights and Ideas
- Instance Segmentation is Key for Robustness: Treating table separation lines as individual instances, rather than a single semantic mask, significantly improves the ability to handle complex table layouts and distortions, especially in camera-captured images.
- Context Matters for Line Detection: The "Gather" module's ability to aggregate visual clues across larger regions of the image is crucial for accurately detecting slender table lines, particularly in challenging scenarios.
- Parallel Processing for Efficiency: Shifting from a sequential to a parallel decoder in the merging stage dramatically speeds up the process, making the model more practical for real-world applications.
- Real-World Data is Essential: The creation of the iFLYTAB dataset highlights the need for more diverse and challenging benchmarks that reflect the complexities of tables encountered outside of pristine digital documents.
Key Results
- SEMv2 achieves state-of-the-art performance on several public datasets, including SciTSR, PubTabNet, and the newly introduced iFLYTAB.
- On the iFLYTAB dataset, SEMv2 significantly outperforms previous methods, particularly on camera-captured images with severe deformation, bending, or occlusions.
- The parallel decoder in the merger module leads to a significant boost in efficiency (higher FPS) compared to sequential decoders.
- Ablation studies confirm the effectiveness of the proposed splitter (instance segmentation), Gather module, and parallel merger.
Limitations and Future Work
- Rotational Distortion and Image Quality: The model's performance is compromised on images with significant rotational distortion and poor image quality.
- Multi-line Text in Cells: SEMv2 struggles with cells containing multi-line text due to the absence of a textual branch (unlike its predecessor SEM).
- Future Work:
- Develop efficient multi-modal table structure recognition schemes that fully utilize textual, visual, and layout information.
- Investigate computer vision techniques to mitigate issues like moiré patterns and severe image distortion.
- Improve performance on scenarios with significant angle rotation.
Summary updated