Reinforcement Learning from Optimization Proxy for Ride-Hailing Vehicle Relocation

Enpeng Yuan, Wenbo Chen, Pascal Van Hentenryck

Abstract

Ride-hailing platforms must efficiently relocate idle vehicles to meet fluctuating demand. Traditional Model Predictive Control (MPC) is computationally expensive, while pure Reinforcement Learning (RL) struggles with high-dimensional action spaces. This paper introduces the Reinforcement Learning from Optimization Proxy (RLOP) framework, which combines the strategic planning of optimization with the adaptive power of RL. By training a neural network to mimic an MPC model and refining it through RL, the system achieves a 100x speedup and 10% lower relocation costs compared to traditional methods.

Introduction

Ride-hailing platforms like Uber and Lyft face a constant "rebalancing" act. During peak hours, vehicles often accumulate in business districts, leaving residential areas underserved. To maintain service quality, platforms must relocate idle vehicles to high-demand zones. Current approaches typically fall into two categories: Mathematical Optimization (MPC) and Reinforcement Learning (RL). While MPC is effective for planning, it is computationally intensive and often relies on simplified models. RL can learn complex dynamics but frequently fails to converge in large-scale urban environments due to the "curse of dimensionality."

Methodology

The proposed RLOP framework operates in three distinct phases to bridge the gap between optimization and learning.

1. The Optimization Proxy

To avoid the high computational cost of running an MPC model in real-time, the authors train a Multilayer Perceptron (MLP) via supervised learning to predict the MPC's decisions. This proxy serves as a fast, high-quality approximation of the expert optimizer.

2. Aggregation-Restoration-Disaggregation

To handle the massive action space of a city-wide fleet, RLOP focuses on "net flow" (the number of cars entering or leaving a zone) rather than individual point-to-point movements. This reduces the action space from $O(Z^2)$ to $O(Z)$. A polynomial-time transportation algorithm is then used to disaggregate these flows into specific vehicle instructions.

3. RL Refinement

The optimization proxy is used to seed a Policy Gradient RL agent. By starting with a high-quality policy, the agent can focus on fine-tuning the strategy within a high-fidelity simulator. This allows the system to account for long-term effects and non-linear dynamics that the original linear MPC model might miss.

The RLOP framework integrates a periodic relocation algorithm with a continuous dispatch process.

The mathematical formulation of the underlying optimization problem involves several key inputs and decision variables, as detailed in the following table.

Mathematical notation and variables used in the optimization model.

Experiments and Datasets

The framework was evaluated using the New York City Yellow Taxi dataset for Manhattan. The study area was partitioned into 60 zones with a fleet of 1,800 vehicles. Training data spanned January to May 2017 (weekdays, 8 am–9 am), with evaluation conducted on June 2017 data.

Results

Experimental results highlight the efficiency and effectiveness of the RLOP approach:

  • Efficiency: The RLOP policy runs in approximately 0.019 seconds, compared to 1.603 seconds for the MPC, representing an 80-100x speedup.
  • Cost Reduction: RLOP achieved 10.1% lower relocation costs than the MPC model while maintaining the same average rider wait time (~2.2 minutes).
  • Convergence: While pure RL failed to converge in this environment, the RLOP framework reached a stable policy in just 55 episodes.

Conclusion

RLOP demonstrates that seeding RL with an optimization proxy is an effective strategy for complex, high-dimensional coordination problems. By treating MPC as a "floor" rather than a "ceiling," the framework leverages the strengths of both paradigms. Future work will explore handling demand uncertainty and scaling to larger, decentralized urban environments.

Summary updated

BibTeX
@article{yuan2022reinforcement,
  author = {Enpeng Yuan and Wenbo Chen and Pascal Van Hentenryck},
  title = {{Reinforcement Learning from Optimization Proxy for Ride-Hailing Vehicle Relocation}},
  journal = {J. Artif. Intell. Res.},
  year = {2022},
  doi = {10.1613/jair.1.13794},
}
Figure