Extreme Multi-label Learning for Semantic Matching in Product Search

Wei-Cheng Chang, Daniel Jiang, Hsiang-Fu Yu, Choon-Hui Teo, Jiong Zhang +7 more
6/23/2021
cs.IRcs.LG

Official code: amzn/pecos (559 stars, Python, Apache-2.0, last commit 2025-02-01).

Abstract

We consider the problem of semantic matching in product search: given a customer query, retrieve all semantically related products from a huge catalog of size 100 million, or more. Because of large catalog spaces and real-time latency constraints, semantic matching algorithms not only desire high recall but also need to have low latency.

Show full abstract

Conventional lexical matching approaches (e.g., Okapi-BM25) exploit inverted indices to achieve fast inference time, but fail to capture behavioral signals between queries and products. In contrast, embedding-based models learn semantic representations from customer behavior data, but the performance is often limited by shallow neural encoders due to latency constraints. Semantic product search can be viewed as an eXtreme Multi-label Classification (XMC) problem, where customer queries are input instances and products are output labels. In this paper, we aim to improve semantic product search by using tree-based XMC models where inference time complexity is logarithmic in the number of products. We consider hierarchical linear models with n-gram features for fast real-time inference. Quantitatively, our method maintains a low latency of 1.25 milliseconds per query and achieves a 65% improvement of Recall@100 (60.9% v.s. 36.8%) over a competing embedding-based DSSM model. Our model is robust to weight pruning with varying thresholds, which can flexibly meet different system requirements for online deployments. Qualitatively, our method can retrieve products that are complementary to existing product search system and add diversity to the match set.

View on arXivView PDF

Code Implementations(1)

amzn/pecosOfficial100%
Apache-2.0

PECOS - Prediction for Enormous and Correlated Spaces

559113Python, C++Aug 12, 20201 years agoApache-2.0
approximate-nearest-neighbor-searchextreme-multi-label-classificationextreme-multi-label-rankingmachine-learning-algorithmstransformers

Similar Papers

Cite this paper

@article{chang2021extreme,
  title  = {Extreme Multi-label Learning for Semantic Matching in Product Search},
  author = {Wei-Cheng Chang and Daniel Jiang and Hsiang-Fu Yu and Choon-Hui Teo and Jiong Zhang and Kai Zhong and Kedarnath Kolluri and Qie Hu and Nikhil Shandilya and Vyacheslav Ievgrafov and Japinder Singh and Inderjit S. Dhillon},
  year   = {2021},
  eprint = {2106.12657},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.12657}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.12657.svg)](https://codeofpaper.com/paper/2106.12657)

Discussion