Scale Up Composed Image Retrieval Learning via Modification Text Generation

Yinan Zhou, Yaxiong Wang, Haokun Lin, Chen Ma, Li Zhu, Zhedong Zheng

Introduction

Composed Image Retrieval (CIR) is an emerging search paradigm that allows users to query a database using a combination of a reference image and a modification text. For example, a user might provide a photo of a yellow dress and specify "change to black and add long sleeves." While highly practical for e-commerce and creative search, CIR faces a significant hurdle: a severe lack of annotated training data.

Unlike standard image-caption pairs that can be scraped from the web, CIR requires "triplets" consisting of a reference image, a modification text, and a target image. Manually labeling these triplets is tedious and expensive, leading to small, domain-specific datasets. This paper introduces a novel framework to scale up CIR training by automatically generating high-quality synthetic data and employing a sophisticated alignment strategy during fine-tuning.

Methodology

The authors propose a two-phase approach: massive data generation followed by a refined alignment process.

1. MTST: Modification Text-oriented Synthetic Triplets

Previous attempts to synthesize CIR data often relied on image editing models (e.g., Diffusion models) to create target images. However, this introduces a "visual domain gap," where models learn to recognize AI-generated artifacts rather than real-world visual changes.

To avoid this, the authors developed the MTST Generator. Instead of generating images, it generates text. By utilizing two real images and a frozen Multimodal Large Language Model (MLLM) like Vicuna-7b, the system learns to describe the transformation required to get from the reference to the target. A lightweight Query Encoder is trained to bridge the visual features with the LLM's text space. This allows for the creation of massive datasets—such as CIRR_MTST (808k triplets) and FashionIQ_MTST (579k triplets)—using only real-world image pairs.

2. Prototypical Two-Hop Alignment (PTHA)

During the fine-tuning phase, the authors introduce Prototypical Two-Hop Alignment (PTHA). This strategy is based on the insight that a modification text contains two distinct signals: what to change and what to preserve (the "implicit prototype").

  • Hop 1 (Implicit Prototype Learning): The model is tasked with generating a "reverse" modification text (from target back to reference). By processing both forward and reverse transformations, the network is forced to isolate the shared visual elements—the prototype—that remain constant between the two images.
  • Hop 2 (Prototype-bridge Alignment): The model then combines this learned prototype with the actual modification text to retrieve the target image. This "bridge" ensures the model doesn't lose track of the original image's context while applying the requested changes.

Experimental Results

The proposed method was evaluated on major benchmarks, including CIRR (general domain) and FashionIQ (clothing domain), achieving state-of-the-art (SOTA) performance.

  • CIRR Performance: The model achieved a Recall@1 of 51.85%, representing a +1.46 improvement over the previous best model (SPRC). When combined with re-ranking strategies, this rose to 56.43%.
  • FashionIQ Performance: The model saw an average improvement of +0.79 over existing SOTA baselines.
  • Scaling Laws: Ablation studies confirmed that performance scales consistently with the amount of synthetic data. As the pre-training set grew from zero to 800,000 triplets, the retrieval accuracy showed a continuous upward trend.
  • Data Quality: A human expert study revealed that the MTST-generated texts were highly accurate, with an error rate of only 4%, proving that LLMs can effectively simulate human-like modification instructions.

Key Insights

  1. Text Generation > Image Generation: Generating text to connect two real images is more effective for CIR than generating synthetic images to match a text. It preserves the integrity of the visual features.
  2. The Anatomy of a Modifier: Successful CIR models must understand the unstated "keep this the same" aspect of a query. The PTHA strategy explicitly addresses this by isolating shared features through cycle-consistency.
  3. Synthetic Data as a Catalyst: Large-scale synthetic pre-training significantly narrows the gap between domain-specific CIR models and general-purpose vision-language models.

Limitations and Future Work

While the MTST approach is highly effective, its zero-shot generalization to entirely new domains is still somewhat limited by the diversity of the initial image pools. Additionally, the authors noted that applying this specific generation strategy to the most advanced MLLMs (which already have strong comparative capabilities) requires careful tuning to avoid degrading their generalized reasoning. Future work will explore using even more powerful LLMs to generate finer-grained instructions and faster methods for adapting to new visual domains.

Summary updated

BibTeX
@article{zhou2025scale,
  author = {Yinan Zhou and Yaxiong Wang and Haokun Lin and Chen Ma and Li Zhu and Zhedong Zheng},
  title = {{Scale Up Composed Image Retrieval Learning via Modification Text Generation}},
  journal = {IEEE Trans. Multimedia},
  year = {2025},
  doi = {10.1109/tmm.2025.3599088},
}
Figure