arXiv:2507.01825cs.LGcs.AI2025-07被引 1

用图神经网络解布尔可满足性问题,理论与实验俱佳。

MILP-SAT-GNN: Yet Another Neural SAT Solver

  • 将CNF公式转为带权二分图输入GNN,结合MILP建模思路
  • 在有限数据集上可逼近任意精度,实现近似完全性
  • 理论证明对可折叠公式有局限,但对不可折叠公式无需随机初始化

本文提出一种新方法,使图神经网络(GNN)通过借鉴用于混合整数线性规划(MILP)的建模技术来求解布尔可满足性(SAT)问题。具体而言,将k-CNF公式映射为MILP问题,并编码为加权二分图后输入GNN进行训练与测试。理论上:(i) 建立了排列与等价不变性结果,证明方法在子句与变量重排下输出稳定;(ii) 识别出理论局限:对于一类称为可折叠公式的实例,标准GNN无法始终区分可满足与不可满足情况;(iii) 证明了通用近似定理,表明在随机节点初始化(RNI)下,该方法可在有限数据集上以任意精度逼近SAT求解,即在该数据集上近似保真且完备。此外,对于不可折叠公式,无需RNI即可获得相同近似保证。实验表明,尽管神经架构简单,该方法仍取得令人期待的结果。

原文摘要 · Abstract (English)

We proposes a novel method that enables Graph Neural Networks (GNNs) to solve SAT problems by leveraging a technique developed for applying GNNs to Mixed Integer Linear Programming (MILP). Specifically, k-CNF formulae are mapped into MILP problems, which are then encoded as weighted bipartite graphs and subsequently fed into a GNN for training and testing. From a theoretical perspective: (i) we establish permutation and equivalence invariance results, demonstrating that the method produces outputs that are stable under reordering of clauses and variables; (ii) we identify a theoretical limitation, showing that for a class of formulae called foldable formulae, standard GNNs cannot always distinguish satisfiable from unsatisfiable instances; (iii) we prove a universal approximation theorem, establishing that with Random Node Initialization (RNI), the method can approximate SAT solving to arbitrary precision on finite datasets, that is, the GNN becomes approximately sound and complete on such datasets. Furthermore, we show that for unfoldable formulae, the same approximation guarantee can be achieved without the need for RNI. Finally, we conduct an experimental evaluation of our approach, which show that, despite the simplicity of the neural architecture, the method achieves promising results.

SAT求解图神经网络理论分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。