Skip to main content
QUICK REVIEW

[Paper Review] NRTR: A No-Recurrence Sequence-to-Sequence Model For Scene Text Recognition

Fenfen Sheng, Zhineng Chen|arXiv (Cornell University)|Jun 4, 2018
Handwritten Text Recognition TechniquesComputer Science39 references19 citations
TL;DR

NRTR proposes a no-recurrence, sequence-to-sequence scene text recognizer that replaces RNNs and CNNs with self-attention mechanisms in both encoder and decoder, enabling faster training and competitive accuracy. It achieves state-of-the-art performance on standard benchmarks with at least 8× faster training than prior models, thanks to full parallelization and a novel modality-transform block for 2D-to-1D feature mapping.

ABSTRACT

Scene text recognition has attracted a great many researches due to its importance to various applications. Existing methods mainly adopt recurrence or convolution based networks. Though have obtained good performance, these methods still suffer from two limitations: slow training speed due to the internal recurrence of RNNs, and high complexity due to stacked convolutional layers for long-term feature extraction. This paper, for the first time, proposes a no-recurrence sequence-to-sequence text recognizer, named NRTR, that dispenses with recurrences and convolutions entirely. NRTR follows the encoder-decoder paradigm, where the encoder uses stacked self-attention to extract image features, and the decoder applies stacked self-attention to recognize texts based on encoder output. NRTR relies solely on self-attention mechanism thus could be trained with more parallelization and less complexity. Considering scene image has large variation in text and background, we further design a modality-transform block to effectively transform 2D input images to 1D sequences, combined with the encoder to extract more discriminative features. NRTR achieves state-of-the-art or highly competitive performance on both regular and irregular benchmarks, while requires only a small fraction of training time compared to the best model from the literature (at least 8 times faster).

Motivation & Objective

  • To address the slow training speed of RNN-based scene text recognizers due to sequential computation.
  • To overcome the high complexity and limited long-range dependency learning in CNN-based models.
  • To propose a sequence-to-sequence framework free of recurrence and convolution, relying solely on self-attention for improved parallelization.
  • To design a modality-transform block that effectively converts 2D scene images into 1D sequences for better feature extraction.
  • To achieve state-of-the-art accuracy with significantly reduced training time on both regular and irregular scene text benchmarks.

Proposed method

  • NRTR adopts an encoder-decoder architecture where both components use stacked self-attention mechanisms instead of RNNs or CNNs.
  • The encoder processes flattened image patches via multi-head self-attention to produce contextualized feature representations.
  • The decoder generates character sequences autoregressively using masked self-attention to attend to previously generated tokens.
  • A novel modality-transform block is introduced to convert 2D input images into 1D sequences before the encoder, enhancing feature discriminability.
  • The model is trained end-to-end using cross-entropy loss without any rectification or lexicon constraints.
  • Self-attention allows global dependency modeling between all input and output positions simultaneously, reducing computational complexity compared to RNNs and CNNs.

Experimental results

Research questions

  • RQ1Can a sequence-to-sequence scene text recognizer be built without recurrence or convolution, relying only on self-attention?
  • RQ2How does self-attention-based feature learning compare to RNNs and CNNs in terms of accuracy and training speed for scene text recognition?
  • RQ3Can a modality-transform block effectively bridge the gap between 2D image inputs and 1D sequence modeling in scene text recognition?
  • RQ4Does a no-recurrence model maintain robustness on irregular and challenging scene text images?
  • RQ5What is the trade-off between model complexity, training speed, and recognition accuracy in self-attention-based scene text recognition?

Key findings

  • NRTR achieves state-of-the-art accuracy on all regular benchmarks, including 99.2% on IIIT5K, 98.4% on SVT, and 98.9% on ICDAR2013, without using lexicon or rectification modules.
  • On irregular benchmarks, NRTR achieves 94.9% on SVT-P, 86.6% on ICDAR2015, and 80.9% on CUTE80, outperforming prior methods in the lexicon-free setting.
  • NRTR trains in just 5.0 hours per epoch on a single Titan X GPU, which is at least 8× faster than the best prior model (Bai et al. [1]) that required 41 hours per epoch.
  • The model achieves inference speed of ~0.03 seconds per image, significantly faster than 0.11s (Bai et al. [1]) and 0.2s (Shi et al. [6]).
  • The modality-transform block is critical for performance, as it enables effective 2D-to-1D transformation that enhances feature representation and model accuracy.
  • NRTR demonstrates strong generalization on challenging cases such as low-resolution, curved, and occluded texts, with failure modes primarily due to severe occlusion or visual ambiguity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.