Zero-Shot Composed Image Retrieval with Textual Inversion

Alberto Baldrati, Lorenzo Agnolucci, Marco Bertini, A. Bimbo
2/14/2026

No official code found. Best implementation: miccunifi/SEARLE (198 stars, PyTorch, last commit 2025-07-31). 1 more below.

Abstract

Composed Image Retrieval (CIR) aims to retrieve a target image based on a query composed of a reference image and a relative caption that describes the difference between the two images. The high effort and cost required for labeling datasets for CIR hamper the widespread usage of existing methods, as they rely on supervised learning. In this work, we propose a new task, Zero-Shot CIR (ZS-CIR), that aims to address CIR without requiring a labeled training dataset. Our approach, named zero-Shot composEd imAge Retrieval with textuaL invErsion (SEARLE), maps the visual features of the reference image into a pseudo-word token in CLIP token embedding space and integrates it with the relative caption. To support research on ZS-CIR, we introduce an open-domain benchmarking dataset named Composed Image Retrieval on Common Objects in context (CIRCO), which is the first dataset for CIR containing multiple ground truths for each query. The experiments show that SEARLE exhibits better performance than the baselines on the two main datasets for CIR tasks, FashionIQ and CIRR, and on the proposed CIRCO. The dataset, the code and the model are publicly available at https://github.com/miccunifi/SEARLE.

View on arXivView PDF

Code Implementations(2)

miccunifi/SEARLECommunity100%
PyTorch

[ICCV 2023] - Zero-shot Composed Image Retrieval with Textual Inversion

19811PythonMar 24, 20231 years agoNOASSERTION
circocirrclipcomposed-image-retrievalfashion-iq+4 more
miccunifi/CIRCOCommunity100%
PyTorch

[ICCV 2023] - Composed Image Retrieval on Common Objects in context (CIRCO) dataset

872PythonMar 24, 20231 years agoNOASSERTION
circococo-datasetcomposed-image-retrievaliccviccv2023+3 more

Similar Papers

Cite this paper

@article{baldrati2026zeroshot,
  title  = {Zero-Shot Composed Image Retrieval with Textual Inversion},
  author = {Alberto Baldrati and Lorenzo Agnolucci and Marco Bertini and A. Bimbo},
  year   = {2026},
  eprint = {2303.15247},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.15247},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.15247.svg)](https://codeofpaper.com/paper/2303.15247)

Discussion