DiCE-CIR: Direct Composition Learning for Efficient Zero-Shot Composed Image Retrieval

Gwang-Ho Na, Ho-Joong Kim, Seong-Whan LeearXiv 2026

TL;DR

DiCE-CIR introduces a direct composition learning framework for zero-shot composed image retrieval, bypassing the inefficient "image-to-pseudo-word" projection steps used by previous methods. By directly combining image and text embeddings via a lightweight module and training on automatically generated LLM data, it achieves state-of-the-art performance while training up to 24x faster than existing approaches.

What Problem Does This Paper Address?

Composed Image Retrieval (CIR) allows users to search for a target image using a multimodal query: a reference image plus an edit text describing the desired changes (e.g., a photo of a dog + "change the breed to a pug"). To avoid the massive manual effort required to label triplet datasets (reference image, text, target image), recent research has focused on Zero-Shot CIR (ZS-CIR), which leverages pretrained vision-language models like CLIP.

However, current state-of-the-art ZS-CIR methods rely on projection-based architectures. As shown in the figure below, these methods map the reference image into a "pseudo-word token" within the text embedding space, which must then be combined with a text prompt and fed back through the text encoder.

Fig. 1: Limitations of projection-based methods. (a) Sequential dependency during training in projection-based methods. (b) Training-inference discrepancy in projection- based methods.

This design introduces two major flaws:

  1. Sequential Dependency: The text encoder cannot run until the image projection module finishes, creating a computational bottleneck during training.
  2. Training-Inference Discrepancy: Training optimizes only the image-to-token mapping, whereas inference performs retrieval using the full composed query, creating a optimization gap.

Methods

The authors propose DiCE-CIR (Direct Composition Learning for Efficient Zero-Shot Composed Image Retrieval) to eliminate these bottlenecks through a streamlined, parallelizable architecture.

Overview of DiCE-CIR

1. Automatic Data Construction

Instead of relying on human annotations, the authors use a Large Language Model (Qwen3.5-9B) to automatically transform standard image-caption pairs into CIR training samples. Given a reference caption, the LLM generates an edit text and a corresponding target caption across five distinct edit types (e.g., fine-grained attributes, spatial changes, or scene alterations).

2. Lightweight Composition Module

Rather than projecting images into text tokens and re-running the text encoder, DiCE-CIR extracts the reference image embedding and edit text embedding independently using frozen CLIP encoders. A lightweight, gated MLP module ($\Phi$) then directly composes these two vectors into a single composed query embedding.

3. Multi-Objective Training

The composition module is trained using three complementary loss functions:

  • Alignment Loss: Pulls the composed query embedding closer to the target caption embedding.
  • Delta Loss: Aligns the direction of change in the visual space (reference image $\rightarrow$ composed query) with the direction of change in the text space (reference caption $\rightarrow$ target caption). This ensures the model faithfully executes the requested edit.
  • Contrastive Loss: Implements in-batch contrastive learning to maximize retrieval discriminability against negative samples.

Datasets

  • Training: Automatically generated dataset consisting of 1.22M compositional samples derived from the standard CC3M (Conceptual Captions) dataset.
  • Evaluation: Evaluated on two standard ZS-CIR benchmarks:
  • CIRR: Evaluates standard CIR over a smaller, curated subset of images.
  • CIRCO: A more recent, open-ended benchmark that accounts for multiple valid target images per query.

Key Insights and Ideas

  • Direct Embedding Composition: By performing composition directly in CLIP's shared embedding space, the model completely avoids the costly text re-encoding step. This allows image and text features to be processed in parallel.
  • Residual (Delta) Alignment: Simply matching the final target embedding isn't enough; the model needs to understand the relationship between the before and after states. Forcing the visual "delta" to match the textual "delta" prevents the model from ignoring the reference image or the edit text.
  • Dual-Modality Robustness: During training, the composition module pairs the edit text with both the reference image embedding and the reference text embedding. This dual-modality training acts as a powerful regularizer, making the composition module highly robust at inference time.

Key Results

DiCE-CIR achieves a remarkable balance of state-of-the-art accuracy and computational efficiency.

TABLE I: Performance comparison on CIRCO and CIRR. The best and second-best results are highlighted in bold and underline, respectively. Our method is highlighted in gray.
  • State-of-the-Art Accuracy: On the open-ended CIRCO benchmark, DiCE-CIR outperforms all prior projection-based methods, achieving an mAP@5 of 20.78 (with a ViT-L/14 backbone) and 26.23 (with a ViT-G/14 backbone). It also delivers highly competitive performance on CIRR.
  • Massive Speedups: Because it eliminates sequential text re-encoding, DiCE-CIR trains dramatically faster than its competitors. Using the same hardware (2x NVIDIA RTX A6000 GPUs), DiCE-CIR trains 10.5× faster than LinCIR when using a ViT-L backbone (0.2 hours vs 2.1 hours) and 24.3× faster when using a ViT-G backbone (0.3 hours vs 7.3 hours).

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{na2026dice,
  author = {Gwang-Ho Na and Ho-Joong Kim and Seong-Whan Lee},
  title = {{DiCE-CIR: Direct Composition Learning for Efficient Zero-Shot Composed Image Retrieval}},
  year = {2026},
  eprint = {2607.04665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.04665},
}
Figure