Abstract
Scene text recognition (STR) is a critical task in computer vision, increasingly relying on linguistic knowledge to improve accuracy. However, traditional language-augmented models often require complex, separate language models (LMs) that increase computational overhead. This paper introduces MGP-STR, a conceptually simple yet powerful vision-based model built on the Vision Transformer (ViT) architecture. MGP-STR incorporates a novel Multi-Granularity Prediction strategy that implicitly injects linguistic information by simultaneously predicting text at character and subword levels (BPE and WordPiece). This approach eliminates the need for an independent LM while achieving a new state-of-the-art average recognition accuracy of 93.35% on standard benchmarks.
Introduction
Scene Text Recognition (STR) involves reading text from cropped images in natural environments. It remains a challenging problem due to environmental factors like motion blur, low resolution, and the prevalence of irregular artistic fonts.
While early STR methods were purely vision-based, recent trends have shifted toward "language-augmented" models. These models use linguistic context (e.g., character sequences) to correct visual misinterpretations. However, the reliance on separate, bulky language models often leads to slower inference speeds due to iterative refinement processes. MGP-STR addresses this by embedding linguistic intelligence directly into the vision model's output space through multi-granularity representations.
Methodology
Vision Transformer Backbone and A³ Module
Unlike traditional CNN-based architectures, MGP-STR utilizes a standard Vision Transformer (ViT) to extract features from image patches. To bridge the gap between ViT's global attention and the spatial specificity required for text, the authors introduce the Adaptive Addressing and Aggregation (A³) module. This module learns to adaptively select and aggregate the most relevant patch tokens for each specific character or subword position in the output sequence.
Multi-Granularity Prediction (MGP)
The core innovation of MGP-STR is the simultaneous prediction of text at three distinct levels of granularity:
- Character Level: The conventional approach, predicting individual characters.
- Subword Level (BPE): Utilizing Byte-Pair Encoding to capture common character clusters.
- Subword Level (WordPiece): Utilizing the WordPiece algorithm, common in NLP models like BERT.
By training on these multiple levels, the model implicitly learns the statistical structure of language. For instance, if the character head misidentifies a blurred 'o' as a 'c', the subword heads (BPE or WordPiece) might correctly identify the 'co' prefix based on learned linguistic patterns, allowing the model to self-correct during the final fusion stage.
Fusion Strategy
During inference, MGP-STR generates predictions from all three heads. A simple yet effective confidence-based fusion strategy is employed: the model selects the output string with the highest cumulative probability across the three prediction streams.
Key Results and Insights
Performance and Efficiency
MGP-STR sets a new benchmark in STR performance, achieving an average accuracy of 93.35% across six standard benchmarks (including IIIT, SVT, IC13, IC15, SVTP, and CUTE). This outperforms previous state-of-the-art models like ABINet by 0.7%.
Crucially, MGP-STR is significantly more efficient than models using explicit language components. The "Base" version of MGP-STR requires only 12.3ms per image, roughly twice as fast as the large version of ABINet (26.8ms), because it avoids the iterative refinement cycles typical of standalone LMs.
Implicit Language Modeling
The success of MGP-STR demonstrates that explicit, separate Transformer-based language models are not strictly necessary for high-performance STR. By forcing the vision backbone to represent subword combinations, the model captures linguistic context implicitly within its visual feature space. This is particularly effective for "irregular" text—such as curved or perspective-distorted signs—where visual cues alone are often insufficient.
Conclusion
MGP-STR provides a streamlined and powerful framework for scene text recognition. By leveraging the spatial attention of Vision Transformers and the linguistic depth of multi-granularity subword prediction, it achieves superior accuracy and speed. Future work may involve extending this multi-granularity approach to handwritten text and non-English scripts, further broadening the utility of implicit linguistic modeling in computer vision.
Summary updated