Introduction
Traditional scene text detection models typically focus on identifying "integral text units"—individual words or characters. While effective for simple localization, this "bag of words" approach fails to capture the semantic relationships and reading order inherent in complex real-world scenes, such as multi-line signage or instructional labels. This paper introduces the task of Contextual Text Block (CTB) detection, which aims to group and order these units into coherent, meaningful messages.
The CUTE Framework
To address this challenge, the researchers developed CUTE (Contextual Text Detector), a Transformer-based framework that treats text grouping as a sequence modeling problem. The pipeline operates in three stages:
- Integral Text Detector: A DETR-based model identifies basic bounding boxes for words or characters.
- Integral Embedding Extractor: For each unit, the model generates Feature Embeddings (visual appearance), Indexing Embeddings (positional encoding for sequence), and Spatial Embeddings (absolute coordinates and size).
- Contextual Text Block Generator: A multi-head attention mechanism processes these embeddings to learn pairwise relationships. An Index Prediction Head determines the natural reading order, effectively treating the text as a directed graph.
Benchmarking and Evaluation
The authors introduced two new datasets with contextual annotations: ReCTS-Context (Chinese characters) and SCUT-CTW-Context (English words). Evaluation is conducted using three new metrics: Local Accuracy (LA) for neighbor prediction, Local Continuity (LC) for n-gram matching, and Global Accuracy (GA) for the correctness of the entire reconstructed block.
Key Results and Insights
The CUTE framework demonstrates significant improvements over traditional spatial clustering methods. On the ReCTS-Context dataset, CUTE achieved a Global Accuracy (GA) of 53.76%, compared to approximately 10% for baseline clustering.
Ablation studies highlighted the critical role of sequence awareness: removing indexing embeddings caused Global Accuracy to drop from ~50% to just 2.18%. Furthermore, providing these ordered blocks to downstream tasks like Google Translate resulted in more natural and accurate translations, and improved text classification accuracy by up to 7.65%.
Conclusion and Future Work
CUTE represents a significant step toward holistic scene text understanding by moving beyond isolated word detection. While the model currently relies primarily on visual and spatial cues, future work aims to incorporate text semantics (OCR results) to resolve ambiguities in complex layouts where physical proximity alone is insufficient for grouping.
Summary updated