SwinTextSpotter v2: Towards Better Synergy for Scene Text Spotting

Mingxin Huang, Dezhi Peng, Hongliang Li, Zhenghao Peng, Chongyu Liu, Dahua Lin, Yuliang Liu, Xiang Bai, Lianwen Jin · DOI

TL;DR

SwinTextSpotter v2 is an end-to-end scene text spotting framework that achieves deep synergy between text detection and recognition. By introducing novel Recognition Conversion and Recognition Alignment modules alongside a Box Selection Schedule, it achieves state-of-the-art performance across multiple multilingual benchmarks while slashing parameter counts by 50% and doubling inference speed compared to its predecessor.

What Problem Does This Paper Address?

Scene text spotting—the combined task of locating (detecting) and reading (recognizing) text in natural images—is crucial for applications like autonomous driving and robotic navigation. While modern methods combine these two tasks into a single end-to-end network by sharing a feature backbone, they often treat them as isolated steps downstream.

This lack of deep interaction leads to three major issues: error accumulation, sub-optimal optimization, and feature misalignment during Region of Interest (RoI) sampling. Traditional text spotters are highly sensitive to how features are sampled. As shown in the paper's analysis, if a sampling grid uses too few points, it misses critical characters; if it uses too many, it floods the recognizer with distracting background noise. SwinTextSpotter v2 addresses this lack of task synergy and the resulting feature misalignment.

Visualizing the effects of feature misalignment and how Recognition Alignment dynamically resolves it.

Methods

SwinTextSpotter v2 introduces a highly integrated architecture built on a Swin-Transformer backbone and a query-based text detector. The key innovations include:

  • Box Selection Schedule (BSS): Instead of randomly initializing proposal boxes for the query-based detector, BSS generates high-quality proposal boxes from Feature Pyramid Network (FPN) features. This allows the detector to maintain peak accuracy with only 3 refinement stages instead of the original 6, drastically reducing computational overhead.
  • Recognition Alignment (RA): To solve the feature misalignment problem, RA uses a high-density sampling strategy (64 × 128 points per RoI) fed into a two-level attention alignment structure. It combines local window attention and global attention to dynamically align text features based on detection predictions, ensuring all characters are captured without geometric distortion.
  • Recognition Conversion (RC): This module bridges the tasks by using detection features to generate tight masks that suppress background noise in the recognition features. Crucially, RC makes the detection results differentiable with respect to the recognition loss, allowing recognition gradients to flow back and implicitly improve the detector.
  • Recognizer: Employs a two-level self-attention mechanism (TLSAM) and a Spatial Attention Module (SAM), completely eliminating the need for character-level annotations or explicit geometric rectification modules (like TPS or BezierAlign).

Datasets

The model was trained and evaluated on a comprehensive suite of public scene text benchmarks:

  • Multi-oriented Text: ICDAR 2015, RoIC13.
  • Arbitrarily-shaped Text: Total-Text, SCUT-CTW1500, Inverse-Text.
  • Multilingual Text: ReCTS (Chinese), VinText (Vietnamese).
  • Large-scale Pre-training/Scalability: Curved SynthText, ICDAR 2013, ICDAR 2017, ICDAR19 ArT, ICDAR19 LSVT, and TextOCR.

Key Insights and Ideas

  • True Synergy via Backpropagation: Recognition loss shouldn't just train the recognizer. Via the RC module, it acts as a powerful supervisory signal that refines the detector's localization capabilities, proving that reading text helps locate it more accurately.
  • Dynamic Sampling over Rigid Rectification: Traditional methods rely on complex geometric rectification (like Thin-Plate Splines or Bezier curves) to handle curved text. SwinTextSpotter v2 proves that dynamic, attention-driven feature alignment (RA) can handle arbitrary text shapes more elegantly without explicit geometric modeling.
  • Proposals Matter for Efficiency: Query-based detectors are historically slow to converge and computationally heavy. By feeding them high-quality proposals via the Box Selection Schedule (BSS), the network cuts the required refinement stages in half without losing performance.

Key Results

  • Efficiency Boost: The architecture achieves a 50% parameter reduction (from 113.7M down to 70.6M), halves detector FLOPs, and doubles inference speed from 2.0 to 4.0 FPS compared to the v1 conference version.
  • State-of-the-Art Performance:
    • Total-Text: Achieved an end-to-end H-mean of 78.6% (lexicon-free), which improved to 82.8% when incorporating TextOCR data.
  • ICDAR 2015: Reached 89.6% H-mean under the "Strong" lexicon evaluation.
  • SCUT-CTW1500: Achieved a 61.3% lexicon-free end-to-end H-mean, significantly outperforming complex alternatives.
  • Multilingual: Outperformed ABCNet v2 on the Chinese ReCTS dataset by 13.8% in 1-NED and set new SOTA marks on the Vietnamese VinText dataset (74.9% H-mean).

Limitations and Future Work

Despite its strong performance, SwinTextSpotter v2 still faces challenges in highly specific edge cases. The authors note that it occasionally struggles with horizontally arranged vertical text (a layout rare in standard training sets) and highly artistic fonts whose colors and styles closely blend into the background noise. Future research will likely target these complex layouts and stylistic variations to make end-to-end spotting even more robust.

Summary updated

BibTeX
@article{huang2025swintextspotter,
  author = {Mingxin Huang and Dezhi Peng and Hongliang Li and Zhenghao Peng and Chongyu Liu and Dahua Lin and Yuliang Liu and Xiang Bai and Lianwen Jin},
  title = {{SwinTextSpotter v2: Towards Better Synergy for Scene Text Spotting}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  doi = {10.1007/s11263-025-02428-0},
}
Figure