Abstract
In the realm of search systems, multi-stage cascade architecture is a prevalent method, typically consisting of sequential modules such as matching, pre-ranking, and ranking. It is generally acknowledged that the model used in the pre-ranking stage must strike a balance between efficacy and efficiency. Thus, the most commonly employed architecture is the representation-focused vector product based model. However, this architecture lacks effective interaction between the query and document, resulting in a reduction in the effectiveness of the search system. To address this issue, we present a novel pre-ranking framework called RankDFM. Our framework leverages DeepFM as the backbone and employs a pairwise training paradigm to learn the ranking of videos under a query. The capability of RankDFM to cross features provides significant improvement in offline and online A/B testing performance. Furthermore, we introduce a learnable feature selection scheme to optimize the model and reduce the time required for online inference, equivalent to a tree model. Currently, RankDFM has been deployed in the search system of a short-video App, providing daily services to hundreds of millions users.
Introduction
Large-scale search systems, such as those powering major video platforms and e-commerce sites, typically employ a multi-stage cascade architecture to handle massive datasets efficiently. This process involves three primary stages:
- Matching: Rapidly retrieves thousands of candidates from a pool of billions.
- Pre-ranking: Filters these thousands down to a few hundred.
- Ranking: Applies complex, high-precision models to determine the final order.
The pre-ranking stage is a critical bottleneck. It must be fast enough to process thousands of items within milliseconds while maintaining sufficient accuracy to ensure high-quality candidates reach the final ranking stage. Traditional approaches rely on simple representation-based models (e.g., vector dot products) for speed, but these models fail to capture complex query-item interactions, leading to suboptimal results.
Methodology: The RankDFM Framework
To bridge the gap between efficiency and effectiveness, we propose RankDFM, which integrates interaction-based modeling into the pre-ranking stage.
DeepFM Backbone
Unlike standard pre-ranking models that process query and item features independently, RankDFM utilizes a DeepFM backbone. This architecture captures both low-order feature interactions via Factorization Machines (FM) and high-order interactions through Deep Neural Networks (DNN) simultaneously.
Pairwise Training with GDP Pruning
RankDFM employs a pairwise training paradigm, learning to rank pairs of items rather than predicting individual click probabilities. To address latency concerns, we introduce Gates with Differentiable Polarization (GDP). During training, these learnable gates are applied to feature interactions and pushed toward binary values (0 or 1). Post-training, interactions with a gate value of 0 are pruned, significantly reducing computational overhead during online inference.
Experimental Results
The framework was evaluated on large-scale internal datasets (Kse0820 and Kse0720) containing approximately 10 million videos each.
Offline Performance
RankDFM consistently outperformed industry standards like RankNet and COLD. On the Kse0820 dataset, it achieved a Recall@10 of 0.9738, compared to RankNet's 0.9217. This demonstrates that query-item interaction is essential for effective filtering.
Online Impact and Efficiency
In a 7-day online A/B test involving hundreds of millions of users, RankDFM (with GDP) increased the Home Page Click Rate (HPCR) by 0.127% and total Views by 0.398%. Crucially, while a standard DeepFM model exceeded the 3ms latency budget (at 15ms), the GDP-pruned RankDFM achieved a latency of 5ms, making it viable for production environments.
Conclusion
RankDFM successfully balances the trade-off between model complexity and inference speed. By leveraging interaction-based models and learnable pruning, it provides a scalable solution for high-throughput search systems. Future work will explore automated threshold selection for training pairs and the application of Neural Architecture Search (NAS) to further optimize the pre-ranking backbone.
Summary updated