TL;DR
This paper introduces a novel framework, Dual Relation Alignment (DRA), for composed image retrieval. It addresses the limitation of existing methods by incorporating a previously overlooked "implicit relation" between the reference image and the target image, alongside the standard "explicit relation" between the query (reference image + text) and the target image. This dual-relation approach significantly improves retrieval performance.
What Problem Does This Paper Address?
Composed Image Retrieval (CIR) aims to find a target image using a query composed of a reference image and a complementary text. This is more nuanced than standard image-text retrieval because the reference image provides context, and the text specifies modifications or desired attributes. While current methods excel at aligning the combined query (reference image + text) with the target image (the "explicit relation"), this paper argues that a crucial "implicit relation" exists: the complementary text can often be inferred by understanding the relationship between the reference and target images themselves. Existing methods largely ignore this implicit signal, leading to suboptimal performance. The authors propose to leverage both explicit and implicit relations for more effective retrieval.
Methods
The core of the proposed method is the Dual Relation Alignment (DRA) framework. It employs a two-tower architecture with separate image and text encoders.
- Twin Attention-based Vision Compositor (TAC): This novel component is designed to capture the implicit relation. It allows the reference and target images to "attend" to each other, effectively fusing their visual information into a unified representation. This fused representation can then be aligned with the complementary text.
- Multi-modal Compositor: This component handles the explicit relation. It fuses the visual features (from TAC) with the complementary text features. This fused representation then acts as the query to be aligned with the target image.
- Dual Alignment Learning: The framework jointly optimizes for both implicit and explicit alignment losses. The implicit alignment loss encourages similarity between the fused visual representation and the complementary text. The explicit alignment loss encourages similarity between the final query representation and the target image.
- Two-Stage Training: To leverage pre-trained models like CLIP, the authors use a two-stage training approach:
- Text Encoder Warm-up: The image encoder is frozen, and only the text encoder and compositors are trained using both implicit and explicit alignment losses. This helps adapt the text encoder to the specific needs of CIR.
- Compositor Fine-tuning: The compositors are further fine-tuned while keeping other parameters fixed.
Datasets
The proposed method is evaluated on two widely-used datasets for composed image retrieval:
- CIRR (Compose Image Retrieval on Real-life images): This dataset consists of real-life images and is known for its challenging fine-grained retrieval tasks.
- FashionIQ: This dataset is specifically designed for fashion-related image retrieval and comprises triplets of (reference image, complementary text, target image) across different fashion categories.
Key Insights and Ideas
- The "Implicit Relation" is Key: The paper's central insight is that the relationship between the reference and target images provides valuable information that can be used to infer or augment the complementary text. Ignoring this signal leaves performance on the table.
- TAC for Visual Synergy: The Twin Attention-based Vision Compositor effectively captures the interplay between the two input images, creating a richer visual representation than simply concatenating or averaging features.
- Bridging Modalities: The framework cleverly uses the fused visual representation to "compensate" for or augment the textual features, creating a stronger bridge between modalities for the explicit relation modeling.
- Joint Optimization is Powerful: By jointly optimizing for both implicit and explicit relations, the model benefits from complementary signals, leading to a more robust and accurate retrieval system.
Key Results
The DRA framework demonstrates significant improvements over state-of-the-art methods on both CIRR and FashionIQ datasets.
- CIRR: The proposed method achieves an average recall of 71.55%, surpassing the second-best method (CLIP4Cir) by 2.46%. Notably, it shows substantial improvements in low-rank recall measures.
- FashionIQ: DRA also outperforms existing methods, achieving an average Recall@50 of 63.19% across categories, a 1.45% improvement over the previous best.
- Ablation Studies: The paper shows that both the Implicit Alignment Learning (IAL) and the Explicit Alignment via Multimodal Bridging (EAMB) contribute positively to performance, with their combined effect yielding the best results. The Twin Attention mechanism in TAC also proves more effective than single attention branches.
Limitations and Future Work
- Attention Layer Tuning: While the paper explores the effect of attention layers in TAC, finding the optimal number of layers (which peaked at 4) required empirical investigation.
- Computational Cost: The introduction of additional compositors and attention mechanisms might increase computational complexity, although this is not explicitly detailed as a limitation.
- Future Work: The authors suggest that their findings on the implicit relation can guide future research in CIR, potentially leading to more efficient and effective network designs. The framework's ability to leverage this overlooked signal opens avenues for further exploration in cross-modal retrieval tasks.
Summary updated