arXiv:2503.12662cs.LG2025-03被引 5

用预训练+局部搜索,一套方法搞定多种车辆路径问题。

TuneNSearch: a hybrid transfer learning and local search approach for solving vehicle routing problems

  • 先用多仓库问题预训练,再微调适配不同变体。
  • 100节点多仓库问题性能比纯单仓库模型高44%。
  • 通用性强,适合需快速适配新场景的研究与应用。

本文提出 TuneNSearch,一种结合迁移学习与局部搜索的混合方法,用于求解各类车辆路径问题(VRP)。该方法首先在多仓库VRP(MDVRP)上进行预训练,再通过微调适应其他问题形式。学习阶段采用基于Transformer的架构,引入边感知注意力机制,将边距离直接融入注意力计算,以更好捕捉路由问题的空间关系。预训练模型在单仓库变体上表现接近专门训练的模型,在多仓库问题上则显著优于仅在单仓库问题上预训练的模型。例如,在100节点的多仓库实例中,相比在标准车辆路径问题(CVRP)上预训练的模型,性能提升达44%;而在单仓库实例上表现相当。在多个CVRPLIB数据集上的实验表明,其解的质量偏差均低于3%,优于其他神经网络模型的6-25%。整体方法对问题规模、分布和形式具有强泛化能力,且保持多项式时间复杂度。

原文摘要 · Abstract (English)

This paper introduces TuneNSearch, a hybrid transfer learning and local search approach for addressing diverse variants of the vehicle routing problem (VRP). Our method uses reinforcement learning to generate high-quality solutions, which are subsequently refined by an efficient local search procedure. To ensure broad adaptability across VRP variants, TuneNSearch begins with a pre-training phase on the multi-depot VRP (MDVRP), followed by a fine-tuning phase to adapt it to other problem formulations. The learning phase utilizes a Transformer-based architecture enhanced with edge-aware attention, which integrates edge distances directly into the attention mechanism to better capture spatial relationships inherent to routing problems. We show that the pre-trained model generalizes effectively to single-depot variants, achieving performance comparable to models trained specifically on single-depot instances. Simultaneously, it maintains strong performance on multi-depot variants, an ability that models pre-trained solely on single-depot problems lack. For example, on 100-node instances of multi-depot variants, TuneNSearch outperforms a model pre-trained on the CVRP by 44%. In contrast, on 100-node instances of single-depot variants, TuneNSearch performs similar to the CVRP model. To validate the effectiveness of our method, we conduct extensive computational experiments on public benchmark and randomly generated instances. Across multiple CVRPLIB datasets, TuneNSearch consistently achieves performance deviations of less than 3% from the best-known solutions in the literature, compared to 6-25% for other neural-based models, depending on problem complexity. Overall, our approach demonstrates strong generalization to different problem sizes, instance distributions, and VRP formulations, while maintaining polynomial runtime complexity despite the integration of the local search algorithm.

车辆路径迁移学习强化学习局部搜索

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。