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

Efficient Neural Neighborhood Search for Pickup and Delivery Problems

Yining Ma, Jingwen Li, Zhiguang Cao, Wen Song, Hongliang Guo, Yuejiao Gong, Yeow Meng Chee

Abstract

Researchers have developed N2S (Neural Neighborhood Search), a deep reinforcement learning approach that automates the design of heuristics for complex Pickup and Delivery Problems (PDPs). By using a novel "Synthesis Attention" mechanism and decoders that operate on pickup-delivery pairs, N2S achieves state-of-the-art results, even outperforming the legendary LKH3 metaheuristic on highly constrained problem variants.

Introduction

The Pickup and Delivery Problem (PDP) is a fundamental challenge in logistics, applicable to scenarios ranging from meal delivery to industrial robotics. Unlike the standard Traveling Salesman Problem (TSP), PDPs are characterized by a strict precedence constraint: every item must be picked up before it can be delivered. More complex variants, such as PDTSP-LIFO, introduce a "Last-In-First-Out" constraint, requiring the most recently picked-up item to be the first one delivered.

Traditional solvers like LKH3 are highly effective but rely on hand-crafted rules that are difficult to adapt to changing constraints. Conversely, previous neural methods were primarily "construction-based," building solutions from scratch in a single pass, which often resulted in a performance gap compared to iterative search methods. N2S bridges this gap by learning to iteratively improve existing solutions through neighborhood search.

Methodology

The N2S framework utilizes an encoder-decoder architecture trained via Reinforcement Learning (PPO). The process involves encoding the current problem state and solution, decoding a removal and reinsertion action, and transitioning to a new state.

Overview of the N2S architecture, including the encoding of node features, the node-pair removal/reinsertion decoders, and the resulting state transition.

Synthesis Attention (Synth-Att)

A core innovation of N2S is the Synthesis Attention mechanism. While previous models struggled to integrate "node features" (spatial coordinates) with "positional features" (the node's current position in the route), N2S employs an MLP-based synthesis layer. This layer merges these aspects into a single representation more efficiently than prior "dual-aspect" methods, capturing the complex relationships between a node's location and its sequence position.

Node-Pair Decoders

To maintain precedence constraints, N2S operates on pickup-delivery pairs rather than individual nodes. The model features two specialized decoders:

  1. Node-Pair Removal Decoder: Selects a pickup-delivery pair to be removed from the current route.
  2. Node-Pair Reinsertion Decoder: Determines the optimal position to reinsert the pair back into the route.

By treating pairs as a single unit, the model avoids breaking precedence constraints, which previously forced neural models to spend significant capacity learning to correct invalid moves. The training process is further enhanced by Curriculum Learning, where the model is gradually exposed to increasingly difficult optimization tasks.

Experiments and Results

The model was evaluated on synthesized PDP instances (21, 51, and 101 nodes) and classic benchmark datasets (Renaud et al., 2002; Carrabs et al., 2007) to test generalization.

Performance Against LKH3

N2S consistently outperformed existing neural methods like Heter-AM and DACT. Notably, on the highly constrained PDTSP-LIFO (101 nodes), the augmented version (N2S-A) achieved a -1.47% gap relative to LKH3 (10k iterations). This indicates that the learned policy found significantly shorter routes than the traditional gold-standard solver within a similar timeframe.

Efficiency and Generalization

N2S demonstrates remarkable speed, performing 1,000 search steps for a 101-node problem in approximately one minute. Furthermore, the model exhibits strong zero-shot generalization, maintaining high performance when tested on larger problems (up to 200 nodes) or different node distributions than those encountered during training.

Conclusion

N2S represents a significant advancement in neural solvers for combinatorial optimization. By synthesizing spatial and positional features and focusing on node-pair operations, it achieves state-of-the-art performance on complex PDP variants. Future work will focus on improving out-of-distribution generalization, scaling to thousands of nodes via divide-and-conquer strategies, and adapting the model for dynamic environments where requests arrive in real-time.

Summary updated

BibTeX
@inproceedings{ma2022efficient,
  author = {Yining Ma and Jingwen Li and Zhiguang Cao and Wen Song and Hongliang Guo and Yuejiao Gong and Yeow Meng Chee},
  title = {{Efficient Neural Neighborhood Search for Pickup and Delivery Problems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/662},
}
Figure