Abstract
Vehicle Routing Problems (VRPs) are fundamental combinatorial optimization challenges with significant logistical applications. While deep reinforcement learning (DRL) has emerged as a promising alternative to slow exact solvers, existing models often suffer from a lack of policy diversity and static state representations. This paper presents the Multi-Decoder Attention Model (MDAM), which addresses these limitations through two key innovations: a multi-decoder architecture that learns a diverse set of expert policies via Kullback-Leibler (KL) divergence loss, and an Embedding Glimpse (EG) layer that dynamically masks visited nodes to provide context-aware embeddings. Experimental results across six routing problems demonstrate that MDAM significantly outperforms state-of-the-art DRL baselines, narrowing the optimality gap to specialized solvers while maintaining high computational efficiency.
Introduction
Vehicle Routing Problems, such as the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP), are NP-hard tasks central to logistics and supply chain management. Traditional exact solvers provide optimal solutions but scale poorly to large, real-time instances. Consequently, recent research has pivoted toward Deep Reinforcement Learning (DRL) models, particularly those utilizing encoder-decoder "Attention Models" (AM) to construct solutions incrementally.
Despite their potential, standard AM-based approaches face two primary hurdles. First, they typically train a single policy, which limits the search space exploration even when using beam search. Second, they often rely on static node embeddings that do not account for the changing state of the problem as nodes are visited and removed from the candidate set. MDAM is designed to overcome these hurdles by fostering policy diversity and implementing dynamic state updates.
Methodology
The MDAM architecture introduces two structural enhancements to the standard attention-based framework.
Multi-Decoder Architecture
To increase the diversity of generated solutions, MDAM employs $M$ identical decoders with independent parameters. During the training phase, the model optimizes a standard reinforcement learning objective alongside a Kullback-Leibler (KL) divergence loss applied at the initial construction step. This loss forces the decoders to produce distinct probability distributions, effectively training a "committee" of experts that explore different regions of the solution space.
Embedding Glimpse (EG) Layer
The EG layer modifies the encoder's top layer to reflect the shrinking sub-task as nodes are visited. By explicitly masking visited nodes, the EG layer ensures that the decoders receive embeddings focused solely on the remaining nodes. To balance accuracy with computational overhead, this re-embedding process occurs every $p$ steps.
Inference and Merging
During inference, MDAM utilizes a customized beam search where each decoder maintains its own set of candidate solutions. To optimize memory and computation, a merging technique is employed to prune inferior partial solutions—specifically those that have visited the same set of nodes and ended at the same location but with a longer path length.
Experimental Results
The model was evaluated on 10,000 test instances for six distinct routing problems: TSP, CVRP, Split Delivery VRP (SDVRP), Orienteering Problem (OP), and Prize Collecting TSP (PCTSP/SPCTSP). Tests were conducted on problem sizes of $n=20, 50,$ and $100$ nodes.
As shown in the results table, MDAM consistently achieves state-of-the-art performance. For TSP100, MDAM reduced the optimality gap to 0.38%, a significant improvement over the 2.26% gap of the standard Attention Model. Similar gains were observed in CVRP100, where MDAM achieved a 2.23% gap, outperforming both the standard AM (3.72%) and the improvement-based NeuRewriter (2.88%).
Discussion and Conclusion
The success of MDAM highlights the importance of diversity in neural combinatorial optimization. By treating diversity as an explicit training objective, the model avoids the local optima that often plague single-policy models. Furthermore, the EG layer aligns the neural network's internal representation with the recursive nature of routing problems, providing more informative inputs for decision-making.
While MDAM currently applies KL divergence loss only at the first step to save computation, future work could explore enforcing diversity throughout the entire construction sequence. Additionally, integrating MDAM's diverse construction capabilities with iterative improvement heuristics or enabling inter-decoder collaboration could further enhance solution quality for complex real-world logistics.
Summary updated