On the Expressive Power of GNNs for Boolean Satisfiability

Saku Peltonen, Roger Wattenhofer · DOI

This blog-style summary provides a technical overview of the paper "On the Expressive Power of GNNs for Boolean Satisfiability," recently published for ICLR 2026.

TL;DR

While Graph Neural Networks (GNNs) are the go-to architecture for neural SAT solving, they face a fundamental "glass ceiling." This paper proves that even the most powerful GNNs (those bounded by the Weisfeiler-Leman hierarchy) cannot always distinguish between satisfiable and unsatisfiable formulas, particularly in industrial-grade problems where complex structural symmetries hide the solution.

What Problem Does This Paper Address?

Boolean Satisfiability (SAT) is the "original" NP-complete problem, and solving it efficiently is the backbone of everything from hardware verification to logistics. Traditionally, we’ve relied on handcrafted heuristics (like CDCL solvers). Recently, the community has pivoted toward using GNNs to learn these heuristics directly from data, representing Boolean formulas as graphs.

However, GNNs have a known theoretical limit: their ability to distinguish different graph structures is bounded by the Weisfeiler-Leman (WL) test. If two different SAT formulas look identical to the WL test, a GNN will produce the same output for both, even if one is satisfiable and the other isn't. The authors ask a critical question: Is the structural expressivity of current GNNs actually enough to reason about satisfiability in the real world?

Methods

The authors analyze GNN expressivity through several lenses:

  1. Graph Representation: They focus on the Literal-Clause Graph with Negation Connections (LCN). Unlike standard bipartite graphs, LCNs include explicit edges between a variable and its negation. This is crucial because, in a GNN, node labels are removed to ensure permutation invariance; without these "negation edges," the GNN literally loses the ability to tell which literals are opposites.
  2. Theoretical Construction: Using a "twisted" graph construction inspired by the classic Cai-Fürer-Immerman (CFI) graphs, the authors construct pairs of 3-SAT instances that are $n$-WL indistinguishable but have different satisfiability statuses.
  3. Experimental "Necessary Condition" Test: To see if a GNN could theoretically solve an instance, they run the WL algorithm to partition literals into equivalence classes. They then add equality constraints to the formula (forcing all literals in a class to have the same value). If this "constrained" formula becomes unsatisfiable while the original was satisfiable, it proves that a WL-bounded GNN lacks the expressivity to find the solution.

Datasets

The study evaluates three distinct types of SAT instances:

  • G4SAT Benchmark: A collection of random instances (3-SAT, k-clique, k-vertex cover) designed to be near the "satisfiability threshold" where problems are hardest.
  • International SAT Competition (2020-2025): Real-world "industrial" and "crafted" instances covering cryptography, scheduling, and hardware verification.
  • RegularSAT: A new family introduced by the authors where every literal and clause has the same degree, making them structurally "perfect" and particularly difficult for GNNs to distinguish.

Key Insights and Ideas

  • The WL Hierarchy is Not Enough: The paper’s headline result is that the full WL hierarchy—no matter how many dimensions ($k$) you add—cannot generally distinguish SAT from UNSAT. This mirrors limitations in proof complexity; the hardest instances for GNNs are structurally similar to those that require exponential time for "resolution" proofs.
  • Random vs. Industrial Divergence: There is a massive gap in how GNNs perceive different data distributions.
  • Random SAT is "easy" for GNNs because the literals are structurally diverse; 3 to 4 rounds of message passing are usually enough to give every literal a unique identity.
  • Industrial SAT often contains highly regular, symmetric sub-structures (like grids or parity checks). These symmetries "blind" the GNN, making it impossible to distinguish between literals without more advanced "symmetry-breaking" techniques.
  • Planar SAT is a Special Case: While general SAT is hard for GNNs, the authors show that PlanarSAT (where the formula graph has no crossing edges) is fully identifiable by the 4-WL test.

Key Results

  • Theoretical Proof: Theorem 5.3 proves the existence of 3-SAT pairs with $O(n)$ variables that are indistinguishable by the $n$-WL test, despite one being SAT and one UNSAT.
  • Experimental Failure on Industrial Data: In tests on 448 instances from the SAT Competition, the WL test was only expressive enough to potentially solve 52% of them. In 38 out of 69 instance families, the GNN-based approach was fundamentally incapable of predicting a satisfying assignment.
  • Efficiency of Random SAT: For random 3-SAT, WL converges in just 4 rounds regardless of formula size, explaining why GNNs often look very successful when trained only on random data.

Limitations and Future Work

The authors note that expressivity is a necessary but not sufficient condition. Just because a GNN can distinguish two literals doesn't mean it will learn the correct logic to solve the formula.

Future Directions: 1. Beyond WL: To solve industrial instances, we likely need GNN architectures that go beyond standard message passing, such as higher-order GNNs or those incorporating "labeling tricks" to break structural symmetries. 2. Better Benchmarks: Since random SAT is "too easy" for GNNs to distinguish, the community needs better synthetic generators that mimic the regular, symmetric structures of industrial problems to truly test neural solver limits. 3. Hybrid Solvers: The results suggest GNNs might be better used as "assistants" to classic solvers (e.g., for branching heuristics) rather than end-to-end replacements.

Summary updated

BibTeX
@inproceedings{peltonen2026expressive,
  author = {Saku Peltonen and Roger Wattenhofer},
  title = {{On the Expressive Power of GNNs for Boolean Satisfiability}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Q01JX3CuDx},
}
Figure