Abstract
Modern ride-hailing platforms must balance immediate order fulfillment with long-term vehicle distribution to maintain system efficiency. This paper presents CoRide, a hierarchical multi-agent reinforcement learning (MARL) framework that treats order dispatching and fleet management as a unified ranking problem. By employing a "Manager-Worker" hierarchy and multi-head attention mechanisms, CoRide coordinates thousands of vehicles across complex urban environments. Experimental results on real-world data from DiDi Chuxing demonstrate significant improvements in both driver income and order response rates compared to existing baselines.
Introduction
Ride-hailing services face a persistent dual optimization challenge: order dispatching and fleet management. Order dispatching involves the immediate matching of available drivers to passenger requests, typically focusing on short-term rewards. Conversely, fleet management (or vehicle repositioning) is a proactive strategy that moves idle drivers to high-demand areas to maximize future gains.
Traditionally, these tasks are treated independently, which often leads to sub-optimal system performance. A greedy dispatching decision might satisfy a current order but leave the driver in a low-demand "dead zone," necessitating costly repositioning later. Furthermore, the sheer scale of urban environments—with tens of thousands of vehicles and fluctuating demand—presents a massive computational hurdle for centralized optimization.
CoRide addresses these issues by viewing the ride-hailing ecosystem through a thermodynamic lens, aiming to minimize system "entropy" or disorder. By coordinating supply and demand more effectively through joint optimization, the framework ensures long-term system stability and profitability.
Methodology
The CoRide framework is built upon three key technical innovations: a hierarchical agent structure, a unified ranking-based action space, and a multi-scale attention mechanism for coordination.
Hierarchical Multi-Agent Reinforcement Learning
To manage the complexity of city-wide operations, CoRide utilizes a Manager-Worker hierarchy. The urban area is partitioned into a grid-based system:
- Manager Agents: Operating at a district level (clusters of grids), Managers set abstract, long-term goals. They operate at a lower temporal resolution, focusing on strategic distribution rather than individual movements.
- Worker Agents: Operating at the individual grid level, Workers execute specific actions to achieve the goals set by their respective Managers.
This decoupling of timescales allows the system to naturally balance immediate profit with future positioning.
Unified Action Space via Ranking
A significant challenge in ride-hailing RL is the "variant action space," where the number of available orders and vehicles changes constantly. CoRide overcomes this by redefining the action as a weight vector for ranking.
The system treats repositioning tasks as "virtual orders" to neighboring grids. Both real passenger orders and these virtual repositioning orders are ranked together using a single formulation. This allows the model to learn a policy that chooses the best possible move—whether it is a pickup or a strategic relocation—based on features like price, distance, and predicted future demand. This approach makes the model robust to fluctuating numbers of orders.
Multi-Scale Attention
Coordination is achieved through a multi-head attention mechanism. This allows a grid-level Worker to "listen" to its neighbors and its district Manager. By aggregating information from surrounding areas, the system prevents common pitfalls like "swarming," where too many vehicles move to the same hotspot simultaneously, leading to oversupply and wasted resources.
Evaluation and Results
The researchers evaluated CoRide using both real-world and synthetic datasets. The real-world data comprised four weeks of trajectory and order information from DiDi Chuxing across three major Chinese cities. A synthetic 21-grid environment was also used for stress testing demand-supply gaps and validating long-term planning.
CoRide was benchmarked against several strong baselines, including industry-standard MDP models and advanced MARL techniques like Mean Field Q-Learning (MFOD).
- Revenue Performance: In the largest test city, CoRide achieved a 9.80% increase in Accumulated Driver Income (ADI) compared to a random baseline, outperforming the best-performing MDP baseline by approximately 2.7%.
- System Efficiency: The framework also improved the Order Response Rate (ORR) by 4.81%, indicating that passengers were matched with drivers more reliably.
- Coordination Effectiveness: Analysis of the model's attention maps confirmed that it successfully identifies demand-supply imbalances and prioritizes repositioning to underserved areas.
Conclusion
CoRide demonstrates that jointly optimizing dispatching and fleet management through a hierarchical, ranking-based MARL framework significantly enhances ride-hailing performance. While the model shows great promise, future work will focus on improving training stability in highly stochastic environments and moving toward a fully decentralized execution model that incorporates more granular real-time data, such as road-level traffic conditions and real-time ETAs.
Summary updated