Abstract
Composed Image Retrieval (CIR) seeks to retrieve a target image based on a reference image and a text-based modification query. While Zero-Shot CIR (ZS-CIR) avoids the need for expensive manual annotations by leveraging pre-trained Vision-Language Models (VLMs), existing methods often suffer from representation bottlenecks and a heavy reliance on massive synthetic datasets. We present TSCIR, a two-stage framework that decouples the retrieval process into visual-to-text mapping and compositional learning. By injecting fine-grained visual semantics and utilizing a lightweight adapter-based composition stage, TSCIR achieves state-of-the-art performance with significantly higher data efficiency.
Introduction
Composed Image Retrieval (CIR) is a challenging multimodal task where a user provides a reference image and a natural language description of desired modifications to find a specific target image. For instance, a user might provide an image of a black dog and the text "standing on the lawn" to retrieve a relevant photo. Traditional supervised methods require large-scale triplet datasets (reference image, relative caption, target image), which are costly to curate.
Zero-Shot CIR (ZS-CIR) attempts to solve this by using pre-trained VLMs like CLIP. A common technique is "textual inversion," where the reference image is mapped to a pseudo-word token (e.g., [$]). However, this approach often fails to capture complex visual details and creates a discrepancy between training (mapping) and inference (composing). To mitigate this, recent works have turned to massive synthetic datasets generated by LLMs or diffusion models, which are computationally expensive and noisy.
Methodology
The proposed TSCIR framework addresses these challenges by transitioning from simple mapping to structured composition in two distinct stages.
Stage I: Visual Semantic Mapping
In the first stage, the goal is to align the reference image with the VLM's text embedding space. Unlike previous methods that compress the entire image into a single global token, TSCIR introduces a Visual Semantic Injection (VSI) module. VSI continuously injects patch-level visual features into the cross-attention layers of the text encoder. This prevents the loss of fine-grained details. To ensure the pseudo-word token [$] behaves like a natural word, a Soft Text Alignment loss is employed, using image captions as soft targets.
Stage II: Compositional Learning
The second stage focuses on teaching the model to compose the reference image representation with modification text. The VLM backbone remains frozen to preserve its foundational knowledge. Instead, lightweight Composing Adapters (CA) are inserted into the text encoder. These adapters are trained on a small synthetic triplet dataset (e.g., 32K samples), a fraction of the size used by competing methods. To maximize the utility of this limited data, TSCIR uses a Hard Negative Mining strategy, creating challenging negative examples by interpolating features between ground-truth targets and top-ranked incorrect images.
Experimental Results
TSCIR was evaluated on three major ZS-CIR benchmarks: FashionIQ, CIRR, and CIRCO.
- State-of-the-Art Performance: TSCIR achieved SOTA results across the board. On the CIRR dataset, it reached a Rank@1 of 29.16%. On the CIRCO benchmark, it achieved an mAP@5 of 18.37%, significantly outperforming models trained on 18.8 million synthetic samples despite using only a small subset of data.
- High Efficiency: The framework is highly parameter-efficient, adding only approximately 21 million trainable parameters. The decoupling of mapping and composing allows the model to achieve superior results with orders of magnitude less synthetic training data.
- Ablation Insights: Even without the second stage of compositional learning, the Stage I mapping alone outperformed several existing ZS-CIR baselines, demonstrating the effectiveness of the VSI module in capturing visual semantics.
Conclusion
TSCIR demonstrates that decoupling visual-to-text mapping from compositional learning is a powerful strategy for Zero-Shot Composed Image Retrieval. By moving beyond single-token bottlenecks and utilizing efficient adapter-based training, the framework achieves superior retrieval accuracy and remarkable data efficiency. This approach paves the way for more scalable and effective multimodal search systems.
Summary updated