Can Q-Learning with Graph Networks Learn a Generalizable Branching Heuristic for a SAT Solver?
Abstract
We present Graph--SAT, a branching heuristic for a Boolean SAT solver trained with value-based reinforcement learning (RL) using Graph Neural Networks for function approximation. Solvers using Graph--SAT are complete SAT solvers that either provide a satisfying assignment or proof of unsatisfiability, which is required for many SAT applications. The branching heuristics commonly used in SAT solvers make poor decisions during their warm-up period, whereas Graph--SAT is trained to examine the structure of the particular problem instance to make better decisions early in the search. Training Graph--SAT is data efficient and does not require elaborate dataset preparation or feature engineering. We train Graph--SAT using RL interfacing with MiniSat solver and show that Graph--SAT can reduce the number of iterations required to solve SAT problems by 2-3X. Furthermore, it generalizes to unsatisfiable SAT instances, as well as to problems with 5X more variables than it was trained on. We show that for larger problems, reductions in the number of iterations lead to wall clock time reductions, the ultimate goal when designing heuristics. We also show positive zero-shot transfer behavior when testing Graph--SAT on a task family different from that used for training. While more work is needed to apply Graph--SAT to reduce wall clock time in modern SAT solving settings, it is a compelling proof-of-concept showing that RL equipped with Graph Neural Networks can learn a generalizable branching heuristic for SAT search.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
25 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- In Defense of the Unitary Scalarization for Deep Multi-Task Learning cites My Body is a Cage: the Role of Morphology in Graph-Based Incompatible Control
- Learning Heuristics for Quantified Boolean Formulas through Reinforcement Learning cites Graph Representations for Higher-Order Logic and Theorem Proving
Cited by top-tier papers25
- Simulation-guided Beam Search for Neural Combinatorial OptimizationJinho Choo, Yeong-Dae Kwon, Jihoon Kim, Jeongwoo Jae et al.NeurIPS 2022 · 123 citations
- My Body is a Cage: the Role of Morphology in Graph-Based Incompatible ControlVitaly Kurin, Maximilian Igl, Tim Rocktäschel, Wendelin Boehmer et al.ICLR 2021 · 105 citations
- In Defense of the Unitary Scalarization for Deep Multi-Task LearningVitaly Kurin, Alessandro De Palma, Ilya Kostrikov, Shimon Whiteson et al.NeurIPS 2022 · 96 citations
- MIP-GNN: A Data-Driven Framework for Guiding Combinatorial SolversElias B. Khalil, Christopher Morris, Andrea LodiAAAI 2022 · 75 citations
- NSNet: A General Neural Probabilistic Framework for Satisfiability ProblemsZhaoyu Li, Xujie SiNeurIPS 2022 · 30 citations
Builds on2
- Graph Representations for Higher-Order Logic and Theorem ProvingAditya Paliwal, Sarah M. Loos, Markus N. Rabe, Kshitij Bansal et al.AAAI 2020 · 110 citations
- Learning Heuristics for Quantified Boolean Formulas through Reinforcement LearningGil Lederman, Markus N. Rabe, Sanjit A. Seshia, Edward A. LeeICLR 2020 · 3 citations
Related papers
- Learning from Algorithm Feedback: One-Shot SAT Solver Guidance with GNNsJan Tönshoff, Martin GroheICLR 2026 · 4 citations
- Logic Optimization Meets SAT: A Novel Framework for Circuit-SAT SolvingZhengyuan Shi, Tiebing Tang, Jiaying Zhu, Sadaf Khan et al.DAC 2025 · 1 citation
- Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement LearningShumao Zhai, Ning GeICLR 2025
- Are Graph Neural Networks Optimal Approximation Algorithms?Morris Yau, Nikolaos Karalias, Eric Lu, Jessica Xu et al.NeurIPS 2024 · 23 citations
- Learning to Search and Searching to Learn for Generalization in PlanningMichael Aichmüller, Yannik Hesse, Hector GeffnerICML 2026
