FashionSearch++: Improving Consumer-to-Shop Clothes Retrieval with Hard Negatives

Davide Morelli, Marcella Cornia, Rita Cucchiara

Abstract

Consumer-to-shop retrieval aims to match real-world user photos with professional product images. This task is challenging due to the significant domain gap between "in-the-wild" queries and studio-shot shop images. We present FashionSearch++, a framework that enhances retrieval performance by refining the training signal through a "hard negative" strategy. By focusing on the most confusingly similar non-matching items during training, our model achieves substantial gains in recall across various clothing categories.

Introduction

Finding a specific clothing item from a casual photo is a difficult computer vision task. User-generated "query" images often suffer from poor lighting, occlusions, and varied perspectives, whereas "shop" images are clean and standardized. Standard retrieval models often fail to capture the fine-grained details necessary to distinguish between similar products because they are trained on "easy" examples. FashionSearch++ addresses this by forcing the model to learn from the most challenging negative examples.

Methodology

The FashionSearch++ pipeline utilizes a dual-stream architecture to map both query and shop images into a shared embedding space.

The FashionSearch++ pipeline architecture, showing feature extraction via shared CNNs and regional pooling strategies to create a shared embedding space.

Feature Extraction and Pooling

We employ ResNet-50 and ResNet-101 architectures for robust feature extraction. To capture local details like patterns and textures, we utilize Regional Maximum Activation of Convolutions (R-MAC). Unlike standard average pooling, R-MAC aggregates features from multiple image regions at different scales, which is crucial for identifying specific fashion attributes.

Hard Negative Training Strategy

The primary contribution of this work is the refinement of the triplet loss function. In a standard triplet loss, the model minimizes the distance between a query and a positive match while maximizing the distance to all negative matches. We propose focusing exclusively on the hardest negative—the non-matching shop image that is currently closest to the query in the embedding space. This "max" operator in the loss function prevents the training signal from being diluted by easy examples, sharpening the model's ability to differentiate between highly similar items.

Experimental Results

We evaluated our approach on the Street2Shop dataset, which contains over 400,000 shop images and 20,000 user photos across 11 categories.

Quantitative Performance

Our results demonstrate that the combination of ResNet-101, R-MAC, and the Hard Negative (HN) strategy significantly outperforms baseline methods. We achieved a Recall@1 of 23.6% and a Recall@20 of 48.6%. This represents a nearly 10% absolute improvement in R@20 compared to the same model trained without the hard negative strategy.

Qualitative Analysis

The impact of the hard negative strategy is visually evident in the retrieval results. As shown in the comparison below, the model trained with hard negatives is much better at distinguishing subtle differences in silhouette and pattern, leading to more accurate top-K results.

Qualitative comparison of retrieval results between standard finetuning and finetuning with hard negatives.

Conclusion and Future Work

FashionSearch++ demonstrates that focusing on the most challenging examples during training is a powerful way to bridge the domain gap in fashion retrieval. While highly effective, future work could explore the computational efficiency of hard negative mining at scale and the integration of explicit attribute-aware learning to further refine the embedding space.

Summary updated

BibTeX
@inproceedings{morelli2021fashionsearch,
  author = {Davide Morelli and Marcella Cornia and Rita Cucchiara},
  title = {{FashionSearch++: Improving Consumer-to-Shop Clothes Retrieval with Hard Negatives}},
  booktitle = {IIR},
  year = {2021},
}
Figure