Prompt Learning for Generalized Vehicle Routing

Fei Liu, Xi Lin, Weiduo Liao, Zhenkun Wang, Qingfu Zhang +2 more
5/20/2024
cs.LGcs.AI

Official code: FeiLiu36/PromptVRP (5 stars, last commit 2024-09-06).

Abstract

Neural combinatorial optimization (NCO) is a promising learning-based approach to solving various vehicle routing problems without much manual algorithm design. However, the current NCO methods mainly focus on the in-distribution performance, while the real-world problem instances usually come from different distributions. A costly fine-tuning approach or generalized model retraining from scratch could be needed to tackle the out-of-distribution instances. Unlike the existing methods, this work investigates an efficient prompt learning approach in NCO for cross-distribution adaptation. To be concrete, we propose a novel prompt learning method to facilitate fast zero-shot adaptation of a pre-trained model to solve routing problem instances from different distributions. The proposed model learns a set of prompts among various distributions and then selects the best-matched one to prompt a pre-trained attention model for each problem instance. Extensive experiments show that the proposed prompt learning approach facilitates the fast adaptation of pre-trained routing models. It also outperforms existing generalized models on both in-distribution prediction and zero-shot generalization to a diverse set of new tasks. Our code implementation is available online https://github.com/FeiLiu36/PromptVRP.

View on arXivView PDF

Code Implementations(1)

FeiLiu36/PromptVRPOfficial100%

prompt learning for generalized vehicle routing

50PythonAug 2, 20242 years ago

Similar Papers

Cite this paper

@article{liu2024prompt,
  title  = {Prompt Learning for Generalized Vehicle Routing},
  author = {Fei Liu and Xi Lin and Weiduo Liao and Zhenkun Wang and Qingfu Zhang and Xialiang Tong and Mingxuan Yuan},
  year   = {2024},
  eprint = {2405.12262},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.12262v1}
}

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/2405.12262.svg)](https://codeofpaper.com/paper/2405.12262)

Discussion