CIR-CoT: Towards Interpretable Composed Image Retrieval via End-to-End Chain-of-Thought Reasoning

Weihuang Lin, Yiwei Ma, Jiayi Ji, Xiaoshuai Sun, Rongrong JiarXiv 2025 · DOI

Abstract

Composed Image Retrieval (CIR) requires models to retrieve a target image based on a reference image and a modification text. Traditional approaches often treat this as a black-box embedding task, leading to poor interpretability and failures in complex instruction following. We present CIR-CoT, a retrieval-oriented Multimodal Large Language Model (MLLM) that incorporates explicit Chain-of-Thought (CoT) reasoning. By generating intermediate captions and reasoning steps before producing a retrieval embedding, CIR-CoT achieves state-of-the-art performance across multiple benchmarks while providing human-readable explanations for its retrieval decisions.

Introduction

Composed Image Retrieval (CIR) is a challenging multimodal task where a user seeks a target image by providing a reference image and a modification instruction (e.g., "Change this dog to a Golden Retriever"). The primary difficulty lies in the "cross-modal interaction"—the model must synthesize visual nuances from the image with the semantic intent of the text.

Current state-of-the-art models typically operate as "black boxes," directly mapping inputs to a mathematical embedding for search. This approach suffers from a lack of transparency and often fails to follow fine-grained instructions, leading to "hallucinated" retrieval results. To address these issues, we introduce CIR-CoT, the first retrieval-oriented MLLM that utilizes explicit CoT reasoning to bridge the gap between visual perception and textual intent.

Methodology

CIR-CoT replaces the opaque embedding process with a structured reasoning pipeline. Instead of generating a vector immediately, the model produces a three-part textual sequence:

  1. Caption: A detailed description of the reference image.
  2. Reasoning: A step-by-step explanation of how the modification text should alter the reference.
  3. Conclusion: A final description of the ideal target image.

The <emb> Token and Training

At the conclusion of the reasoning chain, the model generates a special <emb> token. The hidden state of this token serves as the final retrieval vector for similarity searching.

The <emb> token serves as the bridge between the reasoning chain and the image database.

The model is trained in two stages. First, Textual Pretraining teaches the model to compress complex sentences into the <emb> token using pure-text datasets. Second, Multimodal Adaptation fine-tunes the model on CIR datasets using a joint loss function: Cross-Entropy for reasoning quality and InfoNCE for retrieval accuracy.

Data Generation Pipeline

A significant challenge in developing CIR-CoT was the lack of reasoning labels in existing datasets like FashionIQ and CIRR. To overcome this, the authors developed a teacher-student pipeline:

  • Teacher Model: Qwen2.5-VL-72B was used to generate initial reasoning chains.
  • Quality Control: Three advanced MLLMs (InternVL3, MiMo-VL, and Keye-VL) acted as judges to score these annotations, ensuring only high-consensus samples were used for training.

Experimental Results

CIR-CoT establishes new state-of-the-art (SOTA) benchmarks across major CIR datasets:

  • CIRR: Achieved a Recall@1 of 55.06, outperforming previous baselines like CCIN.
  • FashionIQ: Delivered a top-tier average Recall@10 of 56.29.
  • Zero-Shot Generalization: On the CIRCO dataset, CIR-CoT reached an mAP@5 of 33.54, a significant improvement over previous supervised methods.

Conclusion

CIR-CoT demonstrates that interpretability and performance are not mutually exclusive. By forcing the model to "think" through a structured sequence, it achieves superior alignment between visual and textual modalities. While the reasoning process adds some inference latency, the resulting transparency and accuracy represent a major step forward for trustworthy multimodal retrieval systems.

Summary updated

BibTeX
@misc{lin2025cir,
  author = {Weihuang Lin and Yiwei Ma and Jiayi Ji and Xiaoshuai Sun and Rongrong Ji},
  title = {{CIR-CoT: Towards Interpretable Composed Image Retrieval via End-to-End Chain-of-Thought Reasoning}},
  year = {2025},
  eprint = {2510.08003},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.08003},
}
Figure