TL;DR
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, the authors achieve performance that rivals state-of-the-art handcrafted solvers for the first time in the machine learning literature.
What Problem Does This Paper Address?
The Vehicle Routing Problem (VRP) is a cornerstone of logistics: how do you deliver goods to a set of customers using a fleet of limited-capacity vehicles at minimum cost? While researchers have spent decades perfecting handcrafted algorithms (like LKH3 or UHGS), recent years have seen a surge in "pure" machine learning (ML) approaches.
However, these ML models face a persistent "performance gap." They are often fast but less accurate than traditional solvers, largely because they rely on simple search strategies (like picking the best of $N$ random samples). Furthermore, pure ML models often struggle to scale to larger problem sizes because the complexity of generating a full solution grows exponentially with the number of customers.
Methods
The authors bridge this gap by using Large Neighborhood Search (LNS) as their backbone. LNS is a metaheuristic that improves a solution through an iterative "Destroy and Repair" loop:
- Destroy: Remove a portion of the current routes (e.g., 15-30% of customers).
- Repair: Re-insert those customers to create a new, hopefully better, feasible solution.
The core innovation is the Neural Repair Operator. Instead of using a handcrafted rule to re-insert customers, they use a deep neural network with an attention mechanism.
- Architecture: The model takes the "broken" ends of tours as input. It uses an encoder to create embeddings and an attention layer to determine which parts of the incomplete solution are most relevant to the current repair step. Crucially, it avoids using a Recurrent Neural Network (RNN) decoder, making the model more efficient and invariant to the order of customers.
- Training: The network is trained via Reinforcement Learning (REINFORCE). The "reward" is the reduction in total tour length. A "critic" network is used during training to estimate the expected cost of a repair, which helps stabilize the learning process.
- Search Modes: They implement a Batch Search (solving many instances simultaneously on a GPU) and a Single Instance Search (using simulated annealing to deeply optimize one specific problem).
Datasets
The authors evaluated NLNS on two major variants: the Capacitated VRP (CVRP) and the Split Delivery VRP (SDVRP).
- Standard Benchmarks: Randomly generated instances with 20, 50, and 100 customers, used to compare against previous ML models.
- Uchoa-style Dataset: A more challenging, diverse dataset based on the work of Uchoa et al. (2017). This includes 17 groups of 20 instances each, with up to 297 customers, varying depot locations, and different demand distributions.
Key Insights and Ideas
- Complexity Decoupling: By only repairing a fraction of the solution, the neural network's task remains manageable even as the total problem size grows. This allows NLNS to tackle problems with ~300 customers, whereas many pure ML models hit a wall much earlier.
- Learned vs. Handcrafted: The authors show that a learned repair operator significantly outperforms a standard handcrafted one (the "Ruin & Recreate" heuristic). This suggests the neural network is picking up on complex spatial patterns that simple rules miss.
- Hardware Synergy: The algorithm is specifically designed to exploit GPU parallelism. By evaluating a "batch" of potential repairs simultaneously, NLNS can explore the search space much more thoroughly than a CPU-bound traditional solver in the same amount of time.
Key Results
- Outperforming ML: In batch search, NLNS significantly outperformed existing state-of-the-art ML models (like the Attention Model by Kool et al.) in both solution quality and speed.
- Matching Classical SOTA: In single-instance tests, NLNS achieved performance parity with LKH3 (a legendary VRP solver) on 11 out of 17 instance groups. This is a landmark result, as LKH3 represents decades of human expert tuning.
- Gap to UHGS: While the Unified Hybrid Genetic Search (UHGS) remains the overall leader, the gap between NLNS and UHGS was small (ranging from 0.08% to 3.38%), proving that learned heuristics are now serious contenders in the optimization field.
Limitations and Future Work
- Training Overhead: Training a single repair operator can take anywhere from several hours to four days depending on the problem size.
- Generalization: While the model handles different sizes well, the repair operators are still somewhat specialized to the distribution they were trained on.
- Future Directions: The authors suggest that jointly training the destroy and repair operators (rather than using simple handcrafted destroy rules) could lead to even better performance. They also aim to explore more sophisticated search procedures beyond simulated annealing.
Summary updated