Large Scale Deployment of BERT Based Cross Encoder Model for Re-Ranking in Walmart Search Engine
Re-ranking plays a crucial role in product search by reassessing products from the primary retrieval system based on specific engagement and relevance criteria. While transformer-based models like the cross encoder have advanced the relevance of ranking models in recent years, a significant challenge arises from the high latency cost associated with running a cross encoder model at runtime. This challenge becomes more pronounced in the long-tail segment, where conventional techniques like caching prove ineffective. To tackle these issues, our paper introduces a scalable framework featuring a BERT-based cross encoder model for re-ranking, deployed in the Walmart search engine. We employ strategies such as intermediate representations, operator fusion, and vectorization to improve the inference latency of the cross encoder model. Furthermore, we provide a detailed discussion on the runtime implementation, highlighting key learnings and practical tricks that ensured minimal impact on response latency during production. Finally, we present the results of online experiments, including manual evaluation and interleaving test conducted on real-world e-commerce search traffic.
Authors
- Cun Mu
- Changsung Kang
- Varsha Agrawal
- Ciya Liao (ORCID: https://orcid.org/0000-0001-6788-139X)
- Alessandro Magnani (ORCID: https://orcid.org/0000-0003-0345-9629)
- Ajit Puthenputhussery (ORCID: https://orcid.org/0000-0001-7141-1534)
- Prijith Chandran
- Hongwei Shang (ORCID: https://orcid.org/0009-0005-9856-9178)
- He Wang (ORCID: https://orcid.org/0000-0002-7852-8492)
- N. Sudhakar Yadav
- Yingxun Fu
- Tian Zhang
- Zbigniew Gasiorek
- Salvatore Tornatore
- Srikanth Dasaka
- Michael Bowersox
- Bhavin Madhani
Institutions
- Walmart (United States) (US)
- Mountain View College (US)
Publication Details
- Published
- 2025-07-13
- DOI
- https://doi.org/10.1145/3726302.3731965
- Citations
- 1
- Primary Topic
- Recommender Systems and Techniques
- Type
- article
- Field-Weighted Citation Impact
- 3.25