Skip to main content
QUICK REVIEW

[Paper Review] Zero-Shot Composed Image Retrieval with Textual Inversion

Alberto Baldrati, Lorenzo Agnolucci|arXiv (Cornell University)|Mar 27, 2023
Advanced Image and Video Retrieval TechniquesComputer Science3 citations
TL;DR

This paper proposes SEARLE, a zero-shot composed image retrieval method that uses textual inversion to map reference images into learnable pseudo-word tokens in CLIP's embedding space, enabling text-to-image retrieval without supervised training. The approach achieves state-of-the-art performance on CIRR, FashionIQ, and the newly introduced CIRCO dataset, which features multiple ground truths per query, demonstrating robustness and generalization in open-domain settings.

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.

Motivation & Objective

  • To address the high cost and scarcity of labeled data in Composed Image Retrieval (CIR) by introducing a zero-shot setting that eliminates the need for supervised training.
  • To develop a method that maps reference images into pseudo-words in CLIP's text embedding space, enabling retrieval via standard text-to-image search.
  • To support research on zero-shot CIR by introducing CIRCO, the first open-domain CIR benchmark with multiple ground truths per query.
  • To improve generalization and performance in zero-shot settings through GPT-based regularization and knowledge distillation in textual inversion.

Proposed method

  • The method uses optimization-based textual inversion (OTI) to generate pseudo-word tokens for unlabeled images, regularized with GPT-generated natural language suffixes to improve semantic alignment with CLIP's vocabulary.
  • A textual inversion network $\phi$ is pre-trained via knowledge distillation from the OTI-generated pseudo-words, enabling fast inference through a single forward pass.
  • At inference, the reference image is mapped to a pseudo-word $S_*$ via $\phi$, which is concatenated with the relative caption to form a composite text query.
  • The composite text query is embedded using CLIP's text encoder and used for standard text-to-image retrieval in the CLIP-learned joint embedding space.
  • The distillation loss is designed to preserve the expressive power of the OTI-generated tokens while enabling efficient inference.
  • The method leverages a contrastive distillation loss to align the network's output with the OTI-generated pseudo-words, improving generalization and retrieval accuracy.

Experimental results

Research questions

  • RQ1Can textual inversion be effectively adapted to zero-shot composed image retrieval without any supervised fine-tuning?
  • RQ2How does GPT-based regularization during textual inversion improve the quality and semantic coherence of pseudo-words in the CLIP embedding space?
  • RQ3To what extent does knowledge distillation from optimization-based pseudo-words improve inference efficiency and retrieval performance?
  • RQ4Can a zero-shot method achieve competitive performance on standard CIR benchmarks like CIRR and FashionIQ without any labeled training data?
  • RQ5How does the inclusion of multiple ground truths per query in the CIRCO dataset affect the evaluation of CIR models?

Key findings

  • SEARLE achieves a 25.09% recall@1 on CIRR and 22.89% on FashionIQ, outperforming all baselines by up to 7% on the CIRCO dataset.
  • The ablation study shows that GPT-based regularization during OTI improves performance by 2.2% on CIRR and 1.1% on FashionIQ compared to no regularization.
  • Knowledge distillation from OTI-generated tokens significantly improves performance, with the distillation-based loss outperforming the cycle contrastive loss by 1.5% on CIRR.
  • Using a cosine distillation loss instead of contrastive distillation results in a 0.5% drop in R@1 on CIRR, indicating the superiority of contrastive learning.
  • The proposed CIRCO dataset contains multiple ground truths per query, enabling more comprehensive and reliable evaluation of CIR models.
  • The method achieves state-of-the-art performance on all three benchmarks—CIRR, FashionIQ, and CIRCO—demonstrating strong zero-shot generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.