Solving MaxSAT with Matrix Multiplication
Not on the map. Why?
Abstract (arXiv)
We propose an incomplete algorithm for Maximum Satisfiability (MaxSAT) specifically designed to run on neural network accelerators such as GPUs and TPUs. Given a MaxSAT problem instance in conjunctive normal form, our procedure constructs a Restricted Boltzmann Machine (RBM) with an equilibrium distribution wherein the probability of a Boolean assignment is exponential in the number of clauses it satisfies. Block Gibbs sampling is used to stochastically search the space of assignments with parallel Markov chains. Since matrix multiplication is the main computational primitive for block Gibbs sampling in an RBM, our approach leads to an elegantly simple algorithm (40 lines of JAX) well-suited for neural network accelerators. Theoretical results about RBMs guarantee that the required number of visible and hidden units of the RBM scale only linearly with the number of variables and constant-sized clauses in the MaxSAT instance, ensuring that the computational cost of a Gibbs step scales reasonably with the instance size. Search throughput can be increased by batching parallel chains within a single accelerator as well as by distributing them across multiple accelerators. As a further enhancement, a heuristic based on unit propagation running on CPU is periodically applied to the sampled assignments. Our approach, which we term RbmSAT, is a new design point in the algorithm-hardware co-design space for MaxSAT. We present timed results on a subset of problem instances from the annual MaxSAT Evaluation's Incomplete Unweighted Track for the years 2018 to 2021. When allotted the same running time and CPU compute budget (but no TPUs), RbmSAT outperforms other participating solvers on problems drawn from three out of the four years' competitions. Given the same running time on a TPU cluster for which RbmSAT is uniquely designed, it outperforms all solvers on problems drawn from all four years.
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 7 of its 49 references that are in the map. First posted on arXiv 1 Nov 2023.
Builds on
7 of 49 references.
References · 7
- 2013Ising formulations of many NP problemscited by 206
- 2019Guiding High-Performance SAT Solvers with Unsat-Core Predictionscited by 62
- 2019High Performance Monte Carlo Simulation of Ising Model on TPU Clusterscited by 7
- 2020A Time Leap Challenge for SAT Solvingcited by 6
- 2019Factoring semi-primes with (quantum) SAT-solverscited by 2
- 2019Combining Learned Representations for Combinatorial Optimizationcited by 1
- 2019Prioritized Unit Propagation with Periodic Resetting is (Almost) All You Need for Random SAT Solvingcited by 1
Built on by
Citing papers per year: 2025: 1.
1 paper.