Introduction
Vehicle Routing Problems (VRPs)—the task of determining the most efficient paths for a fleet of vehicles to deliver goods—are fundamental challenges in combinatorial optimization. While traditional solvers like Gurobi or LKH3 provide high accuracy, they become computationally prohibitive as problem instances scale.
Recent Machine Learning (ML) research has focused on learning heuristics to solve these problems instantaneously. However, many state-of-the-art models, such as the Attention Model by Kool et al., rely on static features. These models encode the graph once and then decode a solution, primarily because they utilize the REINFORCE algorithm. REINFORCE requires storing every intermediate state in memory to calculate gradients, making it impossible to re-encode the evolving state (e.g., current vehicle capacity or visited nodes) without exhausting memory resources. This limitation prevents models from fully capturing the dynamic nature of a tour.
Methodology
To address these limitations, the authors propose RP-DQN (Routing Problem Deep Q-Network). This approach introduces two critical shifts in architecture and algorithm:
- Dynamic State Representation: Unlike static models, RP-DQN incorporates four dynamic boolean features for every node: whether the node has been visited, if it is unreachable due to capacity, the vehicle's current position, and (for multi-depot variants) the active depot.
- Q-Learning over REINFORCE: By switching to Double DQN with N-step returns and a prioritized replay buffer, the model only needs to store single transitions (state, action, reward, next state). This significantly reduces the memory footprint, allowing the encoder to run at every construction step to update dynamic features.
The architecture utilizes a Transformer-based Encoder-Decoder setup. However, instead of outputting a probability distribution, it is modified to output Q-values representing the expected total reward for each possible next node.
Experimental Setup
The model was evaluated on two primary datasets:
- Capacitated VRP (CVRP): Instances with 20, 50, and 100 nodes generated following standard benchmarks.
- Multi-Depot VRP (MDVRP): A new ML benchmark generated by the authors to test the model's ability to handle multiple starting points.
Evaluation was conducted on 10,000 instances for each problem size to ensure statistical significance, comparing RP-DQN against both specialized solvers and other sequential policy ML methods.
Key Results and Discussion
RP-DQN demonstrates a significant performance leap over existing constructive ML models. In both greedy and sampling configurations, it consistently achieves a lower "Gap %" (the distance from the optimal or best-known solution) compared to previous state-of-the-art models like the Attention Model (Kool et al.).
Key insights from the results include:
- Memory-Expressivity Trade-off: The transition to DQN enables a more complex state representation that was previously computationally infeasible.
- Scalability in MDVRP: RP-DQN showed a massive "lift" in Multi-Depot scenarios. While static models struggled as complexity increased, RP-DQN maintained high performance, proving that dynamic features are essential for complex routing constraints.
- Efficiency: Despite re-running the encoder at every step, the model remains fast, solving a 100-node instance in under 6 seconds on a single CPU.
Conclusion
RP-DQN establishes a new state-of-the-art for constructive ML methods in vehicle routing. While it still trails behind specialized OR solvers and improvement-based heuristics that refine existing solutions, its ability to incorporate dynamic state information makes it a robust foundation for real-world applications. Future work may involve combining RP-DQN with local search methods or extending the framework to handle stochastic demands and time windows.
Summary updated