[Paper Review] RobustScanner: Dynamically Enhancing Positional Clues for Robust Text Recognition
RobustScanner proposes a dynamic fusion mechanism that enhances positional clues in attention-based scene text recognition to improve robustness on contextless text. By introducing a position-aware module and a learnable gate for adaptive blending of context and position information, it achieves state-of-the-art performance on regular and irregular benchmarks while maintaining strong accuracy on contextless sequences like random character strings.
The attention-based encoder-decoder framework has recently achieved impressive results for scene text recognition, and many variants have emerged with improvements in recognition quality. However, it performs poorly on contextless texts (e.g., random character sequences) which is unacceptable in most of real application scenarios. In this paper, we first deeply investigate the decoding process of the decoder. We empirically find that a representative character-level sequence decoder utilizes not only context information but also positional information. Contextual information, which the existing approaches heavily rely on, causes the problem of attention drift. To suppress such side-effect, we propose a novel position enhancement branch, and dynamically fuse its outputs with those of the decoder attention module for scene text recognition. Specifically, it contains a position aware module to enable the encoder to output feature vectors encoding their own spatial positions, and an attention module to estimate glimpses using the positional clue (i.e., the current decoding time step) only. The dynamic fusion is conducted for more robust feature via an element-wise gate mechanism. Theoretically, our proposed method, dubbed \emph{RobustScanner}, decodes individual characters with dynamic ratio between context and positional clues, and utilizes more positional ones when the decoding sequences with scarce context, and thus is robust and practical. Empirically, it has achieved new state-of-the-art results on popular regular and irregular text recognition benchmarks while without much performance drop on contextless benchmarks, validating its robustness in both contextual and contextless application scenarios.
Motivation & Objective
- To address the poor performance of attention-based scene text recognition models on contextless text, such as random character sequences.
- To investigate the underlying cause of misrecognition in contextless scenarios, particularly attention drift due to dominance of contextual over positional information.
- To design a method that enhances positional awareness in the decoder to improve robustness without sacrificing performance on contextual sequences.
- To develop a dynamic fusion mechanism that adaptively balances context and positional cues during decoding based on sequence context.
Proposed method
- Introduces a position enhancement branch that estimates glimpses using only the current decoding time step as positional clue, independent of context.
- Employs a position-aware module that injects spatial position encoding into encoder feature maps to strengthen positional representation.
- Uses an attention module in the position enhancement branch that computes glimpses based solely on positional clues (time step) and encoder features.
- Applies a learnable element-wise gate mechanism to dynamically fuse the glimpse vectors from the conventional decoder and the position enhancement branch at each decoding step.
- The gate learns a dynamic ratio between context and positional information, favoring position when context is scarce.
- Trains the model end-to-end with cross-entropy loss on character-level recognition, optimizing for both accuracy and robustness.
Experimental results
Research questions
- RQ1Why do attention-based scene text recognition models fail on contextless text sequences despite strong performance on contextual benchmarks?
- RQ2To what extent do query feature vectors in the decoder encode positional information, and how does this change over decoding time steps?
- RQ3Can enhancing positional clues through a dedicated branch improve recognition robustness on contextless sequences without degrading performance on contextual ones?
- RQ4How does dynamic fusion of context and positional clues compare to static fusion methods like addition or concatenation?
Key findings
- RobustScanner achieves state-of-the-art accuracy of 95.3% on IIIT-5K, 88.1% on SVT, 94.8% on ICDAR 2013, 77.1% on ICDAR 2015, 79.5% on SVTP, and 90.3% on CUTE 80.
- On the synthesized RandText benchmark of random character sequences, RobustScanner achieves 83.4% accuracy, significantly outperforming SAR (59.6%) and other baselines.
- The dynamically-fusing module outperforms static fusion methods (addition and concatenation) across all benchmarks, with the highest gains on contextually challenging datasets.
- Ablation studies confirm that the position-aware module is essential, as replacing it with sine-cosine positional encoding leads to a 3-5% drop in accuracy on key benchmarks.
- On the license plate recognition task, RobustScanner achieves 55.7% accuracy, surpassing SAR (29.9%), DAN (51.1%), and Wang et al. (46.4%) on a challenging, out-of-distribution test set.
- The method maintains strong performance on contextless data while achieving SOTA on standard benchmarks, validating its robustness in both contextual and contextless scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.