HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Language-only Efficient Training of Zero-shot Composed Image Retrieval

Geonmo Gu; Sanghyuk Chun; Wonjae Kim; Yoohoon Kang; Sangdoo Yun

Language-only Efficient Training of Zero-shot Composed Image Retrieval

Abstract

Composed image retrieval (CIR) task takes a composed query of image and text, aiming to search relative images for both conditions. Conventional CIR approaches need a training dataset composed of triplets of query image, query text, and target image, which is very expensive to collect. Several recent works have worked on the zero-shot (ZS) CIR paradigm to tackle the issue without using pre-collected triplets. However, the existing ZS-CIR methods show limited backbone scalability and generalizability due to the lack of diversity of the input texts during training. We propose a novel CIR framework, only using language for its training. Our LinCIR (Language-only training for CIR) can be trained only with text datasets by a novel self-supervision named self-masking projection (SMP). We project the text latent embedding to the token embedding space and construct a new text by replacing the keyword tokens of the original text. Then, we let the new and original texts have the same latent embedding vector. With this simple strategy, LinCIR is surprisingly efficient and highly effective; LinCIR with CLIP ViT-G backbone is trained in 48 minutes and shows the best ZS-CIR performances on four different CIR benchmarks, CIRCO, GeneCIS, FashionIQ, and CIRR, even outperforming supervised method on FashionIQ. Code is available at https://github.com/navervision/lincir

Code Repositories

navervision/lincir
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
zero-shot-composed-image-retrieval-zs-cir-onLinCIR (CLIP G/14)
mAP@10: 21.01
zero-shot-composed-image-retrieval-zs-cir-onLinCIR (CLIP L/14)
mAP@10: 13.58
zero-shot-composed-image-retrieval-zs-cir-on-1LinCIR (CLIP G/14)
R@5: 64.72
zero-shot-composed-image-retrieval-zs-cir-on-1LinCIR (CLIP L/14)
R@5: 53.25
zero-shot-composed-image-retrieval-zs-cir-on-11LinCIR (CLIP L/14)
A-R@1: 12.2
zero-shot-composed-image-retrieval-zs-cir-on-11LinCIR (CLIP G/14)
A-R@1: 13.7
zero-shot-composed-image-retrieval-zs-cir-on-2LinCIR (CLIP G/14)
(Recall@10+Recall@50)/2: 55.40
zero-shot-composed-image-retrieval-zs-cir-on-2LinCIR (CLIP L/14)
(Recall@10+Recall@50)/2: 36.39
zero-shot-composed-image-retrieval-zs-cir-on-5LinCIR (CLIP L/14)
Average Recall: 21.64
zero-shot-composed-image-retrieval-zs-cir-on-6LinCIR (CLIP L/14)
(Recall@10+Recall@50)/2: 21.64

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
Language-only Efficient Training of Zero-shot Composed Image Retrieval | Papers | HyperAI