Session-Aware Query Auto-completion using Extreme Multi-label Ranking

Nishant Yadav, Rajat Sen, Daniel N. Hill, Arya Mazumdar, Inderjit S. Dhillon
12/9/2020
cs.IRcs.LG

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

Abstract

Query auto-completion (QAC) is a fundamental feature in search engines where the task is to suggest plausible completions of a prefix typed in the search bar. Previous queries in the user session can provide useful context for the user's intent and can be leveraged to suggest auto-completions that are more relevant while adhering to the user's prefix.

Show full abstract

Such session-aware QACs can be generated by recent sequence-to-sequence deep learning models; however, these generative approaches often do not meet the stringent latency requirements of responding to each user keystroke. Moreover, these generative approaches pose the risk of showing nonsensical queries. In this paper, we provide a solution to this problem: we take the novel approach of modeling session-aware QAC as an eXtreme Multi-Label Ranking (XMR) problem where the input is the previous query in the session and the user's current prefix, while the output space is the set of tens of millions of queries entered by users in the recent past. We adapt a popular XMR algorithm for this purpose by proposing several modifications to the key steps in the algorithm. The proposed modifications yield a 3.9x improvement in terms of Mean Reciprocal Rank (MRR) over the baseline XMR approach on a public search logs dataset. We are able to maintain an inference latency of less than 10 ms while still using session context. When compared against baseline models of acceptable latency, we observed a 33% improvement in MRR for short prefixes of up to 3 characters. Moreover, our model yielded a statistically significant improvement of 2.81% over a production QAC system in terms of suggestion acceptance rate, when deployed on the search bar of an online shopping store as part of an A/B test.

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{yadav2020sessionaware,
  title  = {Session-Aware Query Auto-completion using Extreme Multi-label Ranking},
  author = {Nishant Yadav and Rajat Sen and Daniel N. Hill and Arya Mazumdar and Inderjit S. Dhillon},
  year   = {2020},
  eprint = {2012.07654},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.07654}
}

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/2012.07654.svg)](https://codeofpaper.com/paper/2012.07654)

Discussion