Neural Large Neighborhood Search (NLNS)
Attention-based network that repairs destroyed vehicle routing solutions inside a large neighborhood search.
Reinforcement learning and control · 46 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 116.7K
- Operations
- 46
- Framework
- PyTorch
- Recurrent
- No
- Published
- ECAI 2020
- Cited by
- 105 (as of 28 October 2026)
- Authors
- André Hottung, Kevin Tierney
- Source
- GitHub: ahottung/NLNS
- License
- GPL-3.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18803
- Graph hash
- dd59612c4472ed35f3f020563e8806023191544b6d91a23f58f52aaefc450a6f
- Skeleton hash
- 07b8e040ba68833acd96bdcc0b9e65f7a12da8687f8497f59c736016f81ab3bf
- Architecture hash
- 61403cd9c3b84dfa7ef1616046cf955a3703821c7afb9a413af4b536de18fb92
- Diagram SHA-256
- fbc055b5e5c38bc2d1c81101337a9d8d8cf82395b19c9e67669a0538271e3ec6
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Neural Large Neighborhood Search (NLNS) solves vehicle routing problems by placing learned heuristics inside a large neighborhood search, a metaheuristic that repeatedly destroys and repairs a starting solution. The destroy procedures are simple, and the harder job of repairing an incomplete solution is left to a deep neural network trained with policy gradient reinforcement learning. That repair network is the model shown here.
The network is given one end of a tour as a reference input and decides where that tour end should be connected by pointing to one of its inputs. It only receives information on the incomplete tours of a destroyed solution. Each input is embedded by two linear transformations with a ReLU activation in between, with a dimensionality of 128 in all trained models. An attention layer then condenses the embeddings into a single context vector, and unlike the architecture it departs from, the model has no RNN-based decoder.
The paper evaluates NLNS on the capacitated vehicle routing problem (CVRP) and the split delivery vehicle routing problem (SDVRP). On CVRP instances with up to 297 customers, it reports that NLNS significantly outperforms a large neighborhood search that uses only handcrafted heuristics. The repository adds that, in contrast to many machine learning approaches to routing, NLNS is able to profit from runtimes longer than 60 seconds.
Key idea. NLNS integrates learned repair heuristics, produced by an attention-based neural network trained with reinforcement learning, into a large neighborhood search for vehicle routing.
- nlns
- neural large neighborhood search
- large neighborhood search
- vehicle routing
- cvrp
- sdvrp
- capacitated vehicle routing problem
- learned repair operator
- routing heuristics
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{hottung2020neurallargeneighborhoodsearch,
title={Neural Large Neighborhood Search for the Capacitated Vehicle Routing Problem},
author={André Hottung and Kevin Tierney},
year={2020},
eprint={1911.09539},
archivePrefix={arXiv},
primaryClass={cs.AI},
doi={https://doi.org/10.3233/FAIA200124},
url={https://arxiv.org/abs/1911.09539},
}