TL;DR
Multi-scenario recommendation models like Mixture-of-Experts (MoE) excel at ranking but struggle in the high-speed matching (retrieval) stage due to the structural constraints of independent "Two-Tower" architectures and severe data imbalance. This paper introduces DSMOE, a framework that uses lightweight low-rank scenario projections and cross-architecture knowledge distillation to inject high-order interaction awareness into retrieval without sacrificing latency. The result is a significant boost in retrieval quality, particularly for data-sparse, long-tail scenarios.
What Problem Does This Paper Address?
Modern large-scale applications usually feature multiple scenarios—such as different tabs, feeds, or user city contexts—within a single app. While users maintain stable core preferences across these contexts, each scenario introduces unique layouts and interaction styles.
To handle this, recommendation pipelines use a two-stage process: matching (fast retrieval of candidates from a pool of billions) and ranking (heavy, precise re-ranking of a few hundred items). Multi-gate Mixture-of-Experts (MMOE) architectures are highly effective in the ranking stage because they balance shared and scenario-specific knowledge. However, deploying them in the matching stage hits two major bottlenecks:
- Structural Independence (The Two-Tower Constraint): To meet strict millisecond-level latency constraints, matching systems rely on Two-Tower architectures that encode user and item features independently so they can be indexed via Approximate Nearest Neighbor (ANN) search. Because the towers don't interact early on, the MMOE experts optimize "blindly" without knowing how a user and item actually relate.
- Data Imbalance (Scenario Dominance): Large "head" scenarios contribute the vast majority of training data. Consequently, the gradients from these dominant scenarios overwhelm the shared parameters, causing "expert collapse" and poor performance in smaller, long-tail scenarios.
Methods
The authors propose DSMOE (Distillation-based Scenario-Adaptive Mixture-of-Experts) to bridge the gap between complex interaction modeling and retrieval efficiency. The framework introduces two core components:
1. Scenario-Adaptive Projection (SAP) Modulation
Instead of dedicating massive, separate experts to each scenario (which causes parameter explosion and overfitting in data-sparse settings), the authors introduce SAP layers. Built on top of shared base weight matrices, SAP dynamically generates lightweight, scenario-specific parameter corrections ($\Delta W$) using low-rank decomposition: $$\Delta W(e_s) = \sum_{r=1}^R (b_s)_r \cdot (A_{:,r} B_{r,:})$$ where $A$ and $B$ are trainable low-rank matrices, and $b_s$ is a bias vector generated from the scenario feature. This allows small scenarios to safely borrow representation strength from head scenarios while retaining unique, context-specific adjustments.
2. Cross-Architecture Knowledge Distillation (KD)
To overcome the "blind optimization" of independent feature encoding, the authors introduce a temporary Single-Tower Teacher Model during training. This teacher takes concatenated, joint user-item features as input, allowing it to explicitly model high-order feature interactions. The Two-Tower student model is optimized using a joint loss function that combines standard binary classification loss with a Kullback–Leibler (KL) divergence term, forcing the student to mimic the teacher's fine-grained interaction patterns. Crucially, the teacher is discarded after offline training, preserving the pure Two-Tower setup for online serving.
Datasets
The model was evaluated on two public, real-world recommendation datasets characterized by severe scenario imbalance:
- KuaiRand-Pure: A short-video recommendation dataset from Kuaishou. Scenarios are defined by the application "tab" feature, split into four scenarios: K1 (84% of data), K2 (9%), K3 (4%), and K4 (3%).
- Alimama: An e-commerce ad click dataset partitioned into four scenarios based on city levels: A1 (45%), A2 (25%), A3 (20%), and A4 (10%).
Key Insights and Ideas
- Decoupling Interaction from Inference Architecture: The most compelling insight is that a model does not need to execute complex cross-feature interactions at inference time to benefit from them. Knowledge distillation successfully bakes single-tower interaction awareness directly into the shared embedding space of a two-tower model.
- Low-Rank Corrections Prevent Expert Collapse: Rather than choosing between fully shared experts (which favors head scenarios) or fully isolated experts (which starves tail scenarios of data), low-rank parameter modulation provides a middle ground. It acts as a lightweight adapter that prevents dominant scenarios from completely hijacking the network gradients.
Key Results
DSMOE consistently outperformed state-of-the-art multi-scenario baselines (including ICAN, ADIN, SASS, M5, and PERSCEN) across both datasets, with the most pronounced improvements occurring in data-sparse settings.
- Long-Tail Boost: On KuaiRand-Pure's rarest scenario (K4, representing just 3% of the dataset), DSMOE achieved a Recall@50 of 21.87%, markedly outperforming the strongest baseline, PERSCEN (21.39%), and completely blowing past standard attention-based methods like ICAN (3.47%).
- Inference Efficiency: Despite the added complexity during training, DSMOE maintains a highly competitive footprint at inference. Thanks to the low-rank design of the SAP module, it requires fewer parameters and fewer GFLOPs than heavy baselines like M5 and PERSCEN.
Limitations and Future Work
While DSMOE successfully addresses structural and distributional bottlenecks, the authors note that the current framework is primarily tailored to ID-based features and sequential user behavior histories.
Future Directions: The authors plan to expand the framework to accommodate real-world multi-modal contexts (incorporating text, image, and video features directly into the scenario-adaptive layers) by leveraging recent advances in cross-modal learning.
Summary updated