Back to Blog
sat-solvingalgorithmscombinatorial-optimizationlocal-searchresearch

Efficient Local Search for 3-SAT via Configuration Checking and Recovery Pass Heuristics

K

Kwabena

Author

Abstract

This study introduces OptimizedSAT, a stochastic local search (SLS) solver for the 3-SAT problem that integrates three complementary techniques: Configuration Checking (CC), PAWS-style Dynamic Clause Weighting (DCW) with multiplicative decay, and a novel Recovery Pass initialization strategy based on Jeroslow-Wang weighting and Boltzmann sampling with soft backbone extraction.

The solver achieves a 100% solve rate across 48,000 satisfiable SATLIB instances, with a median of one pass for instances up to 150 variables. Experimental results show a reduction of over 2,000× in search effort compared to established SLS baselines such as Novelty+.


1. Introduction

The Boolean Satisfiability Problem (SAT), particularly 3-SAT, remains a cornerstone of theoretical computer science as the first NP-complete problem. Despite its worst-case complexity, modern solvers efficiently handle many practical instances.

Two dominant approaches exist:

  • Complete solvers (e.g., CDCL) that guarantee correctness
  • Stochastic Local Search (SLS) solvers that trade completeness for speed on satisfiable instances

This work presents OptimizedSAT, addressing key SLS limitations:

  • Cycling between configurations
  • Entrapment in local minima

2. Background and Context

2.1 Stochastic Local Search for SAT

SLS algorithms such as WalkSAT and Novelty+ iteratively improve assignments by flipping variables in falsified clauses. While effective, they often require thousands to millions of flips.

2.2 Dynamic Clause Weighting

Clause weighting improves search by prioritizing hard clauses:

  • PAWS: additive weight updates
  • SAPS: multiplicative smoothing
  • DDFW: weight redistribution

OptimizedSAT adopts a hybrid PAWS-style additive scheme with multiplicative decay (0.98).

2.3 Configuration Checking

Configuration Checking prevents cycling by restricting variable flips unless neighboring clauses have changed. This significantly improves performance in 3-SAT domains.

2.4 Backbone and Initialization

The backbone consists of variables fixed across all solutions. OptimizedSAT approximates this via soft backbone extraction, using near-miss solutions to guide future initializations.


3. Research Objectives

This study aims to:

  1. Design an SLS solver that minimizes cycling and stagnation
  2. Improve initialization quality using probabilistic heuristics
  3. Evaluate performance across large SATLIB benchmarks
  4. Compare efficiency with established SLS approaches

4. Methodology

The research employs experimental evaluation using SATLIB benchmark datasets, including:

  • Uniform random SAT (uf)
  • Unsatisfiable instances (uuf)
  • Structured benchmarks (RTI, CBS)

The solver is implemented in C++17 and evaluated using single-threaded execution.


5. Findings and Discussion

5.1 Core Architecture

Each solving pass consists of:

  1. Structured initialization (Recovery Pass)
  2. Bounded local search phase

State such as clause weights and backbone votes persists across passes.


5.2 Recovery Pass Initialization

Jeroslow-Wang Weighting

Each variable is scored based on clause weights and clause size.

Boltzmann Sampling

Assignments are generated probabilistically: P(v=1) = exp(posW[v] * skew(v) / T) / (exp(posW[v] * skew(v) / T) + exp(negW[v] * skew(v) / T))

Temperature schedule: T(p) = 2.2 * exp(-0.02 * p) + ε

Backbone Reinforcement

Near-miss solutions (residue ≤ 2) contribute votes that bias future initializations.


5.3 Local Search Strategy

Each iteration:

  • Select a falsified clause
  • With probability 0.20 → random flip
  • Otherwise → choose variable maximizing weighted gain

Configuration Checking filters eligible variables.

Local minima handling:

  • Increase clause weights to escape stagnation

5.4 Performance Results

Solve Rate

  • 100% success on 48,000 SAT instances
  • Near-zero failure rate (0.004%)

Efficiency Gains

BenchmarkOptimizedSATNovelty+
uf100-4301.10 passes2,513 flips
uf250-10657.15 passes53,938 flips

Equivalent reduction: 2,000× – 6,000×


5.5 Initialization Effectiveness

  • n ≤ 50 → 100% solved in a single pass
  • uf100 → 94.6% single-pass success

This confirms that initialization quality dominates performance.


5.6 UNSAT Behavior

All unsatisfiable instances:

  • Exhaust full pass budget
  • Return no valid model

Observed slowdown (~9000×) aligns with theoretical expectations.


6. Analysis

OptimizedSAT integrates multiple synergistic components:

  • CC reduces redundant exploration
  • DCW reshapes the search landscape
  • Recovery Pass dramatically improves starting positions

The results indicate that initialization is the dominant factor in performance gains.


7. Challenges and Limitations

  • Contribution of individual components is not isolated (no ablation study)
  • Some benchmarks have limited sample sizes
  • Performance on very large instances (n ≥ 1000) remains untested
  • Not directly competitive with CDCL on small instances

8. Conclusion

OptimizedSAT demonstrates that combining structured initialization with adaptive search heuristics can significantly improve SLS performance.

Key outcomes:

  • 100% solve rate on evaluated datasets
  • Median of one pass for small-to-medium instances
  • Orders-of-magnitude reduction in search effort

9. Future Work

Future research directions include:

  1. Ablation studies to isolate component contributions
  2. Scaling evaluation to larger problem sizes (n ≥ 1000)
  3. Benchmarking against modern SLS solvers (e.g., FrwCB, DDFW)
  4. Optimization of data structures for large falsified clause sets

10. References

  • Cai, S., & Su, K. (2012). Configuration checking for SAT
  • Cook, S. A. (1971). NP-completeness
  • Hoos, H. H. (2002). Novelty+
  • Hoos & Stützle (2002). SATLIB
  • Hutter et al. (2002). SAPS
  • Ishtaiwi et al. (2005). DDFW
  • Jeroslow & Wang (1990). SAT heuristics
  • Monasson et al. (1999). Backbone theory
  • Selman et al. (1994). WalkSAT
  • Thornton (2004). PAWS
  • Zhang et al. (2001). CDCL

Share this article