DualSAT: A Dual-Branch GNN-Transformer Framework for SAT Solving

Wenzhu Yang, Zhanshan Li, Jingyao LiNeurIPS 2026

TL;DR

Boolean Satisfiability (SAT) solvers power everything from microchip verification to automated scheduling, yet recent attempts to boost them with Graph Neural Networks (GNNs) often hit a wall: GNNs struggle to see the "big picture" across massive logic graphs and get confused when problems have multiple right answers. DualSAT solves this by pairing a local structural GNN with a global semantic network in a single, lightweight forward pass, trained via a clever two-stage curriculum that lets the model explore the entire space of valid solutions. Plugged into a top classical solver, it untangles complex logic faster, solving up to 11.6% more competition-grade problems.

What Problem Does This Paper Address?

At its heart, a SAT problem asks whether you can assign True or False to a set of variables so that a massive Boolean formula evaluates to True. Modern solvers rely on Conflict-Driven Clause Learning (CDCL)—a sophisticated trial-and-error search where the solver guesses variable values ("phase selection"), propagates the logical consequences, and backtracks when it hits a contradiction. Good initial guesses dramatically cut down on dead-end searches.

Researchers have tried using GNNs to make these initial guesses by representing formulas as graphs of variables and clauses. However, three hurdles keep holding them back:

  1. Myopic vision: Standard GNNs pass messages between immediate neighbors. Capturing long-range logical chain reactions requires many message-passing rounds, which drains memory and causes node features to blur together ("over-smoothing").
  2. Quadratic bottlenecks: Full Transformers can see globally, but their computational cost explodes quadratically on industrial-sized graphs.
  3. The multi-solution trap: A SAT formula often has thousands of valid solutions. Training a network using standard supervised learning against just one arbitrary reference solution penalizes the model for finding other equally valid solutions, stunting its ability to generalize.

Methods

First, DualSAT translates a Boolean formula into a standard Variable-Clause Graph (VCG)—a bipartite graph connecting variables to the clauses they appear in, with two edge types indicating whether a variable is negated or positive.

Figure 1: The overview of DualSAT framework.

Instead of running dozens of expensive iterative updates, DualSAT predicts initial variable assignments in a single forward pass using a novel dual-branch architecture:

  • Local Structural Branch: Uses relation-aware Graph Isomorphism Networks (GINConv) and multi-head graph attention (treating positive and negative literal edges separately) to capture tight, immediate logical constraints.
  • Global Semantic Branch: To capture long-range dependencies without quadratic attention costs, DualSAT runs random walks across the VCG, counts how often nodes appear together, and computes a Positive Pointwise Mutual Information (PPMI) matrix. Retaining the top-$k$ strongest associations builds a sparse "semantic graph," which is processed by a deep GCNII network.
  • Cross-Branch Fusion (ACBF): Because local and global features live in different mathematical distributions, DualSAT aligns them using bidirectional cross-attention and dynamically weights them via an Attention-based Feature Fusion module before making a final probability prediction for each variable.

Two-Stage Training: To escape the multi-solution trap, Stage 1 trains the model with both a supervised loss (matching a known solution to get into the right ballpark quickly) and a differentiable unsupervised loss (which measures how close the predicted probabilities come to satisfying every clause). In Stage 2, the supervised training wheels come off: the model optimizes only the unsupervised constraint loss, freeing it to settle into whichever valid solution is most natural.

Datasets

No new benchmarks are introduced; the authors evaluate DualSAT on established synthetic and competition benchmarks:

  • Synthetic Benchmarks (Easy, Medium, Hard scales): Random 3-SAT (SR), pseudo-industrial Community Attachment (CA), k-Clique, and k-Domset.
  • Real-World Benchmarks: Main-track CNF formulas from the SAT Competition (SATCOMP) 2022, 2023, and 2024 (filtered to instances with under $2 \times 10^5$ nodes).

Key Insights and Ideas

  • Letting go of the ground truth unlocks generalization: In ablation studies on Community Attachment (CA)—formulas known for having many valid solutions—dropping the unsupervised loss caused accuracy to plummet by 46.2% on easy instances. Conversely, training without supervised loss barely hurt performance at all. Supervised labels are useful merely as an early compass; constraint satisfaction does the real heavy lifting.
  • Random walks are a cheap proxy for Boolean propagation: In SAT, flipping one variable can trigger a cascade of forced flips far across the formula. Random-walk co-occurrences (via PPMI) capture these implicit, multi-hop structural bridges cheaply, giving DualSAT a massive edge as formulas grow larger and more modular.
  • One shot is enough: You don't need recurrent, multi-round message passing during solver execution. Running DualSAT just once before handing the reins over to a classical CDCL solver provides a strong enough nudge to save hundreds of seconds of search time.

Key Results

As a standalone end-to-end assignment predictor, DualSAT substantially outperforms pioneering baseline NeuroSAT and recent phase-initializer NeuroBack:

Table 1: Solving accuracy (%) of generated initial assignments on the easy and medium datasets. “Avg.” denotes the average solving accuracy. The best results are indicated in bold.
  • Standalone Accuracy: DualSAT hits 73.0% average accuracy on easy datasets (vs. 44.5% for NeuroSAT and 10.3% for NeuroBack) and 40.8% on medium datasets (vs. 25.2% and 4.8%). On pseudo-industrial CA tasks, DualSAT achieves 69.0% (easy) and 28.4% (medium), whereas both baselines score below 4.5%.
  • Scale Generalization: Trained on medium instances and tested on larger "hard" instances, DualSAT maintains 20.1% average accuracy compared to NeuroSAT's 8.8% and NeuroBack's 1.3%.
  • Classical Solver Integration: When initializing variable phases in the classical CaDiCaL solver across SATCOMP 2022–2024, DualSAT-CaDiCaL solves 11.6%, 5.2%, and 2.3% more instances than standard CaDiCaL (e.g., jumping from 112 to 125 solved instances on SATCOMP-2022), cuts average solving time by 91.6 to 208.6 seconds, and reduces search conflicts by up to 9.21%.

Limitations and Future Work

While the authors defer their formal discussion of limitations and future work to Appendix F (which is not included in the main text), a clear practical bottleneck emerges in the experiments: memory scalability on massive industrial formulas. Under a 10GB memory constraint, the authors had to filter out SATCOMP instances exceeding $2 \times 10^5$ graph nodes—leaving only 587 out of 1,200 competition formulas eligible for testing. Scaling the random-walk/PPMI graph construction and GNN memory footprint to million-node industrial formulas remains an open engineering frontier.

Summary updated

Abstract

Existing graph neural network-based methods for Boolean satisfiability (SAT) solving are generally constrained by limited local receptive fields, making it difficult to adequately capture the long-range dependencies between variables and clauses in SAT instances. Moreover, these methods overlook the multi-solution nature of SAT instances. Consequently, their expressive power and generalization performance remain limited. To address these issues, we propose DualSAT, a novel neural framework for the SAT problem, designed to enhance the phase selection heuristic of SAT solvers. Specifically, DualSAT adopts a novel dual-branch graph neural network that separately encodes local structural information and global structural information in the graph, and then fuses them through an attention-based cross-branch feature fusion module. An assignment decision head is further introduced to generate the initial assignment prediction of variables. This prediction process requires only a single forward pass, achieving a favorable balance between expressive power and inference efficiency. Furthermore, to account for the multiple solutions nature of SAT instances, we design a two-stage training strategy that combines supervised and unsupervised learning to improve the generalization performance of the model. Experimental results on multiple datasets show that, as an end-to-end assignment prediction model, DualSAT significantly outperforms NeuroSAT and NeuroBack. In addition, we integrate DualSAT into the classical SAT solver CaDiCaL, where it increases the number of solved instances by up to 11.6% and reduces the number of conflicts by up to 9.21% on SAT competition problem sets.
BibTeX
@inproceedings{yang2026dualsat,
  author = {Wenzhu Yang and Zhanshan Li and Jingyao Li},
  title = {{DualSAT: A Dual-Branch GNN-Transformer Framework for SAT Solving}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ji9sYRZ4X8},
}

Loading related content...

Figure