Introduction
The Capacitated Arc Routing Problem (CARP) is a fundamental combinatorial optimization challenge with significant real-world applications in logistics, such as mail delivery, waste collection, and snow plowing. Unlike Node Routing Problems (NRPs) like the Traveling Salesman Problem, CARP focuses on serving a set of required edges (arcs) within a graph using a fleet of capacity-constrained vehicles.
While deep learning has revolutionized NRP solvers, CARP remains difficult for neural networks due to two primary factors: edge directionality and non-Euclidean graph structures. Traditional metaheuristics, such as Memetic Algorithms, provide high-quality solutions but suffer from high computational costs. This paper introduces DaAM (Direction-aware Attention Model), the first neural-network-based solver that achieves solution quality comparable to state-of-the-art metaheuristics while operating orders of magnitude faster.
Methodology
Direction-aware Attention Model (DaAM)
The core innovation of DaAM lies in its ability to explicitly model the directionality of tasks. The authors propose a three-stage architecture:
- Graph Transformation: The original graph $G$ is transformed into a directed complete graph $G'$ where each directed arc (representing a task) is treated as a node. This allows the model to make a single decision—which arc to serve next—implicitly handling the entry and exit points of each task.
- Multi-Dimensional Scaling (MDS) & Graph Attention (GAT): To provide the model with spatial awareness, MDS projects the graph into a Euclidean space. A Graph Attention Network then aggregates features across these arc-nodes, capturing both global positioning and local connectivity.
- Attention Model Decoder: An encoder-decoder structure sequentially selects the next arc to serve based on the current vehicle state and remaining tasks.
Training Strategy: Supervised Reinforcement Learning (SRL)
Training a CARP solver from scratch using pure Reinforcement Learning (RL) is often unstable due to the rugged search space. To address this, the authors employ a hybrid strategy. They first perform Supervised Pre-training using high-quality solutions from a top-tier metaheuristic (MAENS) as labels. This "warm start" is followed by fine-tuning via Proximal Policy Optimization (PPO) with a self-critical baseline to further refine the policy beyond the teacher's performance.
Path Optimization (PO)
To ensure strict adherence to capacity constraints at minimum cost, the authors integrate a Dynamic Programming (DP) post-processing step. This module re-optimizes the specific points where a vehicle returns to the depot within the generated sequence, correcting for the neural network's occasional sub-optimal timing of depot returns.
Experimental Results
Solution Quality
The researchers evaluated DaAM on real-world roadmaps of Beijing, China, ranging from 20 to 100 required tasks. DaAM (with RL and PO) achieved results within a narrow gap of 1.65% to 7.28% compared to the state-of-the-art MAENS. This represents a significant improvement over previous neural solvers, which often lagged by over 20%.
Computational Efficiency
The most striking advantage of DaAM is its speed. While metaheuristics like MAENS exhibit exponential growth in computation time as problem size increases, DaAM's inference time remains nearly flat. On the largest dataset (Task100), DaAM is hundreds of times faster than MAENS, providing high-quality solutions in milliseconds.
Conclusion
DaAM successfully bridges the performance gap between fast heuristics and high-quality metaheuristics for the Capacitated Arc Routing Problem. By treating arcs as primary units and utilizing a hybrid supervised-reinforcement learning approach, the model provides a scalable, efficient solution for real-time logistics. Future work will focus on generalizing the model to dynamic environments where tasks appear in real-time and exploring multi-depot scenarios.
Summary updated