Abstract
Scene text recognition (STR) is still a hot research topic in computer vision field due to its various applications. Existing works mainly focus on learning a general model with a huge number of synthetic text images to recognize unconstrained scene texts, and have achieved substantial progress. However, these methods are not quite applicable in many real-world scenarios where 1) high recognition accuracy is required, while 2) labeled samples are lacked. To tackle this challenging problem, this paper proposes a few-shot adversarial sequence domain adaptation (FASDA) approach to build sequence adaptation between the synthetic source domain and a specific target domain. This is done by simultaneously learning each character's feature representation with an attention mechanism and establishing the corresponding character-level latent subspace with adversarial learning. Our approach achieves sequence-level adaptation with even a small number of labeled samples in the target domain.
Introduction: The Challenge of Real-World STR
While deep learning models trained on millions of synthetic images have mastered general Scene Text Recognition (STR), they often struggle in specialized real-world applications such as reading industrial batch numbers, container IDs, or license plates. These scenarios present two primary hurdles:
- Data Scarcity: Real-world industrial or niche applications often lack the thousands of labeled images required for traditional training or fine-tuning.
- Category Space Explosion: Unlike standard image classification with fixed classes, text is a sequence. The number of possible word combinations grows exponentially with string length, making standard domain adaptation—which attempts to align global image features—mathematically impractical.
To address these issues, the authors introduce FASDA (Few-shot Adversarial Sequence Domain Adaptation), a framework designed to bridge the gap between massive synthetic datasets and small, specialized real-world datasets using as few as 10 to 100 labeled target samples.
Methodology: FASDA Framework
The core innovation of FASDA is decomposing the sequence-level adaptation problem into a character-level one. By adapting at the character level, the model learns the domain's "style" (lighting, font, blur) independently of specific word combinations.
Key Components
- Weakly-supervised Character Representation: The model uses an attention mechanism to implicitly "slice" the text image into individual character features ($CR_t$), avoiding the need for expensive character-level bounding boxes.
- Inclusive Attending Process: To stabilize adversarial learning, the authors propose a smoothing function that widens the attention window. This ensures that the captured features are robust and less sensitive to "attention drift."
- Few-shot Adversarial Learning: A Multi-Class Discriminator (MCD) is employed alongside a specific sampling strategy. It categorizes pairs of character features from source and target domains into four groups (same/different class, same/different domain). The generator (feature extractor) is trained to confuse this discriminator, forcing real-world character features to align with synthetic ones.
- Contextual Enhancement ($CR^+$): An LSTM encodes lexical dependencies between characters during adaptation to preserve the contextual "flow" of words.
Experimental Results
The authors evaluated FASDA using 8 million synthetic source images and various target benchmarks, including public datasets (SVT, ICDAR) and four specialized real-world datasets (License plates, Container numbers, Batch numbers, and Assembly line labels).
Performance Highlights
- Superiority over Fine-tuning: On the SVT benchmark with limited samples, FASDA outperformed standard fine-tuning significantly (29.4% vs 23.9% accuracy).
- Real-World Robustness: In extreme data-scarce scenarios (e.g., 100 samples), FASDA achieved usable results where fine-tuning often failed completely. For the "Batch Number" dataset, FASDA reached 11.9% accuracy compared to just 1.8% for fine-tuning.
- The "Sweet Spot": The benefit of FASDA is most pronounced when target data is scarce (10–1,000 samples). Beyond 1,000 samples, the performance gap narrows as traditional fine-tuning becomes more viable.
Conclusion and Future Work
FASDA demonstrates that character-level adversarial adaptation is a powerful alternative to massive data collection for specialized STR tasks. While highly effective, the model faces challenges with irregular or curved text where the attention mechanism may struggle. Future work will focus on optimizing sequence-level adaptation and improving robustness against high geometric distortions in real-world text.
Summary updated