🤖 AI Summary
This work addresses the critical limitation of neural solvers—poor generalization across problem scales and distributions—in Vehicle Routing Problems (VRPs). We propose two key innovations: (1) an Entropy-based Scaling Factor (ESF), which dynamically calibrates Transformer attention weights to adapt to varying problem sizes; and (2) a Distribution-Specific (DS) decoder, a lightweight auxiliary branch that explicitly models distributional characteristics, thereby expanding representational capacity and supporting diverse VRP variants. Built upon a Transformer architecture, our method integrates entropy-driven attention scaling, multi-distribution decoding ensembles, and joint training on synthetic and real-world data. Extensive experiments on TSP, CVRP, and other VRP variants demonstrate substantial improvements over seven state-of-the-art baselines, with marked gains in cross-scale and cross-distribution generalization. Both components incur negligible computational overhead and can be readily integrated as plug-in enhancements to existing generalization strategies.
📝 Abstract
Neural models produce promising results when solving Vehicle Routing Problems (VRPs), but often fall short in generalization. Recent attempts to enhance model generalization often incur unnecessarily large training cost or cannot be directly applied to other models solving different VRP variants. To address these issues, we take a novel perspective on model architecture in this study. Specifically, we propose a plug-and-play Entropy-based Scaling Factor (ESF) and a Distribution-Specific (DS) decoder to enhance the size and distribution generalization, respectively. ESF adjusts the attention weight pattern of the model towards familiar ones discovered during training when solving VRPs of varying sizes. The DS decoder explicitly models VRPs of multiple training distribution patterns through multiple auxiliary light decoders, expanding the model representation space to encompass a broader range of distributional scenarios. We conduct extensive experiments on both synthetic and widely recognized real-world benchmarking datasets and compare the performance with seven baseline models. The results demonstrate the effectiveness of using ESF and DS decoder to obtain a more generalizable model and showcase their applicability to solve different VRP variants, i.e., travelling salesman problem and capacitated VRP. Notably, our proposed generic components require minimal computational resources, and can be effortlessly integrated into conventional generalization strategies to further elevate model generalization.