Table of Contents
Fetching ...

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

Han Li, Fei Liu, Zhi Zheng, Yu Zhang, Zhenkun Wang

TL;DR

This work tackles cross-problem vehicle routing with diverse operational constraints by introducing CaDA, a constraint-aware dual-attention neural solver. CaDA augments encoder learning with a constraint prompt and two attention branches (global and Top-k sparse) to balance global context with selective neighbor focus, enabling robust generalization across 16 VRP variants. Empirical results show CaDA achieves state-of-the-art performance and strong scalability, with ablations confirming the importance of the constraint prompt and sparse attention. The approach promises practical impact for real-world routing systems that must adapt to varying constraints without training a separate model for each variant.

Abstract

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.

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

TL;DR

This work tackles cross-problem vehicle routing with diverse operational constraints by introducing CaDA, a constraint-aware dual-attention neural solver. CaDA augments encoder learning with a constraint prompt and two attention branches (global and Top-k sparse) to balance global context with selective neighbor focus, enabling robust generalization across 16 VRP variants. Empirical results show CaDA achieves state-of-the-art performance and strong scalability, with ablations confirming the importance of the constraint prompt and sparse attention. The approach promises practical impact for real-world routing systems that must adapt to varying constraints without training a separate model for each variant.

Abstract

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.

Paper Structure

This paper contains 47 sections, 20 equations, 8 figures, 6 tables.

Figures (8)

  • Figure 1: The feasible solutions for different VRP variants.
  • Figure 2: The pipeline of the proposed CaDA for VRPs. CaDA adopts the typical encoder-decoder framework and incorporates two new components in the encoder: a dual-attention mechanism and a constraint prompt. The dual-attention mechanism comprises a global branch with the standard Softmax function and a sparse branch with Top-$k$ operation.
  • Figure 3: Comparison results of CaDA with state-of-the-art cross-problem neural solvers, showing the average gap on 16 VRPs.
  • Figure 4: Ablation study on the proposed components of CaDA across 16 VRPs. The height of the bars represents the increased gap in performance between the model with specific components ablated and the baseline CaDA.
  • Figure 5: The average gap across 16 VRPs for CaDA variants under different model settings.
  • ...and 3 more figures