Text encoders bottleneck compositionality in contrastive vision-language models

Amita Kamath, Jack Hessel, Kai-Wei Chang
5/24/2023
43 citations
cs.CLcs.CVcs.LG

Official code: amitakamath/vl_text_encoders_are_bottlenecks (11 stars, last commit 2023-05-24).

Abstract

Performant vision-language (VL) models like CLIP represent captions using a single vector. How much information about language is lost in this bottleneck?

Show full abstract

We first curate CompPrompts, a set of increasingly compositional image captions that VL models should be able to capture (e.g., single object, to object+property, to multiple interacting objects). Then, we train text-only recovery probes that aim to reconstruct captions from single-vector text representations produced by several VL models. This approach does not require images, allowing us to test on a broader range of scenes compared to prior work. We find that: 1) CLIP's text encoder falls short on more compositional inputs, including object relationships, attribute-object association, counting, and negations; 2) some text encoders work significantly better than others; and 3) text-only recovery performance predicts multi-modal matching performance on ControlledImCaps: a new evaluation benchmark we collect and release consisting of fine-grained compositional images and captions. Specifically, our results suggest text-only recoverability is a necessary (but not sufficient) condition for modeling compositional factors in contrastive VL models. We release our datasets and code.

View on arXivView PDF

Code Implementations(1)

Code and datasets for "Text encoders are performance bottlenecks in contrastive vision-language models". Coming soon!

110May 24, 20233 years ago

Similar Papers

Cite this paper

@article{kamath2023text,
  title  = {Text encoders bottleneck compositionality in contrastive vision-language models},
  author = {Amita Kamath and Jack Hessel and Kai-Wei Chang},
  year   = {2023},
  eprint = {2305.14897},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14897v2}
}

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/2305.14897.svg)](https://codeofpaper.com/paper/2305.14897)

Discussion