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

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

Introduction

Composed Image Retrieval (CIR) involves finding a target image based on a multi-modal query consisting of a reference image and a text snippet describing modifications (e.g., "an image of a red dress" + "make it blue and shorter"). Traditional CIR methods rely heavily on contrastive learning, which treats only a single ground-truth target as positive and all other images in a batch as negatives. This binary approach suffers from two primary flaws: it penalizes the model for retrieving relevant but non-target images (false negatives) and relies on metrics like Recall@K that do not fully capture human satisfaction in real-world scenarios.

Conceptual overview of QuRe vs. existing CIR methods.

To address these issues, we present QuRe (Query-Relevant Retrieval). QuRe shifts the paradigm from simple binary classification to preference-based ranking, ensuring that the entire retrieved set aligns with user intent rather than just finding a single "needle in a haystack."

Methodology

QuRe introduces two core innovations: a preference-based reward objective and a "steep drop" hard negative sampling strategy.

Preference-Based Reward Modeling

Departing from standard contrastive loss, QuRe utilizes a Bradley-Terry reward model objective. This approach optimizes the model to rank a "positive" target image higher than "negative" samples. By focusing on relative ranking rather than absolute classification, the model becomes more robust to the inherent noise in large-scale, unannotated datasets where multiple images might satisfy a single query.

"Steep Drop" Hard Negative Sampling

The effectiveness of ranking-based models depends on the quality of negative samples. QuRe employs a novel "steep drop" heuristic to identify "hard" negatives—images that are visually similar to the target but lack specific requested attributes.

The QuRe training architecture and hard negative sampling process.

As illustrated in Figure 2, the model periodically ranks the image corpus. It identifies regions in the score distribution where relevance scores decline sharply. These "steeps" typically mark semantic boundaries (e.g., transitioning from "blue shirts" to "blue jackets"). By sampling negatives from the transition zone between these drops, QuRe creates a challenging training signal that forces the model to learn fine-grained distinctions. This process also creates an implicit curriculum: as the model improves, the "steep drop" zone narrows, presenting increasingly difficult challenges.

Evaluation and Results

The performance of QuRe was evaluated across standard benchmarks and a new human-centric dataset.

Datasets

  • FashionIQ & CIRR: Standard benchmarks for fashion and general domain CIR.
  • CIRCO: Used for zero-shot evaluation to assess generalization to unseen categories.
  • HP-FashionIQ (Human-Preference FashionIQ): A novel dataset introduced by the authors containing 2,715 queries where 61 human participants chose between sets of retrieved results to provide a ground-truth for user satisfaction.

Performance

QuRe achieved state-of-the-art (SOTA) results across all evaluated metrics. On FashionIQ, it reached an average Recall@10 of 52.60, surpassing previous leaders. In zero-shot settings on CIRCO, it outperformed the next best model by 5.13 mAP. Crucially, on the HP-FashionIQ dataset, QuRe achieved a 74.55% preference rate, demonstrating that its improvements in standard metrics translate directly to higher user satisfaction.

Discussion and Limitations

The success of QuRe highlights that relevance in retrieval is a spectrum rather than a binary state. By treating retrieval as a preference-ranking problem, the model better aligns with human judgment. However, the method introduces computational overhead due to the need for periodic corpus-wide ranking. Furthermore, the "steep drop" strategy requires an initial "warm-up" phase with random negatives to establish a baseline score distribution. Future work will explore scaling these techniques to billion-scale datasets and testing their efficacy in more specialized domains such as medical or technical imaging.

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