Learning to Insert for Constructive Neural Vehicle Routing Solver
Fu Luo, Xi Lin, Mengyuan Zhong, Fei Liu, Zhenkun Wang, Jianyong Sun, Qingfu Zhang
TL;DR
This work tackles Vehicle Routing Problems by introducing L2C-Insert, a fully learned insertion-based constructive framework thatallows nodes to be inserted at any valid position in the current partial solution. The model combines a Transformer-style encoder-decoder with a supervised training scheme that learns precise insertion positions, and a distance-based local reconstruction strategy to refine solutions during inference. Empirical results on TSP and CVRP demonstrate strong, scalable performance from 100 to 100K nodes, often outperforming state-of-the-art neural solvers and even rivaling classical methods in efficiency. The study highlights the insertion paradigm as a powerful alternative to traditional appending, with clear implications for designing more flexible and effective neural solvers for VRPs.
Abstract
Neural Combinatorial Optimisation (NCO) is a promising learning-based approach for solving Vehicle Routing Problems (VRPs) without extensive manual design. While existing constructive NCO methods typically follow an appending-based paradigm that sequentially adds unvisited nodes to partial solutions, this rigid approach often leads to suboptimal results. To overcome this limitation, we explore the idea of insertion-based paradigm and propose Learning to Construct with Insertion-based Paradigm (L2C-Insert), a novel learning-based method for constructive NCO. Unlike traditional approaches, L2C-Insert builds solutions by strategically inserting unvisited nodes at any valid position in the current partial solution, which can significantly enhance the flexibility and solution quality. The proposed framework introduces three key components: a novel model architecture for precise insertion position prediction, an efficient training scheme for model optimization, and an advanced inference technique that fully exploits the insertion paradigm's flexibility. Extensive experiments on both synthetic and real-world instances of the Travelling Salesman Problem (TSP) and Capacitated Vehicle Routing Problem (CVRP) demonstrate that L2C-Insert consistently achieves superior performance across various problem sizes.
