Composed Image Retrieval with Text Feedback via Multi-grained Uncertainty Regularization

Yiyang Chen, Zhedong Zheng, Wei Ji, Leigang Qu, Tat-Seng Chua

TL;DR

This paper tackles "composed image retrieval"—searching for an image using a reference image plus a text modifier—by addressing the mismatch between strict metric learning and ambiguous, coarse-grained queries. The authors introduce a multi-grained uncertainty regularization technique that adds noise to feature representations and dynamically adjusts the loss function. This prevents the model from unfairly penalizing valid alternative candidates, significantly boosting recall across major benchmarks.

What Problem Does This Paper Address?

Composed image retrieval (also known as text-guided image retrieval) allows users to search for visual content using a combination of an image and text. For example, a user might upload a picture of a dress and add the text, "make it red with longer sleeves."

Coarse vs. Fine-grained Retrieval

Current state-of-the-art systems treat this as a strict one-to-one matching problem. They use contrastive metric learning (like InfoNCE loss) to pull the exact target image close to the query while pushing all other images away. However, real-world searches often start out vague or "coarse-grained" (e.g., "I want a darker color"). In these cases, many images could be correct matches (one-to-many). By enforcing strict one-to-one matching, existing models actively push away these valid alternative candidates during training, which severely compromises the system's overall recall rate.

Methods

To bridge the gap between fine-grained (one-to-one) and coarse-grained (one-to-many) retrieval, the authors propose a unified training strategy that doesn't require a new, complex architecture. Instead, they modify how the model learns:

Proposed Architecture with Uncertainty Regularization
  1. Uncertainty Modeling (Feature Jittering): Instead of matching the query to a single, exact point in the target feature space, the authors simulate "intra-class jittering." They do this by injecting Gaussian noise into the target image's feature representation. This creates an "uncertainty range" that simulates a coarse-grained, one-to-many matching scenario.
  2. Uncertainty Regularization: The authors modify the standard InfoNCE loss to account for this noise. If the simulated fluctuation is large, the loss function is relaxed, reducing the penalty for the query not matching the target exactly. If the noise is zero, it reverts to strict one-to-one matching.
  3. Dynamic Annealing: The training process uses a curriculum-like schedule. It starts by heavily weighting the coarse-grained uncertainty loss (allowing the model to group generally similar items without over-penalizing) and gradually anneals toward the strict, fine-grained InfoNCE loss as training progresses.

Datasets

The authors evaluated their method on three standard fashion-focused datasets, as fashion is the most common real-world application for this task:

  • FashionIQ: A widely used benchmark containing ~75k images divided into dresses, shirts, and tops/tees.
  • Fashion200k: A larger dataset with 172k training images across five clothing subsets.
  • Shoes: A dataset of ~10k shoe image pairs annotated with relative text expressions.

Key Insights and Ideas

  • Strict metric learning hurts coarse retrieval: Treating all queries as strict one-to-one mappings actively harms performance on vague queries. The model learns to repel "weak positive" matches that a human would consider correct.
  • Noise is a great proxy for ambiguity: Injecting Gaussian noise into the feature space is a surprisingly effective, computationally cheap way to simulate the one-to-many nature of coarse-grained queries without needing expensive, explicit multi-target annotations.
  • Curriculum learning prevents overfitting: Starting with coarse-grained matching and annealing toward fine-grained matching prevents the model from overfitting to strict pairs early in training. It establishes a good general neighborhood before dialing in the specifics.
  • Orthogonal to architecture: Because this is a training strategy and loss modification, it is highly extensible. It can be plugged into existing state-of-the-art architectures to yield "free" performance boosts.

Key Results

The proposed method achieved state-of-the-art or highly competitive results across the board, particularly shining in the Recall@50 metric (which measures if the correct image is in the top 50 results):

  • FashionIQ: Achieved 61.39% Recall@50 (a +4.03% improvement over the baseline). Impressively, their method using a single ResNet-50 backbone outperformed a much heavier 4x ResNet-50 ensemble of the competitive CLIP4Cir model.
  • Shoes: Reached 79.84% Recall@50 (a +3.38% improvement).
  • Fashion200k: Reached 70.2% Recall@50 (a +2.40% improvement).
  • Plug-and-play validation: When the authors added their uncertainty regularization to the state-of-the-art BLIP cross-modality model on the Shoes dataset, it boosted BLIP's Recall@10 from 43.93% to 48.40%, and Recall@50 from 70.21% to 75.29%.

Limitations and Future Work

  • Domain Specificity: The evaluation is heavily restricted to fashion datasets (clothes and shoes). Fashion items have highly structured, predictable attribute modifications (color, sleeve length, heel size). It remains to be seen how well this specific noise formulation translates to wildly diverse, open-domain images.
  • Future Work: The authors acknowledge this limitation and state their intention to explore the method's feasibility on common-object retrieval datasets. They also suggest integrating knowledge graphs to better handle complex semantic relationships in future iterations.

Summary updated

BibTeX
@inproceedings{chen2024composed,
  author = {Yiyang Chen and Zhedong Zheng and Wei Ji and Leigang Qu and Tat-Seng Chua},
  title = {{Composed Image Retrieval with Text Feedback via Multi-grained Uncertainty Regularization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=Yb5KvPkKQg},
}
Figure