Abstract
Scene Text Recognition (STR) often relies on separate, complex language models to refine visual predictions, leading to increased latency and computational overhead. We present MGP-STR, a novel framework that achieves state-of-the-art results by combining a Vision Transformer (ViT) backbone with a "Multi-Granularity Prediction" strategy. By simultaneously predicting text at character, subword (BPE), and WordPiece levels, the model implicitly learns linguistic rules without requiring an external language model or iterative refinement. MGP-STR achieves an average accuracy of 93.35% across six standard benchmarks while maintaining high inference speed.
Introduction
Reading text from real-world images—such as street signs, product labels, or advertisements—remains a significant challenge due to motion blur, low resolution, and diverse artistic fonts. To address these issues, the current state-of-the-art often employs "language-augmented" models. These typically consist of a vision module paired with an independent language model (LM) that acts as a spell-checker. However, these separate LMs add significant complexity, often requiring multiple iterative passes to refine results, which slows down inference.
MGP-STR is designed to capture the benefits of linguistic knowledge without the overhead of a dedicated LM. As shown in the figure above, while traditional methods rely on single-granularity (character) prediction, MGP-STR leverages multiple tokenization scales to improve robustness.
Methods
The MGP-STR architecture consists of three primary components that work in tandem to extract features and generate multi-scale predictions:
- Vision Transformer (ViT) Backbone: The model utilizes a standard ViT (specifically DeiT) to extract global features. Unlike traditional CNNs that focus on local pixel neighborhoods, the ViT uses self-attention to understand the global relationships between different parts of the image.
- Adaptive Addressing and Aggregation ($A^3$) Module: Standard ViTs produce a single "class" token. To handle sequential text, the $A^3$ module employs a spatial attention mechanism to "address" specific image regions and "aggregate" them into tokens corresponding to specific character or subword positions.
- Multi-Granularity Prediction (MGP): This is the core innovation. The model features three parallel heads that predict text at different scales:
- Character level: The standard individual letter approach.
- BPE (Byte-Pair Encoding): Breaks words into frequent chunks (e.g., "methodist" becomes "method" + "ist").
- WordPiece: A subword tokenization that captures larger segments or entire words.
During inference, the model generates predictions from all three heads in a single pass. A fusion strategy then selects the final output by picking the result with the highest cumulative confidence.
Key Insights and Results
By forcing the model to predict subwords and whole words, the authors effectively "trick" the vision model into learning statistical language patterns implicitly. For instance, the model learns that 'q' is typically followed by 'u' because it must correctly predict the subword 'qu'.
Performance and Efficiency
- State-of-the-Art Accuracy: MGP-STR achieved an average accuracy of 93.35% across six benchmarks (including IIIT5K, SVT, and IC15), outperforming previous leaders like ABINet (92.6%).
- Speed: MGP-STR is a "single-shot" model. It processes images in approximately 12.3ms, significantly faster than iterative models like ABINet, which require 24.3ms - 26.8ms.
- Vision-Only Strength: Even without the subword heads, the pure vision component of MGP-STR outperformed many existing models that utilize explicit language models, demonstrating the power of the $A^3$ module and ViT backbone.
Conclusion
MGP-STR demonstrates that explicit, separate language models are not a prerequisite for high-performance scene text recognition. By integrating multi-granularity prediction directly into the vision pipeline, the framework achieves superior accuracy and efficiency. Future work may involve extending this multi-granularity approach to broader domains such as general document analysis or handwritten text recognition.
Summary updated