Introduction
Document Layout Analysis (DLA) is a fundamental task in document intelligence, involving the identification and categorization of structural elements such as titles, tables, figures, and text blocks. While deep learning models have achieved high accuracy in DLA, they typically rely on massive, manually labeled datasets like PubLayNet. The creation of such datasets is labor-intensive, expensive, and often inconsistent. Moreover, as document formats evolve, static datasets can quickly become obsolete.
To address the scarcity of labeled data, UnSupDLA introduces a novel vision-based framework that performs DLA without any human-labeled examples. By leveraging self-supervised visual features and an iterative training strategy, the model learns to segment complex document structures directly from raw images.
Methodology
The UnSupDLA framework follows a multi-stage unsupervised pipeline designed to transition from initial "rough guesses" to refined object detection and segmentation.
Layout Mask Generation and Objects Masking
The process begins with a self-supervised Vision Transformer (ViT) backbone, specifically DINO, to extract features from image patches. An affinity matrix is constructed to measure the similarity between these patches. The framework then applies Normalized Cuts (NCut), a graph-partitioning algorithm, to separate foreground objects from the background.
Because documents contain multiple elements, the authors employ an iterative mask pooling strategy. Once a primary object is identified, its features are masked out, and the NCut process is repeated to find the next most prominent object. This continues until all significant layout elements are captured (as shown in the $m=1$ to $m=8$ sequence in Figure 1).
Training with Loss Drop ($L_{drop}$)
A core innovation of UnSupDLA is the Loss Drop ($L_{drop}$) strategy. In standard supervised training, a model is penalized for detecting objects not present in the ground truth. In an unsupervised setting, the initial masks (pseudo-labels) may be incomplete. The $L_{drop}$ strategy instructs the model to ignore the loss for any predicted region that has minimal overlap with the initial masks. This encourages the model to discover new objects without being penalized for exceeding the quality of its initial labels.
Multi-Iteration Self-Training
The model undergoes three rounds of self-training. In each iteration, high-confidence predictions from the previous round serve as pseudo-labels for the next. This iterative refinement progressively improves the precision of bounding boxes and segmentation masks.
Experimental Setup
The framework was evaluated on three major DLA benchmarks without using their ground-truth labels during training:
- PubLayNet: Over 335,000 images of academic papers (figures, lists, tables, text).
- DocLayNet: A diverse dataset of nearly 70,000 images across six domains (reports, manuals, etc.).
- TableBank: A large-scale dataset specifically for table detection and recognition.
Results and Discussion
The performance of UnSupDLA varies based on task complexity:
- Single-Class Detection (TableBank): The model achieved a remarkable 88.6 mAP for detection and 88.8 mAP for segmentation. This performance is highly competitive with supervised methods, suggesting that unsupervised learning is highly effective for single-class layout tasks.
- Multi-Class Detection (PubLayNet): The model reached 28.7 mAP (box) and 29.3 mAP (mask). While lower than fully supervised scores, it establishes a strong baseline for purely unsupervised multi-class DLA.
- Transferability: Pre-training on TableBank before training on PubLayNet significantly boosted performance (mAP increased from 28.7 to 65.6), indicating that "layout-ness" is a transferable visual feature.
Qualitative analysis revealed that UnSupDLA sometimes surpasses human annotators by identifying elements like footers and marginalia that were omitted in the official ground truth. This suggests that unsupervised models can provide more consistent labeling than human efforts in some contexts.
Conclusion
UnSupDLA demonstrates that visual representations alone are powerful enough to identify document layout boundaries without human supervision. While a performance gap remains in complex multi-class environments like DocLayNet—where distinguishing between similar categories like lists and text blocks is difficult—the framework provides a robust foundation for future work. Combining these unsupervised techniques with weak supervision could potentially bridge the gap to fully supervised performance levels.
Summary updated