SATNet: Bridging deep learning and logical reasoning using a differentiable satisfiability solver

Po-Wei Wang, Priya L. Donti, Bryan Wilder, Zico Kolter
5/29/2019
341 citations
cs.LGcs.AIstat.ML

Official code: locuslab/SATNet (435 stars, Python, MIT, last commit 2022-11-22). Most starred: Kyubyong/sudoku, a community implementation (867 stars, Python, GPL-3.0, last commit 2023-02-17, 2.0× the official stars). 1 more implementation below.

Abstract

Integrating logical reasoning within deep learning architectures has been a major goal of modern AI systems. In this paper, we propose a new direction toward this goal by introducing a differentiable (smoothed) maximum satisfiability (MAXSAT) solver that can be integrated into the loop of larger deep learning systems.

Show full abstract

Our (approximate) solver is based upon a fast coordinate descent approach to solving the semidefinite program (SDP) associated with the MAXSAT problem. We show how to analytically differentiate through the solution to this SDP and efficiently solve the associated backward pass. We demonstrate that by integrating this solver into end-to-end learning systems, we can learn the logical structure of challenging problems in a minimally supervised fashion. In particular, we show that we can learn the parity function using single-bit supervision (a traditionally hard task for deep networks) and learn how to play 9x9 Sudoku solely from examples. We also solve a "visual Sudok" problem that maps images of Sudoku puzzles to their associated logical solutions by combining our MAXSAT solver with a traditional convolutional architecture. Our approach thus shows promise in integrating logical structures within deep learning.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
locuslab/SATNetOfficial435PythonMIT2022-11-22
Kyubyong/sudokuCommunity867PythonGPL-3.02023-02-17
locuslab/SATNetOfficial100%
MIT

Bridging deep learning and logical reasoning using a differentiable satisfiability solver.

43557Python, C++May 13, 20194 years agoMIT
Kyubyong/sudokuCommunity100%
GPL-3.0

Can Neural Networks Crack Sudoku?

867132PythonDec 19, 20163 years agoGPL-3.0
convolutional-neural-networksnumberpuzzlesudoku

Similar Papers

Cite this paper

@article{wang2019satnet,
  title  = {SATNet: Bridging deep learning and logical reasoning using a differentiable satisfiability solver},
  author = {Po-Wei Wang and Priya L. Donti and Bryan Wilder and Zico Kolter},
  year   = {2019},
  eprint = {1905.12149},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.12149}
}

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

Discussion