Perturbed message passing for constraint satisfaction problems

Siamak Ravanbakhsh, Russell Greiner

Constraint Satisfaction Problems (CSPs)—like Sudoku, map coloring, or complex scheduling—are the bread and butter of combinatorial optimization. While we have powerful tools to solve them, the most effective methods often struggle with a "speed vs. accuracy" trade-off when the problems get really hard.

A paper by Siamak Ravanbakhsh and Russell Greiner introduces a clever way to bypass the slowest part of traditional solvers. By "perturbing" standard message-passing algorithms with a dash of randomness, they’ve created a solver that is not only more successful but also orders of magnitude faster.

TL;DR

The authors introduce Perturbed Message Passing, a scheme that blends traditional inference (Belief Propagation) with stochastic sampling (Gibbs Sampling). By smoothly transitioning from global probabilities to a single concrete solution, they eliminate the need for the computationally expensive "decimation" process, resulting in solvers that are up to 100x faster and more robust on difficult problems.

What Problem Does This Paper Address?

To solve a CSP using Probabilistic Graphical Models, we usually treat the set of all possible solutions as a probability distribution. Standard algorithms like Belief Propagation (BP) or Survey Propagation (SP) estimate the "marginal" probability—the likelihood that a specific variable (like a Sudoku square) takes a specific value.

The traditional way to actually find a solution is called decimation:

  1. Run BP/SP to find the most "biased" variable.
  2. Fix that variable to its most likely value.
  3. Simplify the problem and repeat until all variables are fixed.

This is problematic for two reasons. First, it’s slow; you have to re-run the entire inference process hundreds or thousands of times. Second, it’s brittle; if the algorithm makes one wrong "fix" early on, it can lead to a dead-end with no easy way to backtrack.

Methods

The authors propose a "perturbation" scheme that replaces decimation entirely. Instead of fixing variables one by one, they update all variable "messages" simultaneously using a combination of two operators:

  1. The BP/SP Operator ($\Phi$): This represents the standard logic-based message passing that looks for global consistency.
  2. The Gibbs Sampling (GS) Operator ($\Psi$): This represents a stochastic "guess" based on current local beliefs.

They combine these into a single update rule: $$\Gamma = \gamma\Psi + (1-\gamma)\Phi$$

The "magic" is in the parameter $\gamma$. At the start of the search, $\gamma$ is 0, meaning the algorithm acts like pure Belief Propagation, exploring the global landscape of solutions. As the iterations progress, $\gamma$ is linearly increased to 1. By the end, the algorithm has smoothly "collapsed" from a cloud of probabilities into a single, concrete satisfying assignment.

The authors applied this logic to create two new solvers: Perturbed BP and Perturbed SP.

Datasets

The researchers evaluated their methods on a broad range of challenges:

  • Benchmark CSPs: Instances from the XCSP repository, including geometric problems, graph coloring (q-COL), and scheduling (Job Shop).
  • Random CSPs: Large-scale random k-SAT (Satisfiability) and q-COL (Coloring) problems. These are specifically used to test algorithms near the "phase transition"—the point where a problem moves from being easy to solve to being nearly impossible.

Key Insights and Ideas

  • Bypassing the Bottleneck: By updating all variables at once and slowly "nudging" them toward a solution, the authors eliminate the $O(N \log N)$ overhead of decimation.
  • Soft Commitments: Unlike decimation, which makes "hard" assignments that are difficult to undo, Perturbed BP allows variables to remain in a state of flux until the very end. This allows the system to "self-correct" as it converges.
  • Breaking Correlations: In hard random CSPs, variables become highly correlated (the "clustering" phase). The authors argue that their stochastic perturbation helps break these long-range correlations, allowing BP to work in regimes where it usually fails.
  • SP Integration: Survey Propagation is the gold standard for physics-inspired CSP solving, but it's mathematically complex. Showing that the perturbation trick works for SP as well as BP provides a powerful new tool for the most difficult "glassy" problems.

Key Results

  • Massive Speedups: In benchmark tests, Perturbed BP was hundreds of times more efficient than BP-guided decimation. For example, while BP-decimation might require 40,000+ iterations to solve an instance, Perturbed BP often finished in just 133.
  • Higher Success Rates: On random 3-SAT and 3-COL problems, Perturbed SP consistently outperformed standard SP-guided decimation, especially as the problems approached the unsatisfiability threshold.
  • Scalability: Perturbed BP successfully solved 9-Coloring problems where SP-based methods became computationally impractical due to the exponential growth of message sizes.

Limitations and Future Work

  • Incompleteness: Like all message-passing solvers, these are "incomplete," meaning if they fail to find a solution, they cannot prove that no solution exists.
  • Parameter Tuning: While the linear schedule for $\gamma$ worked well, the authors suggest that more complex, non-linear schedules might improve performance on specific problem types.
  • Factor Cardinality: While Perturbed BP handles large variable domains well, the underlying SP equations still struggle with constraints that involve a very large number of variables (high-order constraints).

The paper concludes that Perturbed BP is an "attractive substitute" for traditional solvers, offering a rare win-win: it's easier to implement, significantly faster, and more robust on the world's hardest puzzles.

Summary updated

BibTeX
@article{ravanbakhsh2015perturbed,
  author = {Siamak Ravanbakhsh and Russell Greiner},
  title = {{Perturbed message passing for constraint satisfaction problems}},
  journal = {J. Mach. Learn. Res.},
  year = {2015},
  url = {https://openreview.net/forum?id=IhzC8XDwX7},
}

Loading related content...

Figure