NSNet: A General Neural Probabilistic Framework for Satisfiability Problems

Zhaoyu Li, Xujie Si
11/7/2022
cs.AIcs.LG
gnn

Official code: zhaoyu-li/NSNet (19 stars, Python, MIT, last commit 2023-03-29).

Abstract

We present the Neural Satisfiability Network (NSNet), a general neural framework that models satisfiability problems as probabilistic inference and meanwhile exhibits proper explainability. Inspired by the Belief Propagation (BP), NSNet uses a novel graph neural network (GNN) to parameterize BP in the latent space, where its hidden representations maintain the same probabilistic interpretation as BP.

Show full abstract

NSNet can be flexibly configured to solve both SAT and #SAT problems by applying different learning objectives. For SAT, instead of directly predicting a satisfying assignment, NSNet performs marginal inference among all satisfying solutions, which we empirically find is more feasible for neural networks to learn. With the estimated marginals, a satisfying assignment can be efficiently generated by rounding and executing a stochastic local search. For #SAT, NSNet performs approximate model counting by learning the Bethe approximation of the partition function. Our evaluations show that NSNet achieves competitive results in terms of inference accuracy and time efficiency on multiple SAT and #SAT datasets.

View on arXivView PDF

Code Implementations(1)

zhaoyu-li/NSNetOfficial100%
MIT

[NeurIPS 2022] "NSNet: A General Neural Probabilistic Framework for Satisfiability Problems"

193Python, ShellNov 10, 20223 years agoMIT

Similar Papers

Cite this paper

@article{li2022nsnet,
  title  = {NSNet: A General Neural Probabilistic Framework for Satisfiability Problems},
  author = {Zhaoyu Li and Xujie Si},
  year   = {2022},
  eprint = {2211.03880},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.03880}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.03880.svg)](https://codeofpaper.com/paper/2211.03880)

Discussion