Skip to main content
QUICK REVIEW

[Paper Review] CompoDiff: Versatile Composed Image Retrieval With Latent Diffusion

Geonmo Gu, Sanghyuk Chun|arXiv (Cornell University)|Mar 21, 2023
Image Retrieval and Classification TechniquesComputer Science16 citations
TL;DR

CompoDiff introduces a diffusion-based approach for versatile, zero-shot composed image retrieval (CIR) and trains on SynthTriplets18M, achieving state-of-the-art zero-shot results across four CIR benchmarks while supporting diverse conditioning.

ABSTRACT

This paper proposes a novel diffusion-based model, CompoDiff, for solving zero-shot Composed Image Retrieval (ZS-CIR) with latent diffusion. This paper also introduces a new synthetic dataset, named SynthTriplets18M, with 18.8 million reference images, conditions, and corresponding target image triplets to train CIR models. CompoDiff and SynthTriplets18M tackle the shortages of the previous CIR approaches, such as poor generalizability due to the small dataset scale and the limited types of conditions. CompoDiff not only achieves a new state-of-the-art on four ZS-CIR benchmarks, including FashionIQ, CIRR, CIRCO, and GeneCIS, but also enables a more versatile and controllable CIR by accepting various conditions, such as negative text, and image mask conditions. CompoDiff also shows the controllability of the condition strength between text and image queries and the trade-off between inference speed and performance, which are unavailable with existing CIR methods. The code and dataset are available at https://github.com/navervision/CompoDiff

Motivation & Objective

  • Motivate CIR beyond fixed text conditions to support diverse, mixed conditioning (text, image, mask).
  • Develop a scalable, diffusion-based CIR model that leverages latent diffusion and classifier-free guidance.
  • Create SynthTriplets18M to overcome data scarcity and improve generalization of CIR models.
  • Demonstrate zero-shot CIR performance on multiple benchmarks and analyze controllability and efficiency.

Proposed method

  • Adopt a latent diffusion model in CLIP latent space with classifier-free guidance to map a reference image embedding to a target embedding under a conditioning embedding.
  • Use a two-stage training: stage 1 trains a text-to-image latent diffusion model on LAION-2B; stage 2 fine-tunes on SynthTriplets18M and LAION-2B with three tasks (text-to-image conversion, masked conversion, and triplet-based CIR).
  • Incorporate multiple conditioning modalities (text, image, mask) via cross-attention and allow flexible, user-controlled weighting (w_I, w_T) during inference as in CFG.
  • Synthesize SynthTriplets18M by transforming captions and prompts with large language models and diffusion-based image generation to create 18.8M triplets.
  • Enable inference-time controllability to balance image vs. text influence and to adjust sampling steps for speed vs. accuracy.

Experimental results

Research questions

  • RQ1Can latent diffusion with classifier-free guidance handle versatile CIR conditions beyond simple text prompts?
  • RQ2Does a large synthetic dataset (SynthTriplets18M) enable strong zero-shot CIR generalization to diverse real-world benchmarks?
  • RQ3What is the impact of conditioning type (text, negative text, masks) on CIR performance and controllability?
  • RQ4How does inference speed (sampling steps) trade off with CIR accuracy in CompoDiff?

Key findings

  • CompoDiff achieves new zero-shot state-of-the-art on FashionIQ, CIRR, CIRCO, and GeneCIS benchmarks.
  • Models trained on SynthTriplets18M outperform prior zero-shot CIR methods and even rival supervised baselines in some scenarios.
  • The method supports versatile conditioning (negative text, masks, mixed conditions) and controllability by adjusting inference weights without retraining.
  • Increasing the CLIP-based text encoder (and optionally a separate language model encoder) boosts performance, especially for ViT-L configurations.
  • Inference speed can be tuned by reducing diffusion steps with a small loss in performance; 10 steps give strong results with reasonable speed.
  • Stage-2 multi-task training (text, mask, triplet objectives) outperforms using only the triplet objective.

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.