TL;DR
The paper introduces Bi-STET (Bidirectional Scene Text Transformer), a novel architecture for Scene Text Recognition (STR) that performs bidirectional (left-to-right and right-to-left) decoding using a single shared decoder. By shifting task conditioning from the architectural level to the input level via direction embeddings, Bi-STET achieves state-of-the-art results while slashing training iterations by 50% and significantly reducing model parameters compared to dual-decoder alternatives.
What Problem Does This Paper Address?
Scene Text Recognition (STR) involves converting cropped images of text from natural scenes into character sequences. Because scene text often suffers from blur, occlusion, or unusual fonts, recent high-performing models use bidirectional decoding—predicting the text from both left-to-right (L2R) and right-to-left (R2L)—to generate more robust outputs.
Historically, this has been achieved by using two entirely separate decoders at the architectural level. The authors point out that this is highly inefficient: L2R and R2L decoding share the same output space and underlying language knowledge. Forcing two separate decoders to learn these tasks independently wastes computational resources, increases parameter counts, and misses out on the optimization benefits of multi-task weight sharing.
Methods
Bi-STET replaces the dual-decoder paradigm with a single, direction-agnostic Transformer decoder.
The pipeline consists of:
- Visual Feature Extraction Network (VFEN): A standard 45-layer ResNet that extracts visual features from the input image.
- Transformer Encoder: A stack of $n=6$ transformer layers that encodes the visual feature embeddings.
- Transformer Decoder with Input-Level Task Conditioning: Instead of changing the network structure to alter the decoding direction, the authors introduce Direction Embeddings. At the start of training, two 512-dimensional vectors are randomly initialized to represent the L2R and R2L sub-tasks. During decoding, the appropriate direction embedding is simply added on top of the character token and positional embeddings at the input level.
During training, each image is processed twice (once for each direction), and gradients are accumulated to optimize the single set of decoder parameters simultaneously for both tasks.
Datasets
The model is evaluated cross-dataset, meaning it is trained purely on synthetic data and tested on real-world benchmarks:
- Training Datasets: Synth90K (7.2 million images) and SynthText (approx. 2.9 million cropped text images).
- Evaluation Datasets: Seven standard real-world benchmarks representing various text difficulties:
- Regular text: IIIT-5K Word, ICDAR03, ICDAR13.
- Irregular/Complex text: ICDAR15 (Google Glass captures), SVT (Street View Text), SVTP (Perspective text), and CUTE80 (Curved text).
Key Insights and Ideas
- Exploiting Transformer "Position Unawareness": Unlike Recurrent Neural Networks (RNNs), which possess an inherent, sequential inductive bias, Transformers process sequences globally. This lack of built-in directionality makes them uniquely suited for input-level task conditioning; the model doesn't care which way it decodes until prompted by the direction embedding.
- Dynamic Attention Heads: Rather than different attention heads specializing in either L2R or R2L decoding, analysis revealed that the same attention heads dynamically flip their alignment direction based on the input condition. This proves that the single decoder successfully achieves multi-task regularization and shares internal representations across both directions.
- Implicit Rectification: Even without an explicit image rectification module (like a Spatial Transformer Network), bidirectional decoding via a single decoder provides enough structural regularization to successfully read slightly curved or oriented text.
Key Results
Bi-STET achieves highly competitive, state-of-the-art (SOTA) performance with a much leaner profile:
- Efficiency Gains: Compared to the prominent bidirectional model Aster (Shi et al.), Bi-STET reduces the number of trainable parameters from 88 million to 66 million (a 25% reduction) and cuts the required training iterations in half (0.5 million vs. 1.0 million).
- Accuracy: Bi-STET met or exceeded SOTA accuracy on 6 out of 12 evaluation configurations, establishing new SOTA benchmarks on the IIIT5K (94.7% accuracy without a lexicon) and ICDAR03 (96.0%) datasets.
Limitations and Future Work
While Bi-STET handles moderately curved and perspective-distorted text well due to its bidirectional robustness, it still struggles with extreme geometric distortions, such as text wrapped in a tight, heavy arc.
The authors suggest that future iterations could benefit from combining Bi-STET with an explicit, lightweight image rectification pre-processing component. Additionally, they propose expanding input-level task conditioning to handle more diverse multi-task learning scenarios and multi-modal data.
Summary updated