NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

High-Throughput SAT Sampling

Arash Ardakani, Minwoo Kang, Kevin He, Qijing Huang, John Wawrzynek · DOI

Abstract

Boolean satisfiability (SAT) sampling—the process of finding diverse solutions to logical constraints—is a fundamental task in hardware and software verification. Traditional SAT solvers are often bottlenecked by sequential processing and redundant Conjunctive Normal Form (CNF) representations. This paper introduces a novel GPU-accelerated technique that refactors CNF constraints into multi-level Boolean circuits and reformulates the search process as a differentiable regression task. By utilizing gradient descent on GPUs, the proposed method achieves throughput speedups of up to 523x compared to state-of-the-art CPU-based samplers like UniGen3, generating millions of unique solutions per second.

Introduction

SAT sampling is a cornerstone of modern engineering, used to explore execution paths in software or test input patterns for complex integrated circuits. To ensure adequate coverage, engineers require thousands or millions of valid "samples" that satisfy specific logical constraints. However, traditional SAT solvers, primarily based on the Conflict-Driven Clause Learning (CDCL) algorithm, are inherently sequential. These solvers rely on complex branching and backtracking heuristics optimized for CPUs, which fail to leverage the massive parallel processing power of modern GPUs. Furthermore, the standard Conjunctive Normal Form (CNF) used by these solvers is a "flat" representation that often obscures the underlying circuit structure, leading to computational redundancy.

Methodology

To overcome these limitations, we propose a two-stage pipeline that transitions SAT sampling into a high-throughput, differentiable optimization framework.

1. Logical Refactoring

The first stage involves a transformation algorithm that factors flat CNF constraints back into a simplified, multi-level, multi-output Boolean function. This process effectively "re-discovers" the original circuit structure of the problem. By moving away from CNF, we significantly reduce the number of bit-wise operations required to evaluate potential solutions, essentially performing a form of logic compression that is more suitable for hardware acceleration.

2. Differentiable SAT and Gradient Descent

Once the logic is refactored, the SAT problem is reframed as a supervised multi-output regression task. We replace discrete logic gates (AND, OR, NOT) with continuous, probabilistic counterparts. For example, an AND gate is represented by the multiplication of its inputs ($a \times b$).

Because the logical constraints are now differentiable, we can employ Gradient Descent (GD) to minimize a loss function. In this context, a "loss" of zero indicates that the SAT instance is satisfied. By implementing this optimization in PyTorch, we can process massive batches of potential solutions simultaneously. Each GPU thread independently searches for a unique satisfying assignment, creating a "perfectly parallel" workload.

Experimental Evaluation

The method was evaluated using a benchmark suite of 60 SAT instances, including control logic instances, industrial-scale circuits (e.g., s15850a, Prod-32), and standard benchmarks from the Meel suite. We compared our GPU-based approach against leading samplers, including UniGen3, CMSGen, and DiffSampler.

Key Results

  • Throughput Gains: The proposed method achieved speedups ranging from 33.6× to 523.6× over state-of-the-art CPU samplers.
  • Raw Performance: In the or-50-10-7-UC-10 instance, the tool generated nearly 6 million unique solutions per second, whereas UniGen3 generated only 64.
  • Scalability: On industrial "Prod" benchmarks, the GPU approach maintained high throughput, while several baseline samplers timed out after two hours.
  • Architectural Impact: Ablation studies showed that GPU execution provided an average 6.8× speedup specifically over a CPU-based version of the same gradient descent algorithm, highlighting the importance of the architectural shift.

Discussion and Limitations

While the sampling phase is exceptionally fast, the initial transformation from CNF to a multi-level circuit introduces a computational overhead. This overhead is comparable to standard logic synthesis tools but remains a necessary prerequisite. Additionally, GPU memory usage scales with batch size, requiring a balance between throughput and available VRAM for extremely large problems.

A notable distinction from tools like UniGen3 is that our sampler does not yet provide the same rigorous theoretical guarantees of near-uniformity in its solutions. Future work will focus on tuning the optimization process to ensure more even sampling of the solution space. Furthermore, we anticipate that future iterations could operate directly on high-level hardware descriptions like Verilog, bypassing the need for CNF conversion entirely.

Conclusion

By treating logical constraints as differentiable functions and leveraging the parallel architecture of GPUs, we have demonstrated a path toward million-sample-per-second SAT solving. This approach represents a significant shift in how we approach logical verification, moving from sequential search to high-throughput optimization.

Summary updated

BibTeX
@inproceedings{ardakani2025high,
  author = {Arash Ardakani and Minwoo Kang and Kevin He and Qijing Huang and John Wawrzynek},
  title = {{High-Throughput SAT Sampling}},
  booktitle = {DATE},
  year = {2025},
  doi = {10.23919/date64628.2025.10993248},
}
Figure