[Paper Review] A Deep Reinforcement Learning Algorithm Using Dynamic Attention Model for Vehicle Routing Problems
This paper proposes a dynamic attention model (AM-D) with a dynamic encoder-decoder architecture that updates node features at each construction step in vehicle routing problems (VRP), enabling better exploitation of hidden structural information. The method outperforms previous attention-based models and baseline heuristics, achieving lower optimality gaps and strong generalization across different instance sizes.
Recent researches show that machine learning has the potential to learn better heuristics than the one designed by human for solving combinatorial optimization problems. The deep neural network is used to characterize the input instance for constructing a feasible solution incrementally. Recently, an attention model is proposed to solve routing problems. In this model, the state of an instance is represented by node features that are fixed over time. However, the fact is, the state of an instance is changed according to the decision that the model made at different construction steps, and the node features should be updated correspondingly. Therefore, this paper presents a dynamic attention model with dynamic encoder-decoder architecture, which enables the model to explore node features dynamically and exploit hidden structure information effectively at different construction steps. This paper focuses on a challenging NP-hard problem, vehicle routing problem. The experiments indicate that our model outperforms the previous methods and also shows a good generalization performance.
Motivation & Objective
- To address the limitation of fixed node embeddings in existing attention models for VRP, where node features do not adapt to changing solution states.
- To develop a dynamic encoder-decoder architecture that enables the model to explore and exploit evolving structural information in the instance at each decision step.
- To learn heuristic policies end-to-end from data without human-designed features or supervision, directly optimizing for solution quality.
- To evaluate the method on large-scale VRP instances and assess its generalization performance across varying problem sizes.
- To demonstrate the effectiveness of combining the learned heuristic with local search for further solution improvement.
Proposed method
- The model uses a dynamic encoder-decoder framework where node embeddings are updated at each step based on the current partial solution and graph structure.
- Node features are re-embedded dynamically using a graph attention mechanism that captures context-dependent structural properties at each construction stage.
- The policy network is trained via deep reinforcement learning using the REINFORCE algorithm with episode-based rewards based on negative tour length.
- The model constructs solutions incrementally by selecting the next node via a differentiable attention mechanism over candidate nodes.
- A greedy inference strategy is used during testing, and 2-OPT local search is applied post-inference to further improve solution quality.
- The training process is offline and computationally intensive, but inference is fast (0.29 ms per instance on average), enabling real-time deployment.
Experimental results
Research questions
- RQ1Can dynamic node feature updates during solution construction lead to better heuristic policies for VRP compared to fixed embeddings?
- RQ2Does the proposed dynamic attention mechanism improve solution quality and reduce the optimality gap on benchmark VRP instances?
- RQ3How well does the model generalize to unseen VRP instances of different sizes (e.g., training on 20 nodes but testing on 100)?
- RQ4Can the learned heuristic be effectively combined with local search to further enhance solution quality?
- RQ5Is the training process scalable to larger problem instances, and how does inference speed compare to traditional heuristics?
Key findings
- AM-D significantly outperforms the original static attention model (AM) and other baseline methods, reducing the optimality gap on VRP instances.
- The model trained on 20-node instances generalizes well to 50- and 100-node instances, achieving better results than some baselines trained on larger instances.
- The model trained on 100-node instances also performs well on 20- and 50-node instances, demonstrating strong cross-scale generalization.
- Integrating 2-OPT local search with AM-D (resulting in AM-D (2OPT)) further improves solution quality, though at the cost of increased computational time.
- Inference with the trained model is extremely fast—only 0.29 milliseconds per instance—making it suitable for real-time applications.
- The training phase is computationally expensive (e.g., 14 hours for VRP20), but it is a one-time offline process, enabling efficient online inference.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.