AFSAT: GPU-Accelerated Fourier SAT Solver
- Accelerated Fourier SAT (AFSAT) is a GPU-accelerated solver that extends prior FourierSAT work by supporting heterogeneous symmetric pseudo-Boolean constraints via a continuous local search kernel.
- It leverages a tailored discrete Fourier transform to compute elementary symmetric polynomials, enhancing numerical stability and throughput through vectorized GPU execution.
- The solver employs projected gradient descent with JAX-based automatic differentiation and array sharding to achieve near-linear scalability while addressing memory and precision challenges.
Searching arXiv for AFSAT and related FourierSAT/FastFourierSAT papers. Accelerated Fourier SAT (AFSAT) is a fully engineered, GPU-accelerated solver for pseudo-Boolean satisfiability problems whose constraints are symmetric. It realizes and extends the FourierSAT/FastFourierSAT line of work by supporting heterogeneous mixtures of symmetric pseudo-Boolean constraints within the same instance, providing a robust continuous local search (CLS) kernel compiled via JAX/XLA with automatic differentiation and vectorization, addressing numerical stability issues through a tailored discrete Fourier transform (DFT) construction, and scaling nearly linearly across multiple accelerators using array sharding (Christopher et al., 4 Jun 2026). In its immediate lineage, FourierSAT introduced a Fourier expansion-based algebraic framework for solving hybrid Boolean constraints (Kyrillidis et al., 2019), and FastFourierSAT supplied a proof-of-concept GPU-oriented realization based on gradient-driven CLS and an FFT-inspired convolution pipeline for elementary symmetric polynomials (ESPs) (Cen et al., 2023). The supplied literature also uses the acronym AFSAT for a distinct quantum-inspired projection-and-decimation solver instantiated by AmplificationSAT (Lanham, 2022).
1. Historical lineage and conceptual positioning
FourierSAT is an incomplete SAT solver based on Fourier analysis of Boolean functions. Its core construction is the sum of closed-form Fourier expansions of clauses, relaxed from to , yielding a differentiable objective suitable for gradient-based search; the framework was designed for systems consisting of different types of constraints, including CNF, XOR, NAE, and cardinality constraints (Kyrillidis et al., 2019).
FastFourierSAT is a highly parallel hybrid SAT solver based on gradient-driven continuous local search. In that work, Accelerated Fourier SAT refers to a CLS framework that accelerates the evaluation and differentiation of Walsh expansions for Boolean constraints by exploiting FFT-inspired convolution and massive GPU parallelism. The concrete realization, FastFourierSAT, computes the dominant quantities—ESPs and their gradients—via an FFT-inspired batched convolution that is vectorized and amenable to GPU execution, achieves the same asymptotic work complexity as the best sequential CLS, and incorporates restart heuristics native to CLS (Cen et al., 2023).
The 2026 AFSAT system is the fully engineered successor in this line. It supports any heterogeneous mixture of symmetric constraint types and lengths within a single problem instance, uses JAX for pure function composition, automatic vectorisation, automatic differentiation, and just-in-time compilation, and emphasizes runtime performance, memory efficiency, and numerical stability (Christopher et al., 4 Jun 2026).
A recurring point of comparison is CDCL. In the FastFourierSAT formulation, CDCL solvers perform discrete, sequential search with conflict analysis and clause learning; they excel on CNF instances but are hard to exploit for fine-grained data-parallel acceleration. By contrast, FourierSAT, FastFourierSAT, and AFSAT move the computational bottleneck to evaluating and differentiating polynomials, described as structured linear algebra that maps naturally to GPUs (Cen et al., 2023).
2. Problem class, representations, and optimization objective
AFSAT focuses on symmetric pseudo-Boolean constraints. Formally, let index a subset of variables . A constraint over is symmetric if there exists a function such that
Under the Walsh-Fourier embedding, variables are mapped to , and symmetricity equivalently means that depends only on the Hamming weight, or equivalently the sum of literals, of the subset (Christopher et al., 4 Jun 2026).
AFSAT accepts hybrid instances via an extended DIMACS-like input grammar and internally normalizes CARD inequalities to 0 or 1 forms. Its parser performs automatic simplifications, including unit propagation, trivial elimination of constraints like CARD-0, EO units, reductions such as CARD-12CNF and EK-13EO, and detection of conflicting units (Christopher et al., 4 Jun 2026).
| Constraint type | Form |
|---|---|
| CNF disjunction (OR) | 4 |
| At-most-one (AMO) | 5 |
| Exactly-one (EO) | 6 |
| Exactly-k (EK) | 7 |
| Not-all-equal (NAE) | 8 |
| XOR (odd parity) | 9 |
| Cardinality-k threshold (CARD) | 0, plus 1 variants |
The continuous formulation is a Walsh-Fourier relaxation. For a Boolean formula 2 decomposed into symmetric constraints 3 over 4, the Fourier expansion is
5
and AFSAT minimizes
6
Satisfaction corresponds to 7, since each satisfied constraint contributes 8; violation increases the energy above 9 per constraint. The solver also computes
0
No extra penalty terms or smoothing are required because the Walsh-Fourier expansion is multi-linear and differentiable on 1; projection enforces bounds, and optional partial assignments are handled via gradient masking (Christopher et al., 4 Jun 2026).
In the FastFourierSAT precursor, the same basic idea appears in weighted form. If 2 has constraints 3 and each constraint 4 has Walsh expansion 5, then
6
There, 7 is satisfiable iff
8
and if a minimizer 9 lies on 0, 1 encodes a satisfying assignment (Cen et al., 2023).
3. Walsh expansions, elementary symmetric polynomials, and DFT evaluation
For symmetric constraints, AFSAT exploits the fact that the Walsh-Fourier evaluation can be written in terms of elementary symmetric polynomials. For a symmetric constraint over 2 literals with continuous values 3,
4
where 5 are the Fourier coefficients grouped by cardinality 6 and 7 are ESPs, the sum over all 8-sized products of distinct variables (Christopher et al., 4 Jun 2026).
The generating-polynomial viewpoint is central in the FastFourierSAT derivation:
9
This identifies the ESP vector with the coefficients of a product polynomial and makes convolution the natural computational primitive (Cen et al., 2023).
AFSAT computes ESPs in the frequency domain using a tailored DFT. Let 0 be the 1-dimensional DFT matrix with entries
2
and let 3 be the conjugate transpose. For each variable 4, form the padded sequence 5. Then
6
which yields the compact product form
7
Constraint evaluation then becomes
8
This DFT-based construction is the basis of both the FastFourierSAT proof-of-concept and the engineered AFSAT solver (Christopher et al., 4 Jun 2026).
FastFourierSAT states the complexity in clause-local terms. For a clause of length 9, outer addition costs 0 additions, row-wise reduce-product costs 1 multiplications, and the final contraction costs 2 flops, for total sequential work 3, matching GradSAT’s 4 and improving on FourierSAT’s 5 explicit gradient. Under unlimited resources, the balanced tree structure gives ideal parallel time 6 (Cen et al., 2023).
The same structure also explains a special case of practical importance. For XOR constraints, the Walsh spectrum is degenerate, and algebraic simplifications eliminate the transforms entirely, reducing work to 7 and avoiding complex arithmetic (Cen et al., 2023).
4. Gradients, projected descent, and execution model
AFSAT uses Projected Gradient Descent with line search and projection to 8 after each step. A single PGD iteration computes a step length 9 via a lineSearch procedure and updates
0
Stopping occurs when either the step size falls below a threshold, 1, a satisfying assignment is found with 2, or a max-iteration limit 3 is reached. AFSAT runs PGD in parallel across a batch 4 of candidate assignments; converged candidates idle until the batch finishes (Christopher et al., 4 Jun 2026).
The gradient can be obtained analytically in a form conforming to the DFT evaluation. For a literal index 5 in a clause,
6
hence
7
AFSAT nevertheless uses JAX automatic differentiation end-to-end, while retaining the analytic form as a structural explanation of the computation (Christopher et al., 4 Jun 2026).
FastFourierSAT made the same derivative structure explicit through the ESP identity
8
so that for a symmetric clause
9
That paper also described restart heuristics native to CLS. Weighting uses an ERWA update,
0
with 1 and 2 derived from normalized unsatisfaction counts across parallel tasks; rephasing alternates among Original, Flipped, and Random phases, with 3 for SAT-like tasks and 4 for optimization tasks (Cen et al., 2023).
In systems terms, the two implementations occupy different points in the design space. FastFourierSAT describes custom kernels, shared-memory staging of 5, warp-level reductions, and clause bucketing by length. AFSAT instead emphasizes pure function composition, JIT compilation with XLA, automatic vectorization over batch candidates, automatic differentiation, and array sharding across multiple GPUs in a compute-follows-data SPMD regime (Cen et al., 2023, Christopher et al., 4 Jun 2026).
5. Numerical stability, memory behavior, and throughput engineering
AFSAT’s 2026 contribution is not only algorithmic generalization but also numerical engineering. The product terms
6
can reach magnitude approximately 7 when 8 and 9, or vanish like 0 when 1. The supplied description states that this stresses IEEE-754 FP64 when 2, yields catastrophic cancellation in the inverse DFT and incorrect energies, and can produce exploding or vanishing gradients (Christopher et al., 4 Jun 2026).
AFSAT addresses these issues through a tailored DFT for conjugate symmetry and precision. The forward and inverse DFT matrices are constructed explicitly to guarantee exact conjugate symmetry between paired terms; cumulative error from repeated exponentiation that violates conjugate pairing is avoided; combinatorial Fourier-coefficient terms are computed in arbitrary-precision integer arithmetic with divisions and float conversion deferred to the last stage; and algebraic symmetry is mirrored explicitly rather than computing both halves independently. The implementation uses FP64, and the crucial improvements are attributed to the symmetry-preserving DFT matrix construction, avoiding repeated exponentiation error, and deferred floating-point operations (Christopher et al., 4 Jun 2026).
Memory efficiency and throughput are treated as first-order design constraints. AFSAT stores only essential arrays: precomputed small DFT matrices per clause length, literal index lists, and Fourier coefficient vectors. Peak throughput occurs at batch sizes that consume approximately 3 of GPU memory, correlated to roughly twice the device’s cache size. Larger batches saturate memory, causing cache thrashing and latency that reduce completed descents per unit time; beyond the peak, throughput decays roughly logarithmically with memory consumption (Christopher et al., 4 Jun 2026).
The proof-of-concept FastFourierSAT presents the same issue in a lower-level form. It recommends contiguous clause literals in global memory, contiguous storage of precomputed transformed coefficients, structure-of-arrays for coalesced reads across clauses, shared-memory storage for per-clause 4, and uniform clause lengths within a batch or padding to the next power-of-two to reduce divergence (Cen et al., 2023).
Taken together, these engineering choices indicate that AFSAT’s practical contribution is not reducible to a single transform identity. The supplied evidence points instead to a solver architecture in which numerical conditioning, cache behavior, vectorization strategy, and batching policy are tightly coupled (Christopher et al., 4 Jun 2026).
6. Empirical results, limitations, and adjacent usages of the acronym
FastFourierSAT reports that gradient computation is accelerated by over 5 versus CPU CLS prototypes on large instances. Specific RQ1 numbers are approximately 6 for xor3, approximately 7 for card3, and approximately 8 on small instances where preprocessing dominates. On the benchmark suites summarized in the supplied text, FastFourierSAT solved all cardinality instances, solved all parity-learning instances via diversified multi-start and GPU acceleration, achieved average scores near 9 on MSE’19 MaxCut, and on large planted partition graphs achieved best solutions for 00 instances versus 01 for the virtual best solver without CLS (Cen et al., 2023).
AFSAT replicates FastFourierSAT’s random cardinality and XOR-based parity learning benchmarks and also runs mixed heterogeneous pseudo-Boolean instances. It achieves equal or better cumulative solution times than FastFourierSAT, worst-case parity with universally lower baseline times due to improved preprocessing and kernel compilation or optimization, substantially reduced GPU memory use via compact data structures and tailored DFT matrices, and near-linear throughput scaling with GPU count through JAX array sharding. The experiments were run on NCI’s Gadi supercomputer, using the Volta partition with NVIDIA Tesla V100 GPUs (Christopher et al., 4 Jun 2026).
The method remains incomplete. The supplied description states that CLS cannot certify unsatisfiability; AFSAT therefore functions naturally as a MaxSAT solver, reporting unsatisfied-constraint counts and best-found assignments. It also identifies a practical ceiling around 02, with constraints of length 03 often exhibiting degeneracy on FP64 GPUs. Long constraints should be decomposed into shorter equivalents where possible; the multi-linear objective hosts many saddle points; first-order PGD can stall; success probability and throughput are materially affected by step-size schedules and batch sizes; and very long clauses in a heterogeneous mix can dominate memory layout and suppress throughput (Christopher et al., 4 Jun 2026).
Several misconceptions are explicitly addressed by the supplied literature. In the FastFourierSAT paper, “hybrid” refers to combining continuous optimization with history-aware heuristics and a multi-start portfolio on GPUs, not to coupling with CDCL, and hybridization with CDCL is discussed only as a future direction. The same source notes that on CNF-heavy, propagation-driven industrial instances, CDCL or portfolio approaches may still outperform CLS (Cen et al., 2023).
A separate ambiguity concerns the acronym itself. The supplied description attached to “Quantum-Inspired Approximations to Constraint Satisfaction Problems” uses AFSAT for a projection-and-decimation SAT solver instantiated by AmplificationSAT. That method constructs low-complexity approximations 04 to the oracle 05 via orthogonal projection,
06
refines the approximation by enlarging the column space, and retrieves assignments through bias-guided decimation using 07. This is a distinct algorithmic line from the GPU DFT-based CLS solver that now predominates under the name Accelerated Fourier SAT (Lanham, 2022).