Abstract
Composed Image Retrieval (CIR) requires models to retrieve a target image based on a reference image and a modifying text query. While existing methods handle simple attribute changes well, they often struggle with complex, multi-attribute instructions. We present ConText-CIR, a framework that addresses "contextual interference" through a novel Text Concept-Consistency (CC) loss and mitigates data scarcity with an LLM-driven synthetic data pipeline, good4cir. Our approach achieves state-of-the-art performance on major benchmarks, including a 12.88-point improvement in zero-shot Recall@1 on CIRR.
Introduction
Composed Image Retrieval (CIR) is a challenging vision-language task where a user provides a query consisting of a reference image and a text description of desired modifications (e.g., "change the color to red and add long sleeves"). Despite progress, real-world queries are frequently complex and messy.
The authors identify two primary bottlenecks in current CIR systems. First, contextual interference: as text queries grow in length and complexity, vision-language models like CLIP often fail to ground specific noun phrases to their corresponding image regions, as the overall sentence context distracts the model. Second, data scarcity: existing datasets typically feature short, simplistic captions that do not reflect the nuance of human search behavior.
Methodology
ConText-CIR introduces two core innovations to overcome these challenges.
Text Concept-Consistency (CC) Loss
To combat contextual interference, the CC loss enforces a consistency constraint during training. It ensures that the attention map generated for a specific noun phrase (e.g., "the branch") within a full, complex sentence is consistent with the attention map generated when that phrase is processed in isolation. By supervising "in-context" representations with "isolated" concept representations, the model learns to ground individual objects accurately regardless of linguistic noise.
The good4cir Data Pipeline
To address the lack of high-quality training data, the authors developed a synthetic pipeline using GPT-4o. The LLM is prompted to identify objects in image pairs and generate detailed "difference captions" describing additions, removals, or modifications. This results in a linguistically rich dataset that better prepares models for real-world complexity.
Evaluation and Results
The framework was evaluated on several benchmarks, including CIRR, CIRCO, and a new challenging dataset, Hotel-CIR, which features dense scenes with similar objects.
ConText-CIR establishes a new state-of-the-art (SOTA) across multiple metrics:
- Supervised Performance: On the CIRR test set, ConText-CIR (ViT-H) achieved a Recall@1 of 55.24.
- Zero-Shot Gains: The model demonstrated significant robustness in zero-shot settings, improving Recall@1 by 12.88 points over previous benchmarks for the ViT-H variant.
- Qualitative Grounding: Analysis of attention maps confirms that the CC loss effectively prevents "attention bleeding," allowing the model to focus on specific requested items even in cluttered environments.
Conclusion
ConText-CIR demonstrates that fine-grained concept grounding is the key to mastering complex composed image retrieval. By leveraging isolated concept supervision and LLM-generated synthetic data, the model overcomes the limitations of previous vision-language encoders. Future work may extend these grounding techniques to video retrieval and interactive search systems.
Summary updated