Skip to main content
QUICK REVIEW

[Paper Review] Learning to Deliver: a Foundation Model for the Montreal Capacitated Vehicle Routing Problem

Samuel J. K. Chin, Matthias Winkenbach|arXiv (Cornell University)|Feb 28, 2024
Vehicle Routing Optimization MethodsEngineering3 citations
TL;DR

This paper introduces FM-MCVRP, a foundation model based on a Transformer architecture embedded within a large language model framework, which learns to solve the Montreal Capacitated Vehicle Routing Problem (MCVRP) by training on sub-optimal solutions. Despite being trained on inferior data, it outperforms state-of-the-art heuristics like HGS, achieving solutions within 2% of benchmark results on 400-customer instances and generalizing effectively to larger problem sizes without retraining.

ABSTRACT

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.

Motivation & Objective

  • To develop a unified deep learning model that generalizes across diverse MCVRP instance sizes and vehicle capacity parameters.
  • To leverage the structure of the MCVRP—defined on a fixed graph with random node subsets—as a natural language processing task to enable supervised training.
  • To improve upon sub-optimal training data by learning to produce better solutions than those used for supervision.
  • To achieve competitive performance against state-of-the-art heuristics like HGS and LKH-3, even when trained on inferior data.

Proposed method

  • The model uses a Transformer-based architecture trained in a supervised manner on algorithmically generated, sub-optimal solutions to the MCVRP.
  • The MCVRP is framed as a sequence-to-sequence task, where the input is a set of customer locations and vehicle capacity, and the output is a sequence of routes.
  • Training data consists of computationally inexpensive, heuristic-derived solutions, enabling scalable pre-training on diverse MCVRP instances.
  • The model employs nucleus sampling (nucleus sampling) during inference to generate diverse and high-quality route sequences.
  • A route-ordering strategy is applied during inference, grouping routes by angular proximity to the depot to prevent giant loop errors and improve solution quality.
  • The model is evaluated using paired t-tests against HGS (best of 1,000 runs) on 1,000 test instances across multiple problem sizes.
Figure 1 : Encoder-Decoder Transformer Architecture for the CVRP .
Figure 1 : Encoder-Decoder Transformer Architecture for the CVRP .

Experimental results

Research questions

  • RQ1Can a foundation model trained on sub-optimal solutions generalize to larger, unseen MCVRP instances and outperform the training data?
  • RQ2Does a unified Transformer-based model trained on a fixed graph structure achieve consistent performance across varying problem sizes and vehicle capacities?
  • RQ3Can a model trained on inferior data produce solutions competitive with or better than state-of-the-art heuristics like HGS and LKH-3?
  • RQ4How does route-level permutation invariance in the Transformer architecture affect solution quality, and can it be mitigated through structured decoding?
  • RQ5To what extent does the model’s performance depend on the order in which routes are decoded during inference?

Key findings

  • FM-MCVRP produces solutions that are, on average, 2% worse than the best-known benchmark solutions for 400-customer MCVRP instances, demonstrating strong competitiveness.
  • In a paired samples t-test, FM-MCVRP (nucleus sampling, 1,000 samples) significantly outperformed HGS (best of 1,000 runs), with a p-value of 0.00 and a t-statistic of -62.84, rejecting the null hypothesis that HGS performs better.
  • The model generalizes effectively to larger instances, such as 800-customer problems, where it found a solution with better value despite using more routes than HGS.
  • Visual analysis shows that FM-MCVRP produces tightly clustered routes around the depot, suggesting it has learned spatial coherence in solution structure.
  • Permutation-invariant decoding without route ordering led to poor performance, including giant loop errors, highlighting the importance of structured route ordering.
  • The model’s performance is robust across different vehicle capacity levels and problem instance sizes, confirming its role as a unified foundation model.
(a) Phase II-A Problem Tokens
(a) Phase II-A Problem Tokens

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.