Introduction
In the realm of automated reasoning, solvers for problems like Boolean Satisfiability (SAT) and Quantified Boolean Formulas (QBF) are the foundational workhorses behind software verification and hardware design. These solvers rely on backtracking search algorithms that must constantly decide which variable to "branch" on next. For the past two decades, a hand-crafted heuristic known as VSIDS has dominated this decision-making process.
However, symbolic reasoning is notoriously "brittle" and scales poorly with standard deep learning approaches. While neural networks excel at intuitive pattern recognition, they are often slow and struggle with the variable-sized, abstract nature of logic formulas. Conversely, symbolic solvers are fast and precise but rely on rigid, human-designed rules. This research explores a promising middle ground: using deep reinforcement learning to provide the "intuition" for branching heuristics, while letting a high-performance symbolic solver handle the mechanical reasoning. The resulting learned policy significantly outperforms VSIDS, solving more complex formulas by making smarter decisions and generalizing from small training examples to much larger problems.
Methodology: Integrating Deep Learning with Symbolic Search
The researchers integrated a deep learning agent into CADET, a state-of-the-art QBF solver. To bridge the gap between symbolic logic and neural networks, they employed a Graph Neural Network (GNN) architecture.
- Graph Representation: Boolean formulas are treated as bipartite graphs, where nodes represent variables and clauses. This structural approach allows the model to process formulas of any size without requiring a fixed-length input vector.
- The Neural Architecture: A GNN computes embeddings for every literal in the formula, capturing the local topology of variable interactions. A subsequent policy network scores these literals to determine the optimal next branching move.
- Reinforcement Learning: The agent is trained using the REINFORCE algorithm. It receives a small negative reward for every decision step—encouraging speed and efficiency—and a large positive reward for successfully solving a formula.
- Proof of Correctness: A unique feature of CADET is its ability to produce formal proofs of its results. This safeguard prevents the reinforcement learning agent from "cheating" by exploiting bugs in the solver's code to artificially inflate its rewards.
Datasets and Evaluation
The approach was evaluated across several distinct datasets to test both performance and generalization:
- Reductions: A challenging benchmark representing searches for reductions between first-order formulas.
- Boolean: Synthetically generated formulas based on random circuits.
- Words: Formulas derived from random bitvector expressions, such as arithmetic comparisons.
- QBFEVAL: A standard dataset from the annual QBF solver competition, used primarily to test cross-benchmark generalization.
Key Insights
The study revealed several surprising insights about learning logical heuristics:
- Locality is King: The best-performing model used only one iteration of graph convolution ($\tau=1$). This suggests that the most critical information for branching lies in the immediate neighborhood of a variable. This strong locality likely explains why the model generalizes so effectively to massive formulas unseen during training.
- Less is More: Larger, deeper neural networks did not yield better results. Small, shallow networks proved faster and more effective, a crucial factor when the solver must execute thousands of decisions per second.
- Ditching Human Intuition: The neural model performed better when it was denied access to standard VSIDS activity scores. It learned a superior, independent strategy from scratch rather than merely augmenting human-designed rules.
- Size Generalization: A policy trained on formulas containing only a few dozen variables successfully solved formulas with hundreds or thousands of variables, demonstrating that the learned "logic" of branching is independent of problem scale.
Performance Results
On the challenging "Reductions" test set, the learned heuristic solved significantly more formulas than both random branching and the industry-standard VSIDS within the same decision limits.
- Decision Quality: The neural agent required far fewer steps to reach a solution. Given a limit of 400 decisions, the learned policy solved nearly twice as many formulas as VSIDS.
- Wall-Clock Time: Neural network inference carries a computational overhead, running roughly 10x slower than handwritten C++ code. Consequently, VSIDS remains faster on "easy" problems. However, for harder problems requiring more than 10 seconds to solve, the superior decision-making of the neural agent outweighs its computational cost, allowing it to eventually overtake VSIDS in total formulas solved.
Limitations and Future Work
The primary bottleneck of this approach is inference overhead. While the neural agent makes vastly superior decisions, generating those decisions takes longer. The authors note that optimizing the implementation—such as migrating from Python to C++ or utilizing more efficient tensor libraries—could significantly widen the performance gap in favor of the learned heuristic.
Furthermore, while the model generalizes exceptionally well to larger versions of the same type of problem, cross-benchmark generalization remains a challenge. A model trained on the "Reductions" dataset does not automatically outperform VSIDS on "QBFEVAL" competition formulas. Future research will likely focus on training across more diverse datasets to cultivate a truly "universal" neural branching heuristic.
Summary updated