Skip to main content
QUICK REVIEW

[Paper Review] Scene Text Recognition via Transformer

Xinjie Feng, Hongxun Yao|arXiv (Cornell University)|Mar 18, 2020
Handwritten Text Recognition TechniquesComputer Science6 citations
TL;DR

This paper proposes a transformer-based scene text recognition method that bypasses image rectification by directly using convolutional feature maps as input to the transformer encoder, leveraging spatial attention to handle arbitrary-shaped text. It achieves 99.3% accuracy on the CUTE dataset—surpassing the previous SOTA of 89.6%—demonstrating that rectification is unnecessary and attention mechanisms alone can enable state-of-the-art performance.

ABSTRACT

Scene text recognition with arbitrary shape is very challenging due to large variations in text shapes, fonts, colors, backgrounds, etc. Most state-of-the-art algorithms rectify the input image into the normalized image, then treat the recognition as a sequence prediction task. The bottleneck of such methods is the rectification, which will cause errors due to distortion perspective. In this paper, we find that the rectification is completely unnecessary. What all we need is the spatial attention. We therefore propose a simple but extremely effective scene text recognition method based on transformer [50]. Different from previous transformer based models [56,34], which just use the decoder of the transformer to decode the convolutional attention, the proposed method use a convolutional feature maps as word embedding input into transformer. In such a way, our method is able to make full use of the powerful attention mechanism of the transformer. Extensive experimental results show that the proposed method significantly outperforms state-of-the-art methods by a very large margin on both regular and irregular text datasets. On one of the most challenging CUTE dataset whose state-of-the-art prediction accuracy is 89.6%, our method achieves 99.3%, which is a pretty surprising result. We will release our source code and believe that our method will be a new benchmark of scene text recognition with arbitrary shapes.

Motivation & Objective

  • To address the challenge of recognizing scene text with arbitrary shapes, fonts, and backgrounds.
  • To eliminate the need for image rectification, which introduces distortion and error in existing methods.
  • To explore whether spatial attention in transformers can replace rectification for robust text recognition.
  • To establish a new benchmark for irregular and arbitrary-shaped scene text recognition.

Proposed method

  • The method uses convolutional feature maps as input embeddings directly into the transformer encoder, bypassing the need for rectified input images.
  • It leverages the self-attention mechanism of the transformer to model spatial relationships across irregular text layouts.
  • Unlike prior transformer models that use only the decoder for sequence generation, this approach utilizes the full encoder-decoder structure with feature map inputs.
  • The model treats text recognition as a sequence prediction task using the decoder, conditioned on the attended feature representations.
  • The architecture avoids perspective distortion by not performing any geometric normalization or rectification.
  • The method is end-to-end trainable and relies solely on attention to capture spatial and sequential dependencies.

Experimental results

Research questions

  • RQ1Can scene text recognition be effectively performed without image rectification using only attention mechanisms?
  • RQ2How does a transformer-based model that uses raw feature maps compare to rectification-based SOTA methods on irregular text?
  • RQ3What is the performance gain of using full transformer encoder-decoder with feature map inputs over prior attention-based approaches?
  • RQ4Can the proposed method generalize across both regular and irregular text layouts with high accuracy?
  • RQ5Does the absence of rectification lead to a significant improvement in recognition accuracy on challenging benchmarks?

Key findings

  • The proposed method achieves 99.3% accuracy on the CUTE dataset, a significant improvement over the previous SOTA of 89.6%.
  • The model outperforms all state-of-the-art methods by a large margin on both regular and irregular text recognition benchmarks.
  • The ablation study confirms that rectification is not necessary, as removing it leads to better performance.
  • The method demonstrates strong generalization across diverse text shapes, fonts, and background variations.
  • The results show that spatial attention in transformers is sufficient for high-accuracy scene text recognition without geometric normalization.
  • The authors release their source code, positioning the method as a new benchmark for arbitrary-shaped scene text recognition.

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.