Context-I2W: Mapping Images to Context-dependent Words for Accurate Zero-Shot Composed Image Retrieval
About
Different from Composed Image Retrieval task that requires expensive labels for training task-specific models, Zero-Shot Composed Image Retrieval (ZS-CIR) involves diverse tasks with a broad range of visual content manipulation intent that could be related to domain, scene, object, and attribute. The key challenge for ZS-CIR tasks is to learn a more accurate image representation that has adaptive attention to the reference image for various manipulation descriptions. In this paper, we propose a novel context-dependent mapping network, named Context-I2W, for adaptively converting description-relevant Image information into a pseudo-word token composed of the description for accurate ZS-CIR. Specifically, an Intent View Selector first dynamically learns a rotation rule to map the identical image to a task-specific manipulation view. Then a Visual Target Extractor further captures local information covering the main targets in ZS-CIR tasks under the guidance of multiple learnable queries. The two complementary modules work together to map an image to a context-dependent pseudo-word token without extra supervision. Our model shows strong generalization ability on four ZS-CIR tasks, including domain conversion, object composition, object manipulation, and attribute manipulation. It obtains consistent and significant performance boosts ranging from 1.88% to 3.60% over the best methods and achieves new state-of-the-art results on ZS-CIR. Our code is available at https://github.com/Pter61/context-i2w.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Composed Image Retrieval | CIRR (test) | Recall@125.6 | 481 | |
| Composed Image Retrieval | FashionIQ (val) | Shirt Recall@1029.7 | 455 | |
| Composed Image Retrieval | CIRCO (test) | mAP@1014.62 | 234 | |
| Composed Image Retrieval (Image-Text to Image) | CIRR | Recall@125.6 | 75 | |
| Compositional Image Retrieval | FashionIQ 1.0 (val) | Average Recall@1027.8 | 42 | |
| Composed Image Retrieval | Fashion-IQ | Average Recall@1027.9 | 40 | |
| Composed Image Retrieval | CIRCO 1.0 (test) | mAP@513 | 36 | |
| Compositional Image Retrieval | GeneCIS (test) | Focus Attribute R@117.2 | 31 | |
| Object Composition | COCO | Recall@113.5 | 25 | |
| Domain Conversion Retrieval | ImageNet-R | Recall@1012.9 | 24 |