UniHDSA: A Unified Relation Prediction Approach for Hierarchical Document Structure Analysis
Jiawei Wang, Kai Hu, Qiang Huo
TL;DR
UniHDSA tackles hierarchical document structure analysis by recasting page-level and document-level subtasks as relation prediction problems within a single unified label space. The authors implement a two-stage, multimodal Transformer-based system that learns to detect page objects, determine reading order, and reconstruct cross-page hierarchies, all within a single end-to-end model. Empirical results show state-of-the-art performance on Comp-HRDoc and competitive results on DocLayNet, with extensive ablations confirming the benefits of unified modeling, cross-level relations, and semantic features. The work advances scalable, end-to-end HDSA and provides open-source configurations for replication and further research.
Abstract
Document structure analysis, aka document layout analysis, is crucial for understanding both the physical layout and logical structure of documents, serving information retrieval, document summarization, knowledge extraction, etc. Hierarchical Document Structure Analysis (HDSA) specifically aims to restore the hierarchical structure of documents created using authoring software with hierarchical schemas. Previous research has primarily followed two approaches: one focuses on tackling specific subtasks of HDSA in isolation, such as table detection or reading order prediction, while the other adopts a unified framework that uses multiple branches or modules, each designed to address a distinct task. In this work, we propose a unified relation prediction approach for HDSA, called UniHDSA, which treats various HDSA sub-tasks as relation prediction problems and consolidates relation prediction labels into a unified label space. This allows a single relation prediction module to handle multiple tasks simultaneously, whether at a page-level or document-level structure analysis. To validate the effectiveness of UniHDSA, we develop a multimodal end-to-end system based on Transformer architectures. Extensive experimental results demonstrate that our approach achieves state-of-the-art performance on a hierarchical document structure analysis benchmark, Comp-HRDoc, and competitive results on a large-scale document layout analysis dataset, DocLayNet, effectively illustrating the superiority of our method across all sub-tasks. The Comp-HRDoc benchmark and UniHDSA's configurations are publicly available at https://github.com/microsoft/CompHRDoc.
