Learning to Reason: Leveraging Neural Networks for Approximate DNF Counting

Ralph Abboud, Ismail Ilkan Ceylan, Thomas Lukasiewicz
4/4/2019
cs.AIcs.LG

Official code: ralphabb/NeuralDNF (9 stars, Python, last commit 2020-01-29).

Abstract

Weighted model counting (WMC) has emerged as a prevalent approach for probabilistic inference. In its most general form, WMC is #P-hard.

Show full abstract

Weighted DNF counting (weighted #DNF) is a special case, where approximations with probabilistic guarantees are obtained in O(nm), where n denotes the number of variables, and m the number of clauses of the input DNF, but this is not scalable in practice. In this paper, we propose a neural model counting approach for weighted #DNF that combines approximate model counting with deep learning, and accurately approximates model counts in linear time when width is bounded. We conduct experiments to validate our method, and show that our model learns and generalizes very well to large-scale #DNF instances.

View on arXivView PDF

Code Implementations(1)

ralphabb/NeuralDNFOfficial100%

Neural#DNF: A Graph Neural Network for approximating the weighted model count of a DNF formula. Also includes an implementation of the Karp, Luby and Madras approximation algorithm and a random DNF generator.

93PythonJan 17, 20206 years ago

Similar Papers

Cite this paper

@article{abboud2019learning,
  title  = {Learning to Reason: Leveraging Neural Networks for Approximate DNF Counting},
  author = {Ralph Abboud and Ismail Ilkan Ceylan and Thomas Lukasiewicz},
  year   = {2019},
  eprint = {1904.02688},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.02688}
}

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/1904.02688.svg)](https://codeofpaper.com/paper/1904.02688)

Discussion