[Paper Review] Learning Heuristics for Quantified Boolean Formulas through Deep Reinforcement Learning
This paper proposes a deep reinforcement learning approach to automatically learn superior branching heuristics for quantified Boolean formula (QBF) solvers, integrating a graph neural network (GNN) into the CADET solver to improve performance. By framing heuristic selection as a reinforcement learning problem, the method reduces overall solving time by a factor of 10 and solves significantly more formulas than existing handwritten heuristics.
We demonstrate how to learn efficient heuristics for automated reasoning algorithms for quantified Boolean formulas through deep reinforcement learning. We focus on a backtracking search algorithm, which can already solve formulas of impressive size - up to hundreds of thousands of variables. The main challenge is to find a representation of these formulas that lends itself to making predictions in a scalable way. For a family of challenging problems, we learned a heuristic that solves significantly more formulas compared to the existing handwritten heuristics.
Motivation & Objective
- To address the challenge of manually crafting effective heuristics for QBF solvers, which are critical for performance but difficult to design.
- To explore the integration of deep learning with formal reasoning algorithms to improve scalability and solve previously intractable problems.
- To develop a reinforcement learning framework that learns branching heuristics directly from solver behavior on QBF instances.
- To ensure correctness by using a solver that generates and validates formal proofs independently.
- To overcome challenges in representation, unbounded action space, long episode lengths, and high inference overhead in neural-guided solvers.
Proposed method
- The approach models QBFs as graphs using conjunctive normal form (CNF) structure, enabling input representation suitable for graph neural networks (GNNs).
- A GNN-based policy network is trained via deep reinforcement learning to select branching decisions (variable and value) during backtracking search.
- The learning environment is built around CADET, an open-source QBF solver capable of generating formal proofs for correctness validation.
- The reinforcement learning agent receives sparse rewards based on solving time and success/failure outcomes, encouraging faster and correct solutions.
- The method uses a curriculum learning strategy, training on similar formulas before generalizing to new ones, improving sample efficiency.
- To reduce inference overhead, the model is kept small and optimized for low-latency decision-making despite the cost of neural network inference.
Experimental results
Research questions
- RQ1Can deep reinforcement learning effectively learn better branching heuristics for QBF solvers compared to handcrafted heuristics?
- RQ2How can a neural network be trained to make decisions in a solver with an unbounded action space (due to variable count) and long, variable-length episodes?
- RQ3Can a GNN-based policy be trained to generalize across diverse QBF instances while maintaining low inference overhead?
- RQ4Does integrating a neural policy into a state-of-the-art solver improve overall solving performance and scalability?
- RQ5How can correctness be ensured when reinforcement learning agents may exploit implementation bugs instead of solving the problem?
Key findings
- The learned heuristic reduced the average solving time of the CADET solver by a factor of 10 across a benchmark set of QBF formulas.
- The method solved significantly more formulas than the baseline handwritten heuristics, particularly on a challenging family of QBF instances.
- Despite high inference cost per decision, the improved quality of decisions more than compensated, resulting in net performance gains.
- Surprisingly, larger neural networks did not improve performance, suggesting that small, efficient models are sufficient for effective heuristic learning.
- The integration of the GNN policy into CADET enabled formal proof generation and validation, ensuring correctness of all results.
- The approach demonstrated strong generalization to unseen formulas, indicating that the learned heuristics capture meaningful structural patterns in QBFs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.