The Boolean Satisfiability (SAT) problem is the "final boss" of computer science—an NP-complete problem that underpins everything from hardware verification to AI planning. While classical heuristic-based solvers have dominated the field for decades, a new paper titled "DeepSAT: An EDA-Driven Learning Framework for SAT" proposes a clever way to level up neural SAT solvers by borrowing tools from the world of Electronic Design Automation (EDA).
TL;DR
DeepSAT is an end-to-end neural SAT solver that uses logic synthesis to normalize problem instances and logic simulation to provide "rich supervision" during training. By mimicking Boolean Constraint Propagation (BCP) through a novel graph neural network architecture, it achieves significantly better generalization and accuracy than previous deep learning approaches.
What Problem Does This Paper Address?
Deep learning for SAT solving usually falls into two traps. First, distribution diversity: a model trained on random math problems often fails miserably when asked to solve a graph coloring problem, even if the underlying logic is similar. Second, weak supervision: most models are trained using a single bit of information—whether the whole formula is "Satisfiable" or "Unsatisfiable." This is like trying to learn chess by only being told if you won or lost at the very end of the game.
The authors argue that we should treat SAT instances like digital circuits. By doing so, we can use 50 years of EDA knowledge to "clean up" the data and provide the model with much more granular feedback.
Methods
The DeepSAT framework introduces three major innovations:
-
Logic Synthesis Pre-processing: Before the neural network ever sees the problem, the SAT instance is converted into an And-Inverter Graph (AIG). The authors then apply standard EDA logic synthesis (rewriting and balancing) to simplify the graph. This reduces the structural diversity between different types of problems, creating a "compact and balanced" inductive bias.
Logic synthesis reduces the distribution diversity of different SAT classes, making them more similar for the model to process. -
Rich Supervision via Logic Simulation: Instead of just using a SAT/UNSAT label, the authors use logic simulation to estimate the probability of every single node in the graph being logic '1'. This provides a dense supervision signal that guides the model on how logic flows through the circuit.
-
DAGNN with Polarity Prototypes: The model uses a Directed Acyclic Graph Neural Network (DAGNN) that performs both forward and reverse propagation. To mimic Boolean Constraint Propagation (BCP)—the core reasoning engine of classical solvers—they introduce "polarity prototypes." These are fixed vectors representing "True" and "False" that help the network learn an interpretable hidden space.
DeepSAT uses bidirectional propagation and polarity prototypes to mimic the constraint propagation used in traditional solvers.
Datasets
The authors trained DeepSAT on a dataset of 230,000 random k-SAT pairs (SR(3-10)). To test its mettle, they evaluated it on:
- Larger k-SAT instances: Moving from 10 variables up to 80 variables.
- Novel Distributions: NP-complete problems reduced to SAT, including Graph Coloring, Vertex Cover, Clique Detection, and Dominating Set.
Key Insights and Ideas
- EDA as a Normalizer: The most striking "aha moment" is that logic synthesis acts as a powerful universal translator. By optimizing the AIG, problems from totally different domains (like graph coloring vs. random logic) end up looking structurally similar to the GNN.
- Generative Formulation: DeepSAT treats SAT solving as a conditional generative process (similar to PixelCNN). It sequentially determines variable values based on previously resolved ones, allowing for explicit assignment prediction rather than just a "yes/no" guess.
- Interpretable Latent Space: By forcing the network to use polarity prototypes, the hidden states of the gates become physically meaningful, representing the likelihood of a logic value.
Key Results
DeepSAT consistently outperformed NeuroSAT, the previous state-of-the-art end-to-end solver.
- Accuracy: On SR(40) instances, DeepSAT (optimized with logic synthesis) solved 51% of problems at convergence, compared to NeuroSAT’s 42%.
- Generalization: The gap was even wider on novel distributions. On Graph Coloring problems, NeuroSAT solved 0%, while DeepSAT solved 98%. On average across all novel distributions, DeepSAT maintained a 97% success rate, while NeuroSAT plummeted to 22%.
Limitations and Future Work
Despite the impressive gains, the authors admit there is still a "significant performance gap" between end-to-end neural solvers and the best industrial-grade heuristic solvers (like MiniSat or Kissat).
Future work aims to create hybrid solvers. Instead of replacing classical solvers, DeepSAT could be used to guide them—for example, by using the learned constraint propagation to suggest better branching heuristics or to prune search trees more effectively in traditional Circuit-SAT solvers.
Summary updated