Abstract
Scene text detection models often suffer from performance degradation when transitioning from synthetic pre-training to real-world fine-tuning due to significant domain discrepancies. This paper introduces UNITS (Unsupervised Intermediate Training Stage), a novel training paradigm that bridges this gap. By incorporating an unsupervised stage using unlabeled real-world data and consistency training, UNITS optimizes the model's initialization for the final fine-tuning phase. Experimental results across multiple benchmarks and architectures demonstrate that UNITS consistently improves detection accuracy without increasing inference complexity.
1. Introduction
Scene text detection—the identification and localization of text in natural environments—is a fundamental task in computer vision with applications ranging from autonomous driving to document analysis. Modern detectors typically rely on a two-stage pipeline: pre-training on large-scale synthetic datasets followed by fine-tuning on smaller, labeled real-world datasets. However, the stark differences in visual characteristics between synthetic and real-world data often lead to sub-optimal convergence.
This research proposes UNITS (Unsupervised Intermediate Training Stage), an architectural-agnostic training strategy designed to mitigate the "synthetic-to-real" gap. By introducing an intermediate phase that leverages unlabeled real-world images, UNITS allows models to adapt to real-world data distributions before supervised fine-tuning begins.
2. The Challenge of Domain Discrepancy
The primary hurdle in training robust scene text detectors is the scarcity of labeled real-world data. While synthetic datasets like SynthText provide millions of examples with perfect annotations, they fail to capture the nuances of the physical world, such as complex lighting, motion blur, diverse textures, and weathered surfaces.
When a model is initialized with weights learned from synthetic data and immediately fine-tuned on a limited real-world set, the "jump" between domains is often too large. This misalignment can cause the model to settle into a poor local minimum, limiting its ultimate precision and recall on target benchmarks.
3. The UNITS Methodology
UNITS introduces a "buffer" stage between synthetic pre-training and real-world fine-tuning. During this stage, the model is exposed to both labeled synthetic data and unlabeled real-world data.
3.1 Consistency Training Strategies
The researchers explored three consistency-based training configurations to utilize unlabeled data:
- Double Branches Single Supervision (DBSS): This configuration utilizes two identical model branches. A "teacher" branch processes a real image to generate pseudo-labels, which then supervise a "student" branch processing a heavily augmented version of the same image. This was identified as the most effective strategy.
- Double Branches Double Supervision (DBDS): A symmetrical approach where both branches provide mutual supervision.
- Single Branch Single Supervision (SBSS): A simplified version where a single model supervises its own augmented outputs.
3.2 The Detection Anchor
A critical component of UNITS is the "detection anchor"—the continued use of supervised loss on synthetic data during the intermediate stage. This prevents the model from "forgetting" the fundamental geometry of text while it adapts its feature extractors to the textures and noise of real-world imagery.
3.3 Augmentation and Inference
The study highlights that "strong" augmentations (e.g., random rotations and scaling) are essential for effective consistency training. Because UNITS is a training-time intervention, the auxiliary branches are discarded after training, ensuring that the final model maintains its original inference speed.
4. Experimental Results
The effectiveness of UNITS was validated using several prominent detectors, including DB, EAST, PSENet, and PAN, across diverse datasets:
- ICDAR2015: Focused on incidental scene text.
- TotalText: Focused on curved and multi-oriented text.
- MSRA-TD500: Focused on multi-lingual and high-aspect-ratio text.
4.1 Performance Gains
The DB detector, when trained with UNITS, saw its F-measure on ICDAR2015 increase from 83.8% to 85.1%. On the MSRA-TD500 dataset, the improvement was even more pronounced, rising from 86.0% to 88.1%. These gains were consistent across different backbones, such as ResNet-18 and ResNet-50, proving the method's robustness.
5. Discussion and Limitations
The research demonstrates that the initialization state of a model prior to fine-tuning is a decisive factor in its final performance. By "perceiving" the target domain's distribution early, UNITS provides a superior starting point for supervised learning.
However, the method has limitations. It does not yet outperform specialized models that utilize expensive character-level annotations (e.g., CRAFT). Furthermore, the quality of the unlabeled data matters; if the unlabeled distribution differs too drastically from the target task, the performance gains may diminish.
6. Conclusion
UNITS offers a practical, plug-and-play solution for improving scene text detection by bridging the gap between synthetic and real-world data. By leveraging unlabeled images in an intermediate training stage, it enhances model accuracy across various architectures without adding computational overhead during deployment. Future work will investigate integrating more advanced self-supervised techniques to further refine the transition between data domains.
Summary updated