TL;DR
This paper introduces IPAD, a novel scene text recognition (STR) network that balances accuracy and speed by combining an iterative, parallel decoding strategy with a discrete diffusion model. IPAD achieves state-of-the-art results on various benchmarks, particularly excelling in challenging Chinese text recognition tasks.
What Problem Does This Paper Address?
Scene text recognition (STR) is crucial for many applications, but it faces challenges due to diverse character styles, backgrounds, and complex linguistic structures. Existing methods often fall into two camps: autoregressive models that are accurate but slow, and non-autoregressive models that are fast but less accurate. While some approaches try to bridge this gap by incorporating language models, they can be computationally expensive and may struggle to integrate visual and linguistic information effectively. This paper aims to develop a model that achieves both high accuracy and fast inference speeds, particularly for complex scripts like Chinese.
Methods
IPAD employs a ViT-based encoder to extract visual features. The core innovation lies in its parallel and iterative decoder. Instead of processing text sequentially, the decoder generates predictions in parallel. The easy-first decoding strategy is key here: in each iteration, the model predicts the most confident characters first and then refines the remaining ones in subsequent iterations. This iterative process allows for context to be incorporated from previous predictions.
Crucially, IPAD integrates a discrete diffusion strategy during training. This treats STR as a conditional text generation task, where a noising process corrupts the text, and the decoder learns to denoise it back to the original text. This diffusion process helps the parallel decoder learn richer bidirectional contextual information, overcoming the limitations of purely non-autoregressive models. For inference, the denoising process is combined with the easy-first iterative decoding.
Datasets
The paper evaluates IPAD on a wide range of datasets:
- English Datasets:
- Synthetic: MJSynth (MJ), SynthText (ST)
- Real: Union14M-Benchmark, ArT, COCO-Text, Uber-Text, WOST, HOST, WordArt
- Public Benchmarks: IIIT5K-Words, SVT, ICDAR2013 (IC13), ICDAR2015 (IC15), SVT-Perspective (SVTP), CUTE80 (CUTE)
- Chinese Datasets:
- BCTR dataset (consisting of four subsets: scene, web, document, and handwriting)
- RCTW, ReCTS, LSVT, CTW, MTWI, Text Render, SCUT-HCCDoc
Key Insights and Ideas
- Iterative, Parallel Decoding is Key: By combining parallel processing with iterative refinement (easy-first), IPAD achieves a good balance between speed and accuracy, outperforming purely non-autoregressive methods.
- Diffusion for Contextual Understanding: Treating STR as a conditional text generation task and using discrete diffusion during training significantly enhances the model's ability to learn bidirectional contextual information, which is vital for complex scripts and challenging cases.
- ViT Encoder Advantage: Replacing the CNN encoder with a ViT encoder leads to more discriminative visual features and improved performance, especially when combined with the diffusion strategy.
- Chinese Text Recognition Boost: The proposed method shows significant improvements on Chinese datasets, highlighting its effectiveness in handling complex scripts and larger character sets.
- Flexibility in Iterations: The number of easy-first iterations can be adjusted to balance accuracy and inference speed, making IPAD adaptable to various application requirements.
Key Results
- State-of-the-Art Performance: IPAD achieves state-of-the-art or comparable accuracies on numerous English and Chinese benchmarks. For instance, it shows a 4.9% average improvement on the Union14M-Benchmark.
- Chinese Recognition Gains: IPAD demonstrates significant improvements on the BCTR dataset, with an average enhancement of 4.8% and notable gains on the scene and web subsets.
- Efficiency: IPAD offers a faster inference speed compared to autoregressive methods. For example, it is approximately 3 times faster than AR attention-based decoders while maintaining higher accuracy.
- Robustness: The model shows enhanced performance on occluded and irregular text images, demonstrating its ability to handle challenging visual conditions.
Limitations and Future Work
- Incomplete Datasets: The paper notes that models leveraging contextual information can struggle with incomplete words, sometimes filling in missing characters based on learned patterns.
- Future Work: The authors suggest exploring the potential of integrating large language models (LLMs) from NLP into their STR model.
Summary updated