NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Complex Vehicle Routing with Memory Augmented Neural Networks

Marijn van Knippenberg, Mike Holenderski, Vlado Menkovski

Abstract

Complex real-life routing challenges can be modeled as variations of well-known combinatorial optimization problems. These routing problems have long been studied and are difficult to solve at scale. The particular setting may also make exact formulation difficult. Deep Learning offers an increasingly attractive alternative to traditional solutions, which mainly revolve around the use of various heuristics. Deep Learning may provide solutions which are less time-consuming and of higher quality at large scales, as it generally does not need to generate solutions in an iterative manner, and Deep Learning models have shown a surprising capacity for solving complex tasks in recent years. Here we consider a particular variation of the Capacitated Vehicle Routing (CVRP) problem and investigate the use of Deep Learning models with explicit memory components. Such memory components may help in gaining insight into the model's decisions as the memory and operations on it can be directly inspected at any time, and may assist in scaling the method to such a size that it becomes viable for industry settings.

Introduction

Routing problems, such as the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP), are fundamental to logistics and supply chain management. These problems are NP-hard, meaning their computational complexity grows exponentially with the number of delivery points. Traditional solution methods typically rely on hand-crafted heuristics that are often slow and iterative.

While Deep Learning (DL) has emerged as a faster alternative for inference, standard neural architectures face significant hurdles in this domain. Specifically, they struggle with scaling—storing large-scale graph connections within fixed weights—and handling dynamic constraints like truck cargo capacities or time windows without extensive architectural redesign. This research investigates whether Differentiable Neural Computers (DNCs), which utilize external addressable memory, can overcome these limitations.

Methods

The core of the proposed approach is the use of Differentiable Neural Computers (DNCs). Unlike standard Recurrent Neural Networks (RNNs) that rely solely on a hidden state for storage, a DNC features a dedicated memory matrix. A neural "controller" manages the logic and interacts with this external memory using read and write "heads," analogous to how a CPU interacts with RAM.

Architecture of the Differentiable Neural Computer (DNC) showing the controller and external memory interface.

Technical Implementation

  • Decoupled Storage: The external memory stores the problem instance (the graph of locations), freeing the controller's weights to focus on routing logic.
  • Sequential Input: Problem data, including edge distances and truck capacities, is fed into the model as a sequence of vectors.
  • Curriculum Learning: Training DNCs on complex tasks from scratch is inefficient. The authors implemented a "lesson-based" curriculum, starting with simple TSPs (few nodes, one truck) and gradually increasing complexity to multi-truck CVRPs.
  • Transfer Learning: Knowledge from simpler routing tasks is leveraged to accelerate training for more complex problem variations.

Key Results

The model was evaluated on its ability to solve problems within a hold-out test set, requiring an 80% success threshold to progress through the curriculum. The results demonstrate that the DNC-based model can effectively learn to navigate complex constraints.

Performance results across different curriculum learning lessons for TSP, VRP, and CVRP.

As shown in the performance table, the model achieved an accuracy of 87.2% on TSP instances with 10–25 nodes. For the more challenging CVRP tasks involving 20–30 nodes and 4 trucks, the model maintained a respectable 72.8% accuracy. Notably, while training is computationally intensive (taking days on high-end GPUs), the inference speed for generating solutions is significantly faster than traditional iterative heuristics.

Discussion and Future Work

While promising, the research highlights several challenges. Training time remains a bottleneck, and there is a "scaling ceiling" observed at approximately 30 nodes, whereas industrial applications often require solutions for thousands of points.

Future research directions include:

  • Multi-Agent Systems: Assigning individual learning agents to each truck to reduce the complexity managed by a single controller.
  • Reinforcement Learning (RL): Transitioning from supervised learning to RL to eliminate the need for optimal labels and instead optimize directly for total route cost.
  • Dynamic Rescheduling: Leveraging the model's inference speed for real-time route updates based on live traffic or new order data.

Summary updated

BibTeX
@inproceedings{knippenberg2020complex,
  author = {Marijn van Knippenberg and Mike Holenderski and Vlado Menkovski},
  title = {{Complex Vehicle Routing with Memory Augmented Neural Networks}},
  booktitle = {ICPS},
  year = {2020},
  url = {https://openreview.net/forum?id=daMsIt_CZPX},
}
Figure