All models

SATNet

Differentiable MAXSAT solver layer, here a single layer that learns to fill in 9 × 9 Sudoku boards.

19 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (21 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
618K
Operations
19
Framework
PyTorch
Recurrent
No
Published
ICML 2019
Cited by
77 (as of 29 October 2026)
Authors
Po-Wei Wang, Priya L. Donti, Bryan Wilder, Zico Kolter
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m19963
Graph hash
0eeaf6b2a89ca72f9c967dd150d68b0e6e2c24c0dcdd8237756e89c0fb10bf54
Skeleton hash
6c08f5fb4e23a7a1406a0ef8535d708a72671f9769362ab5c0e831f0aa3eab5e
Architecture hash
728f5dd755c5280bea9e384c46a7322ea76f4b6df9a825cda16c9e70ea694d39
Diagram SHA-256
0080a9935bb141ac66407a303a81f1cc568ee962ce1a3201a3a79a6f29474587
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

SATNet is a differentiable (smoothed) maximum satisfiability (MAXSAT) solver that can be integrated into the loop of larger deep learning systems. The paper offers it as a new direction toward integrating logical reasoning within deep learning architectures.

A SATNet layer takes the discrete or probabilistic assignments of known MAXSAT variables as input and outputs guesses for the unknown variables through a semidefinite program (SDP) relaxation of the MAXSAT problem. The approximate solver uses a fast coordinate descent approach to that SDP, and the backward pass comes from analytically differentiating through its solution. The layer's weights are the SDP's low-rank coefficient matrix S, and the user sets the maximum number of clauses m that the layer can represent.

For 9 × 9 Sudoku, the paper's model is a single SATNet layer with 300 auxiliary variables and m = 600, which outputs a bit representation of the board with guesses for the unknown bits. Its input is vectorized, so the model cannot exploit the locality structure of the Sudoku grid. The paper reports 98.3% board-wise test accuracy on this task after 100 training epochs. It also reports learning the parity function from single-bit supervision and solving a visual Sudoku problem by combining the solver with a convolutional architecture.

Key idea. SATNet makes an approximate MAXSAT solver differentiable, so that a network containing it can learn the logical structure of problems such as Sudoku from examples.

  • SATNet
  • differentiable satisfiability solver
  • MAXSAT
  • maximum satisfiability
  • Sudoku
  • logical reasoning
  • semidefinite program
  • neuro-symbolic

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wang2019satnetbridgingdeeplearning,
      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},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1905.12149}, 
}