Skip to main content
QUICK REVIEW

[Paper Review] Learning to Solve Vehicle Routing Problems with Time Windows through Joint Attention

Jonas K. Falkner, Lars Schmidt-Thieme|arXiv (Cornell University)|Jun 16, 2020
Vehicle Routing Optimization MethodsEngineering31 references16 citations
TL;DR

This paper proposes JAMPR, a novel reinforcement learning model that uses joint attention over multiple vehicle routes to solve Vehicle Routing Problems with Time Windows (CVRP-TW), enabling concurrent route construction and improved decision-making under complex constraints. JAMPR outperforms state-of-the-art machine learning and meta-heuristic methods on three CVRP-TW variants, achieving significantly better solutions while maintaining fast inference times.

ABSTRACT

Many real-world vehicle routing problems involve rich sets of constraints with respect to the capacities of the vehicles, time windows for customers etc. While in recent years first machine learning models have been developed to solve basic vehicle routing problems faster than optimization heuristics, complex constraints rarely are taken into consideration. Due to their general procedure to construct solutions sequentially route by route, these methods generalize unfavorably to such problems. In this paper, we develop a policy model that is able to start and extend multiple routes concurrently by using attention on the joint action space of several tours. In that way the model is able to select routes and customers and thus learns to make difficult trade-offs between routes. In comprehensive experiments on three variants of the vehicle routing problem with time windows we show that our model called JAMPR works well for different problem sizes and outperforms the existing state-of-the-art constructive model. For two of the three variants it also creates significantly better solutions than a comparable meta-heuristic solver.

Motivation & Objective

  • To address the limitations of sequential route construction in existing deep learning models for CVRP-TW, which struggle with complex constraints and poor generalization.
  • To develop a policy model that can jointly decide which customer to assign and to which route, enabling better trade-offs between routes.
  • To design a comprehensive state and action space that incorporates information about all active routes, vehicles, and time windows.
  • To evaluate the model on multiple CVRP-TW variants with varying constraint hardness, including hard, partly-soft, and soft time windows.
  • To demonstrate that joint attention over multiple tours leads to superior solution quality compared to sequential models and meta-heuristics.

Proposed method

  • JAMPR employs a transformer-based decoder with joint attention over multiple tours, allowing the model to attend to all routes simultaneously during action selection.
  • The model uses an enhanced feature embedding for nodes, vehicles, and tours, encoding time windows, capacity usage, and route status.
  • A joint action space enables the agent to simultaneously select the next customer and the target route, avoiding sequential dependency on single-route decisions.
  • The policy network uses a pointer-attention mechanism over the joint action space to predict the next action, combining routing and assignment decisions.
  • The model is trained via reinforcement learning with curriculum learning, starting from simpler problem instances and gradually increasing complexity.
  • Inference uses greedy decoding or sampling with beam search, and the concurrency level $m_{con}$ controls how many routes are extended in parallel.

Experimental results

Research questions

  • RQ1Can a deep reinforcement learning model that constructs multiple routes in parallel outperform sequential models on CVRP-TW with tight constraints?
  • RQ2Does joint attention over multiple tours enable better trade-offs between route balance, time window feasibility, and total cost than single-route construction?
  • RQ3How does the model’s performance compare to both state-of-the-art machine learning models and established meta-heuristic solvers like GORT on different CVRP-TW variants?
  • RQ4What is the impact of concurrency level ($m_{con}$) on solution quality and inference speed across varying problem sizes and constraint types?
  • RQ5Can the model generalize to standard CVRP without time windows, and how does it compare to existing SOTA models?

Key findings

  • JAMPR significantly outperforms the adapted AM +TW model on all three CVRP-TW variants, achieving 1716.60 average cost on TW1 (N=50) versus 6878.84 for AM +TW with $t_{10240}$ sampling.
  • On TW1, JAMPR achieves a 26.5% lower cost than GORT - AU and a 28.5% lower cost than GORT - GLS, while being 8x faster than the latter.
  • For TW2, JAMPR produces solutions of similar quality to GORT but with substantially faster inference (0.25s vs. 8.09s), and outperforms AM +TW even with 10,240 samples.
  • On TW3, JAMPR achieves the lowest cost (1947.65 at N=50) among all models tested, outperforming GORT - GLS (2753.66) and AM +TW (4161.24) with sampling.
  • JAMPR maintains strong performance on standard CVRP (without time windows), with a cost of 11.44 at N=50, slightly worse than AM (10.98) but still competitive.
  • The model naturally produces solutions with fewer vehicles ($k$) than AM +TW and GORT, indicating better route balancing, especially in constrained settings like TW1.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.