[Paper Review] CLIP4STR: A Simple Baseline for Scene Text Recognition with Pre-trained Vision-Language Model
CLIP4STR proposes a simple yet effective scene text recognition (STR) framework that leverages CLIP's pre-trained vision-language model as a strong backbone. It uses a dual-branch architecture with a visual branch for initial prediction and a cross-modal branch for semantic refinement via attention, achieving state-of-the-art performance on 11 STR benchmarks, including challenging irregular text scenarios.
Pre-trained vision-language models~(VLMs) are the de-facto foundation models for various downstream tasks. However, scene text recognition methods still prefer backbones pre-trained on a single modality, namely, the visual modality, despite the potential of VLMs to serve as powerful scene text readers. For example, CLIP can robustly identify regular (horizontal) and irregular (rotated, curved, blurred, or occluded) text in images. With such merits, we transform CLIP into a scene text reader and introduce CLIP4STR, a simple yet effective STR method built upon image and text encoders of CLIP. It has two encoder-decoder branches: a visual branch and a cross-modal branch. The visual branch provides an initial prediction based on the visual feature, and the cross-modal branch refines this prediction by addressing the discrepancy between the visual feature and text semantics. To fully leverage the capabilities of both branches, we design a dual predict-and-refine decoding scheme for inference. We scale CLIP4STR in terms of the model size, pre-training data, and training data, achieving state-of-the-art performance on 13 STR benchmarks. Additionally, a comprehensive empirical study is provided to enhance the understanding of the adaptation of CLIP to STR. Our method establishes a simple yet strong baseline for future STR research with VLMs.
Motivation & Objective
- To investigate whether CLIP, a pre-trained vision-language model, can serve as a powerful backbone for scene text recognition (STR) despite the field's reliance on single-modality pre-training.
- To address the gap in STR research where vision-language models (VLMs) are underutilized despite their robust text perception in complex, irregular scenes.
- To establish a simple yet strong baseline for future STR research using vision-language pre-training, especially for challenging text variations like rotation, curvature, blur, and occlusion.
- To empirically study how CLIP adapts to STR and understand the mechanisms behind its strong performance on irregular text.
Proposed method
- CLIP4STR employs a dual encoder-decoder architecture: a visual branch using CLIP's image and text encoders for initial prediction, and a cross-modal branch that refines predictions by aligning visual features with text semantics.
- The visual branch generates an initial sequence prediction using the image encoder and a transformer decoder with permuted sequence modeling to model character dependencies in arbitrary order.
- The cross-modal branch acts as a semantic-aware spell checker, using cross-attention between the visual feature and text embedding to correct errors arising from visual ambiguity.
- A dual predict-and-refine decoding scheme is designed for inference: the visual branch provides the first prediction, which is then refined iteratively by the cross-modal branch using a context-aware decoding strategy.
- Equation (9) in the inference process replaces iterative cross-modal decoding with a direct context injection from the visual branch prediction, reducing computation with minimal accuracy drop.
- The method leverages CLIP’s pre-trained image and text encoders without fine-tuning the vision-language alignment head, preserving the model’s zero-shot generalization capability.
Experimental results
Research questions
- RQ1Can CLIP, pre-trained on image-text pairs, effectively serve as a backbone for scene text recognition without fine-tuning?
- RQ2How does CLIP’s vision-language pre-training enable robust recognition of irregular text (e.g., rotated, curved, blurred, or occluded) compared to single-modality models?
- RQ3What is the contribution of the cross-modal branch in refining predictions, and how does it compare to the visual branch in handling visual ambiguities?
- RQ4What is the trade-off between inference speed and accuracy when using larger CLIP variants (e.g., ViT-L) and multiple refinement iterations?
- RQ5How does CLIP4STR perform on cleaned benchmarks with corrected annotations, and does it maintain SOTA performance after data correction?
Key findings
- CLIP4STR achieves state-of-the-art performance on 11 STR benchmarks, including IC15, SVTP, CUTE, and HOST, with a 94.1% accuracy on IC15 and 99.3% on CUTE under standard evaluation.
- The cross-modal branch improves accuracy by up to 1.1% over the visual branch alone, demonstrating its effectiveness in correcting visual ambiguities and semantic mismatches.
- Using ViT-L as the backbone increases accuracy to 91.9% on the 9-benchmark average (Table VIII), though with a 6.52ms inference time per sample on an A100 GPU.
- The dual decoding scheme with one refinement iteration achieves optimal trade-off, as increasing iterations beyond one yields no further accuracy gain.
- On cleaned benchmarks, CLIP4STR maintains SOTA results, achieving 99.4% on IIIT5K and 99.0% on CUTE, confirming robustness even after ground-truth correction.
- The cloze-filling decoding variant reduces inference time to 3.41ms (ViT-B, one iteration) while maintaining high accuracy, showing practical viability for real-time applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.