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

Introduction

Scene text spotting—the dual task of locating and reading text in natural images—is a fundamental challenge in computer vision. Natural environments present significant hurdles, including diverse backgrounds, artistic fonts, and arbitrary shapes such as curved or vertical text. SwinTextSpotter v2 is a streamlined, end-to-end framework designed to overcome these challenges by fostering a deeper "synergy" between the detection and recognition branches of the model.

The Problem: Siloed Architectures

Traditional end-to-end models often treat detection and recognition as separate modules that share a backbone but operate in isolation. This leads to three primary issues:

  1. Error Propagation: Minor inaccuracies in the detector cause the recognizer to fail because it is provided with incorrect pixel data.
  2. Sub-optimal Features: Detectors are typically not optimized by recognition loss, meaning they do not "know" which features are most critical for reading.
  3. Complexity Overload: To handle non-linear text, previous models relied on expensive character-level annotations or complex geometric "rectification" modules (like Thin-Plate Splines) to unwarp text before reading it.

Methodology: Achieving Synergy

SwinTextSpotter v2 moves away from rigid pipelines toward an interactive architecture using three core innovations:

  • Recognition Alignment (RA): Instead of using fixed sampling points, RA employs a two-level attention mechanism (global and local). It dynamically adjusts its focus within a detected box based on actual text features, effectively handling arbitrary shapes without a separate rectification step.
  • Recognition Conversion (RC): This module allows recognition loss to back-propagate directly into the detector. It generates "tight masks" that suppress background noise, teaching the detector to prioritize pixels that contribute to readable text.
  • Box Selection Schedule (BSS): To improve efficiency, BSS uses a simple CNN-based proposal generator to feed high-quality initial boxes into the Transformer-based detector. This allowed the authors to reduce the number of refinement stages from six to three, significantly cutting the parameter count.
The transition from a dense sampling grid to character-focused points via Recognition Alignment and Conversion.

Experimental Results and Efficiency

The model was evaluated on a wide array of benchmarks, including Total-Text (arbitrary shapes), ICDAR 2015 (multi-oriented), and ReCTS (multilingual).

Key performance highlights include:

  • State-of-the-Art Accuracy: On the Total-Text "None" lexicon setting, it reached an H-mean of 78.6%, outperforming more complex architectures.
  • Robustness: On the RoIC13 dataset, which tests text at extreme angles (45° and 60°), the model outperformed the previous SOTA by up to 3.7%.
  • Efficiency Gains: Compared to its predecessor, v2 reduces parameters from 113.7M to 70.6M and doubles inference speed from 2.0 FPS to 4.0 FPS.
Comparison of sampling strategies and their direct impact on the resulting recognized text string.

Conclusion

SwinTextSpotter v2 proves that the ability to read text is the best possible signal for finding text. By letting the recognizer's feedback inform the detector, the model learns to ignore "text-like" background noise. While the model still faces challenges with extreme artistic fonts and very low-contrast environments, its dynamic sampling and efficient initialization set a new benchmark for the field. Future work will likely integrate more advanced visual-language capabilities to handle the most difficult edge cases.

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