Variational Annealing on Graphs for Combinatorial Optimization

Sebastian Sanokowski, Wilhelm Franz Berghammer, Sepp Hochreiter, Sebastian Lehner

Introduction

Combinatorial Optimization (CO) is a fundamental challenge in computer science, involving the identification of an optimal solution from a finite set of possibilities. Problems such as the Maximum Independent Set (MIS) and MaxCut are notoriously NP-hard, making exact solutions computationally prohibitive for large-scale graphs. While recent deep learning approaches have attempted to learn probability distributions over solutions, many rely on the mean-field approximation (MFA). This assumption of node independence often fails in difficult CO instances where variables are highly correlated.

VAG-CO (Variational Annealing on Graphs for Combinatorial Optimization) is a novel unsupervised learning framework designed to capture these statistical dependencies. By integrating an autoregressive approach with "subgraph tokenization" and a theoretically grounded annealing schedule, VAG-CO achieves state-of-the-art results while maintaining computational efficiency.

Methodology

VAG-CO introduces three key innovations to bridge the gap between model expressivity and practical efficiency:

  1. Autoregressive Solution Generation: Unlike methods that predict all node states simultaneously, VAG-CO predicts them sequentially. This allows the model to condition its decisions on previously determined states, effectively capturing the complex dependencies inherent in CO problems.
  2. Subgraph Tokenization: To address the latency of standard autoregressive models, which typically require $N$ forward passes for $N$ nodes, the authors introduce subgraph tokenization. By representing the configuration of $k$ nodes as a single "token," the model reduces the number of steps by a factor of $k$ without sacrificing dependency modeling.
  3. Annealed Entropy Regularization: The training process mimics physical annealing. It begins at a high "temperature" (high entropy) to encourage exploration and avoid local minima, gradually "cooling" to refine the solution. This process is theoretically motivated, with sample complexity scaling inversely with temperature.

The model is trained using Proximal Policy Optimization (PPO), with a reward function derived from the Ising energy of the graph—a unified representation for various CO problems.

Ising formulations for common CO problems

Experiments and Results

VAG-CO was evaluated on a diverse set of benchmarks, including bioinformatics (ENZYMES, PROTEINS), social networks (IMDB-BINARY, COLLAB), and synthetic hard instances (RB-model graphs).

The framework consistently outperformed existing unsupervised and reinforcement learning methods. In Maximum Independent Set (MIS) tasks, VAG-CO achieved significantly higher approximation ratios on datasets like ENZYMES and PROTEINS compared to previous SOTA methods such as EGN and NSFE. For Minimum Vertex Cover (MVC), VAG-CO demonstrated superior performance on the TWITTER dataset, outperforming even fine-tuned versions of competing models.

Comparative results for Minimum Vertex Cover (MVC) across various datasets

On synthetic RB-model graphs—designed to be challenging for traditional solvers—VAG-CO outperformed the commercial solver Gurobi when restricted to a similar time budget. This highlights the model's ability to find high-quality solutions quickly on instances that typically hinder traditional algorithms.

Discussion and Future Work

The results demonstrate that capturing node dependencies is essential for high-quality solutions in CO. The annealing process acts as a natural curriculum, allowing the model to learn the general structure of the solution space before refining its strategy. Additionally, the use of Dynamic Graph Pruning during inference—where "solved" nodes are removed to update neighbor features—further enhances efficiency.

Despite its successes, VAG-CO has limitations. The sequential nature of the model, while mitigated by subgraph tokenization, remains slower than one-shot MFA methods. Furthermore, the model currently relies on a Breadth-First Search (BFS) node ordering; exploring learned orderings and more robust annealing schedules remains a promising direction for future work.

In summary, VAG-CO represents a significant advancement in unsupervised deep learning for combinatorial optimization, proving that autoregressive dependencies can be modeled efficiently at scale.

Summary updated

BibTeX
@inproceedings{sanokowski2023variational,
  author = {Sebastian Sanokowski and Wilhelm Franz Berghammer and Sepp Hochreiter and Sebastian Lehner},
  title = {{Variational Annealing on Graphs for Combinatorial Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=SLx7paoaTU},
}
Figure