HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Training-free Zero-shot Composed Image Retrieval via Weighted Modality Fusion and Similarity

Ren-Di Wu; Yu-Yen Lin; Huei-Fang Yang

Training-free Zero-shot Composed Image Retrieval via Weighted Modality Fusion and Similarity

Abstract

Composed image retrieval (CIR), which formulates the query as a combination of a reference image and modified text, has emerged as a new form of image search due to its enhanced ability to capture user intent. However, training a CIR model in a supervised manner typically requires labor-intensive collection of (reference image, text modifier, target image) triplets. While existing zero-shot CIR (ZS-CIR) methods eliminate the need for training on specific downstream datasets, they still require additional pretraining on large-scale image datasets. In this paper, we introduce a training-free approach for ZS-CIR. Our approach, Weighted Modality fusion and similarity for CIR (WeiMoCIR), operates under the assumption that image and text modalities can be effectively combined using a simple weighted average. This allows the query representation to be constructed directly from the reference image and text modifier. To further enhance retrieval performance, we employ multimodal large language models (MLLMs) to generate image captions for the database images and incorporate these textual captions into the similarity computation by combining them with image information using a weighted average. Our approach is simple, easy to implement, and its effectiveness is validated through experiments on the FashionIQ and CIRR datasets. Code is available at https://github.com/whats2000/WeiMoCIR.

Code Repositories

whats2000/WeiMoCIR
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
zero-shot-composed-image-retrieval-zs-cir-on-1WeiMoCIR (CLIP G/14)
R@1: 31.04
R@5: 60.41
zero-shot-composed-image-retrieval-zs-cir-on-1WeiMoCIR (CLIP B/32)
R@1: 26.31
R@5: 57.69
zero-shot-composed-image-retrieval-zs-cir-on-1WeiMoCIR (CLIP H/14)
R@1: 29.11
R@5: 59.76
zero-shot-composed-image-retrieval-zs-cir-on-1WeiMoCIR (CLIP L/14)
R@1: 30.94
R@5: 60.87
zero-shot-composed-image-retrieval-zs-cir-on-2WeiMoCIR (CLIP G/14)
(Recall@10+Recall@50)/2: 47.16
zero-shot-composed-image-retrieval-zs-cir-on-2WeiMoCIR (CLIP H/14)
(Recall@10+Recall@50)/2: 44.58
zero-shot-composed-image-retrieval-zs-cir-on-2WeiMoCIR (CLIP L/14)
(Recall@10+Recall@50)/2: 41.27
zero-shot-composed-image-retrieval-zs-cir-on-2WeiMoCIR (CLIP B/32)
(Recall@10+Recall@50)/2: 39.84

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