[论文解读] Learning to Deliver: a Foundation Model for the Montreal Capacitated Vehicle Routing Problem
该论文提出FM-MCVRP,一种基于Transformer架构并嵌入大型语言模型框架的基座模型,通过在次优解上进行训练,学习求解蒙特利尔容量车辆路径问题(MCVRP)。尽管训练数据质量较低,其性能仍优于最先进的启发式算法(如HGS),在400个客户的实例上达到基准结果的2%以内,并且无需微调即可有效泛化至更大规模的问题实例。
In this paper, we present the Foundation Model for the Montreal Capacitated Vehicle Routing Problem (FM-MCVRP), a novel Deep Learning (DL) model that approximates high-quality solutions to a variant of the Capacitated Vehicle Routing Problem (CVRP) that characterizes many real-world applications. The so-called Montreal Capacitated Vehicle Routing Problem (MCVRP), first formally described by Bengio et al. (2021), is defined on a fixed and finite graph, which is analogous to a city. Each MCVRP instance is essentially the sub-graph connecting a randomly sampled subset of the nodes in the fixed graph, which represent a set of potential addresses in a real-world delivery problem on a given day. Our work exploits this problem structure to frame the MCVRP as an analogous Natural Language Processing (NLP) task. Specifically, we leverage a Transformer architecture embedded in a Large Language Model (LLM) framework to train our model in a supervised manner on computationally inexpensive, sub-optimal MCVRP solutions obtained algorithmically. Through comprehensive computational experiments, we show that FM-MCVRP produces better MCVRP solutions than the training data and generalizes to larger sized problem instances not seen during training. Even when compared to near-optimal solutions from state-of-the-art heuristics, FM-MCVRP yields competitive results despite being trained on inferior data. For instance, for 400-customer problems, FM-MCVRP solutions on average fall within 2% of the benchmark. Our results further demonstrate that unlike prior works in the literature, FM-MCVRP is a unified model, which performs consistently and reliably on a range of problem instance sizes and parameter values such as the vehicle capacity.
研究动机与目标
- 开发一个统一的深度学习模型,使其在不同规模的MCVRP实例和车辆容量参数下均具备泛化能力。
- 将MCVRP的结构——在固定图上定义、节点子集随机——视为自然语言处理任务,以支持监督训练。
- 通过学习生成优于监督数据中次优解的更优解,改进训练数据质量。
- 即使在次优数据上进行训练,仍实现与最先进的启发式算法(如HGS和LKH-3)相当的性能。
提出的方法
- 该模型采用基于Transformer的架构,在算法生成的MCVRP次优解上进行监督训练。
- 将MCVRP建模为序列到序列任务,输入为顾客位置集合与车辆容量,输出为路径序列。
- 训练数据由计算成本较低的启发式方法生成的解构成,支持在多样化MCVRP实例上进行可扩展的预训练。
- 推理阶段采用nucleus采样(nucleus sampling)生成多样化且高质量的路径序列。
- 推理过程中应用路径排序策略,按路径与出发地的夹角接近程度分组,以防止出现巨型环路错误并提升解的质量。
- 通过配对t检验,将模型在1,000个测试实例上、多种问题规模下的表现与HGS(1,000次运行中的最佳结果)进行对比评估。

实验结果
研究问题
- RQ1在次优解上进行训练的基座模型,是否能泛化至更大、未见过的MCVRP实例,并优于训练数据?
- RQ2在固定图结构上训练的统一Transformer模型,是否能在不同问题规模和车辆容量下保持一致的性能表现?
- RQ3在次优数据上进行训练的模型,是否能生成与或优于HGS和LKH-3等先进启发式算法相当的解?
- RQ4Transformer架构在路径层面的排列不变性如何影响解的质量?是否可通过结构化解码策略加以缓解?
- RQ5模型性能在多大程度上依赖于推理过程中路径的解码顺序?
主要发现
- FM-MCVRP在400个客户的MCVRP实例上,平均解的质量比最佳已知基准解差2%,展现出强大的竞争力。
- 在配对样本t检验中,FM-MCVRP(nucleus采样,1,000次采样)显著优于HGS(1,000次运行中的最佳结果),p值为0.00,t统计量为-62.84,拒绝了HGS性能更优的原假设。
- 该模型能有效泛化至更大规模实例,例如800个客户的场景,在该情况下虽使用了更多路径,但仍找到了更优的解。
- 可视化分析表明,FM-MCVRP生成的路径在出发地附近紧密聚集,表明其已学习到解结构中的空间一致性。
- 在无路径排序的排列不变性解码下,模型性能极差,甚至出现巨型环路错误,凸显了结构化路径排序的重要性。
- 该模型在不同车辆容量水平和问题实例规模下均表现出稳健性能,证实其作为统一基座模型的有效性。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。