M6Doc: A Large-Scale Multi-Format, Multi-Type, Multi-Layout, Multi-Language, Multi-Annotation Category Dataset for Modern Document Layout Analysis

Hiuyi Cheng, Pei-yu Zhang, Sihang Wu, Jiaxin Zhang, Qi Zhu +4 more
2/14/2026

Official code: HCIILAB/M6Doc (163 stars, last commit 2025-05-08).

Abstract

Document layout analysis is a crucial prerequisite for document understanding, including document retrieval and conversion. Most public datasets currently contain only PDF documents and lack realistic documents. Models trained on these datasets may not generalize well to real-world scenarios. Therefore, this paper introduces a large and diverse document layout analysis dataset called M6Doc. The M6 designation represents six properties: (1) Multi-Format (including scanned, photographed, and PDF documents); (2) Multi-Type (such as scientific articles, textbooks, books, test papers, magazines, newspapers, and notes); (3) Multi-Layout (rectangular, Manhattan, non-Manhattan, and multi-column Manhattan); (4) Multi-Language (Chinese and English); (5) Multi-Annotation Category (74 types of annotation labels with 237,116 annotation instances in 9,080 manually annotated pages); and (6) Modern documents. Additionally, we propose a transformer-based document layout analysis method called TransDLANet, which leverages an adaptive element matching mechanism that enables query embedding to better match ground truth to improve recall, and constructs a segmentation branch for more precise document image instance segmentation. We conduct a comprehensive evaluation of M6Doc with various layout analysis methods and demonstrate its effectiveness. TransDLANet achieves state-of-the-art performance on M6 Doc with 64.5% mAP. The M6Doc dataset will be available at https://github.com/HcIILAB/M6Doc.

View on arXivView PDF

Code Implementations(1)

HCIILAB/M6DocOfficial100%
1637Mar 23, 20231 years ago

Similar Papers

Cite this paper

@article{cheng2026mdoc,
  title  = {M6Doc: A Large-Scale Multi-Format, Multi-Type, Multi-Layout, Multi-Language, Multi-Annotation Category Dataset for Modern Document Layout Analysis},
  author = {Hiuyi Cheng and Pei-yu Zhang and Sihang Wu and Jiaxin Zhang and Qi Zhu and Zecheng Xie and Jing Li and Kai Ding and Lianwen Jin},
  year   = {2026},
  eprint = {2305.08719},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2305.08719},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.08719.svg)](https://codeofpaper.com/paper/2305.08719)

Discussion