Abstract: We introduce an efficient message passing scheme for solving Constraint Satisfaction Problems (CSPs), which uses stochastic perturbation of Belief Propagation (BP) and Survey Propagation (SP) messages to bypass decimation and directly produce a single satisfying assignment. Our first CSP solver, called Perturbed Belief Propagation, smoothly interpolates two well-known inference procedures; it starts as BP and ends as a Gibbs sampler, which produces a single sample from the set of solutions. Moreover we apply a similar perturbation scheme to SP to produce another CSP solver, Perturbed Survey Propagation. Experimental results on random and real-world CSPs show that Perturbed BP is often more successful and at the same time tens to hundreds of times more efficient than standard BP guided decimation. Perturbed BP also compares favorably with state-of-the-art SP-guided decimation, which has a computational complexity that generally scales exponentially worse than our method (wrt the cardinality of variable domains and constraints). Furthermore, our experiments with random satisfiability and coloring problems demonstrate that Perturbed SP can outperform SP-guided decimation, making it the best incomplete random CSP-solver in difficult regimes.
Introduction
Constraint Satisfaction Problems (CSPs), such as Sudoku, graph coloring, and complex scheduling, are fundamental to combinatorial optimization. Solving these problems efficiently is a significant challenge, particularly as they approach phase transitions where the solution space becomes highly structured or "glassy." Traditional approaches using Probabilistic Graphical Models (PGMs) treat the solution set as a probability distribution and employ message-passing algorithms like Belief Propagation (BP) or Survey Propagation (SP) to estimate marginal probabilities.
The Limitations of Decimation
To extract a concrete solution from these marginals, solvers typically use a process called decimation. This involves iteratively fixing the most biased variable to its most likely value and re-running the inference algorithm. Decimation suffers from two primary drawbacks:
- Computational Complexity: Re-running inference after every variable assignment is extremely slow, typically requiring $O(N)$ full inference cycles.
- Brittleness: Hard assignments are difficult to undo. A single incorrect choice early in the process can lead the solver into an unsatisfiable region of the state space with no mechanism for backtracking.
Problem Representation
CSPs are naturally represented as factor graphs, where variable nodes are connected to constraint nodes (factors). Figure 1(b) shows a factor graph for three variables, while Figure 1(a) visualizes the corresponding solution space as a cube where vertices represent assignments.
Perturbed Message Passing
The authors propose a "perturbation" scheme that replaces decimation with a continuous, stochastic update process. Instead of hard-fixing variables, the algorithm updates all variable messages simultaneously by blending two operators:
- The BP/SP Operator ($\Phi$): Standard logic-based message passing for global consistency.
- The Gibbs Sampling (GS) Operator ($\Psi$): A stochastic update based on local beliefs.
These are combined via a time-varying parameter $\gamma$: $$\Gamma = \gamma\Psi + (1-\gamma)\Phi$$
As the search progresses, $\gamma$ is linearly increased from 0 to 1. This allows the system to start by exploring the global solution landscape (acting like BP) and gradually "collapse" into a single, concrete satisfying assignment (acting like a Gibbs sampler). This approach allows for "soft commitments," where variables can self-correct their states as the system converges, avoiding the pitfalls of decimation.
Experimental Evaluation
The researchers evaluated Perturbed BP and Perturbed SP on various benchmarks, including the XCSP repository, random k-SAT, and q-COL problems.
- Efficiency: Perturbed BP demonstrated massive speedups, often being hundreds of times faster than BP-guided decimation. In some instances, it reduced the required iterations from over 40,000 to just 133.
- Success Rate: On difficult random 3-SAT and 3-COL instances near the phase transition, Perturbed SP consistently outperformed standard SP-guided decimation.
- Scalability: The method scales better with variable domain size. For example, Perturbed BP successfully solved 9-Coloring problems where SP-based methods became computationally impractical due to exponential message size growth.
Conclusion
Perturbed Message Passing offers a significant advancement in CSP solving. By bypassing the decimation bottleneck and allowing for soft, self-correcting assignments, it provides a solver that is both faster and more robust than traditional state-of-the-art methods. While the method is incomplete (it cannot prove unsatisfiability), its performance on hard benchmark and random instances makes it a powerful tool for practical combinatorial optimization.
Summary updated