Rethinking the Role of Pre-ranking in Large-scale E-Commerce Searching System

Zhixuan Zhang, Yuheng Huang, Dan Ou, Sen Li, Longbin Li, Qingwen Liu, Xiaoyi ZengarXiv 2023 · DOI

Abstract

In large-scale industrial search systems, the pre-ranking stage has traditionally been viewed as a simplified version of the final ranking model, optimized to mimic its behavior. However, this approach suffers from sample selection bias and a fundamental mismatch between the training objective (point-wise ranking) and the actual system requirement (set selection). This paper redefines the role of pre-ranking as the selection of a high-quality unordered set of candidates. We introduce the All-Scenario-based Multi-Objective Learning (ASMOL) framework and a new evaluation metric, All-Scenario Hitrate (ASH). Our approach achieved a 1.2% increase in Gross Merchandise Volume (GMV) on Taobao Search, demonstrating that optimizing for set quality rather than ranking order significantly improves overall system performance.

Introduction

Industrial search engines like Taobao process billions of items in real-time using a multi-stage cascade architecture. As illustrated in Figure 1, the system narrows down candidates through successive stages: Matching, Pre-ranking, Ranking, and Re-ranking.

The multi-stage cascade architecture of a large-scale search system.

Traditionally, pre-ranking is treated as a "mini-ranking" module. Engineers typically optimize it for Area Under the ROC Curve (AUC) to ensure its predictions align with the final ranking model. However, this paradigm has two major flaws:

  1. Sample Selection Bias (SSB): Models trained only on "exposed" items (those seen by users) perform poorly when evaluating the hundreds of thousands of candidates encountered during live serving.
  2. Metric Mismatch: AUC measures ordering accuracy, but the pre-ranking stage's primary goal is to ensure the set of items passed to the ranking stage contains the best possible candidates, regardless of their internal order.

Methodology

To address these limitations, we propose the ASMOL framework and the ASH metric.

The ASH Metric

To measure set quality without bias, we utilize "All-Scenario" positives. An item is considered a positive if a user eventually purchases it within the same day, even if the purchase occurred through a different channel (e.g., shopping cart or recommendation feed). ASH measures the frequency with which the pre-ranking stage includes these eventually-purchased items in its top-K output.

The ASMOL Framework

ASMOL shifts the focus from imitating the ranking model to learning from the entire candidate space. Key components include:

  • Entire-Space Training: The model is trained on three distinct sample types: Exposures (seen by users), Ranking Candidates (passed pre-ranking but failed ranking), and Pre-ranking Candidates (failed pre-ranking). This exposes the model to the full distribution of items it will encounter.
  • Multi-Objective Labels: The system predicts All-Scenario Purchase, All-Scenario Click, and Adaptive Exposure simultaneously.
  • Modified List-wise Loss: We utilize a modified Softmax loss that focuses on separating positives from negatives rather than ranking multiple positives against each other, reducing "intra-positive competition."
  • Selective Distillation: The complex ranking model acts as a teacher, but only for the specific items (exposures) where its expertise is most reliable.

Experimental Results

Deployment of ASMOL on Taobao Search resulted in a 1.2% increase in GMV, a substantial gain for a mature, large-scale system.

Hitrate@K performance comparing the proposed pre-ranking model against the ranking model and baselines.

As shown in Figure 2, the proposed pre-ranking model (blue line) demonstrates superior performance in capturing relevant items as K increases. Notably, the proposed pre-ranking model actually outperforms the more complex ranking model (green line) when selecting larger candidate sets (e.g., top 1,000+). This validates the hypothesis that the two stages possess different expertise: while the ranking model excels at fine-grained ordering of a few items, the ASMOL-trained pre-ranking model is more effective at broad set selection across the entire candidate space.

Conclusion

By rethinking pre-ranking as a set-selection problem rather than a ranking problem, we have significantly improved the efficiency of the search funnel. The success of ASMOL suggests that future work should focus on the co-evolution of these stages, as higher-quality candidate pools from pre-ranking may allow for even more sophisticated downstream ranking strategies.

Summary updated

BibTeX
@misc{zhang2023rethinking,
  author = {Zhixuan Zhang and Yuheng Huang and Dan Ou and Sen Li and Longbin Li and Qingwen Liu and Xiaoyi Zeng},
  title = {{Rethinking the Role of Pre-ranking in Large-scale E-Commerce Searching System}},
  year = {2023},
  eprint = {2305.13647},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.13647},
}
Figure