iSEARLE: Improving Textual Inversion for Zero-Shot Composed Image Retrieval

Lorenzo Agnolucci, Alberto Baldrati, Alberto Del Bimbo, Marco Bertini

TL;DR

iSEARLE introduces a robust framework for Zero-Shot Composed Image Retrieval (ZS-CIR), allowing users to search for images using a combination of a reference image and a modifying text caption without needing expensive, manually labeled training data. By mapping images into "pseudo-word" tokens within the CLIP embedding space through a novel distillation process, the authors achieve state-of-the-art performance across multiple benchmarks and introduce CIRCO, the first open-domain CIR dataset featuring multiple ground truths and semantic categorization.

What Problem Does This Paper Address?

Composed Image Retrieval (CIR) is a nuanced search task: imagine showing a search engine a photo of a summer dress and typing "make it longer and blue." Traditionally, solving this required massive datasets of triplets (reference image, relative caption, target image) labeled by humans—a process that is slow, expensive, and often results in datasets biased toward specific domains like fashion.

Furthermore, existing benchmarks often suffer from "false negatives" (where many valid target images exist but only one is labeled) and "absolute captions" that ignore the reference image entirely. The authors tackle these issues by proposing a zero-shot approach that requires no labeled triplets and a new, higher-quality benchmark to measure progress.

Methods

The core of iSEARLE is Textual Inversion: converting the visual features of an image into a "pseudo-word" token ($S_*$) that the CLIP text encoder can understand. The method employs a two-stage "teacher-student" distillation approach:

  1. The Teacher (OTI): An Optimization-based Textual Inversion (OTI) method iteratively finds a token that best represents an image. To ensure this token behaves like a real word, the authors use a GPT-powered regularization loss. They feed prompts like "a photo of {concept}" into a GPT model to generate natural language context, then force the pseudo-word to fit into that context seamlessly.
  2. The Student (Textual Inversion Network $\phi$): Because OTI is computationally slow, the authors train a lightweight MLP (the student) to predict these pseudo-word tokens in a single forward pass.
Workflow of iSEARLE showing pre-training distillation and inference-time retrieval.

Key technical innovations include adding Gaussian noise to text features to bridge the "modality gap" (the cluster separation between image and text embeddings in CLIP) and a hard-negative sampling strategy to help the network capture fine-grained visual details.

Detailed view of the OTI optimization and the network pre-training phase.

Datasets

  • Pre-training: The model is trained on the unlabeled test split of ImageNet-1K (100k images), using only 3% of the data compared to previous state-of-the-art methods.
  • Evaluation: Standard benchmarks FashionIQ and CIRR.
  • New Benchmark - CIRCO: The authors introduced "Composed Image Retrieval on Common Objects in context." Derived from COCO, it is the first CIR dataset to provide multiple ground truths per query and semantic labels (e.g., "cardinality," "negation," "viewpoint"), enabling a much more granular analysis of model performance.
Examples of queries and ground truths from the new CIRCO dataset.

Key Insights and Ideas

  • The Modality Gap Matters: Simply matching image and text features isn't enough because CLIP embeds them in different regions. Adding noise during training helps these distributions overlap, significantly boosting retrieval accuracy.
  • GPT as a Linguistic Anchor: By using GPT to generate diverse sentences for regularization, the pseudo-words become more "interactive." They don't just represent the image in isolation; they learn how to be modified by accompanying text.
  • Efficiency via Distillation: The authors prove that a simple MLP can learn to mimic a complex optimization process, providing the expressiveness of OTI with the speed required for real-world applications.
  • Beyond Single Ground Truths: CIRCO reveals that traditional metrics (like Recall@K) are often too lenient. By labeling multiple correct targets, iSEARLE allows for the use of Mean Average Precision (mAP), a much more rigorous metric for retrieval.

Key Results

  • State-of-the-Art: iSEARLE outperforms previous zero-shot methods (like Pic2Word and LinCIR) on FashionIQ, CIRR, and CIRCO.
  • Generalization: In "domain conversion" tasks (e.g., turning a photo of a shark into a "toy shark"), iSEARLE significantly beats baselines, showing it understands the relationship between objects and their attributes better than its predecessors.
  • Robustness: The model performs well even when the pre-training data (e.g., ImageNet) is vastly different from the test data (e.g., FashionIQ), proving it isn't just memorizing specific domains.

Limitations and Future Work

Despite its success, iSEARLE (and ZS-CIR methods in general) still struggles with complex linguistic constructs. The fine-grained analysis on CIRCO showed that negation (e.g., "without cars") and viewpoint changes (e.g., "seen from the top") remain significant challenges. The authors attribute this to the underlying CLIP backbone, which often behaves like a "bag-of-words" and misses structural relationships. Future work likely involves moving toward backbones with stronger compositional reasoning.

Summary updated

BibTeX
@article{agnolucci2025isearle,
  author = {Lorenzo Agnolucci and Alberto Baldrati and Alberto Del Bimbo and Marco Bertini},
  title = {{iSEARLE: Improving Textual Inversion for Zero-Shot Composed Image Retrieval}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2025},
  doi = {10.1109/tpami.2025.3593539},
}
Figure