Efficient Ridesharing Order Dispatching with Mean Field Multi-Agent Reinforcement Learning

Minne Li, Zhiwei (Tony) Qin, Yan Jiao, Yaodong Yang, Zhichen Gong, Jun Wang, Chenxi Wang, Guobin Wu, Jieping Ye

Abstract

In massive ridesharing platforms, matching drivers to orders efficiently is a complex challenge. This paper introduces a decentralized approach using Mean Field Multi-Agent Reinforcement Learning (MFRL). By modeling drivers as individual agents who maximize long-term Gross Merchandise Volume (GMV) while accounting for the "average" behavior of nearby peers, the system achieves higher efficiency and better supply-demand balance than traditional centralized or single-agent methods.

The Challenge of Order Dispatching

In platforms like DiDi or Uber, the core task is matching the right driver to the right trip in real-time. Traditional systems face two primary hurdles:

  1. The Greedy Trap: A driver might accept a high-paying trip now, only to end up in a "demand desert" (e.g., a remote suburb) where follow-up orders are scarce, reducing their total daily earnings.
  2. Scalability and Reliability: Centralized dispatchers are computationally expensive to scale to millions of drivers and represent a single point of failure.
Illustration of the order dispatching problem where drivers must choose between destinations with varying future potentials.

Existing Reinforcement Learning (RL) attempts often treat this as a single-agent task, failing to capture the competitive dynamics between thousands of drivers vying for the same passengers.

Methodology: Mean Field Multi-Agent Reinforcement Learning

The authors propose two algorithms: Independent Order Dispatching (IOD) and Cooperative Order Dispatching (COD), built upon a Multi-Agent Reinforcement Learning (MARL) framework.

Mean Field Approximation

To ensure scalability, the researchers employ Mean Field Approximation. Instead of each driver tracking every other driver's actions—a mathematically intractable task at scale—each agent only considers the average action of their immediate neighbors. This "Mean Field" effectively captures local competition and supply-demand shifts without excessive computational overhead.

The Mean Field Multi-Agent Reinforcement Learning framework, showing interactions between actors, critics, and the environment.

Centralized Training, Decentralized Execution (CTDE)

The agents are trained collectively using a shared "critic" that observes the global state. However, during execution, each driver’s app runs an independent "actor" policy. This decentralized approach makes the system robust to connectivity issues and highly scalable.

Reward Shaping and Destination Potential

The reward function extends beyond the immediate fare to include Destination Potential (DP). DP measures expected future orders at a trip's destination relative to the current driver supply, encouraging agents to sacrifice immediate gains for better long-term positioning.

Evaluation and Results

The researchers utilized simulators built on three weeks of real-world trajectory data from DiDi Chuxing, including both grid-based and coordinate-based environments.

Key Performance Metrics

The Cooperative Order Dispatching (COD) algorithm consistently outperformed standard baselines:

  • GMV Improvement: In grid-based tests, COD improved GMV by approximately 7.8% over random dispatching and 4.8% over revenue-based heuristics.
  • Superiority over Optimization: In coordinate-based tests, COD outperformed the Hungarian Algorithm (HOD)—a standard combinatorial optimization tool—in both total income and supply-demand gap reduction.
  • Order Response Rate (ORR): COD maintained higher response rates than greedy methods, ensuring better service for passengers.

Insights and Future Directions

The study demonstrates that agents can learn to alleviate global traffic congestion and supply-demand gaps by propagating local "Mean Field" interactions. The most successful agents are those that anticipate future demand, often choosing destinations like Central Business Districts to maximize long-term revenue.

Future work will focus on handling heterogeneous agents (e.g., different vehicle types or driver preferences) and further refining the balance between maximizing GMV and minimizing Average Arrival Time (AAT).

Summary updated

BibTeX
@inproceedings{li2019efficient,
  author = {Minne Li and Zhiwei (Tony) Qin and Yan Jiao and Yaodong Yang and Zhichen Gong and Jun Wang and Chenxi Wang and Guobin Wu and Jieping Ye},
  title = {{Efficient Ridesharing Order Dispatching with Mean Field Multi-Agent Reinforcement Learning}},
  booktitle = {The Web Conference},
  year = {2019},
  doi = {10.1145/3308558.3313433},
}
Figure