Skip to main content
QUICK REVIEW

[Paper Review] DocParser: Hierarchical Structure Parsing of Document Renderings

Johannes Rausch, Octavio Martínez|arXiv (Cornell University)|Nov 5, 2019
Topic ModelingComputer Science38 references4 citations
TL;DR

DocParser is an end-to-end system that infers complete hierarchical document structures from rendered documents (e.g., PDFs) by combining deep learning with a novel weak supervision framework based on reverse LaTeX rendering. It achieves a 39.1% improvement in mean average precision and a 35.8% improvement in F1 score for hierarchical relation classification compared to weak supervision baselines.

ABSTRACT

Translating renderings (e. g. PDFs, scans) into hierarchical document structures is extensively demanded in the daily routines of many real-world applications. However, a holistic, principled approach to inferring the complete hierarchical structure of documents is missing. As a remedy, we developed "DocParser": an end-to-end system for parsing the complete document structure - including all text elements, nested figures, tables, and table cell structures. Our second contribution is to provide a dataset for evaluating hierarchical document structure parsing. Our third contribution is to propose a scalable learning framework for settings where domain-specific data are scarce, which we address by a novel approach to weak supervision that significantly improves the document structure parsing performance. Our experiments confirm the effectiveness of our proposed weak supervision: Compared to the baseline without weak supervision, it improves the mean average precision for detecting document entities by 39.1 % and improves the F1 score of classifying hierarchical relations by 35.8 %.

Motivation & Objective

  • Address the lack of holistic, principled methods for inferring complete hierarchical document structures from rendered documents such as PDFs.
  • Overcome data scarcity in document structure parsing by developing a scalable weak supervision framework using reverse LaTeX rendering for automatic labeling.
  • Provide a comprehensive evaluation benchmark by introducing the arXivdocs dataset, which includes diverse document entities and their hierarchical relations.
  • Enable downstream NLP tasks by recovering structural information (e.g., tables, figures, equations) lost in rendering formats like PDF.
  • Develop a system that outperforms standard OCR and existing parsing methods in accuracy and robustness despite limited annotated training data.

Proposed method

  • Utilize a Mask R-CNN-based instance segmentation model for detecting and localizing document entities (text, tables, figures, equations) in rendered document images.
  • Apply a two-stage relation detection pipeline: first predict hierarchical relations between detected entities, then refine predictions using a graph neural network or similar structure-aware module.
  • Generate weak labels via reverse LaTeX rendering, which extracts bounding boxes and entity categories from source LaTeX files, even if imprecise or noisy.
  • Train a multi-task learning model using both weakly-supervised labels and a small set of high-quality annotated examples through fine-tuning (WS+FT).
  • Leverage the structural consistency of LaTeX source to create a scalable, automated labeling pipeline that supports diverse document types.
  • Integrate layout and textual features (e.g., word embeddings) in future extensions to improve relation classification and structural reasoning.

Experimental results

Research questions

  • RQ1Can a weakly-supervised learning framework based on reverse LaTeX rendering effectively reduce the need for expensive manual annotations in document structure parsing?
  • RQ2To what extent does weak supervision improve performance in detecting document entities and classifying their hierarchical relations compared to fully supervised or unsupervised baselines?
  • RQ3How effective is the proposed system in recovering deeply nested structures such as tables within tables or figures within text regions?
  • RQ4Can the arXivdocs dataset serve as a robust benchmark for evaluating full document structure parsing beyond isolated components like tables?
  • RQ5Does the system outperform standard OCR pipelines in preserving structural semantics critical for downstream NLP tasks like information extraction?

Key findings

  • The proposed weak supervision framework improves mean average precision for document entity detection by 39.1% compared to a baseline without weak supervision.
  • The F1 score for classifying hierarchical relations between document entities improves by 35.8% when using weak supervision with fine-tuning.
  • DocParser achieves inference speeds of approximately 340 ms per document on a single GPU, with only an additional 5.67 ms per document for relation detection on CPU.
  • Even with F1 scores below 0.5, qualitative assessments show that the final document structures remain highly accurate, indicating robustness to minor detection errors.
  • The system outperforms state-of-the-art OCR systems in preserving structural semantics, despite using strict evaluation metrics that penalize small mismatches.
  • The arXivdocs dataset, derived from 127,472 scientific articles, provides a rich, diverse benchmark covering all major document entities and their hierarchical relations, enabling comprehensive evaluation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.