Overview
Deep learning-based scene text detectors are data-hungry. While we can generate millions of synthetic images with perfect labels for free, models trained solely on this "fake" data often fail when deployed in the "wild." This failure is due to domain shift: real-world images have far more diversity in lighting, fonts, orientations, and complex backgrounds than synthetic datasets. Manually labeling real-world images to bridge this gap is prohibitively expensive.
This paper introduces a novel unsupervised domain adaptation (UDA) framework that allows scene text detectors trained on synthetic data to perform significantly better on real-world images. By combining Adversarial Text Instance Alignment (ATA) to create domain-invariant features and Text Self-Training (TST) to refine noisy pseudo-labels, the authors achieve up to a 10% improvement in detection accuracy without requiring any manual labels for the target domain.
Methodology
The authors build their approach on top of the popular EAST (Efficient and Accurate Scene Text) detector and introduce two primary components:
1. Adversarial Text Instance Alignment (ATA)
To make the neural network "blind" to whether an image is synthetic or real, the authors add a domain classifier. Using a Gradient Reversal Layer (GRL), the network is trained in an adversarial fashion: the feature extractor tries to fool the domain classifier, while the classifier tries to identify the data source. This forces the backbone to learn features that are common to both domains (domain-invariant).
2. Text Self-Training (TST)
Self-training involves using the model to predict labels for the unlabeled real data (pseudo-labels) and then re-training on those predictions. However, pseudo-labels are often noisy. TST addresses two specific issues:
- Reducing False Negatives (FNs): The authors use a weak supervision strategy where they ignore background pixels with high confidence scores during training, assuming these are likely "missed" text instances.
- Reducing False Positives (FPs): They introduce a Stroke Width Score (SWS). Based on the classic Stroke Width Transform (SWT), this metric assumes that real text has a relatively consistent stroke width. If a predicted box has high variance in stroke width, it is flagged as a false positive (e.g., a fence or a repetitive pattern) and filtered out.
Datasets and Evaluation
The study utilizes several standard benchmarks to evaluate the synthetic-to-real transfer:
- Source Domains (Synthetic): SynthText (~800k images) and VISD (Verisimilar Image Synthesis Dataset, 10k images).
- Target Domains (Real-world): ICDAR2015 (incidental scene text captured via Google Glass) and ICDAR2013 (focused scene text).
Key Results
The proposed method consistently outperformed the baseline (training on synthetic data only) across multiple benchmarks:
- SynthText → ICDAR2015: The F-score jumped from 60.5% to 68.0% (a 7.5% absolute improvement).
- VISD → ICDAR2015: The F-score improved from 64.5% to 73.8% (a 9.3% absolute improvement).
- SynthText → ICDAR2013: Achieved an 11.3% improvement over the baseline.
Qualitative results show that the model becomes much more robust to "text-like" background textures (like windows or grates) and is better at detecting small or blurry text that it previously missed.
Conclusion
One of the most elegant ideas in the paper is using the Stroke Width Transform (SWT)—a classic computer vision technique—as a quality control mechanism for pseudo-labels. It provides a geometric constraint that neural networks often lack. While the method was primarily evaluated using the EAST detector, the principles of combining adversarial alignment with geometric-based self-training are generalizable. Future work may explore more complex domain alignment techniques and extension to even more diverse "wild" datasets.
Summary updated