TL;DR
The authors propose Deep Policy Dynamic Programming (DPDP), a framework that combines the strengths of deep learning and classical dynamic programming to solve vehicle routing problems. By using a Graph Neural Network (GNN) to guide a restricted DP search, the method achieves near-optimal results on 100-node problems, outperforming most existing "neural" heuristics and even beating specialized solvers like LKH on problems with hard constraints.
What Problem Does This Paper Address?
Vehicle Routing Problems (VRPs)—like the Traveling Salesman Problem (TSP)—are foundational challenges in logistics and combinatorial optimization. Traditionally, researchers have used two extremes:
- Classical Dynamic Programming (DP): Guarantees optimal solutions but suffers from the "curse of dimensionality," making it unusable for large problems.
- Deep Learning (DL) Heuristics: Fast, end-to-end models that "learn" to build routes. While promising, they often lack performance guarantees and struggle to compete with highly optimized traditional solvers like LKH.
The gap lies in creating a method that is as flexible and powerful as deep learning but as structured and principled as dynamic programming, especially when dealing with "hard" constraints like strict time windows.
Methods
The core idea of DPDP is Neural-Guided Restricted Dynamic Programming. It works in three main stages:
- Heatmap Generation: A Graph Neural Network (GNN) takes the problem instance (node coordinates, demands, etc.) and predicts a "heatmap"—a probability distribution over all possible edges, indicating which ones are likely to be in an optimal solution.
- Restricted DP Search: Instead of exploring every possible path, the algorithm performs a beam search over the DP state space. At each step, it only expands the $B$ (beam size) most promising partial solutions.
- Scoring & Pruning:
- Scoring: Partial solutions are ranked by a policy:
score = heat + potential. "Heat" is the sum of GNN probabilities for edges already chosen. "Potential" is a learned estimate of the "heat-to-go" for remaining nodes.
- Scoring: Partial solutions are ranked by a policy:
- Dominance: This is the "DP" part. If two partial solutions reach the same state (e.g., visited the same set of nodes and ended at the same location), the algorithm prunes the inferior one. For problems with capacity or time constraints, it keeps a "Pareto-efficient" set of solutions.
Datasets
The authors evaluate DPDP on several variants of 100-node routing problems:
- TSP100: Standard Traveling Salesman Problem.
- VRP100: Capacitated Vehicle Routing Problem, using both standard distributions and a more "realistic" distribution with clustered nodes.
- TSPTW100: TSP with Time Windows. They use a standard benchmark with small windows and introduce a new "large time window" dataset designed to be more challenging by increasing the overlap between windows.
Key Insights and Ideas
- DP > Tree Search: Naive beam search (tree search) often explores redundant paths. By incorporating DP dominance rules, DPDP prunes the search space much more effectively, allowing for a much larger effective search within the same computational budget.
- The Power of "Potential": Simply picking the best edge (greedy) is a trap. The "potential" function acts like the heuristic in A* search, encouraging the model to look ahead and avoid choices that leave it with no good options later.
- Handling Hard Constraints: Traditional heuristics often struggle with "hard" constraints like time windows because small changes can make a solution infeasible. DPDP handles these naturally within the DP framework, making it exceptionally strong for TSPTW.
- Efficiency via Sparsity: By thresholding the GNN heatmap (e.g., ignoring edges with < 10⁻⁵ probability), the algorithm can run on a sparse graph, drastically reducing runtime without losing solution quality.
Key Results
- TSP: DPDP achieved an optimality gap of just 0.004% with a beam size of 100K, outperforming almost all other neural approaches and matching the quality of the Concorde solver while being faster than LKH for similar gaps.
- VRP: On realistic VRP instances, DPDP remained within 1% of the state-of-the-art HGS solver, proving it generalizes well to complex distributions.
- TSPTW: This was the standout result. On the "large window" dataset, DPDP outperformed LKH and GVNS (a strong open-source solver) in both speed and solution quality. It found better solutions in minutes that LKH couldn't find in hours.
Limitations and Future Work
- Scalability: The current GNN architecture is $O(n^2)$, which makes scaling to 1,000+ nodes difficult. The authors suggest future work could use more efficient graph processing to handle larger instances.
- Dependency on Labels: The model is trained using supervised learning on solutions from existing solvers (like LKH). The authors note that "bootstrapping"—using DPDP to improve itself without needing an external solver—is a promising path toward a "tabula rasa" version (similar to AlphaZero).
- Heuristic Scoring: While the
heat + potentialfunction works well, it was manually designed. Training this scoring function end-to-end could further boost performance.
Summary updated