Product1M: Towards Weakly Supervised Instance-Level Product Retrieval via Cross-modal Pretraining

Xunlin Zhan, Yangxin Wu, Xiao Dong, Yunchao Wei, Minlong Lu, Yichi Zhang, Hang Xu, Xiaodan Liang

Abstract

In modern E-commerce, product retrieval is evolving from simple image searches to complex instance-level identification within multi-product "portfolio" images. This paper introduces Product1M, a massive dataset of over 1.1 million image-caption pairs, and CAPTURE, a hybrid-stream transformer model. By leveraging cross-modal contrastive learning and a synthetic data augmentation strategy for object detection, the proposed framework achieves state-of-the-art performance in retrieving individual products from weakly annotated, complex scenes without requiring expensive manual bounding-box labels.

Introduction

Traditional E-commerce search systems often operate on a "one image, one product" basis. However, real-world promotional content frequently features multiple items in a single "portfolio" image. Retrieving a specific item from such a set—instance-level retrieval—is significantly more challenging than standard image-level retrieval.

Comparison between image-level retrieval (top) and the proposed instance-level retrieval (bottom).

Existing approaches face two primary hurdles: the high cost of manual bounding-box annotations for millions of products and the "supervision gap" caused by fuzzy captions that describe sets rather than individual components. This paper addresses these by introducing a large-scale dataset and a weakly supervised retrieval framework.

The Product1M Dataset

The authors present Product1M, which contains 1,182,083 image-caption pairs primarily focused on the cosmetics domain. The dataset is designed to reflect real-world complexities, including multi-product combinations, occlusions, and watermarks.

Real-world challenges in the Product1M dataset, including multi-product nature, fuzzy correspondence, and category distributions.

As shown in the distribution charts, the dataset covers 458 fine-grained categories with a long-tail distribution, making it a robust benchmark for evaluating retrieval models in realistic scenarios.

Methodology: The CAPTURE Framework

To overcome the lack of instance-level labels, the authors propose CAPTURE (Cross-modal contrAstive Product Transformer for instance-level prodUct REtrieval).

Weakly Supervised Detection

Instead of manual labeling, the framework uses a copy-paste data augmentation strategy. Single-product images are automatically masked and pasted onto diverse backgrounds to create synthetic multi-product scenes. This allows a Region Proposal Network (RPN) to learn to detect individual items with zero manual bounding-box supervision.

Hybrid-Stream Architecture

CAPTURE employs a hybrid-stream transformer architecture that balances independent and joint processing of modalities. It consists of intra-modal layers for independent feature extraction, cross-modal layers for information exchange via cross-attention, and co-transformer layers for final joint reasoning on concatenated features.

Contrastive Learning vs. Matching

A key innovation is the use of Cross-Modal Contrastive (CTR) Loss instead of the standard Image-Text Matching (ITM) loss. The authors found that ITM, which treats matching as a binary classification task, is too rigid for "fuzzy" E-commerce captions. CTR loss allows the model to learn more flexible, robust representations by pulling related pairs together in a continuous feature space.

Key Results and Insights

CAPTURE demonstrates significant improvements over existing state-of-the-art models like UNITER and ViLBERT. On the Product1M test set, CAPTURE achieved a 74.63 mAP@100, outperforming UNITER by nearly 4 points.

  • The ITM Bottleneck: Experimental results confirmed that ITM actually degrades performance in instance-level tasks due to the noise in weak supervision. Contrastive learning is essential for handling fuzzy correspondences.
  • Zero-Shot Generalization: The model shows strong performance on brands not seen during training, indicating it has learned generalizable product features rather than just memorizing labels.
  • Synthetic Effectiveness: The success of the RPN trained on synthetic data suggests a scalable path forward for instance-level retrieval that bypasses the need for manual annotation.

Conclusion

Product1M and the CAPTURE framework represent a significant step toward practical, large-scale product retrieval. By addressing the challenges of multi-product images and weak supervision through synthetic data and contrastive pretraining, this work provides a scalable solution for the next generation of E-commerce search engines.

Summary updated

BibTeX
@inproceedings{zhan2021product,
  author = {Xunlin Zhan and Yangxin Wu and Xiao Dong and Yunchao Wei and Minlong Lu and Yichi Zhang and Hang Xu and Xiaodan Liang},
  title = {{Product1M: Towards Weakly Supervised Instance-Level Product Retrieval via Cross-modal Pretraining}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01157},
}
Figure