Introduction
Applying deep learning to NP-hard combinatorial optimization problems, such as the Capacitated Vehicle Routing Problem (CVRP) and the Traveling Salesperson Problem (TSP), is a rapidly expanding field. However, most existing Reinforcement Learning (RL) approaches assume a deterministic environment. In real-world logistics, parameters like travel time or customer demand are highly uncertain due to traffic or prediction errors.
Robust optimization addresses this by optimizing for the worst-case scenario within a defined set of uncertainties—a mathematical max-min problem. The primary challenge for RL is that standard agents learn via step-by-step rewards. In robust optimization, the worst-case cost of a partial route depends non-linearly on how the route is eventually completed, making standard reward assignment impossible.
Methodology: Advantage-Based Rewards
To overcome the inability to evaluate partial solutions, this framework defines the RL reward as the one-step advantage over a baseline policy. During training, the environment uses a fast, simple heuristic (the baseline policy) to instantly complete the rest of a partial route after each action. The reward is then calculated as the difference in the exact robust (worst-case) cost of the completed route before and after the agent's action.
The agent is trained using Deep Q-Networks (DQN) with a structure2vec graph neural network architecture. While the baseline policy is required to generate training signals, the trained RL agent constructs robust solutions entirely on its own during inference via forward passes.
Key Insights and Training Dynamics
A critical finding of the research is that action masking—artificially lowering the Q-value of invalid moves, such as visiting a node twice—significantly accelerates learning. As shown in the training progress, masking allows the agent to converge to lower test costs much faster than a baseline RL approach that requires post-hoc correction of infeasible actions.
Furthermore, maximizing the total advantage over the baseline heuristic is mathematically equivalent to optimizing the original robust objective, providing a clean path for RL to handle complex, non-linear max-min objectives.
Experimental Results
The approach was evaluated on synthetic datasets of varying sizes and standard CVRPlib benchmarks adapted for robustness.
Performance vs. Heuristics
The trained RL agents consistently outperformed standard combinatorial heuristics, including Greedy (GRD) and Iterative (ITR) methods, across all tested graph sizes. For instance, in CVRP tasks, the RL agent achieved lower average tour lengths than its heuristic counterparts, demonstrating superior solution quality.
Efficiency and Generalization
- Near-Optimality: On small instances (15-20 nodes), the RL agent's solutions were within 9% of the true optimal for CVRP and 3% for TSP.
- Speed: While Mixed-Integer Programming (MIP) solvers can find slightly better solutions given an hour of CPU time, the RL agent computes its routes in a single pass taking only a few seconds.
- Zero-shot Generalization: Agents trained on specific graph sizes (e.g., 90-100 nodes) generalized effectively to different distributions and standard benchmark datasets without retraining.
Conclusion and Future Work
This framework demonstrates that RL can effectively solve robust routing problems by leveraging fast heuristics as training baselines. While the training phase is computationally intensive due to the need for exact robust objective calculations at every step, the resulting agents provide high-quality solutions in real-time. Future research may explore adversarial training—using a secondary agent to minimize lower bounds on the objective—to reduce training overhead while maintaining robustness guarantees.
Summary updated