Introduction
Composed Image Retrieval (CIR) is a challenging task where a user seeks a target image based on a reference image and a textual modification (e.g., "make this dog a cartoon"). Traditional supervised methods rely on massive, expensive datasets of human-annotated triplets (Reference, Text, Target). These models often struggle to generalize beyond their specific training domains.
Zero-shot CIR approaches, such as mapping images to "pseudo-word" tokens in a CLIP-like embedding space, offer a more scalable alternative. However, these methods frequently overlook fine-grained visual details and suffer from poor alignment between generated visual tokens and actual linguistic concepts. This paper introduces KEDs (Knowledge-Enhanced Dual-stream), a framework designed to enrich visual representations and ensure semantic alignment without requiring labeled triplets.
The KEDs Framework
KEDs addresses the limitations of previous zero-shot methods by incorporating external knowledge and a dual-stream alignment strategy. Unlike baseline methods like Pic2word, which process images in isolation, KEDs treats retrieval as an "open-book" task.
Bi-modality Knowledge-guided Projection (BKP)
The core of KEDs is the Bi-modality Knowledge-guided Projection (BKP). When processing a reference image, the model retrieves the Top-K most similar image-caption pairs from an external database (e.g., CC3M). These neighbors provide critical context, helping the model identify specific attributes and spatial layouts that might be missed by a global visual encoder.
Dual-stream Semantic Alignment
To ensure that visual features are effectively combined with text, KEDs employs two parallel processing branches:
- Visual Stream ($\phi_M$): Maintains visual consistency through image-only contrastive learning.
- Textual Stream ($\phi_A$): Uses "pseudo-triplets" mined from standard image-text pairs. By replacing caption subjects with pseudo-word tokens, the model learns to align visual features with fine-grained textual semantics.
Experimental Results
KEDs was trained on the Conceptual Captions 3M (CC3M) dataset and evaluated across diverse benchmarks, including ImageNet-R, COCO Object, CIRR, and Fashion-IQ.
The model demonstrated significant performance improvements over existing state-of-the-art zero-shot methods:
- ImageNet-R: Recall@10 improved from 10.1% to 18.0%, while Recall@50 jumped from 23.2% to 35.4%.
- CIRR: KEDs achieved 26.4% Recall@1 on the test set, outperforming several supervised models.
- Fashion-IQ: Consistent gains across categories like Dress and Shirt highlight the model's ability to capture specific fashion attributes through knowledge enhancement.
Conclusion and Future Work
KEDs proves that incorporating external knowledge and explicit textual alignment can drastically improve zero-shot CIR performance. While the use of general-purpose databases like CC3M is highly effective, future work may involve leveraging Large Language Models (LLMs) to generate more descriptive reference image captions, further bridging the gap between visual and textual domains.
Summary updated