A Simple and Robust Convolutional-Attention Network for Irregular Text Recognition

Peng Wang, Lu Yang, Hui Li, Yuyan Deng, Chunhua Shen, Yanning ZhangarXiv 2019

Abstract

Recognizing text in natural scenes is a complex task due to variations in shape, orientation, and perspective. While sequence-to-sequence models have succeeded with regular text, irregular text remains a challenge. This paper introduces a non-recurrent, end-to-end network that replaces slow Recurrent Neural Networks (RNNs) with a parallelizable Convolutional-Attention architecture. By mapping 2D CNN features directly to a Transformer-inspired decoder, the proposed model achieves state-of-the-art accuracy on irregular text benchmarks while offering up to 10x faster training speeds compared to traditional RNN-based methods.

Introduction

Scene text recognition (STR) has evolved through several architectural paradigms. Early methods often relied on 1D sequence modeling, which collapses spatial information, or complex rectification networks to "straighten" distorted text. Others attempted character-level detection, which requires labor-intensive annotations.

Comparison of different scene text recognition architectures. The proposed model (f) utilizes a holistic representation and an attention-based decoder without recurrent modules.

The authors identify RNNs as a primary bottleneck in current STR pipelines. RNNs are inherently sequential, making them difficult to parallelize and slow to train. Furthermore, they often struggle to capture the complex spatial relationships inherent in curved or rotated text.

Proposed Method: Convolutional-Attention Network

The proposed architecture treats text recognition as a direct 2D-to-sequence problem, entirely removing recurrent modules.

The Encoder

The model employs a ResNet34 backbone to extract robust visual features. The encoder output is split into two distinct paths:

  • 2D Feature Map: A $1 \times 1$ convolution processes the feature map to serve as the key-value pairs for the decoder's attention mechanism.
  • Global Representation: Through a series of bottleneck modules and pooling layers, the model generates a 1D vector representing the "global context" of the image. This holistic view provides a structural "map" that guides the decoder's focus.

The Decoder

The decoder is inspired by the Transformer architecture, consisting of:

  • Masked Self-Attention: Models dependencies between previously predicted characters.
  • 2D Attention: Acts as the bridge to the encoder, allowing the model to attend to specific spatial regions in the 2D feature map.
  • Point-wise Feed-Forward Layers: Standard processing units for each decoding step.

Because the decoder does not rely on hidden states from previous steps during training, the entire sequence can be processed in parallel, leading to significant efficiency gains.

Experimental Results

The model was trained on synthetic datasets (Synth90K, SynthText, and SynAdd) and evaluated on standard benchmarks for both regular (e.g., IIIT5K, SVT) and irregular text (e.g., IC15, SVTP, CT80).

Performance and Efficiency

The Convolutional-Attention Network demonstrated superior performance, particularly on irregular text. It set new records on the SVTP-None and IC15-1811 datasets, improving accuracy by 2.1% and 3.0%, respectively. On regular text, it achieved a high accuracy of 94.2% on IIIT5K.

Beyond accuracy, the model's efficiency is its standout feature. It achieved a 1.7× to 10.6× speedup in training (backward pass) and a 1.4× to 9.0× speedup in inference (forward pass) compared to state-of-the-art RNN-based models like SAR or ASTER.

Discussion and Limitations

While the model is robust and fast, it faces challenges in extreme conditions. Performance can degrade with heavy occlusion or very low-resolution images where visual features are weak. Additionally, while curved text is handled well, strictly vertical text remains a challenge for the current 2D attention setup. Future improvements could involve multi-scale features or better handling of aspect ratios during image resizing.

Conclusion

This work demonstrates that RNNs are not strictly necessary for high-performance scene text recognition. By leveraging 2D spatial features and a parallelizable attention mechanism, the proposed model offers a simpler, faster, and more robust solution for reading text in the wild. The inclusion of a global representation proves vital for guiding 2D attention, especially in the presence of irregular layouts.

Summary updated

BibTeX
@misc{wang2019simple,
  author = {Peng Wang and Lu Yang and Hui Li and Yuyan Deng and Chunhua Shen and Yanning Zhang},
  title = {{A Simple and Robust Convolutional-Attention Network for Irregular Text Recognition}},
  year = {2019},
  eprint = {1904.01375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.01375},
}
Figure