Introduction
SwinTextSpotter is a novel end-to-end scene text spotting framework designed to address the inherent challenges of natural scene text, such as diverse fonts, arbitrary orientations, and complex backgrounds. By tightly coupling text detection and recognition through a unique Recognition Conversion (RC) module, the framework allows recognition loss to explicitly guide text localization. This synergy effectively suppresses background noise and eliminates the need for complex rectification modules or expensive character-level annotations.
The Challenge of Scene Text Spotting
Traditional scene text spotting often relies on "two-stage" pipelines where a detector first identifies a bounding box and a recognizer then processes the cropped image. This approach frequently suffers from error accumulation: imprecise detection leads to failed recognition. While modern end-to-end models share a backbone to improve efficiency, they often lack deep interaction between the two tasks. Detectors remain prone to distraction by non-textual background noise, and the recognition process rarely provides feedback to refine detection boundaries.
The SwinTextSpotter Architecture
SwinTextSpotter introduces a unified Transformer-based architecture composed of several innovative components:
- Dilated Swin-Transformer Backbone: The standard Swin-Transformer is modified with dilated convolutions to increase the receptive field. This helps the model capture long-range dependencies between characters and words, which is crucial for understanding text lines.
- Query-Based Detector: Inspired by Sparse R-CNN, the model utilizes learnable proposal boxes and features that are iteratively refined across multiple stages.
- Recognition Conversion (RC): Acting as the bridge between tasks, the RC module generates spatial masks from detection features. These masks are applied to recognition features to suppress noise and, crucially, make the detection process differentiable with respect to the recognition loss.
- Bi-level Self-Attention (TLSAM): The recognizer employs a two-level attention mechanism to capture both local details and global context, allowing it to handle arbitrarily shaped text without dedicated rectification modules like TPS.
Key Insights: Recognition as a Supervisor
The core innovation of SwinTextSpotter is the use of recognition loss as a supervisory signal for localization. By back-propagating recognition errors through the RC module, the detector learns to produce tighter, more accurate boundaries that exclude non-textual noise. This synergy simplifies the overall system; by improving feature interaction, the authors demonstrate that complex components like Spatial Transformer Networks (STN) or Thin-Plate Spline (TPS) rectification—previously thought necessary for curved text—can be omitted.
Experimental Results
SwinTextSpotter achieves state-of-the-art performance across several challenging benchmarks:
- Total-Text: Reached an H-mean of 88.0% for detection and 74.3% for end-to-end spotting (lexicon-free), outperforming previous leaders like ABCNet v2.
- SCUT-CTW1500: Achieved a significant jump in detection performance with an 88.0% H-mean.
- ReCTS: Demonstrated strong multi-lingual capabilities, outperforming ABCNet v2 by 9.8% in 1-NED (Normalized Edit Distance).
- Ablation Studies: Removing the RC module resulted in a performance drop from 66.9% to 63.4% on Total-Text, confirming its critical role in the system's success.
Limitations and Future Work
While highly effective, the model still faces challenges with long, arbitrarily shaped text. Recognizing extreme aspect ratios requires high-resolution feature maps, which can cause attention maps to expand and lead to sequence mismatches. Future research will focus on developing more efficient attention mechanisms for long sequences and incorporating more diverse training data to improve generalization for extreme text shapes.
Summary updated