Improving Generalization of Neural Vehicle Routing Problem Solvers Through the Lens of Model Architecture

Yubin Xiao, Di Wang, Xuan Wu, Yuesong Wu, Boyang Li +3 more
6/10/2024
cs.LGcs.AI

No official code found. Best implementation: xybFight/VRP-Generalization (8 stars, last commit 2025-03-21).

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.

View on arXivView PDF

Code Implementations(1)

The PyTorch Implementation of "Improving Generalization of Neural Vehicle Routing Problem Solvers Through the Lens of Model Architecture"

80PythonMay 15, 20241 years ago

Similar Papers

Cite this paper

@article{xiao2024improving,
  title  = {Improving Generalization of Neural Vehicle Routing Problem Solvers Through the Lens of Model Architecture},
  author = {Yubin Xiao and Di Wang and Xuan Wu and Yuesong Wu and Boyang Li and Wei Du and Liupu Wang and You Zhou},
  year   = {2024},
  eprint = {2406.06652},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.06652v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.06652.svg)](https://codeofpaper.com/paper/2406.06652)

Discussion