Introduction
Composed Image Retrieval (CIR) is a sophisticated multi-modal task where a user seeks a target image based on a "composed" query: a reference image combined with a text instruction (e.g., "this dress, but shorter and in blue"). While contrastive learning is the standard approach for training CIR models, it is frequently hampered by "data starvation." This bottleneck stems from two primary issues: the high cost of manually annotating positive triplets and the computational limitations that restrict the number of negative samples used during training.
Presented at ACM Multimedia (MM '24), this paper introduces SPN4CIR, a framework that scales both positive and negative examples to achieve state-of-the-art performance without the need for extensive manual labor.
Methodology: The SPN Framework
The authors propose a two-pronged approach called SPN (Scaling Positives and Negatives) to refine the representation space of CIR models.
1. Scaling Positives (SP)
To address the scarcity of positive training triplets, the authors leverage Multi-modal Large Language Models (MLLMs), such as LLaVA, to generate synthetic data. Their automated pipeline consists of four key steps:
- Captioning: The MLLM generates detailed descriptions of images within an existing dataset.
- Image Pair Matching: A visual encoder identifies pairs of images that are visually similar yet distinct, ensuring that the "modification" between them is logical.
- Text Generation: Using structured templates, the MLLM captions are converted into modification instructions (e.g., "{Target Caption} instead of {Reference Caption}").
- Triplet Construction: These elements are combined to form new (Reference, Text, Target) training samples.
A critical finding in this process was the importance of "moderate similarity." If image pairs are too similar, the text instruction becomes redundant; if they are too different, the resulting modification instruction lacks coherence.
2. Scaling Negatives (SN)
Standard contrastive learning models typically use "in-batch" negative sampling, comparing a query against only a few hundred images. To increase this scale to thousands of negatives efficiently, the authors developed a two-stage fine-tuning framework:
- Stage 1: The model undergoes standard training with in-batch negatives to establish initial representations.
- Stage 2: The target image encoder is frozen. By freezing the encoder, the representations for every image in the dataset can be pre-calculated and cached. During training, the query is compared against the entire candidate set simultaneously. This stage is highly efficient, requiring only a fraction of the time (approximately 1/20th) of the initial stage while providing a massive increase in negative sample diversity.
Experimental Results and Insights
The SPN framework was evaluated on major benchmarks, including FashionIQ (domain-specific) and CIRR (general-domain), using various backbones like CLIP and BLIP.
Performance Gains
SPN4CIR consistently outperformed existing baselines, achieving new state-of-the-art (SOTA) results. On the CIRR dataset, the method improved the R@1 metric for the TG-CIR baseline by 4.5% and for CLIP4CIR by 5.9%. Qualitative analysis revealed that the model became significantly more adept at identifying "rare concepts," such as specific logos or unique animal species, which were often overlooked by previous models.
Zero-Shot Capabilities
The framework demonstrated remarkable zero-shot prowess. When trained on synthetic data from the CC3M (Conceptual Captions) dataset, the model outperformed several existing models specifically designed for zero-shot CIR, even without exposure to human-annotated triplets.
Limitations and Future Directions
Despite its success, the authors identified certain limitations:
- Domain Sensitivity: Performance gains were most significant when scaling negatives within the same dataset; adding negatives from external datasets (like MSCOCO) led to a decline in performance due to domain shift.
- Template Dependence: While the synthetic text generation is effective, it still relies on prompt templates. Future work may explore more naturalistic text generation through advanced LLM post-processing.
- Task Expansion: The authors suggest that the SPN approach could be extended to even lower-resource scenarios or more complex tasks, such as multi-modal video retrieval.
Conclusion
SPN4CIR demonstrates that MLLMs can serve as powerful engines for synthetic data generation, effectively mitigating the data scarcity issues in Composed Image Retrieval. By combining synthetic positive scaling with an efficient two-stage negative scaling strategy, the framework provides a scalable, high-performance solution that sets a new standard for the field.
Summary updated