Unsatisfiability Proofs for Distributed Clause-Sharing SAT Solvers

Dawn Michaelson, Dominik Schreiber, Marijn J. H. Heule, Benjamin Kiesl-Reiter, Michael W. WhalenTacas 2023

Introduction

Distributed Boolean Satisfiability (SAT) solvers have revolutionized the field of automated reasoning, offering performance gains of up to 100x over sequential counterparts by leveraging massive clusters. However, these solvers have long faced a critical trust gap. While a "Satisfiable" (SAT) result is easily verified by a provided variable assignment, an "Unsatisfiable" (UNSAT) result—indicating no such assignment exists—requires a formal proof of contradiction.

In sequential solvers, generating these proofs is standard practice. In distributed environments, however, the process breaks down. As solvers share "learned" clauses across a network, the logical chain becomes fragmented. This paper introduces the first scalable methodology to reconstruct a single, linear proof from a distributed cluster, ensuring that the results of massive-scale computing are as verifiable as they are fast.

The Challenge of Distributed Proofs

The primary obstacle in distributed SAT solving is the "teleportation" of logic. When one solver node derives a new piece of information (a clause) and shares it with another, the receiving node uses that information without knowing its full derivation history. This creates a fragmented proof where local logic depends on external, untraced data. Historically, this lack of transparency has led to undetected errors in major competitions, where distributed solvers occasionally provided incorrect answers that could not be audited.

Methods: Reconstructing the Logic Chain

The authors propose a system to track the "provenance" of every shared clause across a network, relying on several key innovations to maintain a coherent proof chain.

LRAT and Global Alignment

Central to the approach is the transition to the LRAT (Linear Reflection Authorization Token) proof format. Unlike older formats, LRAT includes "hints"—explicit pointers to the specific previous clauses used to derive a new one. This explicit dependency mapping is essential for connecting logic across different nodes.

A comparison of the DIMACS input format, the intermediate DRAT format, and the hint-heavy LRAT format used to reconstruct distributed proofs.

To manage a cluster of solvers, the authors implemented a Global Clause ID Alignment scheme. By using a formula based on a solver's rank and the "epoch" (time interval) of creation, every machine generates unique IDs that can be understood globally. This prevents ID collisions and maintains a strict causal order, ensuring no solver claims to depend on a clause that hasn't been "invented" yet.

Pruning and Memory Management

Simply merging all partial proofs from a cluster would result in multi-terabyte files that are impossible to check. The authors developed a Distributed Pruning algorithm that works backward from the final contradiction (the "empty clause"). By tracing only the necessary dependencies and discarding the "noise," they significantly reduced proof sizes. Additionally, they employed Bloom filters—a space-efficient probabilistic data structure—to track when clauses are no longer needed, allowing for the insertion of deletion commands to keep the memory footprint of the proof-checker low.

Experimental Evaluation

The system was evaluated using the SAT Competition 2022 benchmark suite (400 formulas) on the Mallob distributed framework. Testing scaled up to 100 nodes (1,600 CPU cores), comparing the proof-producing distributed solver against top-tier sequential and parallel solvers.

Key Results

  • Scalability and Speed: Despite the overhead of proof generation, the distributed solver remained significantly faster than sequential alternatives, achieving an 11.5x median speedup over the top sequential solver (Kissat_MAB-HyWalk).
  • Mandatory Pruning: The pruning algorithm was highly effective, reducing the number of clauses in final proofs by an average factor of 293x. This reduction is what makes distributed proof verification feasible.
  • New Discoveries: The system successfully verified a proof for a specific problem (PancakeVsInsertSort_8_7.cnf) that had never been independently verified before, demonstrating its utility for complex mathematical and verification tasks.
  • Efficiency: The "assembly" phase—combining the distributed pieces into a single proof—took approximately 2.5x the time of the initial solving, a reasonable trade-off for absolute certainty in the result.

Limitations and Future Work

While the solving and assembly phases are distributed, the final post-processing and proof-checking steps remain sequential, creating a potential bottleneck for extremely large proofs. Future work will focus on parallelizing the checker itself. Furthermore, the authors had to disable certain aggressive "inprocessing" simplifications in the underlying CaDiCaL solver to maintain proof compatibility; extending LRAT support to these optimizations is a high priority. Finally, the authors suggest that "proof-streaming" over the network, rather than writing to disk, could alleviate current I/O limitations and further boost performance.

Summary updated

BibTeX
@inproceedings{michaelson2023unsatisfiability,
  author = {Dawn Michaelson and Dominik Schreiber and Marijn J. H. Heule and Benjamin Kiesl-Reiter and Michael W. Whalen},
  title = {{Unsatisfiability Proofs for Distributed Clause-Sharing SAT Solvers}},
  booktitle = {Tacas},
  year = {2023},
  doi = {10.1007/978-3-031-30823-9\_18},
}
Figure