On Continuous Optimization for Constraint Satisfaction Problems
Yunuo Cen, Zixuan Wang, Jintao Zhang, Zhiwei Zhang, Xuanyao Fong
TL;DR
This work extends continuous local search from Boolean SAT to general finite-domain CSPs by introducing FourierCSP, which uses an orthonormal Walsh-Fourier basis to represent constraints and a randomized rounding scheme that yields a differentiable objective via circuit-output probability. Constraints are evaluated efficiently through multi-valued decision diagrams (MDDs), and a projected gradient method with convergence guarantees guides the search within the simplex product space, enabling GPU-accelerated optimization. Empirical results on task scheduling and graph coloring-with-hashing benchmarks show FourierCSP solving large, non-Boolean CSPs more effectively than several complete solvers in certain regimes, and significantly outperforming prior CLS approaches that required Booleanization. The work broadens the applicability of CLS to CSP and suggests a viable, scalable path for solving complex finite-domain problems with continuous optimization techniques and modern parallel hardware.
Abstract
Constraint satisfaction problems (CSPs) are fundamental in mathematics, physics, and theoretical computer science. While conflict-driven clause learning Boolean Satisfiability (SAT) solvers have achieved remarkable success and become the mainstream approach for Boolean satisfiability, recent advances show that modern continuous local search (CLS) solvers can achieve highly competitive results on certain classes of SAT problems. Motivated by these advances, we extend the CLS framework from Boolean SAT to general CSP with finite-domain variables and expressive constraints. We present FourierCSP, a continuous optimization framework that generalizes the Walsh-Fourier transform to CSP, allowing for transforming versatile constraints to compact multilinear polynomials, thereby avoiding the need for auxiliary variables and memory-intensive encodings. Our approach leverages efficient evaluation and differentiation of the objective via circuit-output probability and employs a projected gradient optimization method with theoretical guarantees. Empirical results on benchmark suites demonstrate that FourierCSP is scalable and competitive, significantly broadening the class of problems that can be efficiently solved by CLS techniques.
