CaDA: Cross-Problem Routing Solver with Constraint-Aware Dual-Attention
About
Vehicle Routing Problems (VRPs) are significant Combinatorial Optimization (CO) problems holding substantial practical importance. Recently, Neural Combinatorial Optimization (NCO), which involves training deep learning models on extensive data to learn vehicle routing heuristics, has emerged as a promising approach due to its efficiency and the reduced need for manual algorithm design. However, applying NCO across diverse real-world scenarios with various constraints necessitates cross-problem capabilities. Current NCO methods typically employ a unified model lacking a constraint-specific structure, thereby restricting their cross-problem performance. Current multi-task methods for VRPs typically employ a constraint-unaware model, limiting their cross-problem performance. Furthermore, they rely solely on global connectivity, which fails to focus on key nodes and leads to inefficient representation learning. This paper introduces a Constraint-Aware Dual-Attention Model (CaDA), designed to address these limitations. CaDA incorporates a constraint prompt that efficiently represents different problem variants. Additionally, it features a dual-attention mechanism with a global branch for capturing broader graph-wide information and a sparse branch that selectively focuses on the most relevant nodes. We comprehensively evaluate our model on 16 different VRPs and compare its performance against existing cross-problem VRP solvers. CaDA achieves state-of-the-art results across all the VRPs. Our ablation study further confirms that each component of CaDA contributes positively to its cross-problem learning performance.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Capacitated Vehicle Routing Problem | CVRP N=100 | Objective Value15.79 | 73 | |
| Vehicle Routing Problem with Time Windows | VRPTW 100 customers | Objective Value26.105 | 24 | |
| Vehicle Routing Problem | OVRP n=100 | Time (m)0.1667 | 17 | |
| Capacitated Vehicle Routing Problem | CVRP N=50 | Objective Value10.471 | 17 | |
| Open Vehicle Routing Problem | OVRP50 | Objective Value6.652 | 12 | |
| Vehicle Routing Problem | CVRP N=50 | Computation Time (m)3 | 12 | |
| Vehicle Routing Problem | VRPB n=50 | Computation Time (min)3 | 12 | |
| Capacitated Vehicle Routing Problem | CVRPLib (test) | Average Gap5.32 | 9 | |
| Vehicle Routing Problem | CVRP N=100 | Computation Time (min)15 | 6 | |
| Vehicle Routing Problem | VRPTW n=50 | Computation Time (min)3 | 6 |