H-TD2: Hybrid Temporal Difference Learning for Adaptive Urban Taxi Dispatch

Benjamin Rivière, Soon-Jo Chung

Abstract

We present H-TD2: Hybrid Temporal Difference Learning for Taxi Dispatch, a model-free, adaptive decision-making algorithm to coordinate a large fleet of automated taxis in a dynamic urban environment to minimize expected customer waiting times. Our scalable algorithm exploits the natural transportation network company topology by switching between two behaviors: distributed temporal-difference learning computed locally at each taxi and infrequent centralized Bellman updates computed at the dispatch center. We derive a regret bound and design the trigger condition between the two behaviors to explicitly control the trade-off between computational complexity and the individual taxi policy's bounded sub-optimality. We validate our algorithm against a receding horizon control baseline in a Gridworld environment and a Chicago city environment with real customer requests, where the proposed solution decreases average customer waiting time by up to 50%.

Introduction

Coordinating thousands of autonomous vehicles to minimize customer wait times in a dense urban environment is a significant computational challenge. Centralized systems often suffer from communication bottlenecks and high processing requirements when updating large fleets in real-time. Conversely, decentralized systems can lead to inefficient "greedy" behaviors, where agents cluster in high-demand areas at the expense of city-wide coverage.

Furthermore, many existing reinforcement learning (RL) dispatch models rely on historical training data, making them brittle when faced with "out-of-training" events such as sudden weather changes or major sporting events. H-TD2 addresses these issues by providing a model-free, adaptive approach that balances local efficiency with global coordination.

Methodology: The H-TD2 Architecture

The H-TD2 framework utilizes a hybrid architecture that leverages the star topology common in transportation network companies.

Cell-Based Abstraction

To ensure scalability, the algorithm adopts an "Eulerian" approach, dividing the urban environment into a grid of cells. By tracking the state of cells rather than individual agents, the problem's complexity scales with the city's size rather than the number of taxis, allowing for the management of massive fleets.

Hybrid Learning and Trigger Mechanism

The core of H-TD2 is its dual-mode operation:

  1. Local Updates: Individual taxis perform Temporal Difference (TD) learning based on local observations to estimate rewards and refine their dispatch policies.
  2. Centralized Trigger: A novel regret bound defines the maximum allowable drift between a local policy and the optimal global policy. When a taxi's local error ($\delta_e$) exceeds a predefined threshold ($\delta_d$), it triggers a request for a batch update from the central dispatch center.
The H-TD2 architecture: Taxis perform local estimation and dispatch, only pinging the central hub when their local policy error exceeds a specific threshold.

Game-Theoretic Coordination

To prevent fleet clumping, agents participate in a distributed potential game. Using binary log-linear learning, taxis coordinate their movements to achieve a desired distribution across the city cells, ensuring balanced coverage.

Experimental Validation

The researchers evaluated H-TD2 using both synthetic and real-world datasets.

Gridworld and Chicago Case Studies

  • Synthetic Gridworld: Used to test scalability, demonstrating that runtime grows linearly with fleet size across three orders of magnitude.
  • Chicago Taxi Public Dataset: The model was tested against real-world demand from October 30, 2016—the night of Game 5 of the MLB World Series at Wrigley Field. This scenario provided a rigorous test of the algorithm's ability to adapt to extreme, irregular demand spikes.
Top: A Gridworld simulation with 1000 taxis. Bottom: The corresponding approximate value function distribution over the state space.

Key Results

H-TD2 demonstrated significant performance gains over a standard Receding Horizon Control (RHC) baseline:

  • Wait Time Reduction: Average customer wait times were reduced by 50% in synthetic environments and 26% in the real-world Chicago World Series scenario.
  • Robustness: Unlike predictive models, H-TD2's adaptive nature allowed it to maintain performance during unpredictable events.
  • Error Correction: The hybrid mechanism successfully "resets" local policy drift, maintaining a high-quality global policy with minimal communication overhead.

Discussion and Future Work

H-TD2 offers a powerful tool for fleet operators to explicitly trade off communication costs against dispatch optimality via the trigger threshold. While the current model excels in high-level coordination, future work will focus on integrating higher-fidelity road networks (including one-way streets and traffic) and low-level motion planning for collision avoidance. Additionally, expanding the reward function to include energy consumption and multi-passenger ride-sharing presents a promising avenue for further optimization.

Summary updated

Abstract

We present H-TD2: Hybrid Temporal Difference Learning for Taxi Dispatch, a model-free, adaptive decision-making algorithm to coordinate a large fleet of automated taxis in a dynamic urban environment to minimize expected customer waiting times. Our scalable algorithm exploits the natural transportation network company topology by switching between two behaviors: distributed temporal-difference learning computed locally at each taxi and infrequent centralized Bellman updates computed at the dispatch center. We derive a regret bound and design the trigger condition between the two behaviors to explicitly control the trade-off between computational complexity and the individual taxi policy's bounded sub-optimality; this advances the state of the art by enabling distributed operation with bounded-suboptimality. Additionally, unlike recent reinforcement learning dispatch methods, this policy estimation is adaptive and robust to out-of-training domain events. This result is enabled by a two-step modelling approach: the policy is learned on an agent-agnostic, cell-based Markov Decision Process and individual taxis are coordinated using the learned policy in a distributed game-theoretic task assignment. We validate our algorithm against a receding horizon control baseline in a Gridworld environment with a simulated customer dataset, where the proposed solution decreases average customer waiting time by 50% over a wide range of parameters. We also validate in a Chicago city environment with real customer requests from the Chicago taxi public dataset where the proposed solution decreases average customer waiting time by 26% over irregular customer distributions during a 2016 Major League Baseball World Series game.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Chicago city environment; real requests from the Chicago taxi public dataset during Game 5 of the 2016 Baseball World SeriesH-TD²total customer waiting time501 hourscity=Chicago · taxis=2,000 · requests=54,115 · evaluation-period=Game 5 of the 2016 Baseball World Series
Source quote
L390: We evaluate the algorithms and plot the results in Fig.~\ref{fig:chicago_reward}. Our simulation parameters are: n_i = 2000, |\mathcal{S}| = 156, \gamma = 0.8, \alpha = 0.1, n_T = 10, \varsigma = 0.0001, \varepsilon = 0.0001, \delta_d = 0.025 \|Q (b)_0\|, \beta = 1, \overline{v}_taxi = 22 miles per hour, \tau = 0.0001, and t_RHC = 10. We train a reward model using the data from October 29^{\text{th}}, 2016 with a total of 91,165 customer requests. Then, we collect 54,115 customer requests from October 30^{\text{th}}, 2016, which we reveal real-time to the H-TD\textsuperscript{2} and RHC dispatch algorithms. In total, the H-TD\textsuperscript{2} algorithm has a total customer waiting time of \SI{501} hours an improvement of \SI{26}{\percent} over the RHC baseline of a cumulative customer waiting time of \SI{684} hours. This result demonstrates the robustness of adaptive algorithms to irregular events.
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
Chicago city environment; real requests from the Chicago taxi public dataset during Game 5 of the 2016 Baseball World SeriesRHC baseline baselinetotal customer waiting time684 hourscity=Chicago · taxis=2,000 · requests=54,115 · evaluation-period=Game 5 of the 2016 Baseball World Series
Source quote
L390: We evaluate the algorithms and plot the results in Fig.~\ref{fig:chicago_reward}. Our simulation parameters are: n_i = 2000, |\mathcal{S}| = 156, \gamma = 0.8, \alpha = 0.1, n_T = 10, \varsigma = 0.0001, \varepsilon = 0.0001, \delta_d = 0.025 \|Q (b)_0\|, \beta = 1, \overline{v}_taxi = 22 miles per hour, \tau = 0.0001, and t_RHC = 10. We train a reward model using the data from October 29^{\text{th}}, 2016 with a total of 91,165 customer requests. Then, we collect 54,115 customer requests from October 30^{\text{th}}, 2016, which we reveal real-time to the H-TD\textsuperscript{2} and RHC dispatch algorithms. In total, the H-TD\textsuperscript{2} algorithm has a total customer waiting time of \SI{501} hours an improvement of \SI{26}{\percent} over the RHC baseline of a cumulative customer waiting time of \SI{684} hours. This result demonstrates the robustness of adaptive algorithms to irregular events.
BibTeX
@article{riviere2022h,
  author = {Benjamin Rivière and Soon-Jo Chung},
  title = {{H-TD2: Hybrid Temporal Difference Learning for Adaptive Urban Taxi Dispatch}},
  journal = {IEEE Trans. Intell. Transp. Syst.},
  year = {2022},
  doi = {10.1109/tits.2021.3097297},
}
Figure