Abstract
The ability to efficiently search for images is essential for improving the user experiences across various products. Incorporating user feedback, via multi-modal inputs, to navigate visual search can help tailor retrieved results to specific user queries. We focus on the task of text-conditioned image retrieval that utilizes support text feedback alongside a reference image to retrieve images that concurrently satisfy constraints imposed by both inputs. The task is challenging since it requires learning composite image-text features by incorporating multiple cross-granular semantic edits from text feedback and then applying the same to visual features. To address this, we propose a novel framework SAC which resolves the above in two major steps: "where to see" (Semantic Feature Attention) and "how to change" (Semantic Feature Modification). We systematically show how our architecture streamlines the generation of text-aware image features by removing the need for various modules required by other state-of-art techniques. We present extensive quantitative, qualitative analysis, and ablation studies, to show that our architecture SAC outperforms existing techniques by achieving state-of-the-art performance on 3 benchmark datasets: FashionIQ, Shoes, and Birds-to-Words, while supporting natural language feedback of varying lengths.
Introduction: The Challenge of Composition
Text-conditioned image retrieval (TCIR) aims to find a target image based on a reference image and a natural language "feedback" query. For instance, a user might provide a photo of a dress and request to "show me this dress, but with shorter sleeves and a floral pattern." This task requires the model to understand which parts of the image to modify and how to apply those modifications while preserving the irrelevant attributes.
The core challenge is composition: how to merge a visual representation with a linguistic one. Previous methods often struggled with balancing spatial detail and complex semantic edits. Simple models frequently lost spatial information through global pooling, while more complex state-of-the-art models required heavy "preservation" modules to prevent the text from overwriting the entire image representation.
The SAC Framework: Where to See and How to Change
To address these limitations, we introduce Semantic Attention Composition (SAC). Our framework simplifies the composition process into two intuitive, lightweight steps:
- Semantic Feature Attention (SFA) - "Where to see": Instead of a global transformation, SFA uses the text query as a kernel to convolve over image features. This generates a 2D saliency map that identifies the specific regions relevant to the text feedback. By weighting the original features with this map, the model focuses its "attention" on the areas needing change, naturally preserving the rest of the image without extra modules.
- Semantic Feature Modification (SFM) - "How to change": SAC extracts features from multiple layers of a CNN to capture both coarse (global shape) and fine-grained (texture) details. These features are aggregated via an LSTM-based gating mechanism. The final modification uses Residual Offsetting, adding the text embedding to the image features to "edit" rather than replace the visual representation.
The model is trained using a combination of Triplet Loss for metric learning, a Discriminator Loss to ensure realistic feature distributions, and a Consistency Loss to maintain the integrity of both input modalities.
Experimental Evaluation
We evaluated SAC on three benchmarks representing different levels of linguistic complexity: Shoes (short keywords), FashionIQ (medium-length descriptions), and Birds-to-Words (long, complex natural language).
Key Results and Insights
- State-of-the-Art Performance: SAC consistently outperformed existing baselines across all datasets. Notably, on FashionIQ, SAC achieved an average R@10 of 29.08, significantly higher than the previous best of 23.07.
- Efficiency: By decomposing the task, SAC achieves superior results with only 1/3 of the parameters (21.7M) compared to previous leading models like VAL (61.8M).
- Robustness to Text Length: The model showed a 3-4% improvement on the Birds-to-Words dataset, demonstrating its ability to handle long, unconstrained natural language feedback more effectively than prior methods.
- Multi-Level Importance: Our ablation studies confirm that capturing features at different CNN depths is vital for handling "cross-granular" edits—ranging from simple color changes to complex structural modifications.
Conclusion
SAC provides a powerful yet efficient framework for text-conditioned image retrieval. By explicitly separating the "where" and "how" of semantic editing, it removes the need for complex preservation mechanisms while achieving state-of-the-art results. Future work will explore adaptive evaluation metrics that better align with human perception of "qualitative coherence" beyond standard recall metrics.
Summary updated