Abstract
Composed Image Retrieval (CIR) requires a system to retrieve a target image based on a reference image and a relative caption. Existing methods often fail to capture fine-grained visual details or suffer from high inference latency. This paper introduces CIR-LVLM, a framework that repurposes Large Vision-Language Models (LVLMs) as powerful, single-pass encoders. By utilizing a Hybrid Intent Instruction module—combining task-specific hard prompts with an adaptive pool of instance-specific soft prompts—CIR-LVLM achieves state-of-the-art performance across multiple benchmarks while being significantly faster than generative retrieval methods.
1. Introduction
Composed Image Retrieval (CIR) is a "search by example + instruction" task. A user provides a reference image (e.g., a photo of a dog) and a relative caption (e.g., "move the dog outdoors and show its butt"). The system must then find a target image that satisfies both modalities.
Current approaches generally fall into two categories, both with inherent flaws. Vision-Language Pre-training Models (VLPMs), such as CLIP, often utilize "early-fusion" via cross-attention, which can inadvertently discard visual details from the reference image not explicitly mentioned in the text. Conversely, generative LLM methods describe the target image first before retrieval; while effective at reasoning, they are computationally expensive due to multi-pass decoding and prone to hallucinations.
The authors identify two core challenges: comprehensively extracting visual information and faithfully following the user's specific modification intent. CIR-LVLM addresses these by treating an LVLM (specifically Qwen-VL-Chat) as a feature encoder rather than a text generator.
2. Methodology
CIR-LVLM transforms the retrieval task into a reasoning task by leveraging the massive pre-training of LVLMs. The architecture consists of several key innovations designed to capture complex user intentions.
2.1 Hybrid Intent Instruction Module
To guide the model, the framework uses two levels of prompting:
- Task Prompts (Hard Prompts): Explicit text instructions that clarify the CIR task requirements.
- Instance-specific Soft Prompts: Instead of static prompts, the model utilizes a Prompt Pool. For every query, it calculates the similarity between the input and a set of learnable "keys" to retrieve the most relevant soft prompts, allowing the model to adapt to different types of modifications (e.g., color changes vs. object additions).
2.2 Architecture and Training
A Connector module maps visual features from a frozen vision encoder into sentence-level prompts that the LLM can process alongside text. Because standard LLMs use causal attention, the "knowledge" of the query accumulates toward the end of the sequence. To capture this, the authors implement Position-weighted Mean Pooling, where tokens appearing later in the sequence carry more weight in the final retrieval vector.
The model is fine-tuned using LoRA (Low-Rank Adaptation) and a contrastive loss, aligning the query's final representation with the target image's representation in a single pass.
3. Experiments and Results
The model was evaluated on three prominent CIR benchmarks: Fashion-IQ (clothing), Shoes, and CIRR (open-domain real-life images).
3.1 State-of-the-Art Performance
CIR-LVLM outperformed existing methods across nearly all metrics. On Fashion-IQ, it achieved an average Recall@10/50 of 66.17, a significant improvement over previous leaders. Attention maps reveal that the model correctly shifts focus based on the text; for instance, if a caption mentions "long sleeves," the model's attention physically moves to the arm area of the garment in the reference image.
3.2 Efficiency Gains
Despite its size, CIR-LVLM operates as a single-pass encoder. It requires only 0.08s per query on an A800 GPU, compared to 1.38s for generative LLM-based methods like CIReVL—representing a 17x speedup.
4. Discussion and Conclusion
CIR-LVLM demonstrates that CIR is as much a reasoning task as a vision task. While standard fusion layers are often too shallow to understand complex instructions, LVLMs handle these logical shifts with high fidelity.
However, limitations remain. On the CIRR dataset, the model occasionally struggles to distinguish between true targets and visually similar "distractor" images. Additionally, training such models requires significant computational resources (e.g., 8x 80G A800s). Future work will explore plugging the framework into even more powerful LVLM backbones to further enhance multimodal reasoning capabilities.
Summary updated