Scalable Ride-Sourcing Vehicle Rebalancing with Service Accessibility Guarantee: A Constrained Mean-Field Reinforcement Learning Approach

Matej Jusup, Kenan Zhang, Zhiyuan Hu, Barna Pásztor, Andreas Krause, Francesco Corman

TL;DR

This paper introduces a highly scalable framework for ride-sourcing vehicle rebalancing using continuous-state Mean-Field Control (MFC) and Mean-Field Reinforcement Learning (MFRL). By modeling how a representative vehicle interacts with the aggregate fleet distribution rather than individual cars, the authors bypass the curse of dimensionality while guaranteeing geographic service equity through a novel spatial accessibility constraint. Evaluated on real-world data from Shenzhen, the approach scales seamlessly to tens of thousands of vehicles, computing rebalancing decisions in less than a millisecond while outperforming traditional linear programming benchmarks.

What Problem Does This Paper Address?

Ride-sourcing platforms like Uber, Lyft, and Didi face a constant battle against spatiotemporal supply-demand mismatches. During peak hours, vehicles naturally pool in high-demand city centers, leaving peripheral or low-demand residential areas stranded without rides. Resolving this requires vehicle rebalancing—strategically moving vacant cars to where future riders will be.

However, designing an algorithmic solution for this faces two massive hurdles:

  1. The Scalability Wall: Centralized reinforcement learning (RL) algorithms scale exponentially with fleet size. Multi-agent RL (MARL) alternatives reduce this to linear scaling but suffer from severe environmental non-stationarity and massive communication overhead as thousands of drivers try to coordinate.
  2. The Equity Blindspot: Traditional rebalancing algorithms optimize purely for platform efficiency (e.g., maximizing revenue or minimizing wait times). This creates a vicious cycle where low-demand areas are systematically neglected, raising serious concerns about spatial equity and service accessibility.

Methods

To break through the scalability wall, the authors leverage Mean-Field theory. Instead of tracking the exact state and interactions of every single vehicle, they model a single representative vehicle interacting with the probability distribution of the entire fleet. This mean-field approximation reduces the optimization complexity so that it becomes independent of the total number of vehicles, meaning the model does not need to be retrained if the fleet size changes.

The framework operates on a continuous state and action space, allowing vehicles to reposition precisely across a continuous city map rather than being restricted to coarse, discrete zones.

To address the equity blindspot, the authors introduce a population-level service accessibility constraint based on $\epsilon$-smoothed weighted differential entropy. This mathematical constraint penalizes the fleet for becoming too concentrated in demand hotspots, effectively forcing a minimum spatial spread of vehicles across residential zones. To optimize this constrained objective using standard RL techniques, they employ the log-barrier method, converting the hard constraint into a smooth, manageable penalty within the reward function.

The paper develops two distinct variations:

  • Mean-Field Control (MFC): Assumes the vehicle-passenger matching process can be approximated analytically using Optimal Transport (OT) theory, formulated as a minimum-cost flow problem on a bipartite graph.
  • Mean-Field Reinforcement Learning (MFRL): Relaxes the OT assumption by training a neural network binary classifier to learn the complex, stochastic matching dynamics directly from episodic environment interactions.
Figure 2: Illustration of the representative vehicle state transitions.

Datasets

The models were trained and evaluated using a massive, real-world dataset of taxi trajectories collected over five weeks in Shenzhen, China (January 18 to September 25, 2016). The experiments focused on the evening peak hours (16:00 to 22:00), dividing the window into 20-minute decision intervals.

To rigorously test robustness, the authors evaluated the models across four demand patterns:

  • Historical demand: Directly estimated from the real-world data.
  • Historical demand + Gaussian noise: To test sensitivity to minor fluctuations.
  • Randomly permuted demand: To test resilience against completely unseen temporal demand shifts.
  • Hypothetical demand shock: A synthetic scenario where a massive demand spike (e.g., a concert or sports event) is injected into a typically low-demand corner of the city.

Key Insights and Ideas

  • Mean-Field as a Scalability Cheat Code: Because agents react to the aggregate fleet distribution rather than individual peers, the computational complexity drops dramatically. This allows the model to control 18,000+ vehicles simultaneously without breaking a sweat.
  • Entropy as an Elegant Proxy for Equity: Rather than trying to optimize a messy combination of localized wait times and driver incomes, bounding the spatial entropy of the fleet naturally ensures that no residential zone is left entirely devoid of empty vehicles.
  • Equity Breeds Robustness: A fascinating "aha moment" in the paper is that enforcing an accessibility constraint isn't just a charitable sacrifice of efficiency. By keeping vehicles distributed more uniformly, the system becomes incredibly resilient to unexpected demand shocks. When a sudden demand surge occurs in a peripheral zone, constrained models already have vehicles nearby to service the requests.

Key Results

  • Blazing Fast Inference: For a fleet of 18,000 vehicles, both MFC and MFRL generate rebalancing policies in less than 1 millisecond on a GPU. In comparison, traditional Dynamic Linear Programming (LP) benchmarks take over 12 minutes to compute a single step.
  • Navigating the Pareto Front: The framework successfully maps the efficiency-equity trade-off. Increasing the equity constraint factor ($p$) from 0 (pure profit-driven) to 0.5 (balanced) improves spatial accessibility while costing less than a 5% drop in overall vehicle utilization.
  • Conquering Demand Shocks: In the extreme 5,200-request demand shock scenario, the profit-driven baseline completely failed. However, the highly constrained MFRL(0.85) policy maintained a 70–85% service rate, vastly outperforming both no-rebalancing and LP benchmarks, which left over 60% of requests unserved.

Limitations and Future Work

While highly effective, the authors note several limitations that pave the way for future research:

  • The Full-Compliance Assumption: The model assumes a centralized platform can dictate exactly where vacant vehicles go. While perfect for future fleets of autonomous vehicles (AVs), human drivers in the real world exhibit strategic, non-compliant behaviors that require more sophisticated behavioral modeling.
  • Coarse Time Discretization: The simulation assumes all trips (passenger and rebalancing) are completed within a single 20-minute interval, ignoring multi-step travel times and real-time traffic congestion.
  • System-Level vs. Local Constraints: The current accessibility constraint is applied globally across the entire system. Future iterations could benefit from finer-grained, neighborhood-specific constraints to handle unique local contexts (e.g., separating commercial districts from rivers or parks more dynamically).

Summary updated

BibTeX
@misc{jusup2025scalable,
  author = {Matej Jusup and Kenan Zhang and Zhiyuan Hu and Barna Pásztor and Andreas Krause and Francesco Corman},
  title = {{Scalable Ride-Sourcing Vehicle Rebalancing with Service Accessibility Guarantee: A Constrained Mean-Field Reinforcement Learning Approach}},
  year = {2025},
  eprint = {2503.24183},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.24183},
}
Figure