FourierSAT: Algebraic SAT and Hybrid Solver
- FourierSAT is an algebraic framework that transforms Boolean and hybrid constraints into concise multilinear polynomial forms using Walsh–Fourier expansion.
- It converts the SAT problem into continuous optimization over the cube [-1,1]^n, enabling gradient-based methods like projected gradient descent to find feasible solutions.
- Empirical results show FourierSAT is robust on hybrid constraints—such as XOR, cardinality, and NAE—yet lacks UNSAT certification, complementing traditional CNF solvers.
FourierSAT is an algebraic framework for Boolean satisfiability (SAT) and hybrid constraint solving that encodes Boolean and cardinality constraints as polynomials via the Walsh–Fourier expansion, reducing SAT to continuous optimization over a high-dimensional cube. Unlike traditional SAT approaches tied to conjunctive normal form (CNF), FourierSAT accommodates rich, non-CNF constraint types—such as parity (XOR), cardinality (CARD), and not-all-equal (NAE)—with direct and closed-form polynomial encodings. This formulation enables the application of gradient-based optimization (typically projected gradient descent, PGD), facilitating an incomplete but highly flexible and empirically robust approach for solving hybrid Boolean constraint problems (Kyrillidis et al., 2019).
1. Walsh–Fourier Expansion and Constraint Encoding
The core mathematical device in FourierSAT is the Walsh–Fourier transform of Boolean functions. For , the unique multilinear expansion is
where the coefficients are
For SAT, each constraint type—CNF, XOR, CARD, NAE—admits a compact Fourier expansion. For example:
- CNF clause :
- XOR clause :
- Cardinality constraint :
These closed-form expressions yield a single aggregate polynomial for the whole problem by summing over all constraint polynomials: The constraint is satisfied if and only if attains its global minimum value on (Kyrillidis et al., 2019).
2. Continuous Relaxation and Optimization Landscape
FourierSAT converts the Boolean SAT search into a continuous optimization problem over the cube . The main theoretical result is:
- is satisfiable if and only if , and any minimizer can be rounded (coordinate-wise) to a Boolean assignment without increasing .
- The gradient and Hessian of are efficiently computable because polynomials are of bounded degree.
Key properties:
- All nonconstant interior critical points are saddles; all local minima correspond to “frozen” feasible Boolean assignments on the boundary (i.e., ) (Kyrillidis et al., 2019).
- The expected number of satisfied clauses by a randomized rounding of is directly determined by :
This quantitative correspondence links the objective's descent to solution quality.
3. Projected Gradient Descent and Solver Architecture
FourierSAT’s main algorithm is projected gradient descent (PGD) with subroutines for escaping saddle points:
- At each step, compute and project coordinate-wise onto .
- When the norm of the "gradient mapping" is small, perform saddle-point detection:
- If is feasible (integer on all active coordinates), check second-order conditions or try to escape by following a direction of negative curvature.
- If not feasible, perturb along a direction that decreases .
PGD has the following theoretical properties:
- is –Lipschitz and its gradient is –Lipschitz.
- Convergence to an –critical point is achieved in iterations.
- Hyperparameters: step size , tolerance , random restarts for robustness, and clause weighting to avoid vanishing gradients on long clauses.
These features guarantee robust descent, principled escaping of flat regions, and reliable rounding to feasible solutions (Kyrillidis et al., 2019).
4. Extensions, Variants, and FFT–SAT Connections
The algebraic framework extends naturally to hybrid SAT settings beyond CNF, including parity formulas, global cardinalities, and not-all-equal constraints. Later research has built upon FourierSAT with several notable extensions:
- FastFourierSAT accelerates the critical ESP-based gradient calculations using FFT-inspired DFT convolution and massive GPU parallelization, reducing the gradient step for symmetric polynomial clauses from to sequentially, and parallel depth. This unlocks effective parallel hybrid-SAT solving for very large arities (Cen et al., 2023).
- The Fourier analysis approach has also been adopted for quantum-inspired SAT solvers (AmplificationSAT) based on sparse low-degree Fourier approximations, iterative projection, and decimation-based bias sampling (Lanham, 2022).
- The method generalizes to non-Boolean, finite-domain CSPs (e.g., FourierCSP) via Walsh–Fourier expansions of indicator functions for arbitrary discrete variables, enabling multilinear relaxation and PGD on a larger class of CSPs (Cen et al., 6 Oct 2025).
- A distinct field of application relates to SAT-based FFT algorithm discovery, termed “FourierSAT” in the FFT/DFT literature, where SAT/SMT is used to search for FFT flowgraph parameters achieving minimal FLOP counts. The name overlap is coincidental but reflects similar algebraic/Boolean-solver technology (Haynal et al., 2011).
5. Empirical Behavior and Benchmark Results
FourierSAT and its derivatives have been benchmarked on diverse problem types:
- On random hybrid constraints (mixtures of CNF, XOR, CARD): FourierSAT achieves solve rates substantially above local search and is competitive or superior to CryptoMinisat (for XOR) and MiniCARD/MonoSAT (for cardinality). For instance, on approximate vertex cover problems (random cubic graphs), FourierSAT solved 472 out of 500 instances, outperforming MonoSAT (420/500) and MiniCARD (261/500).
- Performance on parity learning with error: FourierSAT solved all 300 tested instances (error rate 25%), versus 79/300 by WalkSAT.
- On large random hybrid formulas: FourierSAT solved 2957/4800, best WalkSAT variant solved 2452, and CryptoMinisat ≈3600 (Kyrillidis et al., 2019).
- In highly symmetric or XOR-rich cases (especially large-k or global constraints), FastFourierSAT demonstrated – faster clause-gradient steps and superior scalability versus discrete or sequential CLS solvers (Cen et al., 2023).
- On pure random 3-SAT or industrial SATLIB/competition CNFs, traditional CDCL solvers remain dominant; FourierSAT lags by an order of magnitude, highlighting its complementary profile: strong on global/symmetric/hybrid constraints, limited on asymmetric and proof-reduction–intensive instances (Cen et al., 6 Oct 2025).
6. Theoretical Limitations and Prospects
FourierSAT is incomplete: it cannot certify unsatisfiability; it only finds solutions if one exists. This limitation suggests directions such as algebraic certificate integration (e.g., via Nullstellensatz or Gröbner bases). The reliance on first-order methods means that high-dimensional saddles can induce stagnation, though stochastic restarts and noise can partially alleviate this. Per-iteration complexity for very long clauses may be mitigated with low-degree truncation/approximation or by using FFT-based convolution as in FastFourierSAT (Kyrillidis et al., 2019Cen et al., 2023).
Despite these caveats, the algebraic/continuous perspective introduced by FourierSAT broadens the reach of efficient SAT methods into hybrid and nonstandard constraint domains not tractable via traditional CNF search paradigms.
Summary Table: Key Properties of FourierSAT
| Property | Description | Source |
|---|---|---|
| Clause encoding | Explicit multilinear Walsh–Fourier expansions for CNF/XOR/CARD | (Kyrillidis et al., 2019) |
| Optimization domain | Continuous box | (Kyrillidis et al., 2019) |
| Main algorithm | Projected gradient descent + saddle escape/feasibility subroutines | (Kyrillidis et al., 2019) |
| Critical point landscape | Interior points are saddles; minima on boundary correspond to solutions | (Kyrillidis et al., 2019) |
| Empirical strengths | Robust on hybrid constraints, global/cardinality/XOR, scalable | (Kyrillidis et al., 2019) |
| Limitations | Incomplete (no UNSAT certificate), weaker on industrial CNF | (Kyrillidis et al., 2019) |
For implementation, the explicit multilinear forms, gradient and projection steps, and convergence criteria detailed above suffice to construct a functional and theoretically justified FourierSAT solver; further, FFT-based parallelizations extend its reach to large-scale instances and hybrid-SAT/CSP models (Kyrillidis et al., 2019Cen et al., 2023Cen et al., 6 Oct 2025).