CaDA: Cross-Problem Routing Solver with Constraint-Aware Dual-Attention

Published: 01 May 2025, Last Modified: 18 Jun 2025ICML 2025 posterEveryoneRevisionsBibTeXCC BY 4.0
Abstract: Vehicle routing problems (VRPs) are significant combinatorial optimization problems (COPs) 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 cross-problem NCO 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 \underline{C}onstraint-\underline{A}ware \underline{D}ual-\underline{A}ttention 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 key node connections. 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 tested VRPs. Our ablation study confirms that each component contributes to its cross-problem learning performance. The source code for CaDA is publicly available at \url{https://github.com/CIAM-Group/CaDA}.
Lay Summary: Real-world routing problems involving multiple attributes are challenging. Current neural solvers usually require training separate models for each type of problem, making them costly and impractical for companies. We developed CaDA, a neural solver capable of solving diverse routing problems using just one model. CaDA introduces two key innovations: first, it clearly informs the model about the specific rules (such as delivery time windows) using a constraint prompt. Second, it adoptes a dual-attention approach, combining a big-picture view of the entire routing network with a focused view of key nodes that are most informative and important for next step route optimization. CaDA outperforms existing methods across 16 different types of vehicle routing problems.
Link To Code: https://github.com/CIAM-Group/CaDA
Primary Area: Optimization->Discrete and Combinatorial Optimization
Keywords: Vehicle Routing Problem, Multi-Task Learning, Task-Specific Prompt, Dual Attention Mechanism, Cross-Problem Learning
Submission Number: 15901
Loading