SVTRv2: CTC Beats Encoder-Decoder Models in Scene Text Recognition

Yongkun Du, Zhineng Chen, Hongtao Xie, Caiyan Jia, Yu-Gang Jiang

TL;DR

This paper introduces SVTRv2, a novel Connectionist Temporal Classification (CTC)-based scene text recognition (STR) model that significantly outperforms traditional encoder-decoder (EDTR) models in accuracy and speed. SVTRv2 achieves this by introducing a multi-size resizing strategy to mitigate text distortion and a semantic guidance module to incorporate linguistic context, effectively addressing the limitations of existing CTC methods.

What Problem Does This Paper Address?

Scene text recognition (STR) is challenging due to the complex nature of text in natural images, often exhibiting distortions, irregular layouts, and artistic fonts. While encoder-decoder (EDTR) models have shown strong performance by leveraging multi-modal cues (visual, linguistic, positional), they are typically slower. Traditional CTC-based methods, like the original SVTR, offer fast inference but struggle with text irregularity and linguistic context, leading to lower accuracy. This gap highlights the need for a CTC-based approach that can match EDTR performance without sacrificing speed.

Methods

SVTRv2 builds upon the CTC framework by introducing several key innovations:

  • Multi-Size Resizing (MSR): Instead of resizing text instances to a single fixed size, MSR resizes them to one of four predefined sizes based on their aspect ratio. This strategy minimizes text distortion, preserving visual feature quality and improving recognition accuracy, especially for irregular text.
  • Feature Rearrangement Module (FRM): To address the alignment puzzle in CTCs caused by rotated or irregularly arranged text, FRM rearranges visual features. It uses a two-step process (horizontal then vertical rearrangement) to map 2D visual features into a sequence that aligns with the text's reading order, thereby improving CTC alignment.
  • Semantic Guidance Module (SGM): To inject linguistic context into the visual features, SGM leverages surrounding characters (left and right context) to guide the visual model. This module is used during training to enhance the model's understanding of linguistic patterns. Crucially, SGM can be omitted during inference, preserving the model's speed advantage.

Datasets

The paper evaluates SVTRv2 on a variety of benchmarks:

  • Common Benchmarks (Com): Six datasets covering regular and irregular text: ICDAR 2013 (IC13), Street View Text (SVT), IIIT5K-Words (IIIT5K), ICDAR 2015 (IC15), Street View Text-Perspective (SVTP), and CUTE80.
  • Union14M-Benchmark (U14M): A recent benchmark with seven challenging subsets (Curve, Multi-Oriented, Artistic, Contextless, Salient, Multi-Words, General).
  • Occluded Scene Text (OST): A dataset with weak and heavy occlusion subsets.
  • Long Text Benchmark (LTB): Contains text samples with lengths from 25 to 35 characters.
  • Chinese Text Recognition: The test set of BCTR.

The authors also introduce U14M-Filter, a filtered version of the Union14M-L dataset, to address data leakage issues present in previous work. They also systematically re-trained 24 mainstream STR methods on this filtered dataset to establish a reliable benchmark.

Key Insights and Ideas

  • Fixed-size resizing is detrimental: The paper strongly argues that forcing all text instances into a single fixed size before feature extraction introduces significant distortion, harming recognition accuracy. MSR offers a more adaptive and effective solution.
  • Linguistic context is crucial for CTC: While CTC models are fast, their lack of linguistic understanding is a major bottleneck. SGM demonstrates that integrating this context, even during training, can significantly boost performance without compromising inference speed.
  • FRM elegantly solves CTC alignment: The alignment problem in CTCs for irregular text is a long-standing issue. FRM's approach to rearranging features to match reading order is a clever way to overcome this without resorting to complex rectification modules.
  • CTC can indeed beat EDTRs: The paper provides compelling evidence that with the right architectural enhancements (MSR, FRM, SGM), CTC-based models can surpass the accuracy of more complex EDTRs, offering a superior speed-accuracy trade-off.

Key Results

SVTRv2 consistently outperforms popular EDTRs across various challenging scenarios, including irregular text, occluded text, and long text.

  • Accuracy: SVTRv2 achieves state-of-the-art results on multiple benchmarks, often surpassing EDTRs. For instance, on the U14M benchmark, SVTRv2-B shows a 0.97% accuracy improvement over MAERec while being 8x faster. On OST, it achieves comparable accuracy to PARSeq, which uses an advanced language model.
  • Speed: SVTRv2 maintains a significant speed advantage over EDTRs. For example, it is 8x faster than MAERec and 10% faster than CPPD, while achieving higher accuracy.
  • Efficiency: Even with pretraining, SVTRv2 achieves top performance with only 14% of the parameters of comparable EDTRs like CLIP4STR and runs 10x faster.
  • Module Effectiveness: MSR provides significant accuracy gains (e.g., 15.3% on R1 and 5.2% on R2 for irregular text). FRM improves accuracy by up to 2.46% on MO text. SGM offers notable gains, especially on OST (5.11%), highlighting its effectiveness in handling missing characters.

Limitations and Future Work

  • Pretraining: While SVTRv2 performs well without pretraining, the paper shows that pretraining further enhances its performance, especially for challenging scenarios. Future work could explore more advanced pretraining strategies.
  • Dataset Leakage: The introduction of U14M-Filter addresses data leakage issues, suggesting that previous benchmark results might need re-evaluation. This highlights the importance of careful dataset curation for fair comparisons.
  • Adaptability: The paper demonstrates SVTRv2's adaptability to different visual models and languages (Chinese), suggesting its broad applicability. Further exploration into its performance on even more diverse languages and text styles could be beneficial.

Summary updated

BibTeX
@inproceedings{du2025svtrv,
  author = {Yongkun Du and Zhineng Chen and Hongtao Xie and Caiyan Jia and Yu-Gang Jiang},
  title = {{SVTRv2: CTC Beats Encoder-Decoder Models in Scene Text Recognition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure