Learning to Search Feasible and Infeasible Regions of Routing Problems with Flexible Neural k-Opt
Yining MaZhiguang CaoYeow Meng Chee
Presents NeuOpt, a learning-to-search solver that enables flexible neural k-opt operations across both feasible and infeasible solution spaces to outperform state-of-the-art neural and classical heuristics on complex vehicle routing problems.
Vehicle routing problems are core operational challenges in logistics and transportation, where optimizing delivery routes directly impacts fuel costs, delivery timelines, and fleet utilization. Deep reinforcement learning methods have emerged to automate algorithm design for these problems. However, existing learning-to-search methods have been limited by rigid search neighborhood sizes and a strict reliance on feasibility masking, which restricts exploration solely to valid routes and often traps algorithms in suboptimal solutions.
The article aims to overcome these limitations by developing a learning-to-search framework, Neural k-Opt (NeuOpt), capable of dynamically adjusting edge-exchange moves of any size, combined with a Guided Infeasible Region Exploration (GIRE) strategy that strategically explores both valid and temporarily invalid solution spaces.
To evaluate this approach, the authors tested NeuOpt across synthetic benchmarks (sizes of 20, 50, 100, and 200 nodes) and standard public datasets (TSPLIB and CVRPLIB) on Traveling Salesman and Capacitated Vehicle Routing Problems. The system breaks down complex edge-exchange moves into manageable basis steps decoded by a recurrent dual-stream network. It incorporates violation indicators and exploration statistics into the policy, guides reinforcement learning via reward shaping, and applies dynamic data transformations during inference to avoid local traps.
The findings show that NeuOpt achieves near-optimal performance, reducing optimality gaps on 100-node Traveling Salesman Problems to 0.00% within reasonable runtimes and halving the gaps of previous learning-to-search methods. On the Capacitated Vehicle Routing Problem, it outperforms existing learning-to-search, learning-to-construct, and learning-to-predict baselines, and is the first neural search solver to surpass the strong classical heuristic benchmark, LKH-3. Ablation experiments confirmed that enabling controlled excursions into infeasible regions accelerates discovery of higher-quality feasible solutions, with roughly 80% of successful solution updates preceded by visiting infeasible intermediate routes.
These results demonstrate that artificial intelligence routing models can surpass leading specialized heuristics without requiring expensive per-instance retraining. Bypassing strict feasibility masks reduces computational overhead and enables algorithms to discover structural shortcuts across isolated feasible solution regions, offering organizations better route quality with lower operational runtimes.
For practical adoption, organizations can evaluate NeuOpt on constrained vehicle routing workloads by integrating dynamic data transformations and multi-GPU parallel processing to accelerate deployment. Future development should focus on testing the infeasible exploration framework on broader operational constraints, such as time windows and pickup-and-delivery dependencies, as well as integrating divide-and-conquer strategies for scaling beyond several hundred stops.
Confidence in these findings is high across standard academic benchmarks and problem sizes up to 200 nodes. However, caution is warranted when scaling directly to thousands of stops without problem decomposition, or when applying the solver to complex, multi-constraint distribution systems that differ substantially from the uniform benchmark distributions evaluated in the study.
- Paper: Attention, Learn to Solve Routing Problems!, Wouter Kool et al. (2018). It introduces the foundational attention-based reinforcement learning framework for routing problems like TSP and CVRP that modern neural routing solvers build upon and compare against.
- Paper: Neural Combinatorial Optimization with Reinforcement Learning, Irwan Bello et al. (2016). It pioneers reinforcement learning policy gradients for combinatorial optimization and routing problems, providing the core learning paradigm adapted by learning-to-search methods.
- Paper: Pointer networks, Oriol Vinyals et al. (2015). It introduces Pointer Networks for variable-length combinatorial routing outputs, which underpin modern neural action selection mechanisms.
- Paper: Learning Combinatorial Optimization Algorithms over Graphs, Elias Boutros Khalil et al. (2017). It establishes graph neural network embeddings combined with deep reinforcement learning for solving graph-based combinatorial optimization problems.
- Paper: Machine Learning for Combinatorial Optimization: a Methodological Tour d'Horizon, Yoshua Bengio et al. (2018). It provides a comprehensive taxonomy and conceptual framework categorizing machine learning approaches for discrete combinatorial optimization, including search and construction paradigms.
- Paper: Policy Invariance Under Reward Transformations: Theory and Application to Reward Shaping, Andrew Y. Ng et al. (1999). It formalizes the theoretical foundations of potential-based reward shaping, which directly inspires the reward shaping schemes used in guided infeasible region exploration.
- Paper: Sym-NCO: Leveraging Symmetricity for Neural Combinatorial Optimization, Minsu Kim et al. (2022). It demonstrates how exploiting geometric symmetries and data augmentation enhances neural combinatorial optimization solvers for vehicle routing.
- Paper: Combinatorial Optimization and Reasoning with Graph Neural Networks, Quentin Cappart et al. (2023). It synthesizes graph neural network reasoning and hybrid search techniques across combinatorial optimization paradigms, offering a broader perspective on the neural search concepts explored in NeuOpt.
