Introduction
The rapid growth of on-demand delivery services has intensified the need for efficient solutions to the Multi-Vehicle Dynamic Pickup and Delivery Problem with Stochastic Requests (MVDPDPSR). In these scenarios, requests appear unpredictably in time and space, requiring a fleet of vehicles to make coordinated, real-time decisions. Traditional Operations Research (OR) methods often struggle with the latency requirements of real-time systems, while standard multi-agent reinforcement learning (MARL) approaches frequently fail to achieve optimal coordination, leading to redundant actions or sub-optimal routing.
This paper introduces the Multi-Agent Pointer Transformer (MAPT), a novel framework that reformulates multi-vehicle coordination as a sequence-to-sequence (seq-to-seq) problem. By leveraging a transformer-based architecture with specialized attention mechanisms, MAPT provides a scalable and efficient solution for complex logistics environments.
The MAPT Framework
The core of MAPT is an encoder-decoder architecture designed to handle the spatial and relational complexities of vehicle routing.
Relation-Aware Attention
Unlike standard transformers that treat input entities as an unordered set, MAPT utilizes Relation-Aware Attention. This mechanism explicitly incorporates the relationships between different entities—such as the distance between a vehicle and a station or the link between a pickup request and its destination. By embedding these functional contexts, the model gains a deeper understanding of the logistics environment, where the "meaning" of a location is relative to the agent's current state and task.
AutoRegressive Decoding
To solve the coordination problem, MAPT employs AutoRegressive Decoding. Instead of all vehicles selecting actions simultaneously, the model generates a sequence of actions. Each vehicle's decision is conditioned on the decisions already made by previous vehicles in the sequence. This "pointing" mechanism naturally prevents conflicts, such as multiple drivers attempting to pick up the same high-value order, and allows the model to optimize for the joint probability of all agent actions.
Informative Priors
To accelerate learning within the vast action space of routing problems, the framework incorporates Informative Priors. These are mathematical heuristics based on domain knowledge—such as favoring proximity and load balancing—that "nudge" the reinforcement learning agent toward promising areas of the search space during training. This allows the AI to discover complex strategies that simple rules would miss.
Experimental Evaluation
The researchers evaluated MAPT across eight diverse datasets to test its robustness and scalability:
- Synthetic Datasets: Generated at Small, Large, and Extra-Large scales to assess the model's ability to handle increasing fleet sizes and request densities.
- Real-World Datasets (DHRD): Based on actual food delivery data from Taipei (tpe), Singapore (sg), and Stockholm (se), providing a testbed for non-uniform, "messy" real-world distributions.
Results and Discussion
MAPT demonstrated significant improvements over both traditional OR heuristics and existing RL baselines in terms of solution quality and computational efficiency.
Performance and Efficiency
In the Taipei real-world dataset, MAPT achieved an objective score of 697.2, vastly outperforming the next best RL baseline, MAPDP, which scored only 135.4. Furthermore, MAPT exhibited remarkable speed. On the largest synthetic datasets, classical OR methods like Simulated Annealing required over 600 seconds to compute a solution. In contrast, MAPT generated high-quality routes in just 27 seconds, making it suitable for real-time deployment.
Generalization and Sensitivity
The model also showed strong generalization capabilities. A MAPT model trained on smaller synthetic scenarios maintained high performance when applied to "Extra-Large" scenarios. Sensitivity analysis (as seen in the figure above) indicates that the inclusion of informative priors (represented by the hyperparameter $\beta$) generally improves the objective value compared to a pure RL approach ($\beta = 0$), particularly in complex real-world scenarios like Taipei and Stockholm.
Conclusion
The Multi-Agent Pointer Transformer represents a significant step forward in solving dynamic vehicle routing problems. By treating coordination as a seq-to-seq task and integrating relational context, MAPT achieves a "double win" of superior route quality and near-instantaneous decision-making. Future work will focus on improving cross-city generalization and optimizing the framework for even larger, city-scale autonomous fleets.
Summary updated