Skip to main content
QUICK REVIEW

[Paper Review] SATNet: Bridging deep learning and logical reasoning using a differentiable satisfiability solver

Po-Wei Wang, Priya L. Donti|arXiv (Cornell University)|May 29, 2019
graph theory and CDMA systemsEngineering29 references43 citations
TL;DR

SATNet introduces a differentiable MAXSAT solver layer that can be embedded in neural networks to learn and reason with logical constraints end-to-end, demonstrated on parity, Sudoku, and visual-Sudoku tasks.

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. 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.

Motivation & Objective

  • Motivate integrating logical reasoning with deep learning to handle hard discrete constraints.
  • Propose a differentiable MAXSAT solver based on a low-rank SDP relaxation embedded as a neural network layer.
  • Enable end-to-end learning of logical structure from data without hard-coded rules.
  • Demonstrate learning of parity and Sudoku, including a visual Sudoku variant, using minimal supervision.

Proposed method

  • Formulate MAXSAT as an SDP relaxation with variables mapped to unit vectors.
  • Solve the SDP via fast coordinate descent with provable convergence to a fixed point.
  • Differentiate through the SDP solution to enable backpropagation in neural nets (analytic/backward pass).
  • Implement a low-rank, GPU-accelerated SATNet layer with inputs relaxed to continuous vectors and outputs converted via probabilistic rounding.
  • Embed SATNet as a differentiable layer inside larger networks (e.g., CNN + SATNet for visual Sudoku).
  • Provide an efficient forward and backward pass (Algorithms 1, 2, and 3) and GPU implementation for speed.

Experimental results

Research questions

  • RQ1Can a differentiable relaxation of MAXSAT be integrated as a layer inside neural networks?
  • RQ2To what extent can end-to-end learning discover and exploit discrete logical structures without hand-coded rules?
  • RQ3How well can SATNet learn logical constraints from minimal supervision (e.g., single-bit supervision for parity) and complex puzzles like Sudoku?
  • RQ4Can a visual, image-to-logical-solver pipeline (visual Sudoku) be trained end-to-end?

Key findings

  • Successfully differentiates through an SDP-based MAXSAT solver in both forward and backward passes.
  • Learned parity with single-bit supervision and solved 9x9 Sudoku with high accuracy (Original: 99.8% train, 98.3% test).
  • Permuted Sudoku experiments show SATNet can learn constraints without locality assumptions (Test: 93.6% train, 63.2% test).
  • Visual Sudoku experiments demonstrate end-to-end learning by coupling a CNN for digit recognition with SATNet (competent end-to-end performance).
  • GPU-accelerated, low-rank SDP layer provides scalable integration into deep architectures (speedups up to 18–30x vs CPU).
  • SATNet achieves strong board-wise accuracy (98.3%) on standard Sudoku benchmarks without hard-coding the constraints.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.