SOTAVerified

Chinese CLIP: Contrastive Vision-Language Pretraining in Chinese

2022-11-02Code Available5· sign in to hype

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

Code Available — Be the first to reproduce this paper.

Reproduce

Code

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. 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

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
COCO-CNCN-CLIP (RN50)R@166.8Unverified
COCO-CNCN-CLIP (ViT-B/16)R@177Unverified
COCO-CNCN-CLIP (ViT-H/14)R@181.5Unverified
COCO-CNCN-CLIP (ViT-L/14)R@178.9Unverified
COCO-CNCN-CLIP (ViT-L/14@336px)R@180.1Unverified
Flickr30k-CNCN-CLIP (ViT-L/14)R@182.7Unverified
Flickr30k-CNCN-CLIP (ViT-L/14@336px)R@184.4Unverified
Flickr30k-CNCN-CLIP (ViT-H/14)R@183.8Unverified
Flickr30k-CNCN-CLIP (ViT-B/16)R@179.1Unverified
Flickr30k-CNCN-CLIP (RN50)R@166.7Unverified
MUGE RetrievalCN-CLIP (ViT-H/14)Mean Recall83.6Unverified
MUGE RetrievalCN-CLIP (RN50)Mean Recall69.2Unverified
MUGE RetrievalCN-CLIP (ViT-B/16)Mean Recall77.4Unverified
MUGE RetrievalCN-CLIP (ViT-L/14)Mean Recall80.1Unverified
MUGE RetrievalCN-CLIP (ViT-L/14@336px)Mean Recall81.3Unverified

Reproductions