Improving WalkSAT for Random k-Satisfiability Problem with k > 3

Shaowei Cai, Kaile Su, Chuan Luo

Abstract

Stochastic local search (SLS) algorithms are well known for their ability to efficiently find models of random instances of the Boolean satisfiability (SAT) problem. One of the most famous SLS algorithms for SAT is WalkSAT, which is an initial algorithm that has wide influence among modern SLS algorithms. Recently, there has been increasing interest in WalkSAT, due to the discovery of its great power on large random 3-SAT instances. However, the performance of WalkSAT on random $k$-SAT instances with $k>3$ lags far behind. Indeed, there have been few works in improving SLS algorithms for such instances. This work takes a large step towards this direction. We propose a novel concept namely $multilevel$ $make$. Based on this concept, we design a scoring function called $linear$ $make$, which is utilized to break ties in WalkSAT, leading to a new algorithm called WalkSAT$lm$. Our experimental results on random 5-SAT and 7-SAT instances show that WalkSAT$lm$ improves WalkSAT by orders of magnitudes. Moreover, WalkSAT$lm$ significantly outperforms state-of-the-art SLS solvers on random 5-SAT instances, while competes well on random 7-SAT ones. Additionally, WalkSAT$lm$ performs very well on random instances from SAT Challenge 2012, indicating its robustness.

Introduction

The Boolean Satisfiability (SAT) problem is a cornerstone of computer science. While Stochastic Local Search (SLS) algorithms like WalkSAT are incredibly effective at finding solutions for random 3-SAT instances, their performance historically degrades as $k$ increases (e.g., 5-SAT or 7-SAT). In these higher-order problems, the search space becomes more rugged, and standard heuristics lose their effectiveness. Most research has focused on complex, heavily tuned heuristics to bridge this gap. This paper asks: Can we significantly improve WalkSAT for $k > 3$ using a simple, principled modification rather than complex "black-box" heuristics?

Methodology: Multilevel Make and WalkSATlm

The authors introduce the concept of multilevel make. In standard SAT terminology, $make_1(x)$ is the number of currently unsatisfied clauses that would become satisfied if you flip variable $x$, while $break(x)$ is the number of currently satisfied clauses that would become unsatisfied. The authors expand this to $make_\tau(x)$, which measures how many clauses containing exactly $(\tau-1)$ true literals would move to having exactly $\tau$ true literals after flipping $x$.

Specifically, they focus on:

  1. $make_1$: Moving a clause from 0 true literals (unsatisfied) to 1 true literal (satisfied).
  2. $make_2$: Moving a clause from 1 true literal to 2 true literals. This is crucial because "1-true" clauses are unstable—flipping just one variable can make them unsatisfied. Moving them to "2-true" makes them more robust.

The core of the paper is the linear make ($lmake$) scoring function: $$lmake(x) = w_1 \cdot make_1(x) + w_2 \cdot make_2(x)$$

WalkSATlm follows the standard WalkSAT framework but changes the tie-breaking rule. When WalkSAT finds multiple variables with the same minimum $break$ value, instead of picking one at random, WalkSATlm picks the one with the highest $lmake$ score.

Algorithm 1: The WalkSATlm procedure incorporating the linear make heuristic.

Key Results and Discussion

The algorithm was evaluated on major benchmarks, including large 5-SAT and 7-SAT instances and the SAT Challenge 2012 benchmark.

Performance and Scalability

WalkSATlm is one to two orders of magnitude faster than the original WalkSAT on 5-SAT instances. As shown in the experimental data, WalkSATlm maintains a 100% success rate on 5-SAT instances with up to 3000 variables, where other state-of-the-art solvers like Sparrow2011 and probSAT begin to fail or slow down significantly.

Comparison of success rates and run times on random 5-SAT instances. Bold values indicate the best performance.

Robustness

In the SAT Challenge 2012 benchmark, WalkSATlm solved 357 instances, nearly matching the winner (CCASat, 359 instances) and significantly outperforming other top-tier solvers like Sparrow2011 (268) and sattime2011 (229). This indicates that the $lmake$ heuristic is a general improvement for higher-order random SAT.

Insights

  • Tie-breaking is critical: Tie-breaking occurs in roughly 32% to 40% of all search steps. Using a smart heuristic here instead of random choice has a massive cumulative effect.
  • Clause Stability: By incorporating $make_2$, WalkSATlm prioritizes moves that make satisfied clauses "safer" from being broken in future steps.
  • Simplicity Wins: WalkSATlm outperforms complex solvers on 5-SAT instances by simply refining a classic algorithm with a two-term linear function.

Conclusion

WalkSATlm demonstrates that simple, principled refinements to classic algorithms can yield state-of-the-art performance in complex search spaces. While the algorithm is sensitive to noise and weight parameters, it provides strong empirical evidence that the "make" property is highly valuable in focused random walk algorithms for $k > 3$.

Summary updated

BibTeX
@inproceedings{cai2013improving,
  author = {Shaowei Cai and Kaile Su and Chuan Luo},
  title = {{Improving WalkSAT for Random k-Satisfiability Problem with k > 3}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2013},
  url = {https://openreview.net/forum?id=HkZl_pg_ZB},
}

Loading related content...

Figure