Towards Robust Real-Time Scene Text Detection: From Semantic to Instance Representation Learning

Xugong Qin, Pengyuan Lyu, Chengquan Zhang, Yu Zhou, Kun Yao, Peng Zhang, Hailun Lin, Weiping Wang

Abstract

Scene Text Detection (STD) remains a challenging task due to the inherent trade-off between the robustness of top-down object detection methods and the speed of bottom-up segmentation approaches. This paper introduces the Semantic to Instance Representation (SIR) framework, a novel training paradigm designed to enhance real-time text detection. By utilizing auxiliary tasks—Global-Dense Semantic Contrast (GDSC) and Top-Down Modeling (TDM)—during the training phase, the framework guides the encoder to learn both global semantic context and individual instance awareness. These auxiliary components are discarded during inference, allowing the model to maintain high-speed performance while achieving state-of-the-art accuracy across multiple benchmarks.

Introduction

In the field of computer vision, Scene Text Detection (STD) is the critical first step in automated reading systems. The primary challenge lies in the diversity of text shapes, orientations, and environmental noise. Existing methodologies generally fall into two categories: top-down methods, which are robust but computationally expensive due to multi-stage pipelines, and bottom-up methods, which are fast and flexible but often suffer from "instance adhesion" (merging nearby text) and false positives.

The SIR framework aims to imbue fast, bottom-up segmentation models with the structural intelligence of top-down detectors. The core philosophy is to use complex auxiliary tasks as "ghost" supervisors that refine the feature encoder during training without imposing any computational overhead during deployment.

The SIR Framework

The SIR framework improves the feature representation of a standard segmentation-based detector through two primary mechanisms that exist only during training.

1. Global-Dense Semantic Contrast (GDSC)

To address the "semantic" aspect of text detection, the authors implement GDSC. This task utilizes contrastive learning to bridge the gap between global scene understanding and local pixel-level features. The model extracts a global vector representing the general concept of "text-ness" and compares it against every local pixel feature in a dense grid. By applying a contrastive loss (similar to InfoNCE), the encoder is forced to maximize the similarity between features belonging to text regions while pushing away non-text features. This effectively reduces background noise and sharpens the model's ability to distinguish text from complex backgrounds.

2. Top-Down Modeling (TDM)

To address the "instance" aspect, the framework incorporates TDM. During training, a temporary top-down detection head—comprising a Region Proposal Network (RPN) and RoI-Align—is attached to the encoder. This forces the encoder to learn features that are inherently useful for identifying individual objects and bounding boxes. Once training is complete, this entire top-down apparatus is removed. The resulting encoder, however, retains the "knowledge" of how to represent distinct text instances, significantly reducing the likelihood of merging adjacent words.

3. Unified Segmentation Baseline

The framework is built upon a simplified three-channel segmentation baseline. It predicts the text kernel, the text border, and the non-text background. By explicitly supervising the border and decoupling it from the background, the model achieves better separation between closely packed text instances.

Experimental Results

The SIR framework was evaluated on several prominent datasets, including ICDAR2015, Total-Text (curved text), MSRA-TD500 (long lines), and CTW1500. The results demonstrate a superior balance of speed and accuracy:

  • MSRA-TD500: The model achieved a state-of-the-art 89.6% F-measure at 36.9 FPS using a ResNet-50 backbone. With a lighter ResNet-18 backbone, it maintained a high 86.4% F-measure at 58.0 FPS.
  • Total-Text: The framework reached an 88.2% F-measure at 30.9 FPS, proving its effectiveness in handling highly curved and multi-oriented text.
  • Efficiency: When compared to other modern detectors like DB++ and PAN on identical hardware (RTX 2080 Ti), SIR consistently provided a higher F-measure at comparable or faster inference speeds.

Conclusion

The SIR framework demonstrates that auxiliary representation learning is a powerful tool for real-time scene text detection. By forcing the encoder to master both semantic contrast and instance-level modeling during training, the authors successfully improved detection robustness without the typical speed penalty associated with complex architectures. While the model still faces challenges with extremely crowded or overlapping text kernels, it represents a significant step forward in making real-time text detection both faster and smarter.

Summary updated

BibTeX
@inproceedings{qin2023towards,
  author = {Xugong Qin and Pengyuan Lyu and Chengquan Zhang and Yu Zhou and Kun Yao and Peng Zhang and Hailun Lin and Weiping Wang},
  title = {{Towards Robust Real-Time Scene Text Detection: From Semantic to Instance Representation Learning}},
  booktitle = {ACM Multimedia},
  year = {2023},
}
Figure