TextBlockV2: Towards Precise-Detection-Free Scene Text Spotting with Pre-trained Language Model

Jiahao Lyu, Jin Wei, Gangyan Zeng, Zeng Li, Enze Xie, Wei Wang, Yu ZhouACM TOMM 2024

Abstract

Traditional scene text spotting relies on precise, word-level detection, which often fails in complex real-world environments featuring overlapping, multi-line, or occluded text. TextBlockV2 proposes a paradigm shift by detecting coarse "text blocks" and utilizing the semantic power of Pre-trained Language Models (PLMs) for recognition. By integrating a Unified Vision-Language Mask (UVLM) and a clustering-based label generation algorithm, the framework effectively leverages linguistic context to "read" text within these blocks. TextBlockV2 achieves state-of-the-art results on challenging benchmarks like ICDAR2015 and Union14M, demonstrating superior robustness in dense and irregular text layouts.

The Bottleneck of Precise Detection

Most existing scene text spotting methods follow a strict "detection-then-recognition" pipeline that prioritizes fine-grained detection. This approach attempts to draw tight, individual bounding boxes around every word or character. However, in "wild" scenes, text is rarely neatly arranged. Overlapping lines and artistic layouts make precise detection extremely difficult, creating a significant performance bottleneck.

Comparison of traditional precise detection versus the proposed coarse text block detection.

Furthermore, recognizing words in isolation discards valuable contextual information. For instance, identifying a blurry "KONG" is significantly easier for a system that can see the preceding word "HONG" in the same visual field. TextBlockV2 aims to mimic the human "glimpse-focus" mechanism: roughly locating a block of text first and then using linguistic context to decode the contents.

Methodology: From Glimpse to Focus

The TextBlockV2 framework consists of two primary modules: Text Block Detection and Text Block Recognition.

  1. Block-Level Detection: Instead of isolating words, the system uses a standard Mask R-CNN (with a ResNet50 and FPN backbone) to detect "text blocks"—regions containing one or more lines of text.
  2. Clustering-based Label Generation: To train this detector, a novel algorithm groups individual word annotations into blocks. This process uses a Clustering Decider that evaluates both spatial coordinates and visual features (extracted via a pre-trained oCLIP backbone) to ensure semantically related text is grouped together.
  3. PLM-based Recognition: The core of the system is a fine-tuned PLM (such as GPT-2). The detected block is converted into visual tokens and processed by the model.
Example of a single text block containing multi-line vertical text with complex reading order.

Unified Vision-Language Mask (UVLM)

A key technical contribution is the Unified Vision-Language Mask (UVLM). While standard language models use causal (triangular) masking and vision models use bidirectional attention, UVLM combines both. It allows visual tokens to attend to each other bidirectionally while maintaining a causal relationship for generated text tokens. This hybrid approach significantly accelerates training convergence and improves recognition accuracy.

Key Insights and Results

TextBlockV2 demonstrates that context is king. By recognizing multiple words within a single block, the model uses the PLM’s internal language knowledge to resolve ambiguities that would baffle a word-level recognizer. This makes the system highly tolerant of "incomplete detection," where a bounding box might slightly cut off part of a word.

The authors evaluated the model on several benchmarks, achieving state-of-the-art (SOTA) results:

  • ICDAR2015: Achieved 82.3% Normalized Score (NS), surpassing previous SOTA methods.
  • Union14M: On the "Multi-Words" subset, the model improved performance by approximately 10%, proving its strength in complex, dense text environments.
  • Architecture: Experiments revealed that decoder-only architectures (like GPT-2) generally outperformed encoder-decoder structures for this vision-to-text translation task.

Conclusion and Future Work

TextBlockV2 successfully shifts the focus from precise geometry to semantic context. While the model faces challenges with extremely low-resolution images and sequence length limits for very dense documents, it represents a major step toward "detection-free" OCR. Future work will explore larger LLMs and further refining the approach to eventually eliminate the detection stage entirely, allowing models to read entire scenes directly.

Summary updated

BibTeX
@article{lyu2024textblockv,
  author = {Jiahao Lyu and Jin Wei and Gangyan Zeng and Zeng Li and Enze Xie and Wei Wang and Yu Zhou},
  title = {{TextBlockV2: Towards Precise-Detection-Free Scene Text Spotting with Pre-trained Language Model}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2024},
  url = {https://openreview.net/forum?id=obSSTHCRpT},
}
Figure