Abstract
In large-scale e-commerce ranking systems, the pre-rank stage must balance extreme low-latency requirements with the need to accurately predict multiple user behaviors, such as clicks and conversions. Existing Multi-Task Learning (MTL) frameworks often introduce significant computational overhead or fail to effectively model the dependencies between tasks. This paper introduces ResFlow, a lightweight MTL framework that utilizes residual connections to share information across task-specific towers. By treating task relationships as a progressive flow from dense to sparse behaviors and employing additive score fusion, ResFlow improves ranking accuracy without increasing system latency. In live production at Shopee, ResFlow achieved a 1.29% increase in Orders-Per-User (OPU) while maintaining a strict 110ms latency budget.
Introduction
Industrial ranking systems typically operate in a multi-stage pipeline: matching, pre-ranking, and final ranking. The pre-ranking stage is particularly critical; it must filter millions of candidates down to hundreds in milliseconds. To optimize for business goals like Gross Merchandise Value (GMV), these systems must predict multiple objectives simultaneously, such as Click-Through Rate (CTR) and Conversion Rate (CVR).
However, current MTL methods face two primary hurdles in the pre-rank setting:
- Computational Complexity: State-of-the-art models like AITM rely on heavy attention mechanisms that are too slow for high-traffic environments.
- Metric Misalignment: Traditional offline metrics like AUC often fail to correlate with online business success (e.g., actual orders), leading to sub-optimal model selection.
The ResFlow Framework
ResFlow addresses these challenges through a simplified architecture designed for high-speed industrial application. The framework is built on three core innovations:
1. Residual Task Connections
Rather than using complex gating or attention modules to share information, ResFlow introduces simple residual connections between the hidden layers of different task towers. Information flows from "dense" tasks (e.g., clicking) to "sparse" tasks (e.g., ordering). By adding the hidden features of the click tower directly to the corresponding layers of the order tower, the model allows the sparser task to "piggyback" on the robust features learned from the more abundant click data. This approach provides the benefits of cross-task transfer with virtually zero computational overhead.
2. Additive Score Fusion
Standard ranking systems often combine task scores (like CTR and CVR) using multiplication. ResFlow shifts to an additive fusion strategy (a weighted sum of scores). The researchers found that additive fusion is more robust against extreme values and outliers, resulting in a more stable and effective final ranking score compared to multiplicative methods.
3. Weighted Recall@K (WR@K)
To bridge the gap between offline evaluation and online performance, the authors introduced Weighted Recall@K. Unlike standard Recall or AUC, WR@K weights items by their actual order counts. This metric demonstrates a significantly higher Pearson correlation with the online Orders-Per-User (OPU) metric, allowing researchers to more accurately predict the business impact of model changes during the offline phase.
Experimental Evaluation
ResFlow was evaluated across a diverse range of datasets to ensure generalizability:
- Public E-commerce: AliCCP (Taobao) and AliExpress (AE) datasets.
- Social Media: KuaiRand-Pure-S1, modeling user interactions like "likes" and "comments."
- Movies: MovieLens-1M, treating rating thresholds as progressive tasks.
- Industrial Production: A private dataset consisting of 10 days of search traffic logs from Shopee.
Key Results
- Online Performance: In a two-week A/B test on Shopee’s live search engine, ResFlow delivered a 1.29% uplift in OPU and a 0.88% increase in GMV.
- Latency Neutrality: Despite the performance gains, the system latency remained identical to the baseline (approximately 110ms), proving the efficiency of the residual architecture.
- Offline Accuracy: ResFlow consistently outperformed established models such as MMOE, ESMM, and AITM across all datasets, particularly in CTCVR AUC, often by margins of 1-3%.
Discussion and Insights
The success of ResFlow highlights that in high-speed industrial settings, architectural simplicity can be a significant advantage. By leveraging the natural "funnel" of user behavior (View → Click → Cart → Order), the model ensures that information flows from data-rich tasks to data-poor ones. Furthermore, ResFlow avoids the numerical instability (the "NaN" problem) often found in causal-based MTL methods like ESCM² when scaled to multiple tasks.
Limitations
ResFlow requires task-specific towers to share an analogous structural topology (matching layer dimensions) to enable residual addition. While effective for standard ranking towers, this may limit flexibility if tasks require radically different neural architectures. Additionally, while the flow from Click to Order is intuitive, determining the optimal flow for non-sequential tasks (like "Like" vs. "Share") currently requires heuristic testing.
Conclusion
ResFlow demonstrates that residual connections provide a powerful, low-latency alternative to attention mechanisms for multi-task learning in ranking. By aligning model architecture with the natural sparsity of user behavior and utilizing business-aligned metrics like WR@K, ResFlow provides a robust framework for improving real-world e-commerce outcomes.
Summary updated