Gated Ensemble of Spatio-temporal Mixture of Experts for Multi-task Learning in Ride-hailing System

Md. Hishamur Rahman, Shakil Mohammad Rifaat, Soumik Nafis Sadeek, Masnun Abrar, Dongjie WangarXiv 2020

Introduction

Modern ride-hailing platforms, such as Uber, Lyft, and DiDi, rely heavily on precise spatio-temporal forecasting to optimize fleet distribution, manage dynamic pricing, and reduce passenger wait times. Traditionally, these platforms have addressed forecasting needs through "siloed" modeling—developing independent models for different metrics (e.g., demand vs. supply-demand gap) and distinct geographic regions.

This approach introduces two significant bottlenecks. First, it creates a massive operational burden, requiring the maintenance and updating of dozens of individual models. Second, it fails to exploit the inherent synergies between tasks. Metrics like demand and supply-demand gaps often share underlying drivers, such as weather patterns or traffic congestion. By treating these tasks as independent, platforms miss the opportunity to learn joint representations that could improve predictive accuracy. This paper introduces GESME-Net, a unified multi-task learning framework designed to capture these cross-task correlations across multiple cities and objectives.

Methodology: The GESME-Net Architecture

The core of the proposed framework is the Gated Ensemble of Spatio-temporal Mixture of Experts (GESME-Net). The architecture is designed to move beyond "shared-bottom" multi-task models, which often suffer from negative transfer when tasks are insufficiently related. Instead, GESME-Net utilizes a sophisticated gating mechanism and specialized sub-networks.

Task Adaptation Layer

The model begins with a Task Adaptation Layer, a one-to-one linear layer that performs dynamic feature weighting. This layer adjusts the importance of input features (such as Points of Interest or weather data) specifically for each task. By filtering noise and emphasizing relevant signals at the input stage, the model ensures that subsequent layers receive task-optimized data.

Mixture of Experts (MoE)

To capture the complex nature of urban data, the model employs three specialized types of "experts":

  1. Conv-ME (Spatial Experts): These utilize 1D Convolutional Neural Networks to detect spatial dependencies. The choice of 1D convolution is a strategic workaround for spatial anonymity; in many real-world datasets, zone IDs are scrambled for privacy, making traditional 2D grid-based CNNs inapplicable.
  2. GRU-ME (Temporal Experts): These use Gated Recurrent Units to capture long-term and short-term temporal dependencies in time-series data.
  3. ConvRNN-ME (Spatio-temporal Experts): These combine convolution and recurrence to identify patterns that exist simultaneously across space and time.

Multi-Gated Architecture

Unlike standard ensemble methods, GESME-Net uses task-specific gates. This allows the model to learn a unique combination of experts for different scenarios—for instance, prioritizing temporal experts for demand forecasting while leaning more heavily on spatial experts for supply-demand gap analysis.

Experimental Setup and Datasets

The researchers evaluated GESME-Net using real-world datasets provided by Didi Chuxing, focusing on two primary scenarios:

  • Scenario 1 (Beijing): A multi-task setup predicting both Demand and Supply-Demand Gap within a single city.
  • Scenario 2 (Chengdu and Xian): A cross-city setup predicting the same task (Demand) across two different urban environments to test the model's ability to learn transferable spatial features.

The input data included historical demand, traffic speed, accessibility metrics, weather conditions (temperature, PM2.5, visibility), and contextual variables like time-of-day and local Points of Interest (POIs).

Key Insights and Results

Performance Benchmarks

GESME-Net consistently outperformed both traditional machine learning algorithms and single-task deep learning models. In the Beijing multi-task scenario, the model achieved a 10% lower Root Mean Square Error (RMSE) than the best-performing machine learning benchmark (Gradient Boosting Machine). In the cross-city scenario involving Chengdu and Xian, it demonstrated an 8% improvement in RMSE, validating the framework's ability to leverage cross-city correlations.

Feature Sensitivity and Spatial Importance

Ablation studies highlighted the critical role of spatial experts. Removing the Conv-ME component resulted in a 10.5% increase in RMSE for gap forecasting in Beijing, suggesting that spatial mismatch is a primary driver of supply-demand imbalances.

Furthermore, the model revealed nuanced feature dependencies:

  • Spatio-temporal Dominance: Historical demand and speed are significantly more influential than weather data.
  • Weather Decay: The impact of weather on predictions decays over time, with certain factors like visibility showing a negative correlation with demand in early time-slots.
  • High-Demand Structure: In high-demand zones, time-of-day characteristics are much stronger predictors than in low-demand areas, indicating that ride-hailing behavior becomes more structured and predictable as volume increases.

Conclusion and Future Work

GESME-Net demonstrates that a gated ensemble of specialized spatio-temporal experts can significantly improve forecasting accuracy while reducing the computational overhead of maintaining separate models. By successfully navigating spatial anonymity through 1D convolutions and utilizing task-specific gating, the framework provides a scalable solution for large-scale ride-hailing platforms.

Future research directions include incorporating a broader range of external variables, such as socio-economic indicators and public transit schedules, and testing the model's scalability across dozens of cities simultaneously to further explore the limits of multi-task spatio-temporal learning.

Summary updated

BibTeX
@misc{rahman2020gated,
  author = {Md. Hishamur Rahman and Shakil Mohammad Rifaat and Soumik Nafis Sadeek and Masnun Abrar and Dongjie Wang},
  title = {{Gated Ensemble of Spatio-temporal Mixture of Experts for Multi-task Learning in Ride-hailing System}},
  year = {2020},
  eprint = {2012.15408},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.15408},
}
Figure