Abstract
We tackle the task of image retrieval with text feedback, where a reference image and modifier text are combined to identify the desired target image. We focus on designing an image-text compositor, i.e., integrating multi-modal inputs to produce a representation similar to that of the target image. In our algorithm, Content-Style Modulation (CoSMo), we approach this challenge by introducing two modules based on deep neural networks: the content and style modulators. The content modulator performs local updates to the reference image feature after normalizing the style of the image, where a disentangled multi-modal non-local block is employed to achieve the desired content modifications. Then, the style modulator reintroduces global style information to the updated feature. We provide an in-depth view of our algorithm and its design choices, and show that it accomplishes outstanding performance on multiple image-text retrieval benchmarks.
Introduction
Standard image retrieval systems typically operate on a single modality: users either provide an image to find visually similar items or use text queries to describe a target. However, real-world search often involves iterative refinement. A user might find an item that is "almost right" but requires specific changes—for instance, "I like this shirt, but I want it in blue instead of red" or "similar t-shirt but with a different print."
This task, known as image retrieval with text feedback, requires a "compositor" to fuse a reference image and a text modifier into a single representation that matches the target image. The challenge lies in distinguishing between local modifications (content) and global modifications (style).
The CoSMo Framework
The proposed CoSMo (Content-Style Modulation) framework treats the composition process as a two-step modulation inspired by style transfer principles. By explicitly separating and modulating an image's local "content" and global "style" based on text modifiers, the system achieves a more precise and stable feature fusion.
Content Modulator (CM)
The process begins by extracting features from the reference image ($I^r$) and the text modifier ($T$). The Content Modulator first applies Instance Normalization to the image features ($x^r$) to strip away global style information, resulting in content-only features ($z^r$).
A Disentangled Multi-modal Non-local (DMNL) block then performs local updates. This attention mechanism allows the text to attend to specific spatial regions of the image. To ensure training stability, the authors implemented two key innovations:
- Additive Interaction: Replacing standard multiplicative interactions with additive ones to prevent gradient vanishing.
- Key Disentanglement: Using separate projection matrices for image-to-image and text-to-image keys to prevent feature interference.
Style Modulator (SM)
Once the content is updated ($o^r$), the Style Modulator reintroduces global style. It predicts affine transformation parameters (scaling and shifting) based on the text embedding ($t$). A gating mechanism is employed to decide which original styles to preserve and which new styles from the text to inject, allowing for nuanced changes like "keep the texture but change the color."
Experimental Evaluation
CoSMo was evaluated on three major fashion-centric benchmarks: FashionIQ, Shoes, and Fashion200K. These datasets test the model's ability to handle human-provided relative captions, attribute-based modifications, and large-scale vocabularies.
Key Results
CoSMo significantly outperformed previous state-of-the-art methods such as TIRG and VAL. On the FashionIQ benchmark, CoSMo achieved a Recall@10 of 26.58, a substantial improvement over the previous best single-level model (VAL at 20.53). On Fashion200K, it outperformed the TIRG baseline by approximately 7-9% across all recall metrics.
Qualitative analysis using t-SNE visualizations confirmed that the Style Modulator successfully clustered color-related keywords into distinct regions, while the Content Modulator focused on structural elements like "straps" or "sleeves."
Conclusion
CoSMo demonstrates that disentangling content and style is a powerful prior for multi-modal image retrieval. By forcing the architecture to handle these components separately, the model achieves more efficient and stable feature fusion. While highly effective in the fashion domain, the framework provides a robust foundation for complex retrieval tasks where text feedback is used to refine visual search.
Summary updated