Target-Guided Composed Image Retrieval

Haokun Wen, Xian Zhang, Xuemeng Song, Yinwei Wei, Liqiang Nie · DOI

TL;DR

This paper introduces TG-CIR, a novel approach to Composed Image Retrieval (CIR) that addresses limitations in how multimodal queries (image + text) are understood and how candidate images are ranked. TG-CIR leverages the target image itself during training to guide both the composition of the query and the learning of a more nuanced ranking system, leading to improved retrieval performance.

What Problem Does This Paper Address?

Traditional image retrieval systems often rely on a single query type, either text or an image. Composed Image Retrieval (CIR) offers a more flexible approach by allowing users to provide a reference image and a modification text. This combination aims to express search intentions more precisely, for example, "find me a dress like this one, but in black and more elegant." However, existing CIR methods struggle with two key challenges:

  1. Modeling Conflicting Relationships: The reference image and modification text can sometimes present conflicting information (e.g., the image shows a white dress, but the text asks for a black one). Effectively modeling this conflict is crucial for accurately composing the multimodal query.
  2. Adaptive Matching Degree: Current methods often treat all non-target images as equally "wrong." This overlooks that some candidate images might be closer to the desired target than others, leading to suboptimal ranking. Furthermore, public datasets might contain "false negatives" – images that are good matches but not explicitly labeled as such.

Methods

The proposed Target-Guided Composed Image Retrieval (TG-CIR) network tackles these issues with three core modules:

  1. Attribute Feature Extraction: TG-CIR uses the powerful CLIP model as a backbone to extract both global and local attribute features from the reference image, modification text, and target image. To ensure these attributes are distinct and independent, an orthogonal regularization is applied. This module aims to create a unified representation space for all components of the CIR task.
  2. Target-Query Relationship-Guided Multimodal Query Composition: This is the heart of the "target-guided" aspect. TG-CIR employs a "keep-and-replace" strategy for query composition. It uses a teacher branch that leverages the target image to learn how to model the conflict between the reference image and modification text. This teacher branch then guides a student branch (which doesn't see the target image during inference) to learn the same composition strategy through knowledge distillation. This allows the model to learn which attributes to keep from the reference image and which to replace based on the modification text, guided by the actual desired outcome.
  3. Target Similarity Distribution-Guided Metric Learning: To address the limitation of simple positive/negative ranking, TG-CIR introduces a novel regularization. Instead of just optimizing for the ground-truth target, it considers the visual similarity between the ground-truth target and all other candidate images within a batch. This "target similarity distribution" is used to guide the learning of matching degrees, ensuring that images visually closer to the ground-truth target receive higher scores. This is implemented using a batch-based classification loss and a new Kullback-Leibler (KL) divergence loss.

Datasets

The paper evaluates TG-CIR on three public datasets:

  • FashionIQ: A fashion-domain dataset focusing on retrieving images based on text feedback.
  • Shoes: Another fashion-domain dataset for image retrieval.
  • CIRR (Common Objects in Context Retrieval): An open-domain dataset for evaluating image retrieval.

Key Insights and Ideas

  • Leveraging the Target Image for Training: The core innovation is using the target image during training to guide both query composition and metric learning. This is a powerful way to inject "ground truth" knowledge about what constitutes a good match.
  • "Keep-and-Replace" with Target Guidance: The teacher-student architecture for query composition, guided by the target image, effectively models the often-conflicting nature of reference images and modification texts. This allows the model to learn a more robust representation of the user's intent.
  • Beyond Binary Ranking: The target similarity distribution regularization moves beyond simple positive/negative examples. It encourages a more nuanced understanding of similarity, allowing for better ranking of candidate images that are not perfect matches but are still relevant.
  • CLIP as a Strong Foundation: The use of CLIP as a backbone for attribute feature extraction highlights its effectiveness in capturing rich visual and textual semantics for multimodal tasks.

Key Results

TG-CIR consistently outperforms existing state-of-the-art methods on all three datasets. For instance, it achieves significant improvements in Recall@k metrics, such as:

  • FashionIQ-Avg: 9.56% improvement over the best baseline for R@10.
  • Shoes: 29.13% improvement for R@1.
  • CIRR: 17.44% improvement for R@1.

Qualitative results (case studies) demonstrate TG-CIR's ability to retrieve the correct target image, often ranking it higher than baseline methods, especially when the query involves subtle modifications.

Limitations and Future Work

  • Target Image Availability: The target image is only available during training. The model must perform effectively during inference without this crucial piece of information.
  • Attribute Feature Tuning: The optimal number of attribute features (P and Q) requires careful tuning for different datasets.
  • Future Work: The authors suggest extending their method to multi-turn interactive image retrieval, which is essential for dialogue systems and intelligent customer service robots. This would involve handling sequential queries and maintaining context over multiple interactions.

Summary updated

BibTeX
@inproceedings{wen2023target,
  author = {Haokun Wen and Xian Zhang and Xuemeng Song and Yinwei Wei and Liqiang Nie},
  title = {{Target-Guided Composed Image Retrieval}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3611817},
}
Figure