DocLayNet: A Large Human-Annotated Dataset for Document-Layout Segmentation

Birgit Pfitzmann, Christoph Auer, Michele Dolfi, Ahmed S. Nassar, Peter W. J. Staar · DOI

Introduction: Beyond the Scientific Paper Bias

Document Layout Analysis (DLA) is a fundamental task in document AI, serving as the computer vision component that identifies structural elements like paragraphs, tables, and captions on a page. While large-scale datasets such as PubLayNet (360,000 pages) have significantly advanced the field, they are predominantly sourced from scientific repositories like PubMed and arXiv. This creates a "scientific paper" bias: models trained on these rigid, predictable templates often fail when encountering the complex, varied layouts found in professional and commercial documents.

DocLayNet addresses this "variability gap" by providing a high-quality, human-curated dataset of over 80,000 pages. By moving beyond scientific articles to include financial reports, manuals, and legal texts, it offers a robust benchmark that reflects the diverse reality of real-world document processing.

Figure 2: Examples of diverse document layouts included in DocLayNet, ranging from technical manuals to financial reports and road sign guides.

Methodology: The Value of Human Annotation

Unlike many existing datasets that rely on automated ground-truth generation (parsing LaTeX or XML), DocLayNet was created through a rigorous human annotation campaign.

  • Scale and Precision: Forty dedicated annotators worked over several months, guided by a comprehensive 100-page manual to ensure consistency across complex cases, such as distinguishing list items or linking captions to specific visual elements.
  • Quality Control: A subset of pages underwent double or triple annotation. This allowed researchers to calculate an inter-annotator agreement (mAP) of approximately 82–83%, establishing a realistic "human ceiling" for model performance.
  • Baseline Evaluation: The dataset was benchmarked using standard object detection architectures, including Faster R-CNN, Mask R-CNN, and YOLOv5.

Dataset Composition

DocLayNet consists of 80,863 unique pages categorized into six distinct domains: Financial Reports, Manuals, Scientific Articles, Laws & Regulations, Patents, and Government Tenders. The dataset utilizes 11 class labels, including Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, and Title. This granularity allows for a more nuanced understanding of document structure compared to simpler benchmarks.

Figure 1: A technical manual page from the DocLayNet dataset, illustrating complex layout elements like labeled diagrams and multi-column text.

Key Insights and Performance Gap

The research highlights several critical findings for the Document AI community:

  • The Human Ceiling: The ~82% mAP human agreement level suggests that 100% accuracy may be an unrealistic goal due to inherent layout ambiguities.
  • Data Leakage Risks: Splitting datasets by individual pages rather than whole documents can lead to "data leakage," where models memorize the layout of a specific report, inflating accuracy scores by roughly 10%.
  • Robustness vs. Size: While smaller than PubLayNet, DocLayNet produces more robust models. A model trained solely on scientific papers plummets from 93 mAP on its own test set to just 30 mAP when faced with the diverse layouts of DocLayNet.
  • Model Performance: The YOLOv5x6 model emerged as the top performer with a 76.8 mAP, leaving a ~10% gap compared to human-level agreement.

Conclusion and Future Directions

DocLayNet reveals that the current bottleneck in DLA is not merely the volume of data, but the diversity and quality of annotations. While the dataset is primarily in English (95%), it sets a new standard for robustness. Future work will likely involve evaluating multi-modal "vision-language" models on this challenging data to bridge the remaining performance gap between AI and human experts.

Summary updated

BibTeX
@inproceedings{pfitzmann2022doclaynet,
  author = {Birgit Pfitzmann and Christoph Auer and Michele Dolfi and Ahmed S. Nassar and Peter W. J. Staar},
  title = {{DocLayNet: A Large Human-Annotated Dataset for Document-Layout Segmentation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
  doi = {10.1145/3534678.3539043},
}
Figure