Abstract
Document Layout Analysis (DLA) is a critical precursor to document understanding, yet existing models often struggle when deployed in new domains. Traditional adaptation techniques require access to original source datasets, which are frequently restricted due to privacy or logistical constraints. This paper introduces SFDLA, the first framework for Source-Free Document Layout Analysis. By utilizing a novel "dual-teacher" architecture called DLAdapter, the framework bridges the performance gap between disparate document types—such as scientific papers and financial reports—without requiring access to the original training data.
Introduction
Document Layout Analysis serves as the "first mile" of automated document processing, responsible for identifying and segmenting structural elements like text blocks, tables, figures, and titles. While modern deep learning models achieve high accuracy on specific datasets, they are notoriously brittle. A model optimized for academic papers often fails when confronted with the dense, multi-columnar layouts of financial statements or legal briefs.
Standard Unsupervised Domain Adaptation (UDA) solutions typically require simultaneous access to both source and target data. However, in real-world applications, source data is often inaccessible due to privacy regulations (e.g., medical records), confidentiality (proprietary business documents), or the sheer scale of the datasets. SFDLA addresses this Source-Free challenge: adapting a pre-trained model to a new environment using only the model weights and a collection of unlabeled target documents.
Methodology: The DLAdapter Framework
The core of the SFDLA approach is DLAdapter, a framework built upon a Faster R-CNN detector and enhanced with a sophisticated self-supervision loop. To manage the transition to a new domain, the authors implement a Dual-Teacher Framework:
- The Student Model: The active learner that iteratively adapts to the target domain.
- The Static Teacher: Updated slowly via Exponential Moving Average (EMA), this model acts as a conservative anchor, preserving stable knowledge from the original source domain.
- The Dynamic Teacher: Updated more frequently, this progressive model quickly captures new patterns and cues emerging from the target domain.
- Consensus Pseudo-Labeling: To mitigate confirmation bias—where a model learns from its own errors—the system only generates a "pseudo-label" for the student if both teachers agree on the detection. If the teachers disagree or exhibit low confidence, the label is discarded or down-weighted.
This synergy allows the model to explore the new domain through the dynamic teacher while preventing "model drift" via the stability of the static teacher.
Experimental Setup and Datasets
The researchers established the first formal SFDLA benchmark by aligning three major datasets to test cross-domain robustness:
- PubLayNet (PLN): Over 360,000 images of scientific articles from PubMed.
- DocLayNet (DLN): A diverse set covering financial reports, manuals, and legal documents.
- M6Doc: A complex dataset featuring 74 fine-grained layout classes in both English and Chinese.
The study evaluated two primary adaptation scenarios: Geometry-aware adaptation (moving between different datasets) and Content-aware adaptation (moving between sub-categories, such as shifting from scientific to financial documents within the same dataset).
Key Results and Insights
The study revealed several critical findings regarding the state of document layout transfer:
- The Transfer Gap: Simply applying a model trained on one domain to another results in an average performance drop of 32.64%, underscoring the inadequacy of zero-shot transfer for high-stakes processing.
- Performance Gains: DLAdapter achieved a +4.21% improvement over the source-only baseline and a +2.26% gain over existing state-of-the-art source-free object detection methods (such as IRG) when adapting from PubLayNet to DocLayNet.
- Class-Specific Accuracy: The method was notably effective at identifying "Text" blocks, showing an 11% increase in accuracy compared to the baseline.
- Stability vs. Plasticity: The dual-teacher approach successfully navigated the dilemma of error accumulation. By requiring consensus between a stable model and a fast-adapting model, the system filtered out transient noise that typically plagues single-teacher self-supervision.
Limitations and Future Work
While SFDLA represents a significant step forward, the authors identify several areas for improvement. Currently, DLAdapter relies primarily on visual features. Incorporating textual information via Optical Character Recognition (OCR) could help the model distinguish between elements that are visually similar but semantically distinct. Additionally, the dual-teacher architecture increases computational overhead during training, which may pose challenges for resource-constrained environments. Finally, while the consensus mechanism is robust, extreme domain gaps can still lead to pseudo-label drift over extended training periods.
Conclusion
SFDLA and the DLAdapter framework provide a viable path for deploying high-performance DLA models in privacy-sensitive or data-restricted environments. By balancing long-term knowledge retention with rapid domain adaptation, the framework significantly reduces the performance degradation typically seen in cross-domain document processing.
Summary updated