CED: Catalog Extraction from Documents

Tong Zhu, Guoliang Zhang, Zechang Li, Zijian Yu, Junfei Ren, Mengsong Wu, Zhefeng Wang, Baoxing Huai, Pingfu Chao, Wenliang Chen

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:

  1. Sub-Heading: Designates $q$ as a child heading of $s$.
  2. Sub-Text: Designates $q$ as body text belonging to section $s$.
  3. Concat: Merges $q$ into $s$, effectively repairing errors where OCR systems incorrectly split sentences across line breaks.
  4. 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:

  1. 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).
  2. 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 Concat action 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

Abstract

Sentence-by-sentence information extraction from long documents is an exhausting and error-prone task. As the indicator of document skeleton, catalogs naturally chunk documents into segments and provide informative cascade semantics, which can help to reduce the search space. Despite their usefulness, catalogs are hard to be extracted without the assist from external knowledge. For documents that adhere to a specific template, regular expressions are practical to extract catalogs. However, handcrafted heuristics are not applicable when processing documents from different sources with diverse formats. To address this problem, we build a large manually annotated corpus, which is the first dataset for the Catalog Extraction from Documents (CED) task. Based on this corpus, we propose a transition-based framework for parsing documents into catalog trees. The experimental results demonstrate that our proposed method outperforms baseline systems and shows a good ability to transfer. We believe the CED task could fill the gap between raw text segments and information extraction tasks on extremely long documents. Data and code are available at https://github.com/Spico197/CatalogExtraction
BibTeX
@inproceedings{zhu2023ced,
  author = {Tong Zhu and Guoliang Zhang and Zechang Li and Zijian Yu and Junfei Ren and Mengsong Wu and Zhefeng Wang and Baoxing Huai and Pingfu Chao and Wenliang Chen},
  title = {{CED: Catalog Extraction from Documents}},
  booktitle = {ICDAR},
  year = {2023},
  url = {https://openreview.net/forum?id=2RlKtCo5pS},
}
Figure