Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

One Model, Any CSP: Graph Neural Networks as Fast Global Search Heuristics for Constraint Satisfaction

About

We propose a universal Graph Neural Network architecture which can be trained as an end-2-end search heuristic for any Constraint Satisfaction Problem (CSP). Our architecture can be trained unsupervised with policy gradient descent to generate problem specific heuristics for any CSP in a purely data driven manner. The approach is based on a novel graph representation for CSPs that is both generic and compact and enables us to process every possible CSP instance with one GNN, regardless of constraint arity, relations or domain size. Unlike previous RL-based methods, we operate on a global search action space and allow our GNN to modify any number of variables in every step of the stochastic search. This enables our method to properly leverage the inherent parallelism of GNNs. We perform a thorough empirical evaluation where we learn heuristics for well known and important CSPs from random data, including graph coloring, MaxCut, 3-SAT and MAX-k-SAT. Our approach outperforms prior approaches for neural combinatorial optimization by a substantial margin. It can compete with, and even improve upon, conventional search heuristics on test instances that are several orders of magnitude larger and structurally more complex than those seen during training.

Jan T\"onshoff, Berke Kisin, Jakob Lindner, Martin Grohe• 2022

Related benchmarks

TaskDatasetResultRank
MaxCutGSET (|V|=800)
Average Gap to Best Known Cut1.22
19
MaxCutGSET (|V|=1K)
Average Gap to Best Known Cut2.44
19
MaxCutGSET (|V|>=3K)
Average Gap to Best Known Cut51.63
18
MaxCutGSET |V|=2K
Average Gap to Best Known Cut13.11
18
Graph ColoringGraph Coloring 5 Colors n=50
Solved Instances Rate79.17
8
Graph ColoringGraph Coloring 5 Colors, n=100
Success Rate34.83
8
Graph ColoringGraph Coloring 10 Colors, n=100
Success Rate0.00e+0
8
Graph ColoringGraph Coloring 10 Colors, n=200
Success Rate0.00e+0
8
Graph ColoringGraph-Coloring-5 n=50 (test)
Instance Solved Rate79.17
5
Graph ColoringGraph-Coloring-5 n=100 (OOD)
Instance Solved (%)34.83
5
Showing 10 of 12 rows

Other info

Follow for update