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

Benjamin Rivière, Soon-Jo Chung

TL;DR

H-TD$^2$ is a hybrid reinforcement learning algorithm that coordinates massive taxi fleets by balancing fast, local updates on individual vehicles with infrequent, high-accuracy global updates from a central dispatch. By combining distributed temporal-difference learning with a game-theoretic coordination layer, the system reduces customer wait times by up to 50% and remains robust during unpredictable urban events like major league sports games.

What Problem Does This Paper Address?

Coordinating thousands of autonomous taxis (or even flying "air taxis") to minimize customer wait times is a computational nightmare. Traditional centralized systems struggle with the massive communication bandwidth and processing power required to update every vehicle in real-time. Conversely, fully decentralized systems often lead to "greedy" behavior where every taxi rushes to the same high-demand neighborhood, leaving other areas empty.

Furthermore, most existing reinforcement learning (RL) dispatch models are trained on historical data. When something unusual happens—like a sudden storm or a World Series game—these models fail because the real-world conditions no longer match their training. The authors sought a "model-free" approach that could adapt to live data while remaining computationally efficient.

Methods

The authors propose H-TD$^2$ (Hybrid Temporal Difference Learning), which exploits the natural "star topology" of transportation companies (a central hub connected to many agents).

  1. Cell-Based Abstraction: Instead of tracking every individual taxi (a "Lagrangian" approach), the algorithm divides the city into a grid (an "Eulerian" approach). This makes the complexity of the problem dependent on the size of the city, not the number of taxis, allowing it to scale to massive fleets.
  2. Hybrid Learning Architecture:
    • Local Updates: Each taxi performs its own Temporal Difference (TD) learning using local observations to estimate rewards and update its policy.
  3. Centralized "Trigger": The authors derived a novel regret bound—a mathematical limit on how far the local policy can drift from the optimal one. If a taxi detects its local error ($\delta_e$) exceeds a user-defined threshold ($\delta_d$), it triggers a request for a batch update from the central dispatch center.
  4. Game-Theoretic Coordination: To prevent taxis from clumping together, the agents participate in a distributed "potential game." Using binary log-linear learning, they coordinate their movements to match a desired fleet distribution across the city.
The H-TD$^2$ architecture: Taxis perform local estimation and dispatch, only pinging the central hub when their local policy error exceeds a specific threshold.

Datasets

The researchers validated H-TD$^2$ using two primary sources:

  • Synthetic Gridworld: A simulated environment used to test scalability and performance across a wide range of parameters (e.g., varying taxi density).
  • Chicago Taxi Public Dataset: Real-world request data from Chicago. Crucially, they focused on October 30, 2016, during Game 5 of the MLB World Series at Wrigley Field, to test how the algorithm handles extreme, irregular demand spikes that differ from "normal" training data.

Key Insights and Ideas

  • Adaptation over Prediction: Most dispatchers try to predict where demand will be based on the past. H-TD$^2$ adapts to what is happening right now. This makes it significantly more robust to "out-of-training" events.
  • The Computational Trade-off: The "trigger condition" is a powerful tool for engineers. By adjusting the threshold ($\delta_d$), a fleet operator can explicitly trade off communication costs (how often taxis talk to the hub) against the sub-optimality of the dispatching.
  • Decoupling Agents from Complexity: By using a cell-based MDP, the value function (shown below) represents the "worth" of being in a certain part of the city at a certain time, regardless of which specific taxi is there.
Top: A Gridworld simulation with 1000 taxis. Bottom: The corresponding approximate value function distribution over the state space.

Key Results

  • Wait Time Reduction: In synthetic tests, H-TD$^2$ outperformed a standard Receding Horizon Control (RHC) baseline by 50%. In the real-world Chicago scenario during the World Series, it reduced wait times by 26% compared to the baseline.
  • Linear Scalability: The simulation runtime grows linearly with the number of taxis. The authors demonstrated this across three orders of magnitude, proving the system can handle the density of a major metropolis.
  • Error Correction: The hybrid approach successfully "resets" local errors. As shown in the paper's error traces, whenever the local TD learning drifts too far, the centralized update brings the error back to zero, maintaining a high-quality global policy.

Limitations and Future Work

  • Road Network Fidelity: The current model uses a simplified grid (Gridworld). Real cities have complex one-way streets, varying speed limits, and traffic patterns that a simple grid doesn't capture.
  • Low-Level Planning: H-TD$^2$ tells a taxi which cell to go to, but it doesn't handle the low-level steering or collision avoidance required to get there. The authors suggest coupling this with a motion planner in future iterations.
  • Reward Complexity: The current reward is primarily focused on customer wait time. Future versions could incorporate taxi energy consumption, battery charging needs, or multi-passenger ride-sharing.

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},
}

Loading related content...

Figure