arXiv:2610.28805cs.LOOct 2026

Manuscript Offprint

arXiv:2610.28805

SAT Sampling at Scale via GPU-based Boolean Constraint Propagation

Alexander Nadel, Yogev Shalmon, Ofer Strichman

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Alexander Nadel ID^{ID}, Yogev Shalmon ID^{ID}, and Ofer Strichman ID^{ID}

Faculty of Data and Decision Sciences, Technion, Haifa, Israel {alexandernad,ofers}@technion.ac.il, yogevshalmon@campus.technion.ac.il

Abstract. Constrained-random verification tests hardware designs by sampling solutions of Boolean formulas. Existing samplers largely follow one of two approaches: CPU-based SAT samplers (e.g., CMSGEN), which remain effective even at rare targets but offer limited throughput, and GPU-based gradient samplers, which achieve high throughput at high-probability targets but collapse at rare ones. We introduce GPAP-S, the first GPU sampler built on Boolean constraint propagation (BCP). At its core is GPAP, a new GPU engine for BCP that efficiently propagates many independent partial assignments concurrently on a shared Boolean formula. This capability allows GPAP-S to combine the rare-target robustness of SAT-based sampling with the throughput of GPU parallelism by exploring thousands of decide-and-propagate trajectories simultaneously. On the benchmark families used to evaluate prior GPU gradient samplers, GPAP-S is 2.2–18.7× faster at the high-probability targets considered in those evaluations. At rare targets, where those samplers often fail to generate any samples, GPAP-S achieves a geometric-mean speedup of roughly two orders of magnitude. Across all benchmarks, GPAP-S is also 83.4–1,571× faster than the CPU-based CMSGEN. This throughput does not come at the expense of sample quality: under BARBARIK, the statistical tester used to evaluate CMSGEN, GPAP-S is accepted on every instance we test, as is CMSGEN. We release GPAP as a reusable GPU library for high-throughput BCP.

Keywords: SAT solving · SAT sampling · Boolean constraint propagation · GPU acceleration · Constrained-random verification

1 Introduction

Constrained-random verification is one of the backbones of hardware verification [30,37]: before a design is manufactured, it is simulated on many random input stimuli, drawn under constraints that keep them legal and steer them toward the scenarios worth testing, including corner cases that random inputs rarely reach. The constraints can be encoded as a Boolean formula, whose solutions are the legal stimuli [14]. When they constrain the design's outputs, as in our evaluation, the formula also encodes the circuit, and a solution is a stimulus

A. Nadel et al.

that drives it to the required outputs [3,4]. The task is thus to sample solutions: many and fast, since coverage grows with the number of stimuli; spread out rather than clustered; and each one valid, since a stimulus that violates the constraints is not a legal input at all. The same need for many random solutions of a constraint set arises in software testing [22].

Today’s samplers largely follow one of two approaches, and they prioritize different sides of this task: SAT-based samplers, which run on a central processing unit (CPU) and put deductive power first, and gradient-based samplers, which run on a graphics processing unit (GPU) and put throughput first.

The SAT-based samplers build on conflict-driven clause learning (CDCL) SAT solvers [33,35], which today handle industrial formulas with millions of clauses in practice [23,29]. The core CDCL algorithm repeats one loop: decide a value for an unassigned variable, propagate its consequences by Boolean constraint propagation (BCP), which repeatedly forces literals implied by the unit-clause rule until fixpoint or a conflict, and, on a conflict, analyze it into a learned clause and backtrack. A SAT-based sampler obtains each sample from one such solver run. CMSGEN [25], for instance, is a CDCL solver with randomized heuristics: it picks the next variable and its polarity uniformly at random, propagates, learns from conflicts as usual, and returns the model it reaches. CMSGEN targets not only validity but also a distribution close enough to uniform to provide meaningful verification coverage, which it terms uniform-like.

A CDCL solver spends most of its runtime in BCP [35,50]; samplers built on CDCL therefore inherit this bottleneck. Decades of research have refined BCP for CPUs, whose small number of sophisticated cores are designed to execute a single sequential program as quickly as possible, yet BCP remains the dominant cost. An alternative is to change the hardware rather than the algorithm. GPUs make the opposite design trade-off: thousands of simpler cores that deliver high throughput when many independent tasks are available to hide memory latency. A single BCP run, however, offers little obvious task parallelism. Several efforts have nevertheless attempted to accelerate BCP on GPUs. As we discuss in Section 3, these works report speedups only relative to their own simplified propagators rather than the propagation schemes used in state-of-the-art CPU solvers, and none targets sampling.

A different line of work keeps the GPU but abandons propagation: several recent tools relax the formula into a continuous function and search it with gradient-based methods, rounding the result to Boolean assignments. This yields high throughput, but a rounded assignment counts only if it satisfies the formula. At rare targets, where random inputs seldom reach the desired region, few rounded assignments are valid, and throughput drops by orders of magnitude. Among these samplers, DIFFSAMPLER [6] and its high-throughput successor [5] target formulas in conjunctive normal form (CNF), whereas DEMOTIC [4] and RECURRENT-CIRCUITSAT [3] (RECURRENT for short) target circuits. We compare against the latter two on circuits from their benchmark families.

We present GPAP-S, the first GPU sampler built on SAT propagation, combining the strengths of both existing approaches: the rare-target robustness of

SAT-based samplers and the throughput of GPU parallelism. Like SAT-based samplers, GPAP-S advances through BCP, so every trajectory that completes yields a model; unlike them, it executes thousands of trajectories concurrently on a GPU. GPAP-S is built on GPAP (GPU-Parallel (partial) Assignment Propagation), a novel parallel BCP engine. GPAP propagates K independent partial assignments to fixpoint concurrently on a shared formula. Each assignment follows its own decide-and-propagate trajectory, while conflict analysis and backtracking are eliminated entirely: a trajectory that reaches a conflict is simply discarded. To enable this design, we use a per-clause data structure that combines a counter with a running sum of the surviving literals' indices. This structure is a variant of a pairing that appeared in early SAT solvers and local-search methods [7,8], that was largely overlooked thereafter, and that we recently revived in NOBLECOUNT [36]. As we show, it is particularly well suited to GPU execution.

We focus our evaluation on combinational and sequential circuits. Although GPAP-S itself operates on plain CNF, constrained-random verification is our motivating application, and circuits are its natural domain. In this setting, a sample is an input stimulus, a target is an output pattern the circuit is constrained to reach, and a rare target is one that random stimuli seldom hit, making satisfying stimuli scarce. We compare against CMSGEN and the GPU gradient samplers on 41 circuits drawn from the benchmark families used in the latter's evaluations. For each circuit, we evaluate both the target used in the original papers and a rare target of our own construction, running all tools on the same machine.

Across all benchmarks, GPAP-S samples 83.4–1,571× faster than CMSGEN in geometric mean, depending on the benchmark set, target, and unrolling depth. Relative to the GPU gradient samplers, performance depends primarily on target rarity. At the targets used in their original evaluations, GPAP-S is 2.2× faster than DEMOTIC and 8.0–18.7× faster than RECURRENT. At rare targets, GPAP-S is roughly two orders of magnitude faster than RECURRENT, while DEMOTIC fails to produce samples on most instances (Section 6). This throughput does not come at the expense of sample quality. Under BARBARIK [13], the statistical tester used to evaluate CMSGEN, GPAP-S is accepted on every circuit instance we consider, as is CMSGEN.

Our Contributions.

– GPAP-S, an open-source GPU sampler built on propagation. 1^{1} Every trajectory that completes yields a model by construction, with no rounding or repair step required (Section 5).

– GPAP, the parallel BCP engine behind it. GPAP propagates up to the order of 10510^{5} partial assignments in a single GPU launch, all against a shared read-only formula, and executes each decide-and-propagate trajectory entirely within one kernel launch (Section 4).

– A lock-free propagation primitive. Each clause stores its state in a single 32-bit word, allowing literal falsification with one atomic instruction.

1^{1} https://github.com/yogevshalmon/gpap

A. Nadel et al.

The returned value immediately indicates whether the clause became unit, and on which literal, or reached a conflict (Section 4.3).

– A general-purpose BCP library. We release GPAP as an open-source library, in the same repository, with C++ and Python interfaces. The same batched-propagation primitive applies wherever a solver evaluates many candidate assignments through propagation, including probing, SAT sweeping, and look-ahead. We hope it serves as a building block for future GPU SAT research beyond this work (Section 4.6).

The remainder of the paper is organized as follows. Section 2 introduces the necessary preliminaries, and Section 3 surveys related work. Section 4 presents GPAP, and Section 5 the sampler built upon it. Section 6 describes the experimental methodology and reports the results, and Section 7 concludes.

References (52)