Papers › CLIP4STR: A Simple Baseline for Scene Text Recognition with Pre-trained Vision-Language Model

CLIP4STR: A Simple Baseline for Scene Text Recognition with Pre-trained Vision-Language Model

23 May 2023arXiv:2305.14014archive 2025-07-28

Shuai Zhao, Ruijie Quan, Linchao Zhu, Yi Yang

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2305.14014")

Code

Syntology Ran 3 of 10 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran · our draft was wrong.

By repository: named in the paper: 10 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

VamosC/CLIP4STR mentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 3 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
7unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from VamosC/CLIP4STR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

basic_clean VamosC/CLIP4STR/strhub/clip/simple_tokenizer.py named in the paper ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 98f385d847636a3e · report
get_pairs VamosC/CLIP4STR/strhub/clip/simple_tokenizer.py named in the paper ran · our draft was wrong Apache-2.0 (permissive) · d919ae32e5e4e616 · report
whitespace_clean VamosC/CLIP4STR/strhub/clip/simple_tokenizer.py named in the paper ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 9542161e9640b858 · report
build_model VamosC/CLIP4STR/strhub/clip/model.py named in the paper unverified Apache-2.0 (permissive) · 34938893fe02d1f5 · report
create_model VamosC/CLIP4STR/strhub/models/utils.py named in the paper unverified Apache-2.0 (permissive) · 9b2f2fb695d21458 · report
load VamosC/CLIP4STR/strhub/clip/clip.py named in the paper unverified Apache-2.0 (permissive) · 406ad6d7f2c448f2 · report
load_from_checkpoint VamosC/CLIP4STR/strhub/models/utils.py named in the paper unverified Apache-2.0 (permissive) · 318b6adc36f8db42 · report
parse_model_args VamosC/CLIP4STR/strhub/models/utils.py named in the paper unverified Apache-2.0 (permissive) · 50d4d49ecae7edce · report
top_k_candidate VamosC/CLIP4STR/strhub/models/post_process.py named in the paper unverified Apache-2.0 (permissive) · 784520bd614f333a · report
top_k_candidate_v2 VamosC/CLIP4STR/strhub/models/post_process.py named in the paper unverified Apache-2.0 (permissive) · ec0f91c34fb1b379 · report

Tasks

DecoderLanguage ModelingLanguage ModellingScene Text Recognition

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Scene Text Recognition COCO-Text CLIP4STR-L 1:1 Accuracy 81.9 #1 of 4 Archive leaderboard report
Scene Text Recognition COCO-Text CLIP4STR-B 1:1 Accuracy 81.1 #3 of 4 Archive leaderboard report
Scene Text Recognition CUTE80 CLIP4STR-L (DataComp-1B) Accuracy 99.7 #2 of 18 Archive leaderboard report
Scene Text Recognition CUTE80 CLIP4STR-B Accuracy 99.3 #5 of 18 Archive leaderboard report
Scene Text Recognition CUTE80 CLIP4STR-L Accuracy 99.0 #7 of 18 Archive leaderboard report
Scene Text Recognition HOST CLIP4STR-L 1:1 Accuracy 82.7 #1 of 3 Archive leaderboard report
Scene Text Recognition HOST CLIP4STR-B 1:1 Accuracy 79.8 #2 of 3 Archive leaderboard report
Scene Text Recognition IC19-Art CLIP4STR-L (DataComp-1B) Accuracy (%) 86.4 #1 of 5 Archive leaderboard report
Scene Text Recognition IC19-Art CLIP4STR-L Accuracy (%) 85.9 #2 of 5 Archive leaderboard report
Scene Text Recognition IC19-Art CLIP4STR-B Accuracy (%) 85.8 #3 of 5 Archive leaderboard report
Scene Text Recognition ICDAR2013 CLIP4STR-L (DataComp-1B) Accuracy 99.0 #3 of 38 Archive leaderboard report
Scene Text Recognition ICDAR2013 CLIP4STR-L Accuracy 98.5 #5 of 38 Archive leaderboard report
Scene Text Recognition ICDAR2013 CLIP4STR-B Accuracy 98.3 #9 of 38 Archive leaderboard report
Scene Text Recognition ICDAR2015 CLIP4STR-L (DataComp-1B) Accuracy 91.4 #4 of 27 Archive leaderboard report
Scene Text Recognition ICDAR2015 CLIP4STR-L Accuracy 90.8 #6 of 27 Archive leaderboard report
Scene Text Recognition ICDAR2015 CLIP4STR-B Accuracy 90.6 #7 of 27 Archive leaderboard report
Scene Text Recognition IIIT5k CLIP4STR-L (DataComp-1B) Accuracy 99.6 #1 of 17 Archive leaderboard report
Scene Text Recognition IIIT5k CLIP4STR-L Accuracy 99.5 #3 of 17 Archive leaderboard report
Scene Text Recognition IIIT5k CLIP4STR-B (DataComp-1B) Accuracy 99.5 #4 of 17 Archive leaderboard report
Scene Text Recognition IIIT5k CLIP4STR-B Accuracy 99.2 #6 of 17 Archive leaderboard report
Scene Text Recognition SVT CLIP4STR-H (DFN-5B) Accuracy 99.1 #1 of 37 Archive leaderboard report
Scene Text Recognition SVT CLIP4STR-L (DataComp-1B) Accuracy 98.6 #5 of 37 Archive leaderboard report
Scene Text Recognition SVT CLIP4STR-L Accuracy 98.5 #7 of 37 Archive leaderboard report
Scene Text Recognition SVT CLIP4STR-B Accuracy 98.3 #8 of 37 Archive leaderboard report
Scene Text Recognition SVTP CLIP4STR-L (DataComp-1B) Accuracy 98.1 #4 of 17 Archive leaderboard report
Scene Text Recognition SVTP CLIP4STR-L Accuracy 97.4 #5 of 17 Archive leaderboard report
Scene Text Recognition SVTP CLIP4STR-B Accuracy 97.2 #6 of 17 Archive leaderboard report
Scene Text Recognition Uber-Text CLIP4STR-L (DataComp-1B) Accuracy (%) 92.2 #1 of 3 Archive leaderboard report
Scene Text Recognition Uber-Text CLIP4STR-B Accuracy (%) 86.8 #3 of 3 Archive leaderboard report
Scene Text Recognition WOST CLIP4STR-H (DFN-5B) 1:1 Accuracy 90.9 #1 of 5 Archive leaderboard report
Scene Text Recognition WOST CLIP4STR-L (DataComp-1B) 1:1 Accuracy 90.6 #2 of 5 Archive leaderboard report
Scene Text Recognition WOST CLIP4STR-L 1:1 Accuracy 88.8 #3 of 5 Archive leaderboard report
Scene Text Recognition WOST CLIP4STR-B 1:1 Accuracy 87.0 #4 of 5 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CLIP

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections