Reason-before-Retrieve: One-Stage Reflective Chain-of-Thoughts for Training-Free Zero-Shot Composed Image Retrieval

Yuanmin Tang, Xiaoting Qin, Jue Zhang, Jing Yu, Gaopeng Gou, Gang Xiong, Qingwei Ling, Saravan Rajmohan, Dongmei Zhang, Qi Wu

Abstract

Composed Image Retrieval (CIR) aims to retrieve target images that closely resemble a reference image while integrating user-specified textual modifications, thereby capturing user intent more precisely. Existing training-free zero-shot CIR (ZS-CIR) methods often employ a two-stage process: they first generate a caption for the reference image and then use Large Language Models for reasoning to obtain a target description. However, these methods suffer from missing critical visual details and limited reasoning capabilities, leading to suboptimal retrieval performance. To address these challenges, we propose a novel, training-free one-stage method, One-Stage Reflective Chain-of-Thought Reasoning for ZS-CIR (OSrCIR), which employs Multimodal Large Language Models to retain essential visual information in a single-stage reasoning process, eliminating the information loss seen in two-stage methods. Our Reflective Chain-of-Thought framework further improves interpretative accuracy by aligning manipulation intent with contextual cues from reference images. OSrCIR achieves performance gains of 1.80% to 6.44% over existing training-free methods across multiple tasks, setting new state-of-the-art results in ZS-CIR and enhancing its utility in vision-language applications.

TL;DR

OSrCIR (One-Stage Reflective Composed Image Retrieval) introduces a training-free, one-stage framework for searching images using a combination of a reference image and text instructions. By leveraging Multimodal Large Language Models (MLLMs) and a novel "Reflective Chain-of-Thought" process, it eliminates the information loss common in traditional two-stage methods, setting new state-of-the-art results for zero-shot retrieval.

What Problem Does This Paper Address?

Composed Image Retrieval (CIR) is the task of finding a target image that looks like a reference image but incorporates specific changes described in text (e.g., "change the dog to a pug and make the background blurry").

Existing "training-free" methods typically use a two-stage process:

  1. An image captioner describes the reference image in isolation.
  2. A Large Language Model (LLM) modifies that text based on the user's instructions.

The fundamental flaw in this approach is information loss. Because the initial captioner doesn't know what the user wants to change, it often omits "irrelevant" details that later become crucial. For example, if a user wants to "remove the human," but the initial caption only mentions "a dog in a house," the LLM has no way of knowing a human was ever there to be removed. Furthermore, simple LLM prompts often fail to capture the nuanced "common sense" required to interpret ambiguous user intent.

Comparison between the traditional two-stage implicit reasoning and the proposed one-stage explicit reasoning process.

Methods

The authors propose OSrCIR, which moves from a two-stage "caption-then-modify" pipeline to a one-stage reasoning process. This approach ensures that the model considers the image and the manipulation text simultaneously, preventing the loss of context.

1. One-Stage MLLM Reasoning

Instead of captioning first, the system feeds both the reference image and the manipulation text directly into a Multimodal Large Language Model (MLLM), such as GPT-4o. This allows the model to "see" the image while simultaneously considering the requested changes, ensuring that details relevant to the manipulation are prioritized.

2. Reflective Chain-of-Thought (CoT)

To ensure the model doesn't hallucinate or miss details, the authors designed a four-step internal reasoning process:

  • Original Image Description: The MLLM describes only the visual elements relevant to the requested changes.
  • Thoughts: The model infers the user's potential underlying intentions based on the visual context.
  • Reflections: A self-correction step where the model filters out incorrect inferences and identifies key elements to preserve or change.
  • Target Image Description: The final, refined text query used for retrieval.
Detailed overview of the OSrCIR framework, highlighting the Reflective Chain-of-Thought (CoT) process.

3. Vision-by-Language In-Context Learning (ICL)

To guide the MLLM without needing expensive multimodal examples, the framework uses text-only "placeholders" in the prompt. This teaches the model the desired reasoning format and reflective logic without requiring a massive training dataset.

4. Retrieval

The final target image description is embedded using a standard CLIP text encoder and matched against a database of candidate images using cosine similarity.

Key Results

  • Performance Gains: OSrCIR achieved performance improvements ranging from 1.80% to 6.44% over previous state-of-the-art training-free methods across multiple backbones (ViT-B/32, ViT-L/14, and ViT-G/14).
  • Zero-Shot Superiority: On the CIRCO dataset, it nearly doubled the performance of the top "textual inversion" methods, which typically require additional training.
  • Efficiency: Despite the complex reasoning, the one-stage approach is faster than many two-stage baselines. It takes roughly 0.6 seconds per query, representing a 66% speedup over the CIReVL baseline.
  • Qualitative Accuracy: Results show the model is significantly better at capturing specific details, like dog breeds (Chihuahuas vs. Labradors) or specific colors (tan vs. golden), which previous models often generalized or missed.

Limitations and Future Work

  • Domain-Specific Knowledge: While the MLLM reasoning is strong, the final retrieval relies on CLIP. In specialized fields like fashion, CLIP sometimes struggles with technical terms (e.g., "sequined bodice"), leading to retrieval errors even if the MLLM's description was perfect.
  • API Dependency: The current implementation relies heavily on proprietary MLLM APIs. While the authors tested open-source models like LLaVA, there is still a performance gap in reasoning capabilities.
  • Future Direction: The authors suggest exploring better alignment between the reasoning module (MLLM) and the retrieval module (CLIP) to handle specialized domains more effectively.

Summary updated

BibTeX
@inproceedings{tang2025reason,
  author = {Yuanmin Tang and Xiaoting Qin and Jue Zhang and Jing Yu and Gaopeng Gou and Gang Xiong and Qingwei Ling and Saravan Rajmohan and Dongmei Zhang and Qi Wu},
  title = {{Reason-before-Retrieve: One-Stage Reflective Chain-of-Thoughts for Training-Free Zero-Shot Composed Image Retrieval}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01343},
}
Figure