QuRe: Query-Relevant Retrieval through Hard Negative Sampling in Composed Image Retrieval

Jaehyun Kwak, Ramahdani Muhammad Izaaz Inhar, Se-Young Yun, Sung-Ju Lee

TL;DR

Composed Image Retrieval (CIR) models often return messy results because standard contrastive learning mistakenly penalizes "false negatives"—images that are highly relevant to the user's query but aren't the single annotated target. QuRe solves this by replacing contrastive loss with a reward-model preference objective and introducing a novel hard negative sampling strategy based on sharp drops in relevance scores. This approach achieves state-of-the-art performance on standard benchmarks and aligns significantly better with actual human preferences.

What Problem Does This Paper Address?

Imagine you are shopping online and want to find a shirt similar to one you upload, but "blue with short sleeves." This task—combining a reference image with modifying text to retrieve a new image—is called Composed Image Retrieval (CIR).

Currently, almost all CIR models are trained using contrastive learning. This framework treats the single annotated target image as a "positive" example and every other image in the dataset as a "negative" example.

Here lies the flaw: an e-commerce catalog contains many blue, short-sleeved shirts. Contrastive learning forces the model to treat these perfectly valid alternatives as negatives. As a result, the model learns to suppress relevant features, frequently filling the user's top search results with completely irrelevant items. Furthermore, standard evaluation metrics like Recall@k hide this issue because they only check if the exact target image is in the top results, completely ignoring the quality of the surrounding recommendations.

Figure 1. Comparison of existing CIR methods and QURE. Tradi- tional CIR approaches treat all non-target images as negatives in contrastive learning. In contrast, QURE ranks the image corpus using a learned relevance score to identify a hard negative set. It then applies preference-based optimization to distinguish not only the target image but also other relevant images from hard negatives, leading to improved retrieval performance.

Methods

To overcome the false-negative trap, the authors introduce QuRe (Query-Relevant Retrieval), which shifts the training paradigm from standard contrastive learning to preference optimization.

  1. Reward Model Objective: Borrowing concepts from reinforcement learning from human feedback (RLHF), QuRe optimizes a Bradley-Terry preference model. Instead of contrasting a target against a massive batch of negatives, it minimizes a negative log-likelihood (NLL) loss that simply ensures the model scores the positive target higher than a single, carefully selected hard negative.
  2. Score-Steepness Sampling: The magic of QuRe lies in how it finds that hard negative. Periodically during training, the model ranks the entire image corpus for a given query. It then looks at the relevance scores occurring after the target image and identifies the top two largest drops (degradations) in score.
  3. Images before the first sharp drop are visually and semantically too similar to the target (likely false negatives) and are skipped.
  4. Images after the second drop are too irrelevant (easy negatives).
  5. Images between the two steep drops represent the ideal "transition zone"—they share semantic similarities but lack a key attribute, making them perfect hard negatives.
Figure 2. Overview of QURE. During training, QURE periodically ranks corpus images by relevance score using the current model. Hard negatives are selected from the range between two sharp drops in relevance scores following the target image. A KL divergence loss is then used to train the model to assign higher relevance to the positive image than to a randomly chosen hard negative.

Datasets

The authors evaluated QuRe on several key datasets:

  • FashionIQ & CIRR: The standard, widely accepted benchmarks for evaluating CIR models.
  • CIRCO: A dataset specifically designed for zero-shot evaluation that includes multiple ground-truth images per query.
  • HP-FashionIQ (Human-Preference FashionIQ): A new dataset introduced in this paper to explicitly measure user satisfaction. The authors collected 3,050 queries from the FashionIQ validation set and had 61 human participants choose their preferred top-5 retrieval sets generated by different state-of-the-art CIR models.

Key Insights and Ideas

  • Steep Drops Signal Attribute Shifts: The core intuition behind QuRe is that sudden plunges in a model's sorted relevance curve correspond to distinct attribute changes (e.g., a shirt losing its collar or changing its pattern). Exploiting these mathematical "cliffs" allows for automated, query-specific negative filtering without manual annotations.
  • Recall@k Misleads User Satisfaction: The paper reveals a striking discrepancy: models can achieve similar Recall@k scores but perform drastically differently under human evaluation. For instance, older models like CLIP4CIR align better with human preferences than some recent SOTA models because they don't penalize false negatives as harshly during contrastive training.
  • Implicit Curriculum Learning: QuRe doesn't use a hardcoded schedule for negative difficulty. Instead, as the model's confidence grows across training epochs, the gap between the two steep drops naturally narrows. This automatically transitions the training from easy negatives to increasingly challenging, high-quality hard negatives.

Key Results

  • State-of-the-Art Retrieval: QuRe achieves the highest overall average recall on FashionIQ (63.04% Avg) and CIRR (80.52% Avg), outperforming recent competitive baselines like SPRC.
  • Superior Human Alignment: On the new HP-FashionIQ dataset, QuRe achieved a 74.55% preference rate, proving that its search results are significantly cleaner and more relevant to human evaluators.
  • Strong Zero-Shot Generalization: When tested zero-shot on the multi-ground-truth CIRCO dataset, QuRe outperformed the next best method (CoVR-BLIP) by a massive margin of 5.13 mAP, demonstrating its robust ability to handle real-world scenarios where multiple correct answers exist.

Limitations and Future Work

  • Warm-up Phase Dependence: QuRe requires an initial warm-up phase where the hard negative set includes the entire corpus. The success of the score-steepness strategy relies on the model establishing a baseline level of ranking proficiency during this period.
  • Computational Overhead: Periodically sorting and ranking the entire image corpus to update the query-specific hard negative sets adds computational weight, though the authors mitigate this by only updating the sets every few epochs rather than every iteration.

Summary updated

BibTeX
@inproceedings{kwak2025qure,
  author = {Jaehyun Kwak and Ramahdani Muhammad Izaaz Inhar and Se-Young Yun and Sung-Ju Lee},
  title = {{QuRe: Query-Relevant Retrieval through Hard Negative Sampling in Composed Image Retrieval}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=zUk00sasl6},
}
Figure