Solving NP-Hard Problems on Graphs with Extended AlphaGo Zero

Kenshin Abe, Zijian Xu, Issei Sato, Masashi Sugiyama

TL;DR

This paper introduces CombOpt Zero, a novel reinforcement learning framework inspired by AlphaGo Zero, designed to tackle NP-hard combinatorial optimization problems on graphs. By adapting AlphaGo Zero's Monte Carlo Tree Search (MCTS) and self-play mechanisms, CombOpt Zero demonstrates improved generalization capabilities across diverse graph types compared to previous methods, even without domain-specific knowledge.

What Problem Does This Paper Address?

Many real-world problems, from logistics to resource allocation, are NP-hard combinatorial optimization problems on graphs. While traditional algorithms exist, they often require extensive domain expertise and are difficult to generalize to new problem types. Machine learning approaches, like S2V-DQN, have shown promise by learning graph embeddings to construct solutions. However, these methods can struggle with generalization to graphs that differ significantly from their training data. This paper aims to bridge this gap by developing a more robust and generalizable machine learning framework for solving these challenging problems.

Methods

The core innovation is CombOpt Zero, an extension of AlphaGo Zero's principles to combinatorial optimization. Key aspects include:

  • MDP Formulation: Graph problems are reframed as Markov Decision Processes (MDPs). This involves defining states (graphs), actions (e.g., node selection, coloring), transition functions, and reward signals.
  • AlphaGo Zero Inspiration: The framework leverages AlphaGo Zero's self-play and Monte Carlo Tree Search (MCTS) for training. MCTS helps explore a wider range of actions and improve solution quality.
  • Reward Normalization: A crucial adaptation is the normalization of rewards. Unlike Go's win/loss outcome, combinatorial problems can have arbitrary real-valued rewards. Normalizing these rewards prevents scale issues and allows for a more stable learning process.
  • Graph Neural Networks (GNNs): CombOpt Zero integrates various GNN architectures (e.g., GCN, GIN, 2-IGN+) to learn graph representations, allowing for flexible feature extraction.
  • Test-time MCTS: The paper highlights the significant performance boost achieved by using MCTS during inference (test-time), not just during training.

Datasets

The experiments were conducted on a variety of graph datasets:

  • Synthetic Graphs: Erdős-Rényi (ER) and Barabási-Albert (BA) graphs of varying sizes and edge probabilities.
  • Real-world Graphs: A collection of 10 real-world graphs from the Network Repository, including citation networks, web graphs, bio graphs, and road maps.
  • Benchmark Instances: DIMACS instances for Minimum Vertex Cover and Maximum Independent Set.

The paper emphasizes that the training was primarily done on ER graphs, and the evaluation focused on generalization to other graph types.

Key Insights and Ideas

  • AlphaGo Zero's Power Beyond Games: The success of AlphaGo Zero's MCTS and self-play extends beyond two-player games to complex combinatorial optimization problems, demonstrating its general applicability.
  • Reward Normalization is Key: Adapting AlphaGo Zero to problems with arbitrary rewards requires a robust normalization strategy to ensure stable learning and prevent scale imbalances.
  • MCTS for Exploration and Quality: MCTS is not just a training tool; it significantly enhances solution quality and stability at test-time, especially for problems where deeper search is beneficial.
  • GNN Choice Matters: The performance of CombOpt Zero is sensitive to the choice of GNN architecture, with different GNNs excelling on different problem types. This suggests a need for task-specific GNN selection.
  • Improved Generalization: CombOpt Zero shows superior generalization to unseen graph structures (e.g., BA graphs, sparse regular graphs) compared to previous methods like S2V-DQN, which were trained on similar graph distributions.

Key Results

  • Generalization: CombOpt Zero demonstrated better generalization to various graph types (synthetic and real-world) compared to S2V-DQN, especially on graphs with different characteristics than the training ER graphs.
  • Performance: For problems like MAXCUT, CombOpt Zero with appropriate GNNs (e.g., GIN) outperformed S2V-DQN and even state-of-the-art heuristics on several instances.
  • Test-time MCTS Impact: Test-time MCTS significantly improved performance and stability, even surpassing known best solutions for some MAXIMUMCLIQUE instances.
  • Sample Efficiency: CombOpt Zero is more sample-efficient than S2V-DQN, requiring fewer data points for training convergence.
  • GNN Performance: The paper provides a comparative analysis of different GNNs, showing that GIN was best for MAXCUT, while GCN was slightly better for MINIMUMVERTEXCOVER.

Limitations and Future Work

  • Computational Cost: CombOpt Zero, particularly with MCTS, can be computationally intensive, requiring more powerful hardware (multiple GPUs) for stable training compared to S2V-DQN.
  • GNN Selection: While the paper shows GNN choice matters, identifying the optimal GNN for a given problem remains an open question.
  • Hybrid Approaches: The authors acknowledge that for some sparse real-world networks, hybrid approaches combining reduction rules with machine learning might be more effective, suggesting future work in this direction.
  • Empirical and Theoretical Analysis of 2-IGN+: The paper notes that 2-IGN+ showed interesting but sometimes poor performance on large instances, and further empirical and theoretical analysis is needed.
  • Optimization of Data Generation: The bottleneck for CombOpt Zero's training is data generation via MCTS, suggesting that optimizing this process with massive parallelization (e.g., TPUs) could further enhance its capabilities.

Summary updated

BibTeX
@misc{abe2019solving,
  author = {Kenshin Abe and Zijian Xu and Issei Sato and Masashi Sugiyama},
  title = {{Solving NP-Hard Problems on Graphs with Extended AlphaGo Zero}},
  year = {2019},
  eprint = {1905.11623},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.11623},
}
Figure