Introduction
Text spotting—the simultaneous detection and recognition of text in images—is a critical component of modern computer vision systems. However, the development of high-performing models is often hindered by the "supervision gap." Traditional fully-supervised methods require expensive spatial annotations, such as precise polygons, which can take up to 14 seconds per word to create. In contrast, weakly-supervised labels (transcriptions only) are significantly faster to produce (~4.6 seconds) but provide no direct spatial information.
This paper introduces TextTranSpotter (TTS), a transformer-based framework designed to bridge this gap by learning to spot text using only transcriptions, thereby drastically reducing annotation costs.
Methodology
TTS departs from the conventional "detect-then-recognize" pipeline by treating both tasks as a unified operation within a transformer architecture.
Unified Architecture
Built upon Deformable-DETR, TTS utilizes object queries to learn a single joint query embedding for each word. This embedding encapsulates both spatial and linguistic information. By using a shared representation, the recognition task provides a strong signal that aids the detection task, improving overall precision and recall.
Text Hungarian Loss
The core innovation is the Text Hungarian Loss. While standard transformers match predictions to ground truth based on spatial overlap (IoU), TTS incorporates a recognition cost. In weakly-supervised settings, matching is performed entirely based on text content. This allows the model to implicitly learn spatial localization by identifying which image regions correspond to specific words in the transcription list.
Experimental Setup
The model was pre-trained on the SynthText dataset and evaluated on several benchmarks, including Total-Text (curved text), ICDAR 2015 (incidental scene text), and COCO-Text. Robustness to orientation was tested using a rotated version of ICDAR 2013.
Results and Discussion
TTS demonstrates a superior balance between annotation efficiency and model performance.
Performance Benchmarks
- Full Supervision: $TTS_{poly}$ achieved a state-of-the-art F-score of 84.4 on Total-Text, outperforming models like ABCNet-V2.
- Weak Supervision: $TTS_{weak}$ reached an F-score of 80.1 on the same dataset. Remarkably, this weakly-supervised performance exceeds that of several older fully-supervised models.
- Efficiency: The weakly-supervised approach reduces annotation time by approximately 67% compared to polygon-based methods.
Key Insights
The authors found that training on real-world data with weak labels ($TTS_{weak}$) is more effective than training on synthetic data with perfect spatial labels ($TTS_{synthetic}$). This highlights the importance of real-world image distributions over precise spatial supervision. Furthermore, the transformer's attention mechanism naturally develops spatial awareness to satisfy the recognition loss, even without explicit bounding box coordinates.
Conclusion
TextTranSpotter (TTS) successfully demonstrates that high-quality text spotting can be achieved with significantly reduced human effort. By leveraging a unified transformer architecture and a novel text-based matching loss, TTS sets a new standard for weakly-supervised performance, making large-scale text spotting more accessible and cost-effective. Future work will focus on integrating the segmentation head into the joint optimization process to further refine polygon generation.
Summary updated