FourierCSP: Continuous Optimization for Finite-Domain CSPs
- FourierCSP is a continuous optimization framework for finite-domain CSPs that extends local search from Boolean SAT to more general constraints.
- It uses a generalized Walsh-Fourier expansion via an indicator-product basis to transform constraints into compact multilinear polynomials.
- The framework employs circuit-output probability with MDD-based evaluation and projected gradient ascent to efficiently optimize without extra Boolean encodings.
Searching arXiv for the named method and closely related finite-domain/Fourier CSP work. FourierCSP is a continuous optimization framework for finite-domain constraint satisfaction problems (CSPs) that extends continuous local search from Boolean satisfiability to general CSP with finite-domain variables and expressive constraints. It presents a generalized Walsh-Fourier transform for CSP, transforms constraints to compact multilinear polynomials, evaluates the objective and its derivatives via circuit-output probability, and uses projected gradient optimization over products of simplices. The framework is intended to avoid auxiliary variables and memory-intensive encodings associated with Booleanization and CNF conversion, while remaining directly applicable to constraints such as inequalities, disequalities, modulo constraints, and logical combinations of such predicates (Cen et al., 6 Oct 2025).
1. Problem class and motivation
FourierCSP studies finite-domain CSP instances consisting of variables , finite domains , and constraints , where each constraint is defined on some scope . The instance formula is
The target is a satisfying assignment of every to a value in . The setting strictly generalizes Boolean SAT: SAT uses domain and Boolean constraints, whereas FourierCSP permits arbitrary finite domains and arbitrary predicates over those values (Cen et al., 6 Oct 2025).
The stated motivation is twofold. First, recent continuous local search solvers such as UniSAT, FourierSAT, GradSAT, and FastFourierSAT showed that smooth continuous objectives can be competitive on some SAT instances. Second, many practical CSPs are not naturally Boolean, so SAT-based workflows require Booleanization and often CNF encoding. The paper emphasizes that this can cause severe blowup in the number of variables, the number of clauses, and the memory footprint; its largest Booleanized/CNF-encoded benchmark exceeds 160 million variables and 710 million clauses, producing a text CNF of roughly 16 GB (Cen et al., 6 Oct 2025).
The framework is positioned against several established paradigms. SAT/CDCL is effective for Boolean reasoning but is natural only for CNF or Booleanized formulations. ILP can remain compact after linearization but often introduces auxiliary variables and has weaker Boolean reasoning. CP/CP-SAT is more expressive, yet can still require auxiliary or channeling variables and may struggle on some non-linear or modulo constraints. FourierCSP is proposed as a direct finite-domain alternative based on continuous optimization rather than Boolean encoding (Cen et al., 6 Oct 2025).
2. Finite-domain “Fourier” representation
The core representational step is a finite-domain analogue of Walsh-Fourier expansion built from indicator bases. A constraint is written as a function
with 0 iff the assignment 1 satisfies the constraint. The basis functions are
2
where 3 and 4 if 5 and 6 otherwise. Hence 7 is the indicator of the full assignment 8. The expansion theorem used in the paper is
9
with coefficients
0
The paper refers to this as a generalized Walsh-Fourier expansion over finite-domain variables (Cen et al., 6 Oct 2025).
A common misunderstanding is to equate this construction with ordinary finite-group Fourier analysis. That is not the formalism adopted here. On the Boolean cube, standard character-based Fourier analysis uses Walsh characters 1, more generally characters 2 on finite abelian groups diagonalize convolution operators (Zeman, 2019). FourierCSP instead uses an indicator-product basis. The paper states explicitly that this is not the usual character-based Fourier analysis over finite groups; it is an indicator-product basis expansion (Cen et al., 6 Oct 2025).
This choice has a direct algorithmic consequence. A constraint becomes a multilinear polynomial in relaxed assignment variables without introducing auxiliary variables merely to encode finite-domain semantics. The representation is exact rather than heuristic: it computes exact satisfaction probabilities under the relaxation introduced in the next section (Cen et al., 6 Oct 2025).
3. Continuous relaxation and satisfiability reduction
Because the indicator basis is non-differentiable, FourierCSP relaxes each finite-domain variable 3 to a probability vector over its domain: 4 The global feasible region is the product of simplices
5
Here 6 is interpreted as the probability that 7 takes value 8 (Cen et al., 6 Oct 2025).
The relaxation is tied to a randomized rounding map 9 defined by
0
Variables are rounded independently, inducing the product distribution
1
If 2 denotes the number of satisfied constraints, then the continuous objective is its expectation under 3: 4 This is the key multilinear polynomial objective of the framework (Cen et al., 6 Oct 2025).
The central reduction theorem is
5
Thus the CSP is satisfiable exactly when the maximum expected number of satisfied constraints equals the total number of constraints. The reduction preserves satisfiability exactly, not approximately (Cen et al., 6 Oct 2025).
The paper illustrates the semantics with compact closed forms for common predicates. For graph coloring,
6
For the scheduling constraint 7,
8
is the continuous score. For graph-coloring instances with hashing queries,
9
These examples show how disequalities, disjunctions, and parity-style constraints are mapped directly to multilinear or product-form expressions over simplex coordinates (Cen et al., 6 Oct 2025).
4. Circuit-output probability and MDD-based computation
The paper emphasizes that a naive expansion of the multilinear objective can contain at most exponentially many terms, and that explicit evaluation or differentiation is 0-hard in general. FourierCSP therefore replaces explicit polynomial expansion by circuit-output probability (COP) (Cen et al., 6 Oct 2025).
For a single constraint 1, COP is
2
This is exactly 3. The full objective becomes
4
FourierCSP therefore optimizes the expected number of satisfied constraints through a sum of COP terms (Cen et al., 6 Oct 2025).
Efficient computation is obtained by representing each constraint as a multi-valued decision diagram (MDD). The MDD is treated as a probabilistic computation graph induced by the product distribution over variable assignments. With a compact MDD 5, COP can be evaluated in time
6
The practical efficiency of the method is therefore tied to the structured size of the decision diagrams rather than to the full assignment space (Cen et al., 6 Oct 2025).
The top-down dynamic program initializes 7, others 8, and propagates
9
The bottom-up dynamic program initializes 0, 1, and propagates
2
The paper states that 3 in the top-down pass and 4 in the bottom-up pass. After both traversals, the partial derivative is
5
For the full objective,
6
The implementation note in the paper is that autodiff may suffice in practice, but the explicit message-passing formulas provide the analytical structure of gradient computation (Cen et al., 6 Oct 2025).
5. Projected gradient optimization and theoretical guarantees
The optimization problem is
7
with 8 the product of simplices. Since unconstrained gradient steps do not preserve simplex feasibility, FourierCSP uses projected gradient ascent: 9
0
The projection operator is
1
where 2 is 3 on 4 and 5 otherwise. Because 6 is a product of simplices, projection decomposes into independent simplex projections (Cen et al., 6 Oct 2025).
The projected gradient mapping is defined as
7
The paper proves a monotonic ascent lemma for multilinear 8: if
9
where
0
then for a projected gradient step 1,
2
It also uses the Lipschitz bound
3
and
4
to derive convergence to an 5-projected-critical point in
6
iterations when 7 (Cen et al., 6 Oct 2025).
A structural theorem states that no interior point 8 can be a local maximum of 9; maxima are attained only on the boundary 0. This matters because boundary points correspond to degenerate or nearly degenerate simplex coordinates and are therefore closer to deterministic assignments. The paper’s decoding mechanism remains randomized rounding,
1
followed by evaluation of the resulting discrete assignment. The framework is consequently an incomplete solver: it can return a satisfying assignment when one is found, but it does not certify unsatisfiability or global optimality in the manner of complete SAT, ILP, or CP methods (Cen et al., 6 Oct 2025).
6. Empirical performance, scope, and limitations
The empirical study covers two benchmark families. The constraint-satisfaction suite is task scheduling with 2, 3, 4, and 10 random instances per setting. The constraint-optimization suite is graph coloring with hashing queries, using 5, 6, 10 random instances per setting, and 7 modulo-2 constraints per instance. Experiments were run on dual AMD EPYC 9654 CPUs with an NVIDIA H100 GPU and a 1000-second timeout (Cen et al., 6 Oct 2025).
| Benchmark | FourierCSP result | Comparison reported |
|---|---|---|
| Task scheduling | Solves all 150 instances | ParaILP 60, CP-SAT 89, Gurobi-ILP 60, LinPB 30 |
| Task scheduling PAR-2 | Best reported | 8 vs CP-SAT, 9 vs Gurobi-ILP, 0 vs LinPB |
| Graph coloring + hashing | Relative score 0.98; best on 84/160 | FourierMaxSAT 0.94, LinPB 0.16, ParaILP no valid solutions |
The paper also reports that FourierSAT fails to solve any instances obtained by Booleanizing the scheduling and graph-coloring benchmarks, which is used as evidence that Boolean-only continuous local search does not transfer automatically to general CSP structure (Cen et al., 6 Oct 2025).
The reported strengths are specific. FourierCSP is most useful when variables are naturally finite-domain, constraints admit compact MDD representations, structural regularity enables GPU parallelism, and modulo or parity predicates are present. The paper repeatedly suggests that direct finite-domain modeling, compact COP evaluation, and native handling of modulo constraints are decisive in its best results. A plausible implication is that the framework is particularly well aligned with repetitive, structured combinatorial models rather than with arbitrary heterogeneous CSPs (Cen et al., 6 Oct 2025).
Its limitations are equally explicit. The solver is incomplete. Practical efficiency depends on compact decision diagrams, even though COP is 1-hard in general. The benchmark families are structurally regular, and the paper notes that Fourier-based continuous local search performs best when constraints have similar structural patterns, which supports strong GPU utilization. Practical optimizer choices such as restart schedules, step-size adaptation, and advanced rounding heuristics are not deeply developed. The conclusion identifies generalization beyond such structural regularity as future work (Cen et al., 6 Oct 2025).
FourierCSP therefore occupies a specific place in the broader landscape. It is neither a conventional finite-group Fourier method nor a standard SAT encoding pipeline. It is a continuous optimization framework over products of simplices whose “Fourier” component is an indicator-product expansion of finite-domain predicates, whose computational core is COP on MDDs, and whose optimization engine is projected gradient ascent with theorem-level guarantees. Within that design space, its main significance is to extend the continuous local search paradigm from Boolean SAT to general finite-domain CSPs while avoiding the memory-intensive encodings that often dominate Booleanization-based workflows (Cen et al., 6 Oct 2025).