Abstract
Combinatorial Optimization Problems (COPs), such as the Capacitated Vehicle Routing Problem (CVRP) and the Job Shop Scheduling Problem (JSSP), are fundamental to logistics and manufacturing but remain computationally challenging due to their NP-hard nature. While local search (LS) algorithms are widely used to find high-quality solutions, their performance depends heavily on hand-tuned meta-heuristics to escape local optima. This paper introduces NeuroLS, a deep reinforcement learning framework that learns to control local search dynamically. By formalizing meta-heuristic decisions as a Markov Decision Process (MDP), NeuroLS learns optimal strategies for move acceptance, neighborhood selection, and solution perturbation. Experimental results demonstrate that NeuroLS outperforms both classical heuristics and state-of-the-art machine learning solvers, showing remarkable zero-shot generalization across problem sizes.
Introduction
In the field of combinatorial optimization, practitioners frequently rely on Local Search (LS) to navigate complex solution spaces. LS iteratively improves a solution by making small, local modifications. However, these algorithms often become trapped in local optima—points where no immediate neighbor offers an improvement, yet a global optimum has not been reached. To circumvent this, meta-heuristics like Simulated Annealing, Tabu Search, or Variable Neighborhood Search are employed to decide when to accept sub-optimal moves or when to "shake" the current solution state.
Historically, designing these meta-heuristics has been a manual, expert-intensive process. This paper proposes replacing these heuristic rules with a learned controller. The resulting framework, NeuroLS, treats the optimization process as a sequential decision-making task, allowing a neural network to adapt its search strategy based on the current state of the optimization.
Methodology
1. Formalizing Local Search as an MDP
NeuroLS models the control of local search as a Markov Decision Process (MDP). At each step, the agent observes the current solution and problem constraints and must make decisions at three critical intervention points:
- Acceptance: Determining whether to accept a candidate move, even if it degrades the objective function, to facilitate exploration.
- Neighborhood Selection: Choosing the most effective operator (e.g., swapping nodes vs. re-inserting nodes) for the current state.
- Perturbation: Deciding when and how to significantly alter the solution to escape a stagnant region of the search space.
2. Architecture: The GNN Encoder-Decoder
The model utilizes a Graph Neural Network (GNN) designed to capture both the static and dynamic properties of the problem:
- Encoder: The GNN processes static edges (e.g., fixed distances between cities in a routing problem) and dynamic edges (the current solution paths). This dual-edge approach provides the model with "spatial awareness" of the current search state.
- Group Pooling: To maintain scalability across variable problem sizes, node embeddings are pooled into groups based on problem-specific structures, such as all nodes within a specific vehicle's route.
- Decoder: A Multi-Layer Perceptron (MLP) translates these embeddings into Q-values, representing the expected utility of various search actions.
3. Training with Distributional RL
NeuroLS is trained using Double Deep Q-Learning integrated with Implicit Quantile Networks (IQN). This distributional reinforcement learning approach is particularly suited for optimization, as it allows the model to account for the high variance and inherent uncertainty in rewards during the search process.
Experimental Evaluation
The authors evaluated NeuroLS on two primary benchmarks:
- Job Shop Scheduling (JSSP): Using the Taillard benchmark (instances up to 100 jobs x 20 machines).
- Vehicle Routing (CVRP): Using the Uchoa benchmark (instances up to 300 nodes).
The models were trained on synthetic, randomly generated data and tested on these standardized benchmarks to assess their ability to generalize to unseen distributions.
Key Results
- Performance: On JSSP tasks, NeuroLS reduced the gap to best-known solutions by an average of 3.7% compared to ScheduleNet, the leading previous ML method. In CVRP, it consistently outperformed standard OR-Tools implementations and recent ML models like POMO and DACT.
- Zero-Shot Generalization: A significant finding was the model's ability to scale. A NeuroLS agent trained on 30-node routing problems successfully solved 300-node problems without additional training, demonstrating robust structural learning.
- Efficiency: NeuroLS achieves high-quality solutions in a fraction of the time required by many classical meta-heuristics, making it suitable for time-sensitive industrial applications.
Discussion and Conclusion
NeuroLS represents a shift from manually engineered search rules to learned, data-driven optimization strategies. By identifying that acceptance, neighborhood selection, and perturbation are independent algorithmic components, the authors provide a modular framework that can be adapted to various combinatorial problems.
Future work may involve extending NeuroLS to population-based search methods, such as Genetic Algorithms, or utilizing curriculum learning to further enhance performance on extremely large-scale instances. Ultimately, NeuroLS demonstrates that deep reinforcement learning can effectively master the "black art" of meta-heuristic tuning, providing a powerful tool for complex real-world optimization.
Summary updated