Optimizing E-commerce Search: Toward a Generalizable and Rank-Consistent Pre-Ranking Model

Enqiang Xu, Yiming Qiu, Junyang Bai, Ping Zhang, Dadong Miao, Songlin Wang, Guoyu Tang, Lin Liu, Mingming LiSIGIR 2024

Abstract

In large-scale e-commerce search, the pre-ranking stage serves as a critical filter between broad recall and complex ranking models. However, traditional pre-ranking often suffers from rank inconsistency with downstream models and poor generalization on long-tail items. Researchers at JD.com have introduced GRACE (Generalizable and RAnk-ConsistEnt), a novel framework that bridges this gap. By combining multi-task top-$k$ classification with contrastive learning, GRACE ensures that the lightweight pre-ranking stage aligns with the sophisticated ranking stage while significantly improving performance on rare items.

The Challenge: Inconsistency and the Long-Tail

Massive e-commerce platforms typically utilize a cascading search architecture: Recall retrieves thousands of items, Pre-ranking narrows them to hundreds, and Ranking selects the final top results. As the "gatekeeper," the pre-ranking stage faces two primary hurdles:

  1. Rank Inconsistency: Pre-ranking models often use simplified objectives (like basic click-through rate) that do not align with the complex multi-objective logic of the final ranker. If the pre-ranker discards a high-quality item, the ranker never sees it.
  2. Generalization: With billions of items, many are "long-tail" with minimal interaction data. Representing these items accurately without massive, memory-intensive embedding tables is a significant engineering challenge.

The GRACE Framework

GRACE is built upon a Progressive Layered Extraction (PLE) multi-task architecture, enhanced by two specific loss functions designed to address the aforementioned challenges.

The GRACE architecture overview, illustrating the online pre-ranking flow and the offline contrastive learning and rank consistency training objectives.

Rank Consistency Loss

Instead of attempting to regress the exact scores of the downstream ranker—a noisy and difficult task—GRACE treats consistency as a set of binary classification tasks. It learns to predict whether an item will fall into specific top-$k$ buckets (e.g., top-10, top-30, top-100) as determined by the final ranker. This allows the pre-ranker to effectively learn the ranker's decision boundaries without replicating its full complexity.

Generalization via Contrastive Learning

To handle long-tail items, GRACE employs an auxiliary contrastive learning task (InfoNCE). The model aligns its lightweight embeddings with high-quality "teacher" embeddings generated by a pre-trained Graph Neural Network (GNN). To maintain a small memory footprint, the system uses Hashed ID Embeddings combined with product attributes (brand, shop, category), providing unique fingerprints for billions of items without linear parameter growth.

Experimental Evaluation

The model was evaluated using an industrial dataset from JD.com, comprising approximately one billion records from 15 days of search logs. The model was tested for temporal generalization using data from the 16th day, focusing on binary labels for clicks and conversions.

Key Results and Impact

GRACE demonstrated substantial improvements in both offline simulations and live production environments. In offline tests, it achieved a 0.749% absolute increase in AUC over the baseline PLE model.

Online A/B test results showing significant improvements in Conversion Rate (CVR) and Gross Merchandise Value (GMV), particularly for long-tail items.

In a 7-day online A/B test involving millions of users, GRACE delivered a 1.28% increase in Conversion Rate (CVR) and a 1.62% increase in Gross Merchandise Value (GMV). The most dramatic impact was observed in the long-tail segment, where CVR increased by 2.89% and GMV rose by 10.37%, validating the effectiveness of the contrastive generalization module.

Conclusion and Future Directions

GRACE successfully demonstrates that pre-ranking models do not need to be perfect rankers; they need to be effective filters. By training on multiple top-$k$ boundaries and leveraging knowledge transfer via contrastive learning, the model achieves superior alignment and generalization. Future work may address the pre-ranker's dependency on the downstream ranker's biases and the computational overhead of updating the GNN as new products enter the catalog.

Summary updated

BibTeX
@inproceedings{xu2024optimizing,
  author = {Enqiang Xu and Yiming Qiu and Junyang Bai and Ping Zhang and Dadong Miao and Songlin Wang and Guoyu Tang and Lin Liu and Mingming Li},
  title = {{Optimizing E-commerce Search: Toward a Generalizable and Rank-Consistent Pre-Ranking Model}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
}
Figure