[Paper Review] Reinforcement Learning for Solving the Vehicle Routing Problem
The paper presents an end-to-end reinforcement learning framework that solves capacitated VRP instances by learning a stochastic policy, achieving competitive solutions without retraining for each instance and outperforming classic heuristics and OR-Tools on medium-sized problems.
We present an end-to-end framework for solving the Vehicle Routing Problem (VRP) using reinforcement learning. In this approach, we train a single model that finds near-optimal solutions for problem instances sampled from a given distribution, only by observing the reward signals and following feasibility rules. Our model represents a parameterized stochastic policy, and by applying a policy gradient algorithm to optimize its parameters, the trained model produces the solution as a sequence of consecutive actions in real time, without the need to re-train for every new problem instance. On capacitated VRP, our approach outperforms classical heuristics and Google's OR-Tools on medium-sized instances in solution quality with comparable computation time (after training). We demonstrate how our approach can handle problems with split delivery and explore the effect of such deliveries on the solution quality. Our proposed framework can be applied to other variants of the VRP such as the stochastic VRP, and has the potential to be applied more generally to combinatorial optimization problems.
Motivation & Objective
- Develop an RL-based framework to solve VRP without instance-specific retraining.
- Represent VRP as an MDP and learn a policy that outputs feasible routes.
- Achieve near-optimal solutions that outperform classical heuristics and OR-Tools on medium-sized VRP instances.
- Demonstrate the framework’s ability to handle split deliveries and dynamic variants.
- Propose a scalable framework applicable to other combinatorial optimization problems.
Proposed method
- Model a parameterized stochastic policy that generates solution sequences through an attention-based decoder.
- Use a set of input embeddings and a recurrent decoder without an encoder RNN to handle set-like VRP inputs.
- Apply an attention mechanism with context vector to produce a probability distribution over next destinations.
- Train the policy with policy gradient methods (actor-critic framework not fully detailed here).
- Mask infeasible actions to enforce VRP feasibility and optionally allow split deliveries via relaxed masking.
- Demonstrate beam search to improve solution quality with modest additional computation.
Experimental results
Research questions
- RQ1Can an end-to-end RL framework produce near-optimal VRP solutions without instance-specific retraining?
- RQ2How does the RL approach compare to classical VRP heuristics and OR-Tools in solution quality and runtime on varying VRP sizes?
- RQ3Does the model support split deliveries and dynamic (stochastic) VRP variants?
- RQ4Is a simple attention-based architecture without an encoder sufficient for set-like VRP inputs?
- RQ5What is the impact of using greedy vs. beam search decoders on solution quality?
Key findings
- The RL framework outperforms Clarke–W Wright and Sweep heuristics and competes with OR-Tools on medium-sized VRPs.
- Beam search improves solution quality over greedy decoding, with RL-BS outperforming RL-greedy in most VRP50 instances (e.g., 85.8%).
- For VRP10 and VRP20, the approach yields optimality gaps around 5–13% in most cases with a beam width of 10.
- On VRP50 and VRP100, the RL method provides shorter tours in roughly 61% of instances compared to baselines.
- Allowing multi-delivery (split deliveries) emerges naturally under relaxed masking, without explicit hand engineering.
- The method scales well with problem size and does not require explicit distance matrices, unlike some classical methods.
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.