Instance-Level Composed Image Retrieval

Bill Psomas, George Retsinas, Nikos Efthymiadis, Panagiotis Filntisis, Yannis Avrithis, Petros Maragos, Ondrej Chum, Giorgos Tolias

TL;DR

This paper introduces i-CIR, the first dataset for instance-level Composed Image Retrieval (CIR), shifting the focus from broad categories to finding specific objects (e.g., a particular temple) modified by text. The authors also present BASIC, a training-free method leveraging pre-trained vision-language models that outperforms complex supervised systems across multiple benchmarks.

The Problem: Semantic vs. Instance-Level Retrieval

Composed Image Retrieval (CIR) is the task of searching for an image using a "composed" query: a reference image plus a modifying text string (e.g., an image of a dog + "in the snow").

The authors identify two major bottlenecks in the field:

  1. Semantic vs. Instance Level: Existing datasets operate at a "semantic level." If you search for a "red dress" using a "blue dress" image, any red dress is considered a correct match. However, real-world use cases often require instance-level precision—finding the exact same object (like a specific landmark or a unique toy) under different conditions.
  2. Dataset Quality: Current benchmarks often contain "shortcuts" where a model can ignore the image and still find the target, or they suffer from "false negatives" (correct images labeled as incorrect), artificially inflating performance metrics.
Examples from the i-CIR dataset showing composed queries, positives, and hard negatives.

The i-CIR Dataset

To address these gaps, the authors introduce i-CIR, a challenging new benchmark featuring 202 specific object instances, 1,883 queries, and 750,000 images. It explicitly includes "hard negatives" (e.g., the right object but the wrong modification, or the right modification on a different object). The curated hard negatives make it more difficult than searching through 40 million random images, proving that dataset quality and confusing distractors matter more than raw scale.

The BASIC Approach

The authors propose BASIC (Baseline Approach for SurprIsingly strong Composition), a training-free framework that uses off-the-shelf models like CLIP. Its strength lies in four simple but effective components:

  • Centering: Removes "modality bias" by subtracting the mean feature of the dataset, ensuring the model focuses on the unique features of the query rather than general dataset trends.
  • Semantic Projection: Uses two text corpora (objects and styles) to project image features into a subspace that emphasizes the object's identity while becoming invariant to stylistic changes described in the text.
  • Contextualization: Because CLIP performs better on full sentences than short snippets, BASIC uses an LLM-generated corpus to wrap text queries into natural, caption-like prompts (e.g., "a photo of [object] during sunset").
  • Harris-inspired Fusion: Instead of simply adding image and text scores, BASIC uses a fusion method inspired by the Harris corner detector. This acts as a logical AND operation, rewarding images that match both the image and text while penalizing those that only match one.

Key Results and Insights

  • State-of-the-Art Performance: BASIC consistently outperforms supervised competitors without any fine-tuning. On the new i-CIR dataset, it achieves 31.6% mAP, significantly higher than previous zero-shot methods like FreeDom (17.2%).
  • Cross-Domain Success: On ImageNet-R (domain conversion), BASIC reaches 32.1% mAP, beating the previous best of 29.9%.
  • Modality Synergy: By sweeping the "weight" between image and text, the authors found that i-CIR is "truly compositional"—it requires both modalities to succeed. In contrast, older datasets often allow models to "cheat" by relying almost entirely on the text.
  • Efficiency: Because it is training-free and uses simple linear operations, BASIC is highly efficient for large-scale deployments.

Limitations and Future Work

  • The "Logical AND" Assumption: BASIC assumes the image and text provide complementary information. This might fail in cases where one modality should dominate (e.g., a text query that says "ignore the image and find a cat").
  • Language Constraints: The current implementation and corpora are English-centric.
  • LLM Overhead: While the retrieval is fast, generating the contextualization prompts currently relies on LLMs, which could be a bottleneck if done on-the-fly for every query. Future work may involve using smaller, specialized networks for this step.

Summary updated

BibTeX
@inproceedings{psomas2025instance,
  author = {Bill Psomas and George Retsinas and Nikos Efthymiadis and Panagiotis Filntisis and Yannis Avrithis and Petros Maragos and Ondrej Chum and Giorgos Tolias},
  title = {{Instance-Level Composed Image Retrieval}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=7NEP4jGKwA},
}
Figure