TL;DR
This paper introduces PIMNet, a novel network for scene text recognition that aims to bridge the gap between accuracy and speed. By combining a parallel, iterative decoding strategy with a "mimicking" training approach, PIMNet achieves state-of-the-art accuracy while significantly reducing inference time compared to traditional autoregressive methods.
What Problem Does This Paper Address?
Scene text recognition, the task of identifying and transcribing text in images (think street signs, product labels), is crucial for many applications. Current leading methods often use an "autoregressive" approach, where text is generated character by character, similar to how humans might write. While this yields high accuracy, it's slow because each character's prediction depends on the previous one. On the other hand, "non-autoregressive" methods predict all characters simultaneously, making them much faster but often sacrificing accuracy due to a lack of contextual understanding between characters. This paper tackles the challenge of achieving both high accuracy and fast inference speed in scene text recognition.
Methods
PIMNet introduces several key innovations:
- Parallel, Iterative Decoding: Instead of generating text character-by-character, PIMNet uses a parallel decoder that predicts characters simultaneously. However, to improve accuracy, this parallel prediction is done iteratively. In each iteration, the model uses an "easy first" strategy, identifying the most confident character predictions and updating them. Less confident predictions are masked and re-predicted in subsequent iterations, allowing context to be gradually incorporated.
- Mimicking Learning: To further boost the accuracy of the parallel decoder, especially in early training stages, PIMNet employs a "mimicking" learning strategy. During training, an additional autoregressive decoder (the "teacher") is used alongside the parallel decoder (the "student"). The student decoder is trained to mimic the internal representations (specifically, the output of the Feed-Forward Network) of the teacher decoder. This provides richer supervision signals than just using the ground truth labels.
- Shared Backbone: The parallel and autoregressive decoders share a common backbone network for feature extraction. This allows for end-to-end training without pre-training the teacher model, improving training efficiency. During inference, the autoregressive teacher branch is removed, enabling fast, non-autoregressive predictions.
Datasets
The paper evaluates PIMNet on several standard scene text recognition benchmarks:
- IIIT5K-Words (IIIT5K): Contains 5000 images, primarily horizontal text.
- Street View Text (SVT): 647 cropped word images from street views, focusing on regular text.
- SVT-Perspective (SVTP): 645 word images from SVT, specifically for recognizing perspective text.
- ICDAR2013 (IC13): 1095 regular-text images.
- ICDAR2015 (IC15): 2077 cropped images with degraded quality.
- CUTE80 (CUTE): 288 word images, often curved, without a lexicon.
For training, the model is primarily trained on synthetic datasets: Synth90K (9 million synthetic images) and SynthText (ST). The authors also mention training with additional real data from public benchmarks for fair comparison.
Key Insights and Ideas
- Iterative Parallelism is Key: The core idea is that predicting characters in parallel is fast, but doing it iteratively allows the model to gradually build context and improve accuracy, striking a balance.
- Mimicking for Better Supervision: Using an autoregressive model as a "teacher" to guide the training of a non-autoregressive model is a clever way to inject richer, more discriminative information into the student's learning process. This goes beyond simple knowledge distillation.
- Flexibility in Iterations: The number of iterations can be adjusted. More iterations lead to higher accuracy but also longer inference times, allowing for a tunable trade-off. A single iteration offers near CTC-based speed, while 5 iterations (as used in the paper) provide a good balance.
- Mimicking Improves Discriminability: Visualizations show that mimicking learning leads to more distinct internal features, preventing duplicate or missing character predictions that can plague purely parallel decoders.
Key Results
PIMNet demonstrates strong performance across multiple benchmarks:
- Accuracy: PIMNet achieves state-of-the-art or comparable accuracies on most benchmarks. For instance, it shows significant improvements on SVT and IC15 compared to other non-autoregressive methods.
- Speed: The inference speed is significantly faster than traditional autoregressive methods. With 5 iterations, PIMNet is nearly twice as fast as 1D and 2D attention-based decoders, and its inference time with 1 iteration is comparable to CTC-based methods.
- Ablation Studies:
- Removing mimicking learning slightly reduces accuracy (e.g., 1.1% drop on SVT and IC15).
- The number of iterations directly impacts accuracy and speed, with 5 iterations chosen as a good balance.
- Post-processing for text length significantly improves performance.
Limitations and Future Work
- Iteration Number Trade-off: While PIMNet offers flexibility, choosing the optimal number of iterations involves a trade-off between accuracy and speed.
- Future Work: The authors suggest extending PIMNet with fewer parameters for a lighter framework. They also aim to explore semi-supervised, weakly-supervised, or self-supervised learning approaches to further reduce reliance on labeled data.
Summary updated