Learning from Algorithm Feedback: One-Shot SAT Solver Guidance with GNNs
Jan Tönshoff, Martin Grohe
Abstract
Boolean Satisfiability (SAT) solvers are foundational to computer science, yet their performance typically hinges on hand-crafted heuristics. This work introduces Reinforcement Learning from Algorithm Feedback (RLAF) as a paradigm for learning to guide SAT solver branching heuristics with Graph Neural Networks (GNNs). Central to our approach is a novel and generic mechanism for injecting inferred variable weights and polarities into the branching heuristics of existing SAT solvers. In a single forward pass, a GNN assigns these parameters to all variables. Casting this one-shot guidance as a reinforcement learning problem lets us train the GNN with off-the-shelf policy-gradient methods, such as GRPO, directly using the solver's computational cost as the sole reward signal. Extensive evaluations demonstrate that RLAF-trained policies significantly reduce the mean solve times of different base solvers across diverse SAT problem distributions, achieving more than a 2x speedup in some cases, while generalizing effectively to larger and harder problems after training. Notably, these policies consistently outperform expert-supervised approaches based on learning handcrafted weighting heuristics, offering a promising path towards data-driven heuristic design in combinatorial optimization.
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.
1 top-tier paper has 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
- MIP-GNN: A Data-Driven Framework for Guiding Combinatorial Solvers cites Can Q-Learning with Graph Networks Learn a Generalizable Branching Heuristic for a SAT Solver?
- NeuroSelect: Learning to Select Clauses in SAT Solvers cites NeuroBack: Improving CDCL SAT Solving using Graph Neural Networks
- NeuroSelect: Learning to Select Clauses in SAT Solvers cites Can Q-Learning with Graph Networks Learn a Generalizable Branching Heuristic for a SAT Solver?
- Unsat Core Prediction through Polarity-Aware Representation Learning over Clause-Literal Hypergraphs cites NeuroSelect: Learning to Select Clauses in SAT Solvers
- Unsat Core Prediction through Polarity-Aware Representation Learning over Clause-Literal Hypergraphs cites Can Q-Learning with Graph Networks Learn a Generalizable Branching Heuristic for a SAT Solver?
Cited by top-tier papers1
Builds on6
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- Can Q-Learning with Graph Networks Learn a Generalizable Branching Heuristic for a SAT Solver?Vitaly Kurin, Saad Godil, Shimon Whiteson, Bryan CatanzaroNeurIPS 2020 · 77 citations
- MIP-GNN: A Data-Driven Framework for Guiding Combinatorial SolversElias B. Khalil, Christopher Morris, Andrea LodiAAAI 2022 · 75 citations
- NeuroBack: Improving CDCL SAT Solving using Graph Neural NetworksWenxi Wang, Yang Hu, Mohit Tiwari, Sarfraz Khurshid et al.ICLR 2024 · 25 citations
- NeuroSelect: Learning to Select Clauses in SAT SolversHongduo Liu, Peng Xu, Yuan Pu, Lihao Yin et al.DAC 2024 · 2 citations
Related papers
- Suggesting Variable Order for Cylindrical Algebraic Decomposition via Reinforcement LearningFuqi Jia, Yuhang Dong, Minghao Liu, Pei Huang et al.NeurIPS 2023 · 9 citations
- Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement LearningShumao Zhai, Ning GeICLR 2025
- 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 Large Neighborhood Search Policy for Integer ProgrammingYaoxin Wu, Wen Song, Zhiguang Cao, Jie ZhangNeurIPS 2021 · 68 citations
- Learning Branching Heuristics for Propositional Model CountingPashootan Vaezipoor, Gil Lederman, Yuhuai Wu, Chris J. Maddison et al.AAAI 2021 · 14 citations
