Unsupervised Learning for Combinatorial Optimization Needs Meta Learning

Haoyu Peter Wang, Pan LiICLR 2023

Introduction

Standard unsupervised learning for combinatorial optimization (CO) focuses on "average-case" performance, which often leaves specific, difficult problem instances with sub-optimal solutions. This paper introduces Meta-EGN, a framework that applies meta-learning to find a robust model initialization that can be rapidly adapted to any individual instance, leading to superior generalization and state-of-the-art results on large-scale, out-of-distribution problems.

The "Average-Case" Problem in Combinatorial Optimization

Combinatorial optimization—finding the best solution from a finite set of possibilities (like the Traveling Salesperson Problem or finding the largest clique in a social network)—is the backbone of logistics, circuit design, and network security. Because most of these problems are NP-hard, we typically rely on heuristics or expensive commercial solvers.

Recently, researchers have turned to Unsupervised Learning (UL) to train Neural Networks (NNs) to solve these problems without needing "gold standard" labels. However, current UL methods suffer from a critical "misalignment" problem: they optimize for the average performance across a training set. In the real world, we don't care if a solver is good on average if it fails on the specific, critical instance we are facing right now. Furthermore, these "average-optimized" models often get stuck in local optima and fail to generalize when the problem scale or distribution shifts (e.g., training on small graphs but testing on massive ones).

The Meta-EGN Framework

The authors propose a shift in perspective: instead of training a model to give a direct solution, they train it to be a perfect starting point for a quick search.

They build upon the Erdős-Goes-Neural (EGN) framework, which uses a continuous relaxation of discrete CO objectives. To achieve instance-wise optimality, they integrate Model-Agnostic Meta-Learning (MAML).

The training process, Meta-EGN, works in two loops:

  1. The Inner Loop: For a specific training instance, the model takes a "pseudo-step" (one gradient descent update) to see how well it can adapt to that specific graph.
  2. The Outer Loop: The model's main parameters are updated based on how well that "adapted" version performed.

This forces the model to learn a parameter space that is "loosely tied" to any single local optimum but highly sensitive to the specific landscape of any new instance. At test time, the model can either be used "zero-shot" or fine-tuned with a single gradient step for even better results.

Training and validation curves comparing Meta-EGN and EGN.

Key Insights and Results

  • The Power of Initialization: The most surprising finding is that Meta-EGN's initial solution (before any test-time fine-tuning) often significantly outperforms standard EGN. This suggests that the meta-learning objective helps the model learn more fundamental, transferable heuristics than standard empirical risk minimization.
  • Breaking the "Average" Trap: By training the model to be "adaptable," it avoids falling into the deep, narrow local minima that plague models trained only for average performance.
  • Superiority over Baselines: Meta-EGN consistently outperformed standard EGN and other unsupervised methods (like RUN-CSP) across classic CO problems like Maximum Clique (MC), Minimum Vertex Cover (MVC), and Maximum Independent Set (MIS).
  • Beating Gurobi: On hard synthetic instances (RB5000), Meta-EGN achieved better approximation rates than the commercial solver Gurobi 9.5—even when Gurobi was given a 3,000-second time budget—while Meta-EGN finished in roughly 1 second.

Solving the Scale Shift and Polishing Heuristics

Meta-EGN shows remarkable "Out-of-Distribution" (OOD) generalization. A model trained on graphs with 500 nodes can effectively solve graphs with 5,000 nodes, outperforming commercial solvers in a fraction of the time.

Furthermore, in the MIS problem, the authors show that Meta-EGN can take the output of a simple greedy algorithm (DGA) and "polish" it into a better solution, addressing a recent critique that neural solvers were underperforming compared to simple heuristics. The extra time cost for running Meta-EGN to improve upon greedy heuristics is minimal (as low as 1% extra compute), making it highly practical.

Approximation rates on Random Regular Graphs across different scales (10^3, 10^4, 10^5 nodes).

Limitations and Future Work

  • Global vs. Local Tasks: The authors note that Meta-EGN performs exceptionally well on "local" tasks like Maximum Clique. However, for "global" tasks like Minimum Vertex Cover, which require coordinating decisions across the entire graph, the performance gap is smaller. This is likely due to the limited "receptive field" of the underlying Graph Neural Network.
  • Initialization Sensitivity: While the model is robust, it still relies on node feature initialization (like random seeds). Finding more principled ways to initialize these features for global tasks remains an open challenge.
  • Advanced Heuristics: Future work could explore using Meta-EGN to fine-tune even more complex, non-gradient-based heuristics like simulated annealing or parallel tempering.

Summary updated

BibTeX
@inproceedings{wang2023unsupervised,
  author = {Haoyu Peter Wang and Pan Li},
  title = {{Unsupervised Learning for Combinatorial Optimization Needs Meta Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=-ENYHCE8zBp},
}
Figure