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

TL;DR

The paper introduces Catalog Extraction from Documents (CED), a new task aimed at automatically transforming long, unstructured documents into hierarchical "catalog trees." The authors provide a new manually annotated benchmark, ChCatExt, and propose TRACER, a transition-based parsing framework that outperforms traditional tagging and pipeline baselines by focusing on structural relationships rather than absolute depth.

What Problem Does This Paper Address?

Extracting specific information from extremely long documents (e.g., 40-page credit reports) is a "needle in a haystack" problem. While human readers use catalogs (tables of contents or section headers) to navigate, most digital documents exist as plain text or OCR output without easily accessible structural metadata.

Existing solutions often rely on handcrafted regular expressions or templates. However, these fail when document formats vary or when section hierarchies become deep and complex. Furthermore, Optical Character Recognition (OCR) tools frequently introduce errors, such as incorrectly splitting a single sentence into multiple segments due to line breaks. The CED task aims to bridge the gap between raw, fragmented text segments and high-level document understanding by reconstructing the document's "skeleton."

Fig. 1. An example of catalog extraction. The text segments on the left are converted to a catalog tree on the right. The third and the fourth segments are concatenated after catalog extraction.

Methods

The authors propose TRACER (TRAnsition-based Catalog trEe constRuction), a framework inspired by shift-reduce parsing used in linguistics.

The Transition Framework

TRACER operates using two buffers: a stack ($S$) representing the partially constructed catalog tree and an input queue ($Q$) containing raw text segments. At each step, the model compares the top of the stack with the next item in the queue to predict one of four actions:

  1. Sub-Heading: The new segment is a child heading of the current stack top.
  2. Sub-Text: The new segment is the body text belonging to the current heading.
  3. Concat: The new segment is a continuation of the current stack top (crucial for fixing OCR line-break errors).
  4. Reduce: The current section is complete; the stack top is updated to its parent to look for the next heading at a higher level.
Fig. 2. Framework of the transition-based catalog extraction.

Architecture

The model uses a Chinese RoBERTa variation (RBT3) to encode the stack top ($s$) and queue item ($q$). These representations are concatenated and passed through a Feed-Forward Network (FFN) to predict the next action. To ensure the resulting tree is valid, the authors implement decoding constraints (e.g., a text node cannot have children).

Datasets

The authors introduced two primary datasets:

  • ChCatExt: A manually annotated corpus of 650 documents across three domains:
  • BidAnn: Short bid announcements with simple structures.
  • FinAnn: Financial announcements with diverse heading formats.
  • CreRat: Long credit rating reports with deep, nested hierarchies (averaging 15k characters and 4.59 levels of depth).
  • Wiki: A large-scale dataset of ~215,000 Wikipedia articles with existing catalog structures, used for general model pre-training.
Table 1. Data statistics. BidAnn refers to bid announcements, FinAnn is financial announcements and CreRat is credit rating reports. One node may contain multiple segments in its content, and we list the number of nodes here. Depth represents the depth of the document catalog tree (text nodes are also included). Length is obtained by counting the number of document characters.

Key Insights and Ideas

  • Structural vs. Absolute Depth: Traditional sequence tagging models struggle because they try to predict the absolute depth level of a heading. TRACER succeeds by focusing on the relative relationship between adjacent nodes, making it more flexible for documents with varying depths.
  • Handling OCR Fragmentation: The inclusion of a Concat action is a practical necessity. By allowing the model to merge segments, it recovers from the common OCR error where a single semantic unit is split by a physical page layout.
  • Headings as Leaves: Interestingly, the authors found that in ~24% of documents, a heading might not have any sub-text or sub-headings (a leaf node). This makes the task more complex than simple binary classification of "heading vs. text."
  • Transfer Learning: Pre-training on Wikipedia significantly improves performance in low-resource scenarios (when only a few domain-specific documents are available for training).

Key Results

TRACER achieved an overall F1 score of 82.39% on the ChCatExt dataset, outperforming:

  • Classification Pipeline: (77.09% F1) A two-step process that first predicts concatenation and then classifies depth levels.
  • Sequence Tagging: (78.27% F1) A BIO-tagging approach using LSTM-CRF.

The transition-based approach was particularly effective at identifying headings (90.49% F1) compared to body text (84.33% F1). The authors also demonstrated that their decoding constraints, while simple, provided a measurable boost in robustness.

Limitations and Future Work

  • Local Context: The current model only compares two nodes at a time. The authors acknowledge that missing "global structural history" can lead to errors in very deep hierarchies.
  • Deep Level Performance: Performance drops significantly at deeper levels (e.g., level 5 headings), likely due to data sparsity at those depths.
  • Future Directions: The team suggests exploring better encoding strategies that incorporate broader document context and historical transition states to improve predictions for complex, nested structures.

Summary updated

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