Bidirectional Scene Text Recognition with a Single Decoder

Maurits Bleeker, Maarten de Rijke

TL;DR

This paper introduces Bi-STET, a novel approach to bidirectional scene text recognition that uses a single decoder for both left-to-right and right-to-left text decoding. By conditioning the decoding direction at the input level, Bi-STET achieves state-of-the-art results while being significantly more efficient in terms of model parameters and training time compared to previous methods that used separate decoders.

What Problem Does This Paper Address?

Scene Text Recognition (STR) aims to accurately identify text within images, often in challenging real-world conditions. To improve robustness, researchers have explored "bidirectional" STR, which involves decoding text from both left-to-right and right-to-left. However, existing bidirectional methods typically employ two separate decoders, one for each direction. This redundancy is computationally inefficient and complicates model optimization, as it requires training two similar decoders independently. The paper addresses this by proposing a unified architecture that achieves bidirectional decoding with a single, shared decoder.

Methods

The core innovation of Bi-STET lies in its approach to bidirectional decoding. Instead of implementing separate decoders at the architecture level or using distinct algorithms, Bi-STET conditions the decoding direction at the input level. This is achieved by adding a learned "direction embedding" to the input of a transformer-based encoder-decoder architecture. This embedding signals to the model whether to decode from left-to-right or right-to-left.

The overall architecture consists of:

  • Visual Feature Extraction Network (VFEN): A ResNet-based network extracts visual features from the input image.
  • Transformer Encoder: A stack of transformer encoder layers processes the visual features, creating a rich representation.
  • Transformer Decoder: A stack of transformer decoder layers generates the output character sequence. Crucially, this decoder is shared for both decoding directions.

The use of a transformer architecture is a departure from many previous STR methods that relied on Recurrent Neural Networks (RNNs). Transformers, with their self-attention mechanisms, are inherently more flexible in handling sequences without a fixed directional bias, making them well-suited for this bidirectional approach.

Datasets

Bi-STET is trained on two synthetically generated datasets:

  • Synth90K: Contains 7.2 million training images with a 90,000-word lexicon.
  • SynthText: Provides approximately 2.9 million cropped word images from natural scenes.

The model is evaluated on seven real-world datasets:

  • ICDAR03
  • ICDAR13
  • ICDAR15
  • SVT (Street View Text)
  • SVTP (Street View Text Perspective)
  • IIIT-5K Word
  • CUTE80 (Curved Text)

Key Insights and Ideas

  • Input-level conditioning for bidirectional decoding: The most significant insight is that bidirectional decoding can be effectively achieved by simply adding a direction embedding to the input, rather than requiring separate architectural components. This simplifies the model and improves efficiency.
  • Single decoder for multi-task learning: The paper demonstrates that a single decoder can learn to perform two related tasks (left-to-right and right-to-left decoding) effectively, leveraging shared knowledge and parameters.
  • Transformer's inherent suitability for bidirectional tasks: The transformer architecture's lack of a strong inductive bias towards sequential directionality makes it a natural fit for bidirectional decoding, especially when combined with input-level conditioning.
  • Attention heads learn generalized patterns: The analysis of attention heads reveals that they don't specialize for one direction but can adapt their behavior based on the input conditioning, showcasing a flexible multi-task learning capability.

Key Results

  • State-of-the-art performance: Bi-STET achieves or outperforms state-of-the-art (SOTA) results on 6 out of 7 evaluation datasets, including new SOTA on ICDAR03 and IIIT-5K.
  • Improved efficiency: Compared to Shi et al. [31], Bi-STET uses 50% fewer training iterations and has significantly fewer model parameters (66 million vs. 88 million).
  • Bidirectional advantage: For 6 out of 7 datasets, bidirectional decoding with Bi-STET yields higher accuracy than using a single decoding direction.
  • Robustness to curved/rotated text: Bi-STET performs well on datasets with curved and oriented text (like CUTE80) even without explicit rectification components, demonstrating the benefit of bidirectional decoding.
  • Consistent performance across sequence lengths: The model shows consistent accuracy for word lengths up to 11 characters, with a slight degradation for longer sequences, but still performs comparably or better than previous methods.

Limitations and Future Work

  • Limitations: While Bi-STET performs well on curved and oriented text, it struggles with extremely curved or perspective-distorted text, suggesting that explicit rectification components might still be beneficial for the most challenging cases. The paper notes that for very strong arc shapes, performance degrades.
  • Future Work: The authors suggest combining Bi-STET with explicit rectification networks (like STN or rectification networks) to further improve performance on highly distorted text. They also propose exploring input-level conditioning for more diverse tasks and extending the approach to handle more complex data modalities.

Summary updated

BibTeX
@inproceedings{bleeker2020bidirectional,
  author = {Maurits Bleeker and Maarten de Rijke},
  title = {{Bidirectional Scene Text Recognition with a Single Decoder}},
  booktitle = {ECAI},
  year = {2020},
  doi = {10.3233/faia200404},
}
Figure