DSFNet: Learning Disentangled Scenario Factorization for Multi-Scenario Route Ranking

Jiahao Yu, Yihai Duan, Longfei Xu, Chao Chen, Shuliang Liu, Kaikui Liu, Fan Yang, Xiangxiang Chu, Ning Guo

Introduction

In modern navigation systems like Google Maps or AMap, route recommendation is a critical two-stage process. After a fast retrieval algorithm identifies feasible routes, a complex ranking model determines the final order based on user preferences. However, these preferences are highly scenario-dependent. A driver may prioritize time during a morning commute but prefer scenic, highway-heavy routes during a holiday trip.

Existing multi-scenario models often struggle with the "scenario explosion" problem—where combinations of time, weather, and traffic create nearly infinite contexts—and the high entanglement between similar scenarios. DSFNet (Disentangled Scenario Factorization Network) addresses these challenges by factorizing complex scenarios into a set of shared, disentangled preference patterns.

The Evolution of Multi-Scenario Architectures

Traditional approaches to multi-scenario learning typically fall into two categories: multi-branch models and dynamic-parameter models. Multi-branch models assign a separate sub-network to each scenario, which leads to massive parameter counts and poor generalization for rare scenarios. Dynamic-parameter models use a single network whose weights are modulated by scenario features, but they often fail to capture the distinct "factors" that define different driving contexts.

Comparison of (a) Multi-branch, (b) Dynamic-parameter, and (c) the proposed DSFNet architecture.

DSFNet introduces a third paradigm: Factor Scenario Learners (FSLs). Instead of treating scenarios as discrete buckets, DSFNet maintains a small set of shared "basis" parameters. A gating network then composes the final model weights for a specific scenario by intelligently mixing these FSLs. This allows the model to generalize to "tail" (rare) scenarios by combining known factors.

Inside the DSFNet Framework

DSFNet is designed to inject scenario information at every level of the neural network, from feature selection to normalization and weight generation.

Scenario-Aware Modules

  1. SAFF (Scenario-Aware Feature Filtering): A gating mechanism that selects the most relevant input features (e.g., toll costs vs. traffic lights) based on the current context.
  2. SABN (Scenario-Aware Batch Normalization): Unlike standard BN, which uses global averages, SABN dynamically re-scales data based on scenario features to preserve context-specific distributions.

Disentangled Factorization

To ensure that the Factor Scenario Learners (FSLs) capture distinct and interpretable preference patterns, the authors introduce two geometric regularization constraints:

  • Neuron Centroid Repulsion (NCR): This forces the angular directions of different FSLs to be as diverse as possible in hyperspace.
  • Contrastive Neuron Clustering (CNC): This ensures that neurons within a single FSL stay tightly clustered, preventing the factors from overlapping or becoming redundant.
Detailed architecture of DSFNet, highlighting the Scenario-Aware modules and the geometric disentanglement constraints (NCR and CNC).

The MSDR Dataset

A major contribution of this work is the release of MSDR (Multi-Scenario Driving Route), the first large-scale, publicly available industrial dataset for route ranking. It contains 59.2 million samples from 10.46 million users across 8 major Chinese cities. Unlike previous datasets, MSDR includes explicit ranking labels (the route the user actually chose) and rich contextual metadata, including fine-grained scenario data and user profiles.

Key Results and Impact

DSFNet demonstrates superior performance in both offline benchmarks and real-world deployment:

  • Offline Benchmarks: DSFNet achieved an AUC of 75.04%, significantly outperforming popular architectures like MMOE and PLE. Notably, it was the only model to show positive gains in "long-tail" scenarios where data is sparse.
  • Efficiency: Despite its high capacity, DSFNet is highly efficient. With only 0.83M parameters, it is nearly 20x smaller than some multi-branch competitors (like HiNet at 16M) while delivering better accuracy.
  • Online Deployment: In a one-week A/B test on AMap, DSFNet reduced the Deviation Rate (DR)—the frequency with which users ignore suggested routes—by 1.61% and increased user coverage by 3.82%.

Conclusion

DSFNet shifts the focus from scenario categorization to factorization. By learning a set of disentangled basis patterns, the model provides a scalable and efficient solution for personalized route ranking. Future work will explore extending this framework to multi-task learning and automating the discovery of the optimal number of factor scenarios.

Summary updated

BibTeX
@inproceedings{yu2024dsfnet,
  author = {Jiahao Yu and Yihai Duan and Longfei Xu and Chao Chen and Shuliang Liu and Kaikui Liu and Fan Yang and Xiangxiang Chu and Ning Guo},
  title = {{DSFNet: Learning Disentangled Scenario Factorization for Multi-Scenario Route Ranking}},
  booktitle = {The Web Conference},
  year = {2024},
}
Figure