ABINet++: Autonomous, Bidirectional and Iterative Language Modeling for Scene Text Spotting

Shancheng Fang, Zhendong Mao, Hongtao Xie, Yuxin Wang, Chenggang Yan, Yongdong Zhang

TL;DR

ABINet++ advances scene text spotting by treating language modeling as an autonomous, bidirectional, and iterative process. By decoupling vision and language components and introducing a novel Bidirectional Cloze Network (BCN), the model achieves state-of-the-art accuracy on both standard and long-text benchmarks while maintaining real-time performance.

What Problem Does This Paper Address?

Reading text in the wild (scene text spotting) is notoriously difficult due to motion blur, low resolution, occlusion, and complex backgrounds. While pure vision models (VM) have improved, they often fail when visual cues are ambiguous.

Linguistic context—knowing that "h-o-u-s-" is likely followed by "e"—is a powerful tool for correction. However, the authors identify three major flaws in existing language-integrated models:

  1. Implicit Modeling: Language rules are often learned "inside" the vision model, making it hard to know what the model actually knows or to pre-train it on text-only data.
  2. Unidirectional Representation: Most models read left-to-right, missing half the available context.
  3. Noise Sensitivity: Language models (LM) often struggle when the initial visual prediction is very noisy or the predicted text length is wrong.

Methods

ABINet++ (an evolution of their previous ABINet) introduces a framework built on three core principles:

  • Autonomous Strategy: The VM and LM are treated as independent units. Crucially, the authors use Blocking Gradient Flow (BGF) between them during training. This prevents the LM from "cheating" by relying on visual features, forcing it to learn actual linguistic rules. This also allows the LM to be pre-trained on massive, unlabeled text-only datasets like WikiText-103.
  • Bidirectional Cloze Network (BCN): Instead of standard Transformers that only look at previous characters, BCN acts like a "cloze test" (fill-in-the-blank). It uses a diagonal mask in the cross-attention layer to predict a character based on context from both the left and right sides simultaneously, without the character "seeing" itself.
  • Iterative Correction: The model doesn't just take one guess. It passes the output back through the LM multiple times ($M$ iterations). This allows the model to progressively refine its predictions, which is especially helpful for correcting errors in text length (the "unaligned-length problem").

To handle long text (like those found in the SCUT-CTW1500 dataset), they added Horizontal Feature Aggregation (HFA) and a Position and Content Attention (PCA) module. PCA ensures the model doesn't get confused by repeating characters in long strings by incorporating character content into the attention mechanism, not just its position.

Datasets

The authors evaluated ABINet++ on a comprehensive suite of benchmarks:

  • Scene Text Recognition: ICDAR 2013, SVT, IIIT 5K, ICDAR 2015, SVTP, and CUTE80.
  • Scene Text Spotting: Total-Text, SCUT-CTW1500 (focused on long/curved text), ICDAR 2015, and ReCTS (Chinese characters).
  • Training/Pre-training: MJSynth (MJ) and SynthText (ST) for vision; WikiText-103 for language; and Uber-Text for semi-supervised self-training.

Key Insights and Ideas

  • The Power of Independence: Decoupling the vision and language models actually makes the whole system stronger. By forcing the LM to learn from text alone, it becomes a more robust "spell checker" that can bail out the vision model when the image is low-quality.
  • Bidirectional > Unidirectional: The authors show that a bidirectional model captures twice the information of a unidirectional one. Their BCN is also 20-25% faster than the common workaround of ensembling two separate left-to-right and right-to-left models.
  • Content-Aware Attention: In long text, a model purely based on "positional" queries often suffers from "multi-activation"—it tries to look at two different places at once. Adding character content to the query helps the model "lock on" to the correct character.
  • Self-Training: By using an ensemble of iterative predictions as pseudo-labels, the model can effectively learn from unlabeled real-world images, significantly boosting performance on "hard" examples like unusual fonts or heavy blur.

Key Results

  • State-of-the-Art: On the Total-Text spotting benchmark, ABINet++ achieved an Hmean of 77.6% (lexicon-free), outperforming previous methods by at least 4.7%.
  • Long Text Mastery: On SCUT-CTW1500, it surpassed existing methods by 1.3% to 1.6%, proving the effectiveness of the HFA and PCA modules.
  • Efficiency: Despite the iterative nature, the model runs at 10.6 FPS on an NVIDIA 3090 GPU, making it viable for real-time applications.
  • Robustness: Qualitative results show the model successfully transcribing text that is nearly illegible to the human eye by relying on its learned linguistic priors.

Limitations and Future Work

  • Training Complexity: The authors acknowledge that ABINet++ converges more slowly than some "simpler" spotters, requiring a multi-stage, optimizer-mixed training strategy.
  • Semantic Gap: While the model is excellent at character-level spelling conventions, it still lacks high-level semantic understanding. For example, it might not know to correct "hat" to "cat" in the sentence "I love my pet cat" because both are valid words.
  • Optimization Gap: There remains a challenge in perfectly balancing the vision and language modalities during end-to-end optimization.

Summary updated

BibTeX
@article{fang2023abinet,
  author = {Shancheng Fang and Zhendong Mao and Hongtao Xie and Yuxin Wang and Chenggang Yan and Yongdong Zhang},
  title = {{ABINet++: Autonomous, Bidirectional and Iterative Language Modeling for Scene Text Spotting}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2022.3223908},
}
Figure