Reading Scene Text with Attention Convolutional Sequence Modeling

Yunze Gao, Yingying Chen, Jinqiao Wang, Hanqing LuarXiv 2017

Abstract

Traditional scene text recognition models often rely on Recurrent Neural Networks (RNNs) to model character sequences, which introduces a significant sequential bottleneck during training and inference. This paper proposes an all-convolutional architecture that replaces recurrent layers with stacked convolutional layers for sequence modeling, integrated with a residual attention mechanism for feature encoding. The resulting "Attention Convolutional Network" achieves state-of-the-art performance on standard benchmarks while performing sequence modeling approximately 9 times faster than traditional Bidirectional Long Short-Term Memory (BLSTM) approaches.

Introduction

Reading text in natural scenes—such as street signs, billboards, and product labels—presents unique challenges compared to standard document OCR. Scene text is frequently subject to perspective distortion, low resolution, motion blur, and complex background interference.

The prevailing "CRNN" (Convolutional Recurrent Neural Network) framework addresses this by using a CNN for feature extraction followed by an RNN (typically an LSTM) for sequence modeling. However, the sequential nature of RNNs prevents full parallelization and can lead to gradient vanishing over long sequences. This research demonstrates that a fully convolutional approach can overcome these limitations without sacrificing accuracy.

Methodology

The proposed architecture consists of three primary components:

  1. Attention Feature Encoder: Utilizing a DenseNet-style backbone, this module incorporates Residual Attention to selectively focus on text-relevant features. This mechanism effectively suppresses background noise and artifacts, which is crucial for "in-the-wild" images.
  2. Convolutional Sequence Modeling: Instead of recurrent units, the model employs stacked convolutional layers to capture dependencies between characters. By using a wide receptive field, these layers can model long-term context in parallel, significantly increasing throughput.
  3. Connectionist Temporal Classification (CTC): The final stage uses a CTC layer to decode the feature maps into character strings, allowing for end-to-end training without requiring character-level segmentation.
The proposed Attention Convolutional Network architecture, featuring an attention-based encoder and convolutional sequence modeling.

Experimental Evaluation

The model was trained on a synthetic dataset of 8 million images and evaluated on several standard benchmarks:

  • IIIT5K: 3,000 images sourced from the web.
  • Street View Text (SVT): 647 images from Google Street View, known for high noise levels.
  • ICDAR 2003 (IC03) & 2013 (IC13): Standard datasets for scene text recognition.

Performance and Efficiency

The all-convolutional approach demonstrates a substantial efficiency gain. The sequence modeling component (CNN-4L) is roughly 9 times faster than a standard BLSTM-2L (3.5ms vs 31.7ms) and uses significantly fewer parameters (75.4M vs 141.5M).

Comparison of the proposed method against state-of-the-art scene text recognition techniques across multiple benchmarks.

Key Insights

  • Parallelism and Context: Stacked convolutions with appropriate kernel sizes provide a receptive field sufficient to capture character context. For instance, four layers of $5 \times 5$ convolutions can "see" 17 input elements, matching the contextual reach of many RNN configurations while allowing for parallel computation.
  • The Role of Attention: Residual attention acts as a learned spatial filter. In noisy datasets like SVT, where backgrounds are often cluttered, the attention mechanism significantly boosts performance by isolating the "ink" from the background.
  • Lexicon-Free Robustness: The model maintains high accuracy even without a predefined dictionary (lexicon-free mode), indicating a strong internal representation of character sequences.

Conclusion

By ditching the recurrent chain in favor of an all-convolutional design, this work provides a faster and more efficient path for scene text recognition. The integration of residual attention ensures that the model remains robust to the complexities of natural environments. Future research may explore applying these convolutional sequence modules to other domains currently dominated by RNNs, such as video processing or speech recognition.

Summary updated

BibTeX
@misc{gao2017reading,
  author = {Yunze Gao and Yingying Chen and Jinqiao Wang and Hanqing Lu},
  title = {{Reading Scene Text with Attention Convolutional Sequence Modeling}},
  year = {2017},
  eprint = {1709.04303},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.04303},
}
Figure