DeepFreight: A Model-free Deep-reinforcement-learning-based Algorithm for Multi-transfer Freight Delivery

Jiayu Chen, Abhishek K. Umrawal, Tian Lan, Vaneet Aggarwal

Introduction

The logistics industry is a cornerstone of the global economy, yet it remains burdened by the inherent complexity of the Vehicle Routing Problem (VRP). Traditional approaches typically assume a point-to-point delivery model where a single vehicle transports a package from its origin to its final destination. However, the concept of multi-transfer delivery—analogous to a relay race where cargo is handed off between multiple trucks—offers significant potential for improving fleet utilization and reducing operational costs.

Illustration of the multi-transfer freight delivery concept where packages can switch between trucks at various nodes.

Despite its benefits, multi-transfer delivery exponentially increases the search space for optimal scheduling, making traditional mathematical solvers like Mixed-Integer Linear Programming (MILP) computationally prohibitive for large-scale operations. This paper introduces DeepFreight, a hybrid framework that leverages multi-agent reinforcement learning (MARL) and mathematical optimization to address these scalability challenges.

Methodology

DeepFreight employs a three-stage approach to manage large-scale freight delivery:

  1. Truck-Dispatch via MARL: The system utilizes the QMIX framework, a state-of-the-art multi-agent reinforcement learning algorithm. Following a "Centralized Training, Decentralized Execution" (CTDE) paradigm, a global mixing network coordinates truck behavior during training, while individual trucks make autonomous routing decisions during execution based on local observations.
  2. Package-Matching via Greedy DFS: Once truck routes are established, a rule-based matching algorithm assigns packages to these routes. By representing the network as a weighted directed graph and employing Depth-First Search (DFS), the system identifies efficient paths for packages, facilitating multi-hop transfers between trucks.
  3. Hybrid "Cleanup" with MILP: To ensure 100% delivery reliability, the framework incorporates a MILP optimizer as a final "cleanup" phase. While MILP is too slow for the entire dataset, it is highly effective at finding optimal routes for the small subset of packages left undelivered by the RL agent.

Experimental Setup

The framework was evaluated using a simulator built on real-world logistics data from 10 Amazon distribution centers in the Eastern United States. Travel times between nodes were derived from the Google Maps API. The simulation involved 40,000 delivery requests per episode, generated based on population density to reflect realistic demand patterns. The fleet consisted of 20 trucks operating within a two-day cycle.

Results and Discussion

The DeepFreight framework demonstrated superior performance across several key metrics. Most notably, the hybrid approach achieved a 100% delivery success rate. In comparison to a baseline without multi-transfer capabilities, DeepFreight reduced the number of unfinished packages by approximately 60% before the MILP cleanup phase.

Comparison of unfinished packages over time with and without the multi-transfer mechanism.

Furthermore, the system improved overall efficiency, reducing average driving time by 7.5%. Scalability was a major highlight: while pure MILP solvers struggled with the 40,000-package workload, DeepFreight produced high-quality results in under 10 minutes. Analysis of delivery patterns showed that 41.2% of packages required one transfer, and 5.5% required two or more, validating the importance of the multi-transfer mechanism.

Conclusion

DeepFreight successfully bridges the gap between the scalability of reinforcement learning and the precision of mathematical optimization. By decomposing the freight delivery problem and enabling multi-transfer logistics, the framework provides a robust solution for large-scale fleet management. Future research will focus on adapting the model for dynamic request arrivals and accounting for transfer overhead costs at logistics hubs.

Summary updated

BibTeX
@inproceedings{chen2021deepfreight,
  author = {Jiayu Chen and Abhishek K. Umrawal and Tian Lan and Vaneet Aggarwal},
  title = {{DeepFreight: A Model-free Deep-reinforcement-learning-based Algorithm for Multi-transfer Freight Delivery}},
  booktitle = {ICAPS},
  year = {2021},
}
Figure