Introduction
Deep learning models, particularly Convolutional Neural Networks (CNNs), have become the standard for document layout extraction—the task of identifying structural elements like tables, figures, and equations within a page. However, these models require vast amounts of labeled data. Manually annotating thousands of document pages with precise bounding boxes is a prohibitively expensive and error-prone endeavor.
To overcome this bottleneck, researchers have introduced Document Domain Randomization (DDR). This method leverages 100% synthetically generated "pseudo-pages" to train layout extraction models. By applying domain randomization—a concept borrowed from robotics—the system creates training data so diverse that real-world documents appear as just another variation to the model, effectively bridging the "reality gap."
The DDR Methodology
The authors propose a workflow that eliminates the need for manual labeling by generating high-fidelity synthetic training samples.
1. Modeling
Instead of attempting to replicate specific paper templates perfectly, the system gathers a diverse library of document components. Non-textual elements such as figures, tables, equations, and algorithms are sourced from the VIS30K dataset. Semantically plausible but randomized text is generated using SciGen, providing realistic "textures" for body text, captions, and titles.
2. Rendering and Randomization
The core of DDR lies in its randomized page generator. As it assembles components into a page, it varies several key attributes to ensure the model generalizes well:
- Layout: Randomizes the number of columns, column widths, line spacing, and margins.
- Typography: Varies font types, sizes, and styles (e.g., bold or italic).
- Placement: Randomizes distances between figures and captions, alignment of section titles, and the inclusion of metadata like keywords or author affiliations.
Because the system renders these pages programmatically, it generates 100% accurate "ground truth" bounding boxes automatically. This provides a virtually infinite supply of training data for the Faster R-CNN architecture.
Evaluation and Datasets
The effectiveness of DDR was evaluated against several benchmarks:
- CS-150: A standard benchmark for figure and table extraction.
- ACL300: A dataset of 300 papers (2,508 pages) from the ACL anthology.
- VIS300: A dataset of 300 papers (2,619 pages) from IEEE Visualization conferences.
Key Insights and Results
The study yielded several critical insights into the nature of document layout extraction:
- Visual Texture vs. Semantics: The model primarily learns to distinguish classes based on visual "textures" and shapes (e.g., the distinct look of an algorithm block) rather than the actual meaning of the text.
- Robustness to Noise: Stress tests revealed that CNNs are remarkably resilient to label noise; even with 10% of training labels intentionally swapped, performance remained high.
- Performance: On the CS-150 benchmark, DDR achieved F1 scores of 0.916 for figures and 0.943 for tables, matching or exceeding state-of-the-art extractors like PDFFigures. In specialized domains, mean Average Precision (mAP) reached up to 0.98.
- Efficiency: The trained model is highly efficient, processing a page in approximately 0.23 seconds on a consumer-grade GPU (RTX 2080).
Conclusion and Future Directions
DDR demonstrates that synthetic data, when sufficiently randomized, can replace manual annotation for complex document layout tasks. While highly effective, the model occasionally misidentifies similar-looking elements, such as bulleted lists and algorithms.
Future work will focus on extending DDR to older, scanned documents where OCR artifacts and physical degradations introduce new challenges. Additionally, the authors aim to explore automated style adaptation to further minimize the reality gap across diverse document domains without human intervention.
Summary updated