Abstract
This paper introduces Neural Large Neighborhood Search (NLNS), a hybrid approach that embeds deep reinforcement learning within a classic optimization framework to solve vehicle routing problems. By using an attention-based neural network to "repair" solutions rather than building them from scratch, NLNS achieves performance that rivals state-of-the-art handcrafted solvers, closing a long-standing performance gap in the machine learning literature.
Introduction
The Vehicle Routing Problem (VRP) is a cornerstone of logistics, focusing on the delivery of goods to customers using a fleet of limited-capacity vehicles at minimum cost. While handcrafted algorithms like LKH3 or UHGS have dominated the field for decades, recent "pure" machine learning (ML) approaches have emerged. However, these ML models often face a "performance gap," struggling with accuracy and scalability as problem sizes grow. This paper addresses these limitations by proposing Neural Large Neighborhood Search (NLNS), which integrates the strengths of metaheuristics with deep learning.
Methodology: Neural Large Neighborhood Search
The core of the proposed method is the Large Neighborhood Search (LNS) metaheuristic, which improves solutions through an iterative "Destroy and Repair" loop. In this framework, a portion of the current routes is removed (Destroy) and subsequently re-inserted (Repair) to find a better feasible solution.
The Neural Repair Operator
The primary innovation is the Neural Repair Operator. Instead of relying on handcrafted rules, the authors employ a deep neural network with an attention mechanism to perform re-insertions.
As illustrated in Figure 4, the model takes the "broken" ends of tours as input. It utilizes an encoder for embeddings and an attention layer to determine the most relevant parts of the incomplete solution for the current repair step. By avoiding a Recurrent Neural Network (RNN) decoder, the model remains efficient and invariant to customer order. Training is conducted via Reinforcement Learning (REINFORCE), where the reward is the reduction in total tour length, stabilized by a "critic" network.
Experimental Evaluation
The authors evaluated NLNS on the Capacitated VRP (CVRP) and the Split Delivery VRP (SDVRP) using both standard benchmarks (20, 50, and 100 customers) and a more challenging Uchoa-style dataset with up to 297 customers.
Key Results
NLNS was tested in two modes: Batch Search (leveraging GPU parallelism) and Single Instance Search (using simulated annealing). In batch search, NLNS significantly outperformed existing state-of-the-art ML models, such as the Attention Model by Kool et al., in both solution quality and speed.
As shown in Figure 5, NLNS achieves lower average costs across various instance sizes compared to other reinforcement learning baselines. In single-instance tests, NLNS achieved performance parity with the legendary LKH3 solver on 11 out of 17 instance groups. While the Unified Hybrid Genetic Search (UHGS) remains the overall leader, the gap between NLNS and UHGS was remarkably small (0.08% to 3.38%).
Discussion and Conclusion
NLNS demonstrates that learned heuristics can effectively compete with decades of human expert tuning. By repairing only a fraction of the solution, the neural network's task remains manageable even as problem size increases, allowing it to scale to ~300 customers. This decoupling of complexity is a key advantage over pure ML models. Future work may involve jointly training destroy and repair operators to further enhance performance and exploring more sophisticated search procedures.
Summary updated