TL;DR
This paper introduces CIR-LVLM, a novel framework that leverages Large Vision-Language Models (LVLMs) as user intent-aware encoders for Composed Image Retrieval (CIR). By employing a hybrid intent instruction module with task-specific and instance-specific prompts, CIR-LVLM significantly improves the ability to understand and act upon user intent in image retrieval tasks, achieving state-of-the-art performance.
What Problem Does This Paper Address?
Composed Image Retrieval (CIR) is a challenging task that requires retrieving target images based on a query composed of both a reference image and a relative caption describing user intent. Existing methods often struggle to simultaneously capture comprehensive visual information from the reference image and accurately interpret the nuanced user intent conveyed in the caption. Some approaches fail to retain crucial visual details not mentioned in the caption, while others miss subtle aspects of user intent, especially with complex captions. Furthermore, generative retrieval methods, while better at understanding intent, often suffer from efficiency issues due to multi-pass decoding. This paper aims to bridge this gap by proposing a more effective and efficient approach using LVLMs.
Methods
The core of CIR-LVLM is the utilization of a Large Vision-Language Model (LVLM) as a user intent-aware encoder. This is achieved through a novel hybrid intent instruction module designed to provide explicit guidance at two levels:
- Task Prompt: This prompt clarifies the overall CIR task requirements, helping the LVLM discern user intent at a high level. Distinct prompts are crafted for processing query and target images to cater to their specific needs.
- Instance-Specific Soft Prompt: A learnable prompt pool is used to automatically select adaptive soft prompts based on the input image and text for each specific instance. This allows the model to better comprehend user intent at an instance level, going beyond a universal prompt.
The framework also includes a Connector module that uses learnable query embeddings to generate a sentence-level prompt, enabling the LVLM to comprehensively process visual information. Instead of relying on traditional text encoders, CIR-LVLM leverages the advanced reasoning and instruction-following capabilities of LVLMs. For aggregating features, a position-weighted mean pooling method is employed, giving more importance to later tokens in the sequence.
Datasets
The proposed CIR-LVLM model is evaluated on three benchmark datasets:
- Fashion-IQ: A fashion retrieval dataset with natural language text feedback, comprising 77,684 images across Dress, Shirt, and Tops&Tees categories.
- Shoes: A dataset originally for attribute discovery, adapted for dialog-based interactive retrieval, with 10,000 training and 4,658 testing images.
- CIRR: An open-domain dataset with 36,554 triplets, derived from the NLVR² dataset, featuring images divided into visually similar subsets.
Key Insights and Ideas
- LVLMs as User Intent-Aware Encoders: The paper demonstrates that LVLMs, when fine-tuned as encoders, are significantly more effective than traditional VLPMs or text encoders for discerning user intent in CIR tasks.
- Hybrid Intent Instruction Module: The two-level guidance system (task prompt and instance-specific soft prompt) is crucial for effectively communicating complex user intentions to the LVLM.
- Instance-Specific Prompts are Key: Moving beyond universal prompts, adaptive soft prompts tailored to each instance significantly improve retrieval performance by capturing subtle intent variations.
- LVLMs Outperform VLPMs in Reasoning-Intensive Tasks: The study provides strong evidence that LVLMs have a distinct advantage over VLPMs in multimodal retrieval tasks that require reasoning, such as CIR.
- Importance of Visual Feature Extraction: The ablation studies highlight that a trainable Connector module, which aids in visual feature extraction, is critical for achieving optimal performance, even when using parameter-efficient fine-tuning methods like LoRA.
Key Results
CIR-LVLM achieves state-of-the-art performance across the evaluated benchmarks (Fashion-IQ, Shoes, and CIRR). Specifically:
- On the Fashion-IQ and Shoes datasets, CIR-LVLM consistently achieves the highest recall across all metrics, outperforming previous late-fusion methods by up to 5.46% in Rmean.
- It also shows a 4.02% improvement over the best early-fusion strategy (Re-ranking) on Fashion-IQ.
- The model demonstrates strong generalization capabilities on the open-domain CIRR dataset.
- In terms of inference efficiency, CIR-LVLM achieves a single-pass encoding design, making it significantly faster (0.08s per query) than methods like CIReVL (1.38s per query) while maintaining comparable performance to lightweight encoders like SPRC (0.035s per query).
Limitations and Future Work
- Distinguishing Similar Images: The paper notes that CIR-LVLM, while strong, may struggle with distinguishing target images that are semantically or visually very similar to the reference image, particularly on the Recall subset @1 metric for CIRR.
- Short Relative Captions: When relative captions are short, the model might over-retain information from the reference image and miss subtle intent, as illustrated in failure cases.
- Object Count Mismatches: For queries involving changes in the number of objects, the model may retrieve images with the correct objects but an incorrect count.
- Angle Change Descriptions: Capturing subtle angle changes described in relative captions remains a challenge.
Future work could focus on addressing these specific failure cases, potentially by developing more sophisticated methods for handling short captions or more precise representations of spatial relationships and object counts. The paper also suggests that further exploration of LVLM capabilities for multimodal retrieval tasks is warranted.
Summary updated