Skip to main content
QUICK REVIEW

[Paper Review] Enhancing SAT solvers with glue variable predictions

Jesse Michael Han|arXiv (Cornell University)|Jul 6, 2020
Constraint Satisfaction and OptimizationComputer Science35 references6 citations
TL;DR

This paper proposes enhancing SAT solvers by training a lightweight neural network to predict glue variables—critical for efficient conflict clause generation—using supervised and reinforcement learning. By periodically refocusing the branching heuristic based on these predictions, the method improves the state-of-the-art CaDiCaL solver on SATCOMP 2018, SATRACE 2019, and SHA-1 preimage attack benchmarks without requiring GPU acceleration.

ABSTRACT

Modern SAT solvers routinely operate at scales that make it impractical to query a neural network for every branching decision. NeuroCore, proposed by Selsam and Bjorner, offered a proof-of-concept that neural networks can still accelerate SAT solvers by only periodically refocusing a score-based branching heuristic. However, that work suffered from several limitations: their modified solvers require GPU acceleration, further ablations showed that they were no better than a random baseline on the SATCOMP 2018 benchmark, and their training target of unsat cores required an expensive data pipeline which only labels relatively easy unsatisfiable problems. We address all these limitations, using a simpler network architecture allowing CPU inference for even large industrial problems with millions of clauses, and training instead to predict {\em glue variables}---a target for which it is easier to generate labelled data, and which can also be formulated as a reinforcement learning task. We demonstrate the effectiveness of our approach by modifying the state-of-the-art SAT solver CaDiCaL, improving its performance on SATCOMP 2018 and SATRACE 2019 with supervised learning and its performance on a dataset of SHA-1 preimage attacks with reinforcement learning.

Motivation & Objective

  • Address the limitations of prior deep learning approaches to SAT solving, which required GPU inference and struggled with generalization on real-world benchmarks.
  • Overcome the high cost of globally-informed heuristics by using a simpler, CPU-compatible neural network architecture for glue variable prediction.
  • Improve the performance of the state-of-the-art CaDiCaL SAT solver through periodic refocusing of its branching heuristic using predicted glue variables.
  • Demonstrate effectiveness on diverse benchmarks, including SATCOMP 2018, SATRACE 2019, and a dataset of SHA-1 preimage attacks, using both supervised and reinforcement learning.
  • Provide a scalable, hardware-agnostic method for integrating neural networks into high-performance SAT solvers by focusing on a more accessible and abundant training signal: glue variables.

Proposed method

  • Train a small, efficient feedforward neural network to predict which variables are likely to be involved in glue clauses—conflict clauses that significantly improve solver efficiency.
  • Use supervised learning on labeled data derived from existing SAT solving runs, where glue variables are identified via clause analysis during conflict resolution.
  • Formulate glue variable prediction as a reinforcement learning task to learn problem-specific heuristics, particularly effective for specialized problem classes like SHA-1 preimage attacks.
  • Integrate predictions into the CaDiCaL SAT solver by periodically refocusing the EVSIDS branching heuristic based on predicted glue variable scores, avoiding per-decision inference.
  • Ensure CPU-only inference by using a lightweight architecture, enabling scalability to large industrial problems with millions of clauses.
  • Amortize the cost of global inference by only querying the neural network at strategic decision points, rather than at every branching step.

Experimental results

Research questions

  • RQ1Can a lightweight neural network trained to predict glue variables improve the performance of a state-of-the-art SAT solver without requiring GPU acceleration?
  • RQ2Does glue variable prediction provide a more scalable and data-efficient alternative to prior approaches that rely on unsat core prediction?
  • RQ3Can reinforcement learning be effectively used to learn problem-specific heuristics for glue variable prediction, particularly on specialized benchmarks?
  • RQ4How does periodic refocusing based on glue variable predictions compare to random or baseline heuristics across diverse SAT benchmarks?
  • RQ5To what extent can glue variable prediction improve decision efficiency and solve time on real-world industrial and cryptographic problem instances?

Key findings

  • The proposed method, neuro-cadical, achieves a PAR-2 score of 3194.81 on SATCOMP 2018, outperforming the vanilla CaDiCaL solver (3249.99) and the random baseline (3293.62).
  • On SATRACE 2019, neuro-cadical achieves a PAR-2 score of 4344.87, significantly better than vanilla CaDiCaL (4405.69) and random (4419.33).
  • In the SHA-1 preimage attack benchmark, neuro-cadical achieves a PAR-2 score of 279.29, 1.23% better than vanilla CaDiCaL (282.78) and 8.19% better than random (304.19).
  • On SATCOMP 2018, neuro-cadical achieves higher GLR (goodness of solution ratio) on 66.5% of problems and lower average glue level on 54.9% of problems compared to the vanilla solver.
  • On SATRACE 2019, neuro-cadical achieves higher GLR on 54.2% of problems and lower average glue level on 48.8% of problems, outperforming both baselines.
  • The reinforcement learning variant of neuro-cadical achieves superior performance on the SHA-1 preimage attack dataset, demonstrating the viability of policy-based glue prediction for domain-specific optimization.

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.