Introduction
Efficient vehicle dispatching is critical for modern ride-hailing platforms, yet it faces significant challenges in real-world urban environments. Traditional systems often struggle with information latency caused by multi-hop communication, a granularity mismatch between local traffic conditions and city-wide travel times, and the human factor—the diverse preferences of individual drivers. To address these hurdles, we present GARLIC (GPT-Augmented Reinforcement Learning with Intelligent Control), a framework that leverages transformer architectures and hierarchical spatial modeling to optimize dispatching decisions.
The GARLIC Framework
The core of GARLIC is a GPT-style transformer-decoder architecture that treats vehicle dispatching as a sequence-to-sequence problem. By processing historical traffic states and rewards, the model predicts the optimal next action for a vehicle.
The framework consists of three primary modules:
- Hierarchical Traffic State Representation: Captures spatial features across multiple scales.
- Dynamic Reward Generation: Uses a Gated Recurrent Unit (GRU) to model driver trajectories and align dispatching orders with individual driver behaviors and carfare potential.
- GPT-Augmented Policy Learning: Employs a multi-layer transformer to weigh past states against current needs for real-time decision-making.
Hierarchical Multiview Representation
A key innovation in GARLIC is the use of multiview honeycomb graphs instead of standard square grids. Hexagonal cells provide more uniform distances between neighboring nodes, which is essential for accurate spatial modeling.
The system extracts features at three distinct levels:
- Micro-level: Focuses on local congestion and immediate road conditions.
- Meso-level: Analyzes traffic volume and parking availability within a neighborhood.
- Macro-level: Provides a city-wide view of travel times and large-scale traffic flow.
The authors found that a combination of 2km, 5km, and 10km views offers the optimal balance between perception depth and computational latency.
Geospatial Optimization
To further refine the model's accuracy, the researchers introduced GeoLoss, a custom loss function designed to handle the circular nature of geospatial directions. Unlike standard Mean Squared Error (MSE), GeoLoss correctly identifies that 359° and 1° are adjacent, preventing the model from being penalized for small angular discrepancies that appear numerically large.
Experimental Results
GARLIC was evaluated using large-scale datasets from Manhattan (350 taxis) and Hangzhou (9,041 taxis). The results demonstrate significant improvements over existing online and offline reinforcement learning baselines:
- Reduced Error: In the Hangzhou dataset, GARLIC achieved a prediction error of 0.1582 km, significantly lower than the best baseline (0.1843 km).
- Operational Efficiency: The model achieved an empty-loaded rate of 40.71% in Hangzhou, the lowest among all tested methods, indicating that vehicles spend less time without passengers.
- Real-time Performance: Despite the complexity of the transformer architecture, the model generates dispatching instructions in seconds, making it viable for live deployment.
Conclusion and Future Work
GARLIC represents a significant step forward in aligning automated dispatching with real-world driver behavior and complex urban traffic patterns. While the model currently relies on high-speed V2V communication, future iterations aim to integrate cloud-edge collaboration and the Kafka engine to further reduce latency to the millisecond range, ensuring robust performance even in varied infrastructure conditions.
Summary updated