Solving NP-Hard Problems on Graphs by Reinforcement Learning without Domain Knowledge

Kenshin Abe, Zijian Xu, Issei Sato, Masashi Sugiyama

Abstract

There have been increasing challenges to solve combinatorial optimization problems by machine learning. Khalil et al. proposed an end-to-end reinforcement learning framework, S2V-DQN, which automatically learns graph embeddings to construct solutions to a wide range of problems. To improve the generalization ability of their Q-learning method, we propose a novel learning strategy based on AlphaGo Zero which is a Go engine that achieved a superhuman level without the domain knowledge of the game. Our framework is redesigned for combinatorial problems, where the final reward might take any real number instead of a binary response, win/lose. In experiments conducted for five kinds of NP-hard problems including Minimum Vertex Cover and Max Cut, our method is shown to generalize better to various graphs than S2V-DQN. Furthermore, our method can be combined with recently-developed graph neural network (GNN) models such as the Graph Isomorphism Network, resulting in even better performance.

Introduction

Combinatorial optimization problems, such as Minimum Vertex Cover (MVC) and Max Cut, are fundamental NP-hard challenges in graph theory. While traditional solvers like CPLEX provide exact solutions, they often struggle with scalability. Conversely, hand-crafted heuristics are efficient but "brittle," frequently failing to generalize across different graph distributions. Recent advances in Reinforcement Learning (RL) and Graph Neural Networks (GNNs) have attempted to bridge this gap, but models like S2V-DQN often suffer from a "generalization gap" when moving from synthetic training data to real-world networks. This paper introduces CombOpt Zero, a framework that adapts the powerful exploration capabilities of AlphaGo Zero to solve these problems without requiring domain-specific knowledge.

Methods: CombOpt Zero

The framework is built upon two core innovations: a Markov Decision Process (MDP) reduction for graph problems and an adaptation of the AlphaGo Zero algorithm for continuous rewards.

MDP Reduction and MCTS

Graph problems are formulated as sequential decision processes. For instance, in Max Cut, an action involves selecting a node to color, with the reward being the incremental increase in the cut size. Unlike standard RL agents that often rely on greedy policies, CombOpt Zero utilizes Monte Carlo Tree Search (MCTS). MCTS allows the agent to explore the solution space more deeply by "looking ahead," which prevents it from becoming trapped in local optima.

Reward Normalization

AlphaGo Zero was originally designed for two-player games with binary outcomes (win/loss). Combinatorial problems, however, are single-player and yield real-valued rewards that scale with graph size. To address this, the authors implemented a Reward Normalization Technique. By using random sampling to estimate the mean ((\mu)) and standard deviation ((\sigma)) of rewards for a given state, the neural network learns to predict the relative quality of an action compared to a random baseline.

MCTS and Reward Normalization in CombOpt Zero

Evaluation and Results

The models were trained on synthetic Erdős-Rényi (ER) graphs and evaluated on a diverse set of benchmarks, including Barabási-Albert (scale-free) graphs, Watts-Strogatz (small-world) graphs, and various real-world networks from the Network Repository (e.g., cora, bio-yeast).

Superior Generalization

Experimental results demonstrate that CombOpt Zero (COZ) significantly outperforms the S2V-DQN baseline in terms of generalization. While DQN performs well on the specific distributions it was trained on, COZ maintains high performance across varied graph topologies and real-world instances.

Performance Comparison: CombOpt Zero (COZ) vs. S2V-DQN

Key Findings

  • GNN Architecture: The choice of GNN matters; for example, the Graph Isomorphism Network (GIN) proved particularly effective for Max Cut, while GCN was better suited for MVC.
  • Zero-Knowledge Discovery: The model successfully discovered optimal strategies for Max Cut on trees—a known "easy" case—purely through self-play, without explicit instructions.
  • Breaking Bounds: In Maximum Clique tasks, MCTS enabled the model to find a clique of size 30 on the web-edu dataset, nearly doubling the previous best-known bound of 16.

Conclusion

CombOpt Zero demonstrates that the principles of self-play and deep exploration via MCTS can be successfully transferred from board games to complex combinatorial optimization. While the computational cost of training is higher than simpler RL methods, the gains in generalization and solution quality are substantial. Future work may explore hybrid approaches that combine these deep exploration techniques with classical mathematical reduction rules to handle even larger, sparser networks.

Summary updated

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