TL;DR
This paper introduces Reinforcement Learning from Algorithm Feedback (RLAF), a framework that trains Graph Neural Networks (GNNs) to provide "one-shot" guidance to SAT solvers. By predicting variable weights and polarities just once at the start of a search, the authors achieve up to a 2x speedup across diverse problem sets while avoiding the massive computational overhead typical of neural-guided search.
What Problem Does This Paper Address?
Boolean Satisfiability (SAT) solvers are the workhorses of modern computer science, powering everything from hardware verification to cryptography. Despite their importance, these solvers rely heavily on hand-crafted branching heuristics—rules that decide which variable to assign next during a search.
While these heuristics (like VSIDS) are generally effective, they are "one-size-fits-all" and hard to tune for specific types of problems. Machine learning (ML) offers a way to learn better, distribution-specific heuristics. However, previous attempts often required running a neural network at every step of the solver's search. Because neural networks are orders of magnitude slower than the solver's internal logic, the "neural overhead" usually cancels out any gains in search efficiency. The authors tackle this "bottleneck" by asking: Can we provide high-quality guidance once at the beginning and let the solver do the rest?
Methods: Reinforcement Learning from Algorithm Feedback
The authors propose a paradigm called RLAF to bridge the gap between slow neural networks and fast symbolic solvers.
Here are the core components of their approach:
- One-Shot Guidance: Instead of guiding every decision, a GNN processes the SAT formula exactly once. It outputs a weight $w(x)$ and a polarity $p(x)$ (a preferred true/false assignment) for every variable in the formula.
- Heuristic Injection: These learned values are injected into existing solvers (like Glucose or March). The solver’s internal scoring function is simply scaled by the learned weights: $\hat{x} = \text{argmax}_x w(x) \cdot \text{Score}(x)$. This allows the ML model to "nudge" the solver without replacing its proven logic.
- RLAF Training: The GNN is trained using Reinforcement Learning. The "reward" is the negative of the solver's computational cost (e.g., the number of decisions made).
- GRPO Optimization: They utilize Group Relative Policy Optimization (GRPO), a modern RL algorithm. GRPO is efficient because it compares the performance of multiple "guesses" for the same problem instance to determine which direction to update the model, eliminating the need for a complex "critic" network.
Datasets and Evaluation
The researchers evaluated their approach on three distinct SAT problem distributions:
- Random 3SAT: Uniformly random instances generated at the "critical density" where problems are hardest to solve.
- Graph Coloring (3COL): SAT-encoded problems of finding a 3-coloring for random graphs.
- Cryptographic: Instances generated from decryption attacks on the HiTag2 stream cipher.
Crucially, they trained on smaller, easier instances (e.g., 200 variables) and tested on larger, harder ones (up to 600 variables) to measure how well the guidance generalizes.
Key Insights and Ideas
- The Power of the "Hint": The most surprising insight is that a single GNN pass at the start provides enough "structural context" to improve the solver's performance throughout the entire search process.
- RL Trumps Supervision: Traditional ML approaches often try to predict "expert" labels (like which variables are part of an unsatisfiable core). RLAF skips the middleman by training directly on the solver's runtime. The results show that RLAF consistently outperforms these expert-supervised baselines.
- Solver-Agnostic Signals: Policies trained to help one solver (the CDCL-based Glucose) were found to be highly correlated with policies trained for a completely different solver (the DPLL-based March). This suggests the GNN is learning fundamental structural properties of SAT problems rather than just "hacking" a specific solver's quirks.
- Multiplicative Scaling: Using a Log-Normal distribution for weights was a clever choice; it ensures weights are always positive and allows the GNN to naturally scale the solver's internal scores.
Key Results
- Significant Speedups: RLAF-trained policies reduced mean solve times significantly. For example, on 400-variable 3SAT instances, Glucose saw a 69% reduction in runtime for satisfiable instances.
- Generalization: The models generalized effectively to problems much harder than those seen during training.
- Negligible Overhead: The GNN forward pass took roughly 0.02 to 0.1 seconds. On non-trivial problems, this cost is dwarfed by the seconds or minutes saved during the search.
- Superiority over Baselines: RLAF outperformed supervised methods that predicted "Backbones" or "UNSAT cores," proving that learning from direct algorithm feedback is a more robust path for heuristic design.
Limitations and Future Work
- Scale of Training: The current study is a "prototype-scale" demonstration. Training requires running the solver thousands of times, which is computationally expensive. Scaling this to massive industrial-sized SAT instances will likely require distributed computing clusters.
- GNN Expressivity: The authors note that standard message-passing GNNs have theoretical limits in their ability to distinguish certain graph structures. Future work could explore more powerful architectures.
- Integration with Modern Solvers: While tested on Glucose and March, the authors aim to integrate RLAF with the absolute state-of-the-art solvers (like CaDiCaL) used in industrial settings.
- Beyond SAT: The "one-shot multiplicative weight" approach is generic. The authors suggest this could be applied to other combinatorial problems like Mixed-Integer Programming (MIP).
Summary updated