TL;DR
This paper introduces Moco, a novel meta-optimizer that learns to dynamically update a solution construction strategy for combinatorial optimization problems. By using two graph neural networks, Moco effectively learns to balance exploration and exploitation, outperforming existing heatmap-based methods and demonstrating strong generalization capabilities across different computational budgets.
What Problem Does This Paper Address?
Combinatorial optimization problems (COPs) are ubiquitous in various fields, but many are NP-hard, making them challenging to solve optimally. While handcrafted heuristics have been a traditional approach, they are often problem-specific and lack transferability. Neural Combinatorial Optimization (NCO) aims to learn heuristics from data, but many existing methods struggle to adapt their construction process during inference or are limited by fixed computational budgets. This paper addresses the need for a more flexible and adaptive NCO approach that can learn to optimize its search strategy in real-time, considering the available computational budget.
Methods
Moco employs a two-stage approach using graph neural networks (GNNs):
- Initialization: A GNN (
GNN_init) initializes a "heatmap" vector ($\theta$). This heatmap represents a continuous vector where each element corresponds to a decision variable and influences its likelihood of being included in the solution. - Iterative Update: For a given instance and a computational budget, Moco iteratively constructs solutions and updates the heatmap $\theta$.
- Solution Construction: A policy $\pi_\theta$ uses the current heatmap to sample candidate solutions. This process is guided by the heatmap values, with masking applied to avoid infeasible solutions. The objective is to maximize the negative expected objective function value using policy gradients (REINFORCE).
- Meta-Feature Extraction: After constructing a batch of solutions, a set of "meta-features" are extracted. These features capture the current state of the search, including the heatmap values, momentum estimates, previously found solutions, and the current iteration relative to the total budget.
- Heatmap Update: A second GNN (
GNN_update) takes the graph instance and these meta-features as input and learns to update the heatmap $\theta$. This update rule is designed to be more adaptive than traditional gradient-based optimizers.
The meta-optimizer is trained using evolutionary strategies (ES) to optimize the overall best solution found within the budget, making it "budget-aware."
Datasets
The paper evaluates Moco on two prominent COPs:
- Traveling Salesman Problem (TSP):
- Training: Instances are generated on the fly.
- Testing: Uses test datasets introduced in [14] with 100, 200, and 500 nodes.
- Maximum Independent Set (MIS):
- Training:
- Erdős-Rényi (ER) random graphs with 700-800 nodes and $p=0.15$.
- Training:
- ER graphs with 9000-11000 nodes and $p=0.02$ (used for generalization testing).
- SATLIB instances.
- Testing: Uses test datasets from [34] and [39] for ER graphs, and follows the data split for SATLIB.
Key Insights and Ideas
- Learnable, Adaptive Heatmap Updates: The core innovation is learning to update the solution construction strategy (the heatmap $\theta$) dynamically during inference. This allows Moco to adapt its search based on the current state and available budget, unlike static heatmap methods.
- Budget-Aware Meta-Learning: Moco is trained to be aware of its computational budget. This enables it to generalize to different budgets and even improve performance when given a larger budget at inference time than it was trained on. This is a novel feature in NCO.
- Meta-Features for Informed Updates: The use of meta-features (current heatmap, past solutions, iteration count) as input to the
GNN_updateis crucial. It allows the meta-optimizer to learn sophisticated update rules that consider the search history and problem context. - Generalization to Unseen Budgets: The experiments show that Moco can effectively extrapolate to computational budgets (K) and batch sizes (b) not seen during training, demonstrating robust generalization.
Key Results
- TSP Performance: Moco significantly outperforms other heatmap-based methods on the TSP, achieving competitive or superior solution quality compared to many neural network-based approaches. For TSP500, it achieves a gap of 2.05% with a budget of K=200 and b=32, outperforming methods like Dimes and DeepACO.
- MIS Performance: Moco significantly outperforms other learning-based approaches on smaller ER graphs, achieving an optimality gap of 0.85%. It also shows good generalization to larger ER graphs (4.64% gap) despite a distributional shift.
- Budget Extrapolation: Figure 2a demonstrates that Moco's performance improves when conditioned on a larger budget at inference time than used during training. Figure 2b shows robustness to larger batch sizes than seen during training.
- Ablation Study: An ablation study on TSP200 (Table 6) highlights the importance of the learned GNN update mechanism and the meta-features, showing that replacing the learned update with Adam or a simple MLP optimizer leads to significantly worse performance.
Limitations and Future Work
- Runtime on Large-Scale MIS: The paper acknowledges that Moco's runtime can be slow on large-scale MIS problems due to the computation of policy gradients.
- Future Work - Runtime Mitigation: The authors suggest mitigating runtime by not constructing entire solutions at every step but rather optimizing $\theta$ over a subset of variables, similar to Large Neighborhood Search (LNS) strategies. This could also potentially improve solution quality.
- Future Work - Training Strategies: For TSP, more efficient training strategies like scheduling K or warm-starting from smaller sizes are suggested for future work.
- Future Work - Hybridization: The paper briefly mentions a hybrid approach with 2-opt for TSP, suggesting that further hybridization with traditional heuristics could be explored.
Summary updated