Retrieval-Enhanced Contrastive Vision-Text Models

Ahmet Iscen, Mathilde Caron, A. Fathi, C. Schmid
6/1/2023

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Contrastive image-text models such as CLIP form the building blocks of many state-of-the-art systems. While they excel at recognizing common generic concepts, they still struggle on fine-grained entities which are rare, or even absent from the pre-training dataset.

Show full abstract

Hence, a key ingredient to their success has been the use of large-scale curated pre-training data aiming at expanding the set of concepts that they can memorize during the pre-training stage. In this work, we explore an alternative to encoding fine-grained knowledge directly into the model's parameters: we instead train the model to retrieve this knowledge from an external memory. Specifically, we propose to equip existing vision-text models with the ability to refine their embedding with cross-modal retrieved information from a memory at inference time, which greatly improves their zero-shot predictions. Remarkably, we show that this can be done with a light-weight, single-layer, fusion transformer on top of a frozen CLIP. Our experiments validate that our retrieval-enhanced contrastive (RECO) training improves CLIP performance substantially on several challenging fine-grained tasks: for example +10.9 on Stanford Cars, +10.2 on CUB-2011 and +7.3 on the recent OVEN benchmark, where we even outperform the fine-tuned models on unseen classes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{iscen2023retrievalenhanced,
  title  = {Retrieval-Enhanced Contrastive Vision-Text Models},
  author = {Ahmet Iscen and Mathilde Caron and A. Fathi and C. Schmid},
  year   = {2023},
  eprint = {2306.07196},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.07196},
  journal = {ICLR 2023 2023}
}

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

Discussion