Visual Search at Alibaba

Yanhao Zhang, Pan Pan, Yun Zheng, Kang Zhao, Yingya Zhang, Xiaofeng Ren, Rong JinKDD 2018 · DOI

Abstract

This paper introduces the large scale visual search algorithm and system infrastructure at Alibaba. The following challenges are discussed under the E-commercial circumstance at Alibaba (a) how to handle heterogeneous image data and bridge the gap between real-shot images from user query and the online images. (b) how to deal with large scale indexing for massive updating data. (c) how to train deep models for effective feature representation without huge human annotations. (d) how to improve the user engagement by considering the quality of the content. We take advantage of large image collection of Alibaba and state-of-the-art deep learning techniques to perform visual search at scale. We present solutions and implementation details to overcome those problems and also share our learnings from building such a large scale commercial visual search engine. Specifically, model and search-based fusion approach is introduced to effectively predict categories. Also, we propose a deep CNN model for joint detection and feature learning by mining user click behavior. The binary index engine is designed to scale up indexing without compromising recall and precision. Finally, we apply all the stages into an end-to-end system architecture, which can simultaneously achieve highly efficient and scalable performance adapting to real-shot images. Extensive experiments demonstrate the advancement of each module in our system. We hope visual search at Alibaba becomes more widely incorporated into today's commercial applications.

Introduction

Visual search in e-commerce is a complex engineering challenge that extends beyond simple image similarity. It requires matching "real-shot" queries—often characterized by poor lighting, clutter, and low resolution—against a massive inventory of professional merchant photos. Alibaba’s Pailitao engine addresses these challenges at a scale of billions of images and tens of millions of daily users.

The system must overcome four primary hurdles: bridging the domain gap between user and merchant photos, managing sub-second retrieval at extreme scale, handling noisy labels in e-commerce data, and minimizing the prohibitive cost of manual bounding box annotations for training.

System Architecture

The Pailitao pipeline is divided into offline and online processes to balance accuracy with operational efficiency.

The end-to-end system architecture of Pailitao, showing both offline indexing and online query processing pipelines.

The offline process involves building an item inventory, extracting features through a joint detection and learning model, and constructing a scalable index engine. The online process handles the user query image through a mobile app, performs category prediction, object localization, and feature extraction, followed by image indexing and re-ranking to deliver results.

Methodology and Innovations

Hybrid Category Prediction

To narrow the search space, the system uses a fusion of model-based and search-based prediction. If a standard classifier (e.g., GoogLeNet) is uncertain, the system analyzes the categories of the top-30 visually similar neighbors to "vote" on the correct category. This approach achieved a 91.01% accuracy rate.

Joint Detection and Feature Learning

Rather than employing separate, computationally expensive object detectors, Pailitao uses a two-branch CNN. One branch predicts an object mask (bounding box) while the other extracts features. These are trained simultaneously, allowing the model to learn to ignore background noise without explicit manual labels.

PVLOG Triplet Mining

A core innovation is the use of Page View Logs (PVLOG) for weak supervision. By analyzing user click behavior, the system identifies positive samples (clicked results) and hard negatives (non-clicked results) for a given query.

The PVLOG triplet mining process uses user click behavior to generate training samples, pulling clicked items closer to the query in the feature space.

This method effectively turns millions of users into a distributed labeling workforce, allowing the model to learn relevant features without human-drawn bounding boxes.

Scalable Indexing and Quality-Aware Re-ranking

The system utilizes a multi-shard architecture with a two-step retrieval process: a fast "coarse filter" using binary inverted indexes followed by a "fine re-rank." The final ranking incorporates business metadata such as sales volume and conversion rates (CVR) using a Gradient Boost Decision Tree (GBDT).

Results

The implementation of these techniques has yielded significant improvements:

  • Relevance: PVLOG triplet mining improved "Identical Recall@1" by 17 percentage points over standard training.
  • Efficiency: The total system latency is approximately 100ms, with feature extraction taking ~70ms and retrieval ~25ms.
  • Business Impact: Quality-aware re-ranking led to a 7.85% increase in average CVR, demonstrating that visual relevance combined with business metrics drives user engagement.

Conclusion

Pailitao demonstrates that large-scale visual search requires a holistic approach combining deep learning, efficient system design, and the creative use of user behavior data. Future work will explore object co-segmentation and contextual constraints to further refine search results in complex scenes and across the "long tail" of niche product categories.

Summary updated

BibTeX
@inproceedings{zhang2018visual,
  author = {Yanhao Zhang and Pan Pan and Yun Zheng and Kang Zhao and Yingya Zhang and Xiaofeng Ren and Rong Jin},
  title = {{Visual Search at Alibaba}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2018},
  doi = {10.1145/3219819.3219820},
}
Figure