Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Three Towers: Flexible Contrastive Learning with Pretrained Image Models

About

We introduce Three Towers (3T), a flexible method to improve the contrastive learning of vision-language models by incorporating pretrained image classifiers. While contrastive models are usually trained from scratch, LiT (Zhai et al., 2022) has recently shown performance gains from using pretrained classifier embeddings. However, LiT directly replaces the image tower with the frozen embeddings, excluding any potential benefits from training the image tower contrastively. With 3T, we propose a more flexible strategy that allows the image tower to benefit from both pretrained embeddings and contrastive training. To achieve this, we introduce a third tower that contains the frozen pretrained embeddings, and we encourage alignment between this third tower and the main image-text towers. Empirically, 3T consistently improves over LiT and the CLIP-style from-scratch baseline for retrieval tasks. For classification, 3T reliably improves over the from-scratch baseline, and while it underperforms relative to LiT for JFT-pretrained models, it outperforms LiT for ImageNet-21k and Places365 pretraining.

Jannik Kossen, Mark Collier, Basil Mustafa, Xiao Wang, Xiaohua Zhai, Lucas Beyer, Andreas Steiner, Jesse Berent, Rodolphe Jenatton, Efi Kokiopoulou• 2023

Related benchmarks

TaskDatasetResultRank
Image-to-Text RetrievalFlickr30K 1K (test)
R@187.3
439
Text-to-Image RetrievalFlickr30k (test)
Recall@172.1
423
Text-to-Image RetrievalFlickr30K 1K (test)
R@172.1
375
Image-to-Text RetrievalFlickr30k (test)
R@187.3
370
Image-to-Text RetrievalMS-COCO (test)
R@164.1
99
Text-to-Image RetrievalMS-COCO (test)
R@148.5
66
Image-Text RetrievalCOCO (val)
R@154.4
43
Image-to-Text RetrievalCOCO 5K (test)
R@164.1
21
Text-to-Image RetrievalCOCO 5K (test)
R@148.5
16
Image-to-Text RetrievalFlickr (non-Karpathy)
Top-1 Recall80
5
Showing 10 of 13 rows

Other info

Code

Follow for update