Abstract
Composed Image Retrieval (CIR) is a challenging task that requires finding a target image based on a reference image and a modifying text instruction. Traditional methods rely on expensive, manually labeled triplet datasets for training. This paper presents a novel, training-free approach to Zero-Shot Composed Image Retrieval (ZS-CIR). By leveraging the reasoning capabilities of Large Language Models (LLMs) to generate explicit target captions and employing a Vision-Language Model (VLM) for local concept reranking, the proposed method eliminates the need for fine-tuning while outperforming existing supervised and zero-shot benchmarks.
Introduction
Composed Image Retrieval (CIR) allows users to search for images using a combination of visual and textual input—for example, providing an image of a dog and the text "change the dog's color to blue." The primary bottleneck in CIR research is the reliance on massive "triplet" datasets (Reference Image, Text, Target Image), which are difficult and costly to curate.
Existing Zero-Shot methods attempt to bypass this by using "implicit embeddings," where the image and text are fused into a mathematical vector. However, these black-box representations often lack transparency and fail to capture fine-grained details. As shown in Figure 1, the proposed method shifts from implicit embeddings to explicit query text, utilizing LLMs to translate multimodal instructions into human-interpretable requirements.
Methodology
The system employs a two-stage, training-free pipeline designed to maximize the utility of foundation models like GPT-4 and LLaVA.
1. Global Retrieval Baseline (GRB)
The first stage focuses on broad retrieval. A captioning model (BLIP2) generates a description of the reference image. This description, alongside the user's modified text, is fed into an LLM. The LLM acts as a reasoning engine, fusing the inputs into a single pseudo target caption. This explicit text query is then used to perform an initial global search across the image gallery using standard vision-language embeddings.
2. Local Concept Reranking (LCR)
To refine the initial results, the authors introduce a reranking mechanism that focuses on "hard" requirements—specific attributes mentioned in the text that must appear in the target.
- Concept Extraction: The LLM identifies positive local concepts from the instruction.
- VLM Verification: For the top-K images retrieved in the first stage, the system uses LLaVA to verify the presence of these concepts. Rather than simple text generation, the authors "unlock" LLaVA’s last layer to calculate the exact probability (logit scores) of the model answering "Yes" or "No" to the existence of a concept.
- Score Integration: The final ranking is determined by a weighted sum of the global retrieval score and the local verification probability.
Experimental Results
The model was evaluated across four major benchmarks, demonstrating significant gains without any training:
- CIRR: Achieved an 8.63% improvement in Recall@1 over the global baseline, outperforming other training-free methods by an average of 11%.
- CIRCO: Outperformed the state-of-the-art ZS-CIR method (SEARLE) by 12.08% in mAP@5.
- FashionIQ: Surpassed supervised methods like Pic2Word by an average of 5.57%.
- COCO: Demonstrated a massive 17.7% improvement in Recall@1 over previous state-of-the-art methods.
Discussion and Insights
A key insight of this work is that explicit is better than implicit in zero-shot settings. Converting multimodal queries into human-readable text allows the system to leverage the vast world knowledge stored in LLMs. Furthermore, the "Yes/No" probability trick effectively transforms a conversational VLM into a precise discriminative tool for ranking.
Despite its success, the method faces challenges regarding computational cost, as using LLaVA for reranking is more intensive than simple vector math. Additionally, the model occasionally struggles with reference ambiguity—determining which background details from the reference image should be preserved versus discarded. Future work will focus on "conditional selection" logic to better handle these contextual nuances.
Summary updated