MoDora: Tree-Based Semi-Structured Document Analysis System
Xu BangRui, Qihang Yao, Zirui Tang et al. · Proceedings of the ACM on Management of Data · 2026
Semi-structured documents integrate diverse interleaved data elements (e.g., tables, charts, hierarchical paragraphs) arranged in various and often irregular layouts. These documents are widely observed across domains and account for a large portion of real-world data. However, existing methods struggle to support natural language question answering over these documents due to three main technical challenges: (1) The elements extracted by techniques like OCR are often fragmented and stripped of their original semantic context, making them inadequate for analysis. (2) Existing approaches lack effective representations to capture hierarchical structures within documents (e.g., associating tables with nested chapter titles) and to preserve layout-specific distinctions (e.g., differentiating sidebars from main content). (3) Answering questions often requires retrieving and aligning relevant information scattered across multiple regions or pages, such as linking a descriptive paragraph to table cells located elsewhere in the document. To address these issues, we propose Modora, an LLM-powered system for semi-structured document analysis. First, we adopt a local-alignment aggregation strategy to convert OCR-parsed elements into layout-aware components, and conduct type-specific information extraction for components with hierarchical titles or non-text elements. Second, we design the Component-Correlation Tree (CCTree) to hierarchically organize components, explicitly modeling inter-component relations and layout distinctions through a bottom-up cascade summarization process. Finally, we propose a question-type-aware retrieval strategy that supports (1) layout-based grid partitioning for location-based retrieval and (2) LLM-guided pruning for semantic-based retrieval. Experiments show Modora outperforms baselines by 5.97%-61.07% in accuracy. The code is at https://github.com/weAIDB/MoDora.
Cited by 0 works. doi:10.1145/3802089
Authors
References
- LayoutLMv3: Pre-training for Document AI with Unified Text and Image Masking
- DocFormer: End-to-End Transformer for Document Understanding
- Scene Text Visual Question Answering
- A Systematic Survey of Text Summarization: From Statistical Methods to Large Language Models
- Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes
- Unifying Vision, Text, and Layout for Universal Document Processing
- Hierarchical multimodal transformers for Multipage DocVQA
- Document Understanding Dataset and Evaluation (DUDE)
- QUEST: Query Optimization in Unstructured Document Analysis