DocLayout-YOLO: Enhancing Document Layout Analysis through Diverse Synthetic Data and Global-to-Local Adaptive Perception

Zhiyuan Zhao, Hengrui Kang, Bin Wang, Conghui He · DOI

Abstract

Document Layout Analysis (DLA) is a foundational task for automated document understanding, yet existing methods often struggle with the trade-off between inference speed and detection accuracy across diverse document domains. We present DocLayout-YOLO, a vision-only framework that achieves state-of-the-art performance by addressing data scarcity and scale variance. By leveraging a novel "Mesh-candidate BestFit" algorithm for high-fidelity synthetic data generation and a "Global-to-Local" architectural module, DocLayout-YOLO delivers 85.5 FPS with superior accuracy, outperforming significantly larger multimodal models.

Introduction

Document Layout Analysis (DLA) involves the identification and localization of semantic regions—such as text, titles, tables, and figures—within a document. It serves as the critical entry point for downstream tasks like Retrieval-Augmented Generation (RAG).

Current DLA solutions typically fall into two categories: multimodal methods that integrate visual and textual features (accurate but slow due to OCR overhead) and unimodal vision-based methods (fast but often less precise). DocLayout-YOLO bridges this gap, providing a high-speed, high-accuracy unimodal alternative that handles the complex scale variations and diverse layouts found in real-world documents.

Methodology

Mesh-candidate BestFit Algorithm

A primary challenge in DLA is the lack of diverse, high-quality training data. Most existing datasets are biased toward academic papers. To overcome this, the authors developed a synthetic data generation pipeline based on the Mesh-candidate BestFit algorithm.

The DocLayout-YOLO preprocessing and layout generation pipeline, highlighting the Mesh-candidate BestFit algorithm.

Unlike traditional random placement methods that produce unrealistic layouts, this approach treats layout generation as a 2D bin-packing optimization problem. The algorithm samples elements from a diverse "Element Pool" and searches for the optimal fit within a meshgrid to maximize page density and alignment. This process resulted in DocSynth-300K, a large-scale dataset mimicking human design principles across various styles, including newspapers and magazines.

Global-to-Local Controllable Receptive Module (GL-CRM)

Document elements vary significantly in size, from full-page tables to tiny footnotes. Standard object detectors with uniform receptive fields often fail to capture these multi-scale features effectively. DocLayout-YOLO introduces the GL-CRM, a hierarchical module that adapts its receptive field based on the processing stage:

  • Global-level: Employs large kernels and dilated convolutions to perceive whole-page structures.
  • Block-level: Focuses on medium-scale elements like paragraphs or sub-sections.
  • Local-level: Utilizes a lightweight bottleneck to capture fine-grained semantic details.

Datasets and Benchmarking

The framework was evaluated using a combination of established and newly curated benchmarks:

  • DocSynth-300K: A massive synthetic dataset used for robust pre-training to improve generalization.
  • DocStructBench: A new, challenging benchmark covering four domains: Academic, Textbooks, Market Analysis, and Financial reports.
  • D⁴LA and DocLayNet: Standard benchmarks used to ensure fair comparison with existing state-of-the-art (SOTA) models.

Results and Discussion

DocLayout-YOLO redefines the performance frontier for DLA. It achieves a remarkable balance between speed and accuracy, proving that vision-only models can surpass multimodal alternatives when equipped with the right architectural priors.

Performance comparison: (Left) Speed vs. Accuracy on DocStructBench; (Right) Domain-specific mAP across various document types.

Performance Highlights

  • Efficiency: Running at 85.5 FPS on an NVIDIA A100, DocLayout-YOLO is approximately 14x faster than the multimodal DiT-Cascade-L (6.0 FPS).
  • Accuracy: It achieved 70.3% mAP on the D⁴LA dataset, surpassing both unimodal and multimodal competitors.
  • Robustness: The model showed significant improvements in handling diverse layouts, particularly in financial and academic domains, thanks to the varied pre-training on DocSynth-300K.

Conclusion

DocLayout-YOLO demonstrates that vision-only models can achieve SOTA performance in document layout analysis when paired with diverse synthetic data and scale-aware architectures. By treating layout synthesis as an optimization problem and implementing a global-to-local receptive strategy, the framework eliminates the need for costly multimodal processing without sacrificing precision. Future work will focus on further refining performance in extremely dense "Market Analysis" documents and exploring deeper integration of human design principles into the synthesis pipeline.

Summary updated

BibTeX
@misc{zhao2024doclayout,
  author = {Zhiyuan Zhao and Hengrui Kang and Bin Wang and Conghui He},
  title = {{DocLayout-YOLO: Enhancing Document Layout Analysis through Diverse Synthetic Data and Global-to-Local Adaptive Perception}},
  year = {2024},
  eprint = {2410.12628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.12628},
}
Figure