Chinese CLIP: Contrastive Vision-Language Pretraining in Chinese

An Yang, Junshu Pan, Junyang Lin, Rui Men, Yichang Zhang +2 more
11/2/2022
cs.CVcs.CL

Official code: OFA-Sys/Chinese-CLIP (6,056 stars, Jupyter Notebook, MIT, PyTorch, last commit 2026-03-31).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Chinese version of CLIP which achieves Chinese cross-modal retrieval and representation generation.

6,056552Jupyter Notebook, PythonJul 8, 20228 months agoMIT
chineseclipcomputer-visioncontrastive-losscoreml-models+10 more

Similar Papers

Cite this paper

@article{yang2022chinese,
  title  = {Chinese CLIP: Contrastive Vision-Language Pretraining in Chinese},
  author = {An Yang and Junshu Pan and Junyang Lin and Rui Men and Yichang Zhang and Jingren Zhou and Chang Zhou},
  year   = {2022},
  eprint = {2211.01335},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.01335}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.01335.svg)](https://codeofpaper.com/paper/2211.01335)

Discussion