TSS GAZ PTP: Towards Improving Gumbel AlphaZero with Two-stage Self-play for Multi-constrained Electric Vehicle Routing Problems

Hui Wang, Xufeng Zhang, Xiaoyu Zhang, Zhenhuan Ding, Chaoxu MuarXiv 2025 · DOI

Abstract

This paper introduces TSS GAZ PTP, a novel reinforcement learning framework designed to tackle the complex logistics of routing electric vehicles. By evolving the self-play mechanism of Gumbel AlphaZero into a two-stage process, the authors demonstrate a significant leap in solving multi-constrained optimization problems that traditional solvers and standard deep learning models struggle to handle.

The Complexity of Electric Vehicle Routing

Combinatorial Optimization (CO) is a cornerstone of logistics, with the Traveling Salesman Problem (TSP) being its most prominent example. However, the Electric Vehicle Routing Problem (EVRP) presents a significantly more complex challenge. Unlike traditional fuel vehicles, EVs have limited ranges and must strategically visit charging stations, which can be revisited multiple times. This transforms EVRP into a "variable-step" problem governed by non-linear constraints, such as energy consumption influenced by vehicle load and road slope.

Illustration of the Electric Vehicle Routing Problem (EVRP) involving depots, customers, charging stations, and battery constraints.

While Deep Reinforcement Learning (DRL) and Gumbel AlphaZero (GAZ) have shown promise in TSP, they often falter in EVRP. The authors identify a "competition imbalance" in existing self-play models: if the opponent is too weak (greedy) or too strong, the learning agent stops discovering superior trajectories and becomes trapped in local optima.

Methodology: Two-stage Self-play (TSS)

The core innovation of this work is the Two-stage Self-play (TSS) strategy, which modulates the difficulty of the opponent to ensure continuous learning progress.

  1. Stage 1 (Warm-up): The learning player utilizes Gumbel Monte Carlo Tree Search (MCTS) to select actions, while the competitor acts as a "greedy" player using the best historical policy. This configuration allows the model to converge rapidly and conserve computational resources during the early phases of training.
  2. Stage 2 (Fierce Competition): After a predetermined number of episodes, the competitor also begins using Gumbel MCTS. This "levels up" the adversary, forcing the learning player to discover even more efficient, non-obvious trajectories to achieve victory.
Overview of the TSS GAZ PTP framework, illustrating the two-stage self-play process and the training loop.

Architecture Enhancements

Beyond the self-play strategy, the authors refined the underlying Transformer-based architecture. They replaced standard additive aggregation with Gate Aggregation, enabling the model to more effectively weigh the relative importance of different nodes—such as customers, depots, and charging stations—within the routing sequence.

Experimental Results and Key Insights

The model was evaluated on standard TSP baselines and multi-constrained EVRP instances (Distance Minimization and Energy Minimization) across various scales (10, 20, and 50 nodes).

  • State-of-the-Art Performance: On 50-node EVRP instances, TSS GAZ PTP achieved a 0.00% gap, meaning it consistently found the best-known solution. In contrast, the original GAZ PTP exhibited a massive gap of over 20%.
  • Surpassing Commercial Solvers: While Gurobi is optimal for small-scale problems, it often fails to find solutions for 50-node multi-constrained problems within reasonable timeframes. TSS GAZ PTP provided superior solutions in these large-scale scenarios.
  • The Impact of Stage Transition: Training data revealed that State of Charge (SOC) consumption dropped drastically exactly when the training transitioned to Stage 2. This confirms that the increased competition in the second stage successfully pushes the model out of local optima.

Conclusion and Future Work

TSS GAZ PTP proves that self-play can be effectively adapted for variable-step problems where the number of stops is not known in advance. While MCTS remains computationally expensive, this framework sets a new benchmark for multi-constrained logistics. Future research will explore reducing simulation budgets and extending the logic to multi-agent coordination, where multiple EVs must coordinate in real-time under dynamic constraints like traffic and variable charging prices.

Summary updated

BibTeX
@misc{wang2025tss,
  author = {Hui Wang and Xufeng Zhang and Xiaoyu Zhang and Zhenhuan Ding and Chaoxu Mu},
  title = {{TSS GAZ PTP: Towards Improving Gumbel AlphaZero with Two-stage Self-play for Multi-constrained Electric Vehicle Routing Problems}},
  year = {2025},
  eprint = {2502.15777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.15777},
}
Figure