HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

AltCLIP: Altering the Language Encoder in CLIP for Extended Language Capabilities

Zhongzhi Chen; Guang Liu; Bo-Wen Zhang; Fulong Ye; Qinghong Yang; Ledell Wu

AltCLIP: Altering the Language Encoder in CLIP for Extended Language Capabilities

Abstract

In this work, we present a conceptually simple and effective method to train a strong bilingual/multilingual multimodal representation model. Starting from the pre-trained multimodal representation model CLIP released by OpenAI, we altered its text encoder with a pre-trained multilingual text encoder XLM-R, and aligned both languages and image representations by a two-stage training schema consisting of teacher learning and contrastive learning. We validate our method through evaluations of a wide range of tasks. We set new state-of-the-art performances on a bunch of tasks including ImageNet-CN, Flicker30k-CN, COCO-CN and XTD. Further, we obtain very close performances with CLIP on almost all tasks, suggesting that one can simply alter the text encoder in CLIP for extended capabilities such as multilingual understanding. Our models and code are available at https://github.com/FlagAI-Open/FlagAI.

Code Repositories

flagai-open/flagai
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
zero-shot-cross-modal-retrieval-on-flickr30kAltCLIP
Image-to-text R@1: 86
Image-to-text R@10: 99.1
Image-to-text R@5: 98
Text-to-image R@1: 72.5
Text-to-image R@10: 95.4
Text-to-image R@5: 91.6
zero-shot-transfer-image-classification-on-1AltCLIP
Accuracy (Private): 74.5
zero-shot-transfer-image-classification-on-3AltCLIP
Accuracy (Private): 68.1
zero-shot-transfer-image-classification-on-4AltCLIP
Accuracy: 87.2
zero-shot-transfer-image-classification-on-5AltCLIP
Accuracy (Private): 69.5
zero-shot-transfer-image-classification-on-8AltCLIP
Accuracy (Private): 58.7
zero-shot-transfer-image-classification-on-cnAltCLIP
Accuracy (Private): 59.6
zero-shot-transfer-image-classification-on-cn-1AltCLIP
Accuracy (Private): 46.5
zero-shot-transfer-image-classification-on-cn-2AltCLIP
Accuracy (Private): 58.5
zero-shot-transfer-image-classification-on-cn-3AltCLIP
Accuracy (Private): 79.9
zero-shot-transfer-image-classification-on-cn-4AltCLIP
Accuracy (Private): 50.9

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp