Abstract
Extracting structured information from long, unstructured documents remains a significant challenge in document-level information extraction (IE). This paper introduces Catalog Extraction from Documents (CED), a task designed to reconstruct the hierarchical "skeleton" of a document from plain text or OCR output. To address this, we present ChCatExt, a manually annotated dataset across three diverse domains, and TRACER (TRAnsition-based Catalog trEe constRuction), a framework that treats document structuring as a transition-based parsing problem. Experimental results demonstrate that TRACER significantly outperforms traditional sequence tagging and classification baselines, achieving an F1 score of 82.39%.
Introduction
In the era of big data, professionals often navigate massive documents—such as 40-page credit reports or complex financial announcements—to locate specific facts. While humans rely on a table of contents or a "catalog" to navigate these hierarchies, digital versions of these documents often exist as flat text or noisy OCR outputs where structural metadata is lost. Existing solutions typically rely on handcrafted regular expressions, which are brittle and fail when document formats shift or hierarchies deepen beyond a few levels.
This paper formalizes the CED task, which aims to transform unstructured text into a hierarchical catalog tree. By reconstructing this skeleton, downstream AI tasks can significantly reduce their search space and improve extraction accuracy.
The TRACER Framework
Rather than treating document structuring as a simple classification or sequence tagging problem, the authors propose TRACER, a transition-based parsing model. This approach is inspired by dependency parsing in linguistics and is better suited for handling deep, variable-length hierarchies than traditional BIO (Beginning, Inside, Outside) tagging.
Transition Mechanism
TRACER utilizes a stack-and-queue architecture to process text segments sequentially:
- Input Queue ($Q$): Contains the sequence of text segments extracted from the document.
- Catalog Stack ($S$): Stores the partially constructed tree nodes.
For each step, the model examines the top of the stack ($s$) and the next item in the queue ($q$) to predict one of four discrete actions:
- Sub-Heading: Designates $q$ as a child heading of $s$.
- Sub-Text: Designates $q$ as body text belonging to section $s$.
- Concat: Merges $q$ into $s$, effectively repairing errors where OCR systems incorrectly split sentences across line breaks.
- Reduce: Signals that the current section is complete, popping the stack to return to the parent node.
Model Architecture
The system employs a pre-trained Chinese RoBERTa model to encode text segments. These representations are passed to a Feed-Forward Network (FFN) to predict the transition actions. To ensure the resulting tree is logically sound, the authors incorporate structural constraints—for instance, preventing a text node from having children—which guides the neural network toward valid document layouts.
Data Resources
To benchmark this task, the authors developed two key resources:
- ChCatExt: A high-quality, manually annotated corpus of 650 Chinese documents. It covers three distinct domains: Bid Announcements (simple structure), Financial Announcements (complex formatting), and Credit Rating Reports (long and deeply nested).
- Wiki Corpus: A large-scale dataset of over 214,000 Wikipedia documents with automatically extracted structures. This corpus is used for pre-training, allowing the model to learn general structural patterns before fine-tuning on domain-specific data.
Evaluation and Key Insights
TRACER was evaluated against standard classification and tagging baselines, yielding several key insights:
- Superiority of Parsing over Tagging: TRACER achieved an overall F1 score of 82.39%, surpassing the classification pipeline (77.09%) and tagging baseline (78.27%). The transition-based approach is inherently more flexible for deep hierarchies, as it focuses on the relationship between adjacent nodes rather than absolute depth labels.
- The Importance of "Concat": The inclusion of the
Concataction proved vital for real-world applications. By explicitly modeling segment merging, TRACER is robust against the noise and arbitrary line breaks common in OCR-processed documents. - Transfer Learning: Pre-training on the Wikipedia corpus significantly improved performance in low-resource scenarios. The model showed a massive performance boost when only a handful of labeled documents (3 to 10) were available for a new domain.
- Domain Sensitivity: The model performed exceptionally well on Credit Rating Reports (92.79% F1). Despite their length, these reports follow consistent structural conventions that the model was able to learn effectively.
Limitations and Future Work
While TRACER represents a significant step forward, it currently relies on local context, comparing only two nodes at a time. This can lead to errors in extremely long documents where a global structural view is necessary. Additionally, performance tends to decay as the hierarchy deepens (e.g., Level 5 headings), primarily due to the scarcity of training data at those depths. Future research will focus on encoding broader structural histories to better navigate the most complex document architectures.
Summary updated