TL;DR
VLPT-STD introduces vision-language joint pre-training to the task of scene text detection, leveraging cheap image-level text annotations rather than expensive bounding boxes. By utilizing a unified architecture trained on three multi-modal pretext tasks, the framework learns highly discriminative visual representations that consistently boost the performance of standard text detectors like EAST, PSENet, and DB.
What Problem Does This Paper Address?
Scene text detection—locating and outlining text within real-world images—is a foundational computer vision task. Traditionally, text detectors rely on backbones pre-trained on ImageNet (which suffers from a massive domain gap) or synthetic datasets like SynthText using dense region supervisions (bounding boxes or masks), which are incredibly expensive to label for real-world data.
Recent methods attempted to use text-supervised pre-training (e.g., STKM), but they typically rely on a unidirectional pipeline (mapping vision directly to character-level language decoding). This approach fails to exploit the rich, bidirectional interaction between visual features and textual semantics, and struggles to capture broader lexicon context.
As text is inherently a visual manifestation of language, the authors argue that text detection is fundamentally a multi-modal problem. VLPT-STD addresses this by bridging the gap between vision and language during the pre-training phase using only image-level text labels.
Methods
The authors propose a multi-modal pre-training architecture consisting of three main components:
- Image Encoder: A ResNet-50 backbone combined with a customized Feature Pyramid Network (FPN) variant and an attention pooling layer to extract visual tokens.
- Text Encoder: A 3-layer Transformer encoder that processes text strings tokenized via WordPiece into sub-word embeddings.
- Cross-Modal Encoder: Four Transformer decoder layers utilizing Multi-Head Cross-Attention (MHCA) to model fine-grained interactions between visual regions and textual tokens.
To train this architecture effectively without bounding boxes, they introduce three complementary pretext tasks:
- Image-Text Contrastive Learning (ITC): Aligns global visual and textual representations in a shared embedding space using an InfoNCE loss.
- Masked Language Modeling (MLM): Randomly masks 15% of the text tokens. Because synthetic text strings often lack strong linguistic context, the cross-modal encoder is forced to rely heavily on the visual features in the image to reconstruct the missing words.
- Word-in-Image Prediction (WIP): A novel task that predicts whether a specific word exists in the image. Crucially, it incorporates an Online Hard Example Mining (OHEM) strategy, sampling visually similar words (e.g., using "last", "lose", or "post" as negative samples for the positive word "lost") to force the model to learn highly detailed word-shape representations.
Datasets
- Pre-training: SynthText (~800k synthetic images, utilizing only image-level text strings) and TextOCR (~20k real images).
- Downstream Evaluation: Five standard benchmarks representing various text geometries: Total-Text and CTW1500 (curved text), ICDAR2015 (oriented word-level text), ICDAR2017 (multi-lingual), and MSRA-TD500 (long text lines).
Key Insights and Ideas
- Visual Grounding via MLM: In standard NLP, MLM relies on surrounding language context. In scene text images, text strings are often semantically disconnected. This property turns MLM into a powerful visual grounding mechanism, forcing the model to look at the exact image regions containing the text to fill in the blanks.
- Hard Negative Mining for Word Shapes: The WIP task's use of OHEM is an "aha moment" for fine-grained feature learning. By forcing the network to distinguish between "lost" and "last", the visual backbone learns to pay attention to subtle character strokes and character-level boundaries.
- Cross-Modal Collaboration: Visualizations reveal that the cross-modal encoder successfully learns to distinguish identical text tokens (like multiple instances of the word "the") and map them to their respective distinct visual regions in the image.
Key Results
When the pre-trained visual backbone is transferred to standard text detectors (EAST, PSENet, DB), it yields substantial and consistent performance gains across all datasets:
- DB Detector: Achieved an F-measure improvement of 3.6% over standard SynthText pre-training and 2.6% over the state-of-the-art STKM method on the MSRA-TD500 dataset.
- PSENet Detector: Showed a 3.0% F-measure boost on ICDAR2015 and a 2.2% boost on Total-Text compared to standard pre-training.
- EAST Detector: Demonstrated a 2.6% improvement on the multi-lingual ICDAR2017 dataset.
Additionally, qualitative results show that VLPT-STD significantly reduces false positives on text-like textures (e.g., brick walls, fences) compared to previous methods.
Limitations and Future Work
Despite its performance gains, the framework introduces a few overhead challenges:
- Computational Cost: The inclusion of extra text and cross-modal encoders increases GPU memory consumption and extends pre-training times compared to purely visual pipelines.
- Scalability to Dense Text: If applied to document images containing thousands of words, the token count would skyrocket, leading to high computational and memory overhead due to the quadratic complexity of attention mechanisms.
Future Directions: The authors suggest exploring the integration of region-level supervisions into this multi-modal framework and developing even more efficient cross-modal pretext tasks.
Summary updated