Constraints Matrix Diffusion based Generative Neural Solver for Vehicle Routing Problems
Organizations: School of Computer Science, University of Nottingham Ningbo China, Ningbo, 315100, China · School of Computer Science and Technology, Tongji University, Shanghai, 200092, China · Computational Optimisation and Learning Lab, School of Computer Science, University of Nottingham, NG8 1BB Nottingham, U.K. · Department of Automation, Tsinghua University, Beijing 100084, China
Abstract
Over the past decade, neural network solvers powered by generative artificial intelligence have garnered significant attention in the domain of vehicle routing problems (VRPs), owing to their exceptional computational efficiency and superior reasoning capabilities. In particular, autoregressive solvers integrated with reinforcement learning have emerged as a prominent trend. However, much of the existing work emphasizes large-scale generalization of neural approaches while neglecting the limited robustness of attention-based methods across heterogeneous distributions of problem parameters. Their improvements over heuristic search remain largely restricted to hand-curated, fixed-distribution benchmarks. Furthermore, these architectures tend to degrade significantly when node representations are highly similar or when tasks involve long decision horizons. To address the aforementioned limitations, we propose a novel fusion neural network framework that employs a discrete noise graph diffusion model to learn the underlying constraints of vehicle routing problems and generate a constraint assignment matrix. This matrix is subsequently integrated adaptively into the feature representation learning and decision process of the autoregressive solver, serving as a graph structure mask that facilitates the formation of solutions characterized by both global vision and local feature integration. To the best of our knowledge, this work represents the first comprehensive experimental investigation of neural network model solvers across a 378-combinatorial space spanning four distinct dimensions within the CVRPlib public dataset. Extensive experimental evaluations demonstrate that our proposed fusion model effectively captures and leverages problem constraints, achieving state-of-the-art performance across multiple benchmark datasets.
Figures & tables
| Parameters | Values |
| Diffusion Training steps | 1000 |
| Diffusion Inference steps | 50 |
| Diffusion linear noise schedule | |
| Diffusion linear noise schedule | |
| Diffusion batch size | 32 |
| Diffusion Training epoch | 50 |
| Model | CVRP20 | CVRP50 | CVRP100 | ||||||
| Objective | Gap(%) | Time | Objective | Gap(%) | Time | Objective | Gap(%) | Time | |
| Gurobi [ Gurobi Optimization, LLC(2024) ] | 6.10 | 0.00 | 13h | - | - | - | - | - | - |
| HGS [ Kwon et al.(2020)Kwon, Choo, Kim, Yoon, Gwon, and Min ] | 6.11 | 0.16 | 8.2h | 10.36 | 0.00 | 21h | 15.51 | 0.00 | 32h |
| LKH3 [ Helsgaun(2017) ] | 6.14 | 0.65 | 2h | 10.38 | 0.19 | 7h | 15.65 | 0.90 | 13h |
| OR Tools [ Google Optimization Tools(2024) ] | 6.18 | 1.31 | *1000s | 10.98 | 5.98 | *1016s | 17.09 | 10.19 | *1054s |
| PtrNet [2018] | 6.59 | 8.03 | 1s | 11.39 | 9.94 | 1s | 17.23 | 11.09 | 1s |
| Data instance | Nodes number | Optimal Solution | Our Approach Aug | E-GAT | POMO Aug | LEHD | ||||
| Objective | Objective | Gap(%) | Objective | Gap(%) | Objective | Gap(%) | Objective | Gap(%) | ||
| A-n44-k6 | 43 | 937 | 972 | 3.74 | 979 | 4.49 | 997 | 6.40 | 1000 | 6.74 |
| A-n45-k6 | 44 | 944 | 970 | 2.75 | 984 | 4.23 | 993 | 5.22 | 994 | 5.33 |
| A-n63-k10 | 62 | 1314 | 1337 | 1.75 | 1519 | 15.60 | 1329 | 1.16 | 1463 | 11.32 |
| A-n64-k9 | 63 | 1401 | 1493 | 6.57 | 1659 | 18.40 | 1430 | 2.10 | 1478 | 5.55 |
| A-n69-k9 | 68 | 1159 | 1193 | 2.93 | 1264 | 9.05 | 1199 | 3.47 | 1264 | 9.04 |
| Dimension | Description | Number of Instance | POMO | Our Approach | POMO Aug | Our Approach 8 Aug | ||||
| Gap(%) | Gap Std | Gap(%) | Gap Std | Gap(%) | Gap Std | Gap(%) | Gap Std | |||
| Depot Distribution | random | 3402 | 8.80 | 7.10 | 8.27 | 6.42 | 5.86 | 4.25 | 5.62 | 3.87 |
| centered | 3322 | 10.60 | 9.67 | 9.95 | 8.13 | 6.59 | 4.62 | 6.27 | 4.08 | |
| cornered | 3276 | 8.11 | 6.60 | 7.97 | 6.37 | 5.50 | 4.17 | 5.40 | 4.05 | |
| Customer Distribution | random | 3360 | 8.28 | 6.59 | 7.86 | 6.25 | 5.58 | 3.84 | 5.36 | 3.56 |
| clustered | 3322 | 10.59 | 9.11 | 9.98 | 8.07 | 6.62 | 5.05 | 6.42 | 4.66 | |
| Module | CVRP100 | CVRPLib | |
| Objectives | Gap(%) | Average Gap(%) | |
| Ours | 15.70 | 0.00 | 5.10 |
| Ours-FTGAT | 15.68 | -0.13 | 5.52 |
| w/o Ours-ME | 15.92 | 1.40 | 6.33 |
| w/o Ours-LA | 15.88 | 1.14 | 5.98 |
Vehicle Routing
Vehicle routing studies how to assign and sequence trips for fleets while meeting capacity, time, energy, and service constraints.
See all 133 papers