TL;DR
This paper introduces Neural Neighborhood Search (N2S), a novel deep learning approach for solving complex Pickup and Delivery Problems (PDPs). N2S uses a unique "Synthesis Attention" mechanism to better understand route features and specialized decoders to handle the critical "pickup before delivery" constraint, achieving state-of-the-art results and even surpassing a leading traditional solver on challenging PDP variants.
What Problem Does This Paper Address?
The Pickup and Delivery Problem (PDP) is a common logistical challenge where goods need to be picked up from one location and delivered to another, with the crucial constraint that a pickup must occur before its corresponding delivery. Traditional methods for solving PDPs often rely on manually engineered "neighborhood search" heuristics, which are effective but time-consuming to design and adapt to new problem variations. While deep learning has shown promise in solving other routing problems like the Traveling Salesperson Problem (TSP) and Capacitated Vehicle Routing Problem (CVRP), efficient neural methods for PDPs, especially those that can handle the precedence constraint effectively, have been lacking. This paper aims to bridge this gap by developing a neural approach that can learn efficient search strategies for PDPs, rivaling and even exceeding the performance of established heuristics.
Methods
The core of the proposed N2S approach lies in its novel neural architecture and learning strategy:
- Synthesis Attention (Synth-Att): This is a key innovation designed to improve how the model processes information about a potential route solution. Unlike standard self-attention mechanisms that might struggle to combine different types of route features (like node coordinates and their positions), Synth-Att synthesizes attention scores from various feature embeddings. This allows for a more comprehensive representation of the route's characteristics, leading to better performance with reduced computational cost compared to prior methods like Dual-Aspect Collaborative Transformer (DACT).
- Node-Pair Removal and Reinsertion Decoders: A critical challenge in PDPs is maintaining the "pickup before delivery" constraint. N2S addresses this by employing two specialized decoders. Instead of moving individual nodes, these decoders learn to simultaneously remove a pickup-delivery node pair from a route and then intelligently reinsert them. This approach directly tackles the precedence constraint, preventing violations that could occur with simpler node manipulation methods.
- Reinforcement Learning (RL) and Curriculum Learning: The N2S model is trained using reinforcement learning, specifically an n-step Proximal Policy Optimization (PPO) algorithm. To further enhance learning, a curriculum learning strategy is employed. This involves starting with randomly generated solutions and gradually improving them over training epochs, effectively increasing the "hardness" of the neighborhood search as the model learns.
- Diversity Enhancement (N2S-A): To combat local optima and improve robustness, an augmentation-based inference scheme (N2S-A) is introduced. This involves applying various invariant transformations to the problem instances during inference, creating multiple versions of the same problem. The model then solves each transformed instance, and the best solution found across all variations is selected.
Datasets
The paper evaluates N2S on two canonical PDP variants:
- Pickup and Delivery Traveling Salesman Problem (PDTSP)
- PDTSP with Last-In-First-Out constraint (PDTSP-LIFO)
Instances for these problems were generated with sizes |V| = 21, 51, and 101, with node coordinates uniformly distributed in the unit square [0, 1] × [0, 1]. The paper also uses benchmark instances from [Renaud et al., 2002] for PDTSP and [Carrabs et al., 2007] for PDTSP-LIFO to evaluate generalization capabilities.
Key Insights and Ideas
- Node-Pair Operations are Crucial for PDPs: The success of N2S hinges on its ability to learn to manipulate pairs of pickup and delivery nodes simultaneously. This is a significant departure from methods that operate on single nodes and is essential for efficiently handling the precedence constraint in PDPs.
- Attention Synthesis for Richer Representations: The Synth-Att mechanism demonstrates that intelligently combining different feature embeddings can lead to more powerful representations for routing problems, outperforming simpler attention mechanisms and even specialized dual-aspect attention.
- Neural Methods Can Outperform Traditional Solvers: The paper provides strong evidence that neural approaches, when designed appropriately, can not only match but also surpass highly optimized traditional solvers like LKH3 on complex combinatorial optimization problems like PDPs, especially for more constrained variants.
- Diversity Enhances Robustness: The N2S-A variant, by leveraging data augmentation during inference, shows improved performance and robustness, highlighting the importance of exploring the solution space from multiple perspectives.
Key Results
- State-of-the-Art Performance: N2S achieves state-of-the-art results among existing neural methods on both PDTSP and PDTSP-LIFO for various instance sizes.
- Surpassing LKH3: For the more constrained PDTSP-LIFO variant, N2S-A, with diversity enhancement, becomes the first neural method to outperform the well-known LKH3 solver, achieving gaps of -0.64% and -1.47% on PDTSP-LIFO-51 and PDTSP-LIFO-101, respectively.
- Reduced Computation Costs: The Synth-Att mechanism leads to competitive performance with significantly reduced computation costs compared to prior neural methods like DACT.
- Effective Generalization: N2S-A demonstrates strong generalization capabilities on unseen benchmark instances, significantly outperforming the Heter-POMO baseline.
Limitations and Future Work
- Out-of-Distribution Generalization: While N2S shows good generalization, the paper acknowledges that its performance on instances with arbitrary distributions (different from training ones) is slightly inferior to LKH3. Future work aims to improve this out-of-distribution generalization.
- Capacity Constraint Handling: The paper notes that N2S is generic to capacity constraints, similar to DACT, but suggests that capacity might be less critical in PDPs due to the alternating nature of loading/unloading. Further exploration of capacity handling could be beneficial.
- Future Directions: The authors propose several future research avenues:
- Integrating N2S as a low-level agent in hierarchical frameworks for dynamic PDPs.
- Combining N2S with divide-and-conquer strategies for even larger-scale instances.
- Enhancing out-of-distribution generalization to surpass LKH3 on all instance types.
Summary updated