Pretrain like Your Inference: Masked Tuning Improves Zero-Shot Composed Image Retrieval
About
Zero-shot composed image retrieval (ZS-CIR), which takes a textual modification and a reference image as a query to retrieve a target image without triplet labeling, has gained more and more attention in data mining. Current ZS-CIR research mainly relies on the generalization ability of pre-trained vision-language models, e.g., CLIP. However, the pre-trained vision-language models and CIR tasks have substantial discrepancies, where the vision-language models focus on learning the similarities but CIR aims to learn the modifications of the image guided by text. In this paper, we introduce a novel unlabeled and pre-trained masked tuning approach, which reduces the gap between the pre-trained vision-language model and the downstream CIR task. First, to reduce the gap, we reformulate the contrastive learning of the vision-language model as the CIR task, where we randomly mask input image patches to generate $\langle$masked image, text, image$\rangle$ triplet from an image-text pair. Then, we propose a simple but novel pre-trained masked tuning method, which uses the text and the masked image to learn the modifications of the original image. With such a simple design, the proposed masked tuning can learn to better capture fine-grained text-guided modifications. Extensive experimental results demonstrate the significant superiority of our approach over the baseline models on four ZS-CIR datasets, including FashionIQ, CIRR, CIRCO, and GeneCIS. Our codes are available at https://github.com/Chen-Junyang-cn/PLI
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Composed Image Retrieval | CIRR (test) | Recall@126.15 | 481 | |
| Composed Image Retrieval | FashionIQ (val) | Shirt Recall@1039.02 | 455 | |
| Composed Image Retrieval | CIRCO (test) | mAP@1014.2 | 234 | |
| Composed Image Retrieval (Image-Text to Image) | CIRR | Recall@127.2 | 75 | |
| Composed Image Retrieval | CIRCO | mAP@510.4 | 63 | |
| Composed Image Retrieval | Fashion-IQ | Average Recall@1035.4 | 40 | |
| Composed Image Retrieval | GeneCIS (test) | -- | 38 | |
| Composed Image Retrieval | CIRCO 1.0 (test) | mAP@510.4 | 36 | |
| Composed Image Retrieval | CIRR Index Set v1.0 | Recall@127.2 | 23 | |
| Composed Image Retrieval | CIRR v1.0 | Recall@155.6 | 21 |