Introduction
Composed Image Retrieval (CIR) represents a significant evolution in search flexibility, allowing users to refine visual queries using natural language instructions. Unlike standard image-to-image or text-to-image retrieval, CIR requires the model to understand a reference image and a "relative caption" (e.g., "change the dog to a cat sitting on a rug") to find a specific target image.
Despite its potential, the development of CIR models has been historically hindered by the "triplet bottleneck." Training these models typically requires expensive, human-annotated triplets consisting of a reference image, a modification text, and a target image. Consequently, CIR datasets are often orders of magnitude smaller than the massive datasets used to train foundational models like CLIP. This research addresses this bottleneck by introducing a fully automated pipeline to synthesize high-quality training data and a novel architecture, TransAgg, designed to maximize the utility of this data.
The Automated Data Pipeline
To eliminate the need for manual annotation, the researchers developed a two-pronged strategy to "hallucinate" triplets from the existing Laion-COCO dataset. By leveraging unstructured image-caption pairs already available on the web, they created two synthetic datasets:
- Template-based Generation (Laion-CIR-Template): This approach uses linguistic rules to modify existing captions. For instance, by swapping nouns or negating specific attributes (e.g., changing "A dog in the water" to "A cat in the water"), the pipeline generates a modification instruction and a target description.
- LLM-based Generation (Laion-CIR-LLM): The researchers prompted ChatGPT to analyze existing captions and generate both a modification instruction and a corresponding target description.
In both methods, once a synthetic "target description" is generated, a sentence transformer is used to retrieve the most semantically similar actual image from the data pool, completing the triplet. This process resulted in a combined training set of 32,000 triplets, a fraction of the size of traditional large-scale datasets but significantly more targeted.
The TransAgg Architecture
To effectively process these queries, the authors introduced Transformer-based Adaptive Aggregation (TransAgg). The architecture focuses on two primary components:
- Feature Fusion: A two-layer Transformer allows visual features from the reference image and linguistic features from the text instruction to interact, creating a combined representation.
- Adaptive Aggregation: This is the model's core innovation. Rather than relying on a static combination of features, TransAgg uses a Multi-Layer Perceptron (MLP) to predict three dynamic weighting parameters ($w_1, w_2, w_3$). These weights allow the model to decide, on a per-query basis, how much to prioritize the original image, the original text, or the new fused representation. This mechanism effectively combats "modal redundancy," where the image and text might provide conflicting or overlapping information.
Performance and Key Insights
TransAgg was evaluated in a zero-shot setting on major benchmarks, including CIRR (real-life images) and FashionIQ (clothing and e-commerce). The results demonstrate that automated data generation is a highly viable alternative to manual labeling.
State-of-the-Art Results
On the CIRR benchmark, TransAgg achieved a Recall@1 of 38.10%, significantly outperforming previous zero-shot leaders such as Pic2Word (23.90%) and SEARLE (24.87%). Remarkably, TransAgg achieved these results with only 32k training triplets, while concurrent models using up to 18 million triplets achieved lower performance in several key metrics.
Templates vs. LLMs
One of the more surprising findings was that the template-based approach often outperformed the LLM-based approach. This suggests that for training CIR models, structural diversity and clean linguistic rules may be more beneficial than the creative but sometimes noisy "hallucinations" produced by Large Language Models.
Limitations and Future Outlook
While the automated pipeline is highly efficient, it is not without flaws:
- Semantic Mismatches: Occasionally, the sentence transformer retrieves a target image that matches the caption's keywords but fails to capture the specific semantic change requested (e.g., retrieving a metal watering can when a red one was requested).
- Numerical Reasoning: Like many current vision-language models, TransAgg struggles with fine-grained counting and numerical instructions.
- Data Quality: The pipeline's success is inherently tied to the accuracy of the source captions in Laion-COCO; noise in the base data inevitably propagates to the synthetic triplets.
Conclusion
This research proves that high-quality Composed Image Retrieval does not require massive, human-annotated datasets. By combining automated triplet synthesis with an adaptive transformer architecture, TransAgg sets a new standard for zero-shot performance, offering a scalable path forward for complex, multi-modal search tasks.
Summary updated