Abstract
The focus of this paper is on the problem of image retrieval with attribute manipulation. Our proposed work is able to manipulate the desired attributes of the query image while maintaining its other attributes. For example, the collar attribute of the query image can be changed from round to v-neck to retrieve similar images from a large dataset. A key challenge in e-commerce is that images have multiple attributes where users would like to manipulate and it is important to estimate discriminative feature representations for each of these attributes. The proposed FashionSearchNet-v2 architecture is able to learn attribute specific representations by leveraging on its weakly-supervised localization module, which ignores the unrelated features of attributes in the feature space, thus improving the similarity learning. The network is jointly trained with the combination of attribute classification and triplet ranking loss to estimate local representations. These local representations are then merged into a single global representation based on the instructed attribute manipulation where desired images can be retrieved with a distance metric. The proposed method also provides explainability for its retrieval process to help provide additional information on the attention of the network. Experiments performed on several datasets that are rich in terms of the number of attributes show that FashionSearchNet-v2 outperforms the other state-of-the-art attribute manipulation techniques. Different than our earlier work (FashionSearchNet), we propose several improvements in the learning procedure and show that the proposed FashionSearchNet-v2 can be generalized to different domains other than fashion.
Introduction
In e-commerce and digital search, users often seek items that are "similar to this, but with a specific change"—for instance, a shirt with a different collar or a dress in a different color. This task, known as image retrieval with attribute manipulation, requires a system to modify desired attributes while maintaining the integrity of all other features.
The primary challenge in this field is "feature entanglement," where attributes like color, shape, and material are intertwined in a single vector representation. FashionSearchNet-v2 addresses this by learning attribute-specific representations through weakly-supervised localization, ensuring that changes to one trait do not inadvertently affect others.
Methodology
The FashionSearchNet-v2 architecture is built upon three core pillars:
- Weakly Supervised Localization: Utilizing Class Activation Mapping (CAM), the model identifies relevant regions of interest (ROIs) for specific attributes (e.g., the neck area for collars) using only image-level labels. This prevents "attribute bleed" by forcing the network to focus on specific spatial regions for each trait.
- Joint Training with Triplets of Regions: The network is trained using a combination of attribute classification and triplet ranking loss applied to specific regions. By isolating the ROI for an attribute, the network learns a discriminative representation for that trait while ignoring irrelevant background details.
- Attribute Memory Block: The system maintains a differentiable "memory" of attribute prototypes. When a user requests a manipulation, the system retrieves the "ideal" representation of the new trait from memory and swaps it into the query’s feature vector before merging it into a final global representation.
Experimental Evaluation
The researchers evaluated the model across four diverse datasets: Shopping100k, DARN, iMaterialist, and CelebA.
- State-of-the-Art Performance: FashionSearchNet-v2 consistently outperformed previous baselines like AMNet. On the Shopping100k dataset, it achieved a Top-20 retrieval accuracy of 48.3%, compared to AMNet’s 24.3%.
- Cross-Domain Generalization: The model demonstrated its versatility on the CelebA face dataset, reaching a 77.5% average Top-20 accuracy for attributes like facial hair, proving the architecture generalizes beyond fashion.
- Efficiency and Explainability: The localization process is highly efficient, requiring only 0.002 seconds per image for ROI extraction. Furthermore, the use of CAMs provides built-in heatmaps, offering visual explainability for the retrieval results.
Conclusion
FashionSearchNet-v2 provides a robust framework for attribute-based image retrieval. By decoupling features through localization and leveraging a prototype memory block, it offers both high accuracy and visual transparency. Future work aims to explore natural language queries and more complex comparative operations to further enhance the user search experience.
Summary updated