Accelerating Vehicle Routing via AI-Initialized Genetic Algorithms

Ido Greenberg, Piotr Sielski, Hugo Linsenmaier, Rajesh Gandham, Shie Mannor, Alex Fender, Gal Chechik, Eli Meirom

TL;DR

This paper introduces EARLI, a novel hybrid framework that combines Reinforcement Learning (RL) with Genetic Algorithms (GAs) to significantly accelerate the solution of Vehicle Routing Problems (VRP). By using an RL agent to generate high-quality initial solutions for a GA, EARLI achieves state-of-the-art performance with drastically reduced computation times, making real-time, large-scale VRP solutions a reality.

What Problem Does This Paper Address?

The Vehicle Routing Problem (VRP) is a classic, NP-hard optimization challenge with immense real-world implications, particularly in logistics and delivery services. The goal is to find the most efficient routes for a fleet of vehicles to serve a set of customers, minimizing costs like distance and time. While traditional optimization algorithms like Genetic Algorithms (GAs) have achieved impressive results, they can be computationally expensive, especially for large-scale problems or when real-time decision-making is required.

Existing Machine Learning (ML) and Reinforcement Learning (RL) approaches have shown promise in learning to solve VRP instances quickly, but they often fall short in solution quality compared to GAs, especially for complex, large-scale problems. A key challenge is that VRP instances are often solved repeatedly from the same underlying distribution (e.g., daily delivery routes in a city). Current solvers typically treat each instance in isolation, failing to leverage past experience. This paper addresses the need for a method that can:

  1. Leverage past experience from similar VRP instances to speed up the solving process.
  2. Achieve high-quality solutions comparable to state-of-the-art optimizers.
  3. Provide flexibility in the trade-off between solution quality and computation time, enabling solutions within seconds.
  4. Generalize to new, unseen problem instances and domains.

Methods

The core of the proposed method, EARLI (Evolutionary Algorithm with Reinforcement Learning Initialization), is a hybrid approach that combines the strengths of RL and GAs.

  • Offline Training (Figure 1a): An RL agent is trained on a dataset of VRP instances. This agent learns a policy to generate solutions. The training process uses a Proximal Policy Optimization (PPO) algorithm and incorporates a novel "capacity-aware regularization" to encourage the RL agent to minimize the number of vehicles used, in addition to travel cost. This regularization is crucial because minimizing vehicles is often a primary objective in practical VRP, and it helps prevent the GA from wasting time on suboptimal fleet sizes. Curriculum learning is also employed to scale RL training to larger problem sizes.
  • Inference/Production (Figure 1b & 1c): When presented with a new VRP instance, the trained RL agent quickly generates a pool of high-quality, though not necessarily optimal, initial solutions. These RL-generated solutions then serve as the initial population for a Genetic Algorithm (GA). The GA then takes over, iteratively improving these initial solutions through its search mechanisms (mutation, recombination, selection) until a time budget is met. This "warm-start" significantly accelerates the GA's convergence towards a good solution.

Datasets

  • Synthetic Data: Standard VRP benchmarks are used, consisting of uniformly distributed customer locations and demands, with Euclidean travel distances. These were extended to larger problem sizes (200 and 500 customers).
  • Real Data (Olist Dataset): A novel benchmark is introduced using real-world e-commerce order data from Brazil (Olist dataset). This dataset includes customer locations (derived from zip codes), order volumes for demand, and road-based driving durations calculated using OSRM. This real-world data captures more realistic customer distributions and travel cost complexities compared to purely synthetic benchmarks.

Key Insights and Ideas

  • Synergy of RL and GA: The paper demonstrates that combining RL for rapid, experience-driven solution generation with GA for thorough search and refinement is highly effective. RL provides a strong "warm-start," significantly reducing the GA's initial "warm-up" time.
  • Importance of Initialization: Traditional GAs often start with random solutions, leading to slow convergence. EARLI's RL-initialized population dramatically accelerates this process, showing that high-quality initial solutions are key to fast optimization.
  • Capacity-Aware Regularization: A novel regularization technique for RL is introduced to explicitly encourage vehicle minimization. This is a critical insight, as many real-world VRP applications prioritize minimizing the fleet size, a factor often overlooked in standard RL approaches for VRP.
  • Robustness to Domain Shift: The trained RL agent shows remarkable generalization capabilities, performing well even on cities and road networks it was not trained on, highlighting the practical applicability of the approach.
  • Scalability: The method scales effectively to hundreds of customers, achieving significant speedups (e.g., 10x faster) compared to existing solvers for comparable solution quality.

Key Results

  • Speedup: EARLI achieves solutions with comparable quality to state-of-the-art solvers but in a fraction of the time. For instance, it can find solutions in 1 second that take other solvers over 10 seconds.
  • Solution Quality: EARLI consistently outperforms existing solvers across various time budgets, achieving state-of-the-art solution costs on both synthetic and real-world benchmarks.
  • Generalization: The RL agent trained on data from one city (Sao Paulo) successfully accelerates optimization for a different city (Rio de Janeiro) with different customer distributions and road layouts.
  • Vehicle Minimization: The capacity-aware regularization effectively balances vehicle minimization with net cost minimization, offering a superior trade-off curve.
  • Robustness: EARLI demonstrates robustness across different problem sizes (up to 500 customers), data distributions, time scales, and various GA solvers.

Limitations and Future Work

  • Solution Diversity: The paper notes that while they attempted to enforce solution diversity, it resulted in quality degradation. Further research on generating diverse solutions is suggested.
  • Test-time Learning: The paper briefly touches upon test-time learning, suggesting it's impractical for short time budgets due to its computational cost. This implies that offline training is crucial for EARLI's efficiency.
  • Hardware Sensitivity: While experiments were reproduced on different hardware to show robustness, the exact meaning of "time budget" can vary.
  • Future Work: The authors suggest that the EARLI framework is applicable to other combinatorial optimization problems beyond VRP, indicating a broad potential for this hybrid approach. Further research on solution diversity is also mentioned.

Summary updated

BibTeX
@inproceedings{greenberg2025accelerating,
  author = {Ido Greenberg and Piotr Sielski and Hugo Linsenmaier and Rajesh Gandham and Shie Mannor and Alex Fender and Gal Chechik and Eli Meirom},
  title = {{Accelerating Vehicle Routing via AI-Initialized Genetic Algorithms}},
  booktitle = {DiffCoALG @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=bz6TvcWMqx},
}
Figure