TL;DR
Composed Image Retrieval (CIR) models often fail to distinguish true target images from subtle mismatches because they overlook the complex contextual relationships within and between images and text. To solve this, the authors introduce HINT, a framework that extracts dual-path contextual information and uses a novel relevance quantification mechanism to explicitly widen the similarity gap between matching and non-matching images. HINT achieves state-of-the-art performance across major open-domain and fashion-domain CIR benchmarks.
What Problem Does This Paper Address?
Composed Image Retrieval (CIR) is a multimodal task where a user provides a reference image along with modification text (e.g., "change view to a large open studio area, must include deep green couch") to retrieve a specific target image.
Unlike standard text-to-image retrieval, the text here acts as a delta instruction rather than a complete description. Current state-of-the-art methods struggle with complex modifications because they rely on shallow attention mechanisms or global alignments. They suffer from two main bottlenecks:
- Implicit Dependencies: It is difficult to capture how different local regions within an image relate to one another and how text constraints modify those specific local semantics amidst background noise.
- Absence of Discrepancy Amplification: Most models rely solely on standard cosine similarity during evaluation. This leads to blurred decision boundaries, making it hard for the model to actively "push away" negative samples that look superficially similar to the target.
Methods
The proposed HINT (Dual-patH composItional coNtextualized neTwork) framework tackles these challenges using three interconnected modules:
- Dual Context Extraction (DCE): Using pre-trained BLIP-2 features as a backbone, HINT models context on two fronts. First, Visual Context Modeling (VCM) adds spatial position encodings to image region queries and applies multi-head self-attention to capture intra-image dependencies. Second, Cross-modal Context Modeling (CCM) concatenates these refined visual features with text features, applying further attention layers and passing them through a Q-former to output context-aware multimodal fusion features.
- Quantification of Contextual Relevance (QCR): Instead of computing a single global similarity score, QCR measures an "incremental similarity score." It evaluates alignment progressively across different channel depths of the fusion features against the target image features, effectively quantifying multi-level contextual relevance.
- Dual-Path Consistency Constraints (DPCC): During training, the model is optimized using a joint objective function. It combines a standard batch-based contrastive Rank Loss ($\mathcal{L}_{rank}$) with a novel Contextual Contrastive Loss ($\mathcal{L}_{context}$) derived from the QCR module. This dual constraint forces the network to stably enhance the similarity of true matches while suppressing mismatches.
Datasets
The authors evaluated HINT on two widely accepted CIR benchmarks:
- CIRR (Composed Image Retrieval on Real-life Images): An open-domain dataset featuring diverse, real-world images. Evaluation metrics include Recall@k ($k=1, 5, 10, 50$), $R_{subset}@k$, and an overall Average score.
- FashionIQ: A domain-specific dataset focused on fine-grained fashion retrieval across three categories: Dresses, Shirts, and Tops & Tees. Evaluation metrics include R@10 and R@50.
Key Insights and Ideas
- Context as a Discriminator: Rather than treating image-text fusion as a simple feature aggregation problem, HINT demonstrates that explicitly modeling intra-modal and cross-modal context is key to resolving fine-grained semantic ambiguities.
- Incremental Channel Alignment: The QCR module's strategy of calculating similarity incrementally across feature channels acts as a multi-level structural filter. This allows the model to catch subtle mismatches that a standard global cosine similarity check would miss.
- Domain-Specific Sensitivity: The context-aware mechanism provides a more pronounced performance boost in highly structured domains (like FashionIQ) than in open domains (like CIRR). This is because fashion queries inherently involve complex, fine-grained attribute combinations where semantic conflicts and ambiguities run high.
Key Results
HINT achieved state-of-the-art (SOTA) performance across both benchmarks, outperforming strong recent baselines like SPRC and MEDIAN:
- FashionIQ: HINT achieved an overall average R@10 of 58.48% and R@50 of 77.93%, representing a substantial leap over the previous best average R@10 of 54.72% (SPRC).
- CIRR: HINT reached an overall average score of 81.57% and a top-1 accuracy (R@1) of 52.34%.
- Ablation Studies: Removing the Visual Context Modeling (w/o VCM) or Cross-modal Context Modeling (w/o CCM) consistently degraded performance across all metrics, validating that both paths of context extraction are vital for accurate retrieval.
Limitations and Future Work
Not discussed in the paper.
Summary updated