Papers › Chinese CLIP: Contrastive Vision-Language Pretraining in Chinese

Chinese CLIP: Contrastive Vision-Language Pretraining in Chinese

2 Nov 2022arXiv:2211.01335archive 2025-07-28

An Yang, Junshu Pan, Junyang Lin, Rui Men, Yichang Zhang, Jingren Zhou, Chang Zhou

The tremendous success of CLIP (Radford et al., 2021) has promoted the research and application of contrastive learning for vision-language pretraining. In this work, we construct a large-scale dataset of image-text pairs in Chinese, where most data are retrieved from publicly available datasets, and we pretrain Chinese CLIP models on the new dataset. We develop 5 Chinese CLIP models of multiple sizes, spanning from 77 to 958 million parameters. Furthermore, we propose a two-stage pretraining method, where the model is first trained with the image encoder frozen and then trained with all parameters being optimized, to achieve enhanced model performance. Our comprehensive experiments demonstrate that Chinese CLIP can achieve the state-of-the-art performance on MUGE, Flickr30K-CN, and COCO-CN in the setups of zero-shot learning and finetuning, and it is able to achieve competitive performance in zero-shot image classification based on the evaluation on the ELEVATER benchmark (Li et al., 2022). We have released our codes, models, and demos in https://github.com/OFA-Sys/Chinese-CLIP

PaperPDFCodeCode 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="2211.01335")

Code

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

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

ofa-sys/chinese-clip officialmentioned in papermentioned on GitHubpytorchMIT 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

7 samples harvested; 4 ran; 2 honoured the contract we drafted; 3 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.

2ran · honoured contract
2ran · our draft was wrong
3unverified

Licence: 0 of the 7 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 ofa-sys/chinese-clip. “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.

swish ofa-sys/chinese-clip/cn_clip/clip/modeling_bert.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 0f786c407fb1ee4c · report
convert_to_unicode ofa-sys/chinese-clip/cn_clip/clip/bert_tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 1923fc05163d207d · report
gelu ofa-sys/chinese-clip/cn_clip/clip/modeling_bert.py official repository ran · honoured contract fingerprinted MIT (permissive) · 211753ba29188d4e · report
gelu_new ofa-sys/chinese-clip/cn_clip/clip/modeling_bert.py official repository ran · honoured contract fingerprinted MIT (permissive) · 77601724cad03f95 · report
convert_state_dict ofa-sys/chinese-clip/cn_clip/clip/model.py official repository unverified MIT (permissive) · 650bf97faab74187 · report
load_vocab ofa-sys/chinese-clip/cn_clip/clip/bert_tokenizer.py official repository unverified MIT (permissive) · aaf1cb2c01043065 · report
printable_text ofa-sys/chinese-clip/cn_clip/clip/bert_tokenizer.py official repository unverified MIT (permissive) · 0e5615f8994003cf · report

Tasks

Contrastive LearningImage ClassificationImage RetrievalRepresentation LearningRetrievalZero-Shot Image ClassificationZero-Shot LearningZero-shot Image RetrievalZero-shot Text RetrievalZero-shot Text-to-Image Retrievalimage-classification

Datasets

Introduced by this paper, per the archive.

ImageNet_CN

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Retrieval COCO-CN CN-CLIP (ViT-H/14) R@1 81.5 #1 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-H/14) R@10 99.1 #1 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-H/14) R@5 96.9 #1 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-L/14@336px) R@1 80.1 #2 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-L/14@336px) R@10 99.2 #2 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-L/14@336px) R@5 96.7 #2 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-L/14) R@1 78.9 #4 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-L/14) R@10 99.0 #4 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-L/14) R@5 96.3 #4 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-B/16) R@1 77.0 #5 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-B/16) R@10 99.0 #5 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (ViT-B/16) R@5 97.1 #5 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (RN50) R@1 66.8 #9 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (RN50) R@10 97.0 #9 of 9 Archive leaderboard report
Image Retrieval COCO-CN CN-CLIP (RN50) R@5 91.1 #9 of 9 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-L/14@336px) R@1 84.4 #3 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-L/14@336px) R@10 98.7 #3 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-L/14@336px) R@5 97.1 #3 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-H/14) R@1 83.8 #5 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-H/14) R@10 98.6 #5 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-H/14) R@5 96.9 #5 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-L/14) R@1 82.7 #6 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-L/14) R@10 98.6 #6 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-L/14) R@5 96.7 #6 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-B/16) R@1 79.1 #7 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-B/16) R@10 97.4 #7 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (ViT-B/16) R@5 94.8 #7 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (RN50) R@1 66.7 #11 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (RN50) R@10 94.1 #11 of 11 Archive leaderboard report
Image Retrieval Flickr30k-CN CN-CLIP (RN50) R@5 89.4 #11 of 11 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-H/14) Mean Recall 83.6 #1 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-H/14) R@1 68.9 #1 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-H/14) R@10 93.1 #1 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-H/14) R@5 88.7 #1 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-L/14@336px) Mean Recall 81.3 #2 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-L/14@336px) R@1 65.3 #2 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-L/14@336px) R@10 92.1 #2 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-L/14@336px) R@5 86.7 #2 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-L/14) Mean Recall 80.1 #3 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-L/14) R@1 63.3 #3 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-L/14) R@10 91.3 #3 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-L/14) R@5 85.6 #3 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-B/16) Mean Recall 77.4 #5 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-B/16) R@1 58.4 #5 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-B/16) R@10 90.0 #5 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (ViT-B/16) R@5 83.6 #5 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (RN50) Mean Recall 69.2 #7 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (RN50) R@1 48.6 #7 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (RN50) R@10 84.0 #7 of 9 Archive leaderboard report
Image Retrieval MUGE Retrieval CN-CLIP (RN50) R@5 75.1 #7 of 9 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

CLIPContrastive Learning

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