1 Message Passing and Local Heuristics as Decimation Strategies for Satisfiability Lukas Kroc, Ashish Sabharwal, Bart Selman (presented by Sebastian Brand)

Slides:



Advertisements
Similar presentations
Propositional Satisfiability (SAT) Toby Walsh Cork Constraint Computation Centre University College Cork Ireland 4c.ucc.ie/~tw/sat/
Advertisements

UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Proofs from SAT Solvers Yeting Ge ACSys NYU Nov
“Using Weighted MAX-SAT Engines to Solve MPE” -- by James D. Park Shuo (Olivia) Yang.
Message-Passing and Sudoku Scott Kirkpatrick, HUJI Danny Bickson, HUJI TAU, June 18, 2006.
1/30 SAT Solver Changki PSWLAB SAT Solver Daniel Kroening, Ofer Strichman.
IBM Labs in Haifa © 2005 IBM Corporation Adaptive Application of SAT Solving Techniques Ohad Shacham and Karen Yorav Presented by Sharon Barner.
Generating Hard Satisfiability Problems1 Bart Selman, David Mitchell, Hector J. Levesque Presented by Xiaoxin Yin.
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
Counting Solution Clusters Divide-and-Conquer Recursively:  Arbitrarily pick a variable, say x, of formula F  Count how many clusters contain solutions.
Survey Propagation Algorithm
Semidefinite Programming
Methods for SAT- a Survey Robert Glaubius CSCE 976 May 6, 2002.
Boolean Satisfiability Solvers Wonhong Nam
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
08/1 Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT Wolfram Burgard and Bernhard Nebel.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
1 Towards Efficient Sampling: Exploiting Random Walk Strategy Wei Wei, Jordan Erenrich, and Bart Selman.
GRASP-an efficient SAT solver Pankaj Chauhan. 6/19/ : GRASP and Chaff2 What is SAT? Given a propositional formula in CNF, find an assignment.
State-of-the-art in SAT solvers
AAAI00 Austin, Texas Generating Satisfiable Problem Instances Dimitris Achlioptas Microsoft Carla P. Gomes Cornell University Henry Kautz University of.
Analysis of Algorithms CS 477/677
Short XORs for Model Counting: From Theory to Practice Carla P. Gomes, Joerg Hoffmann, Ashish Sabharwal, Bart Selman Cornell University & Univ. of Innsbruck.
Quantum Search Heuristics: Tad Hogg’s Perspective George Viamontes February 4, 2002.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Instance Hardness and Phase Transitions.
Accelerating Random Walks Wei Wei and Bart Selman Dept. of Computer Science Cornell University.
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
Stochastic greedy local search Chapter 7 ICS-275 Spring 2007.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
1 Paul Beame University of Washington Phase Transitions in Proof Complexity and Satisfiability Search Dimitris Achlioptas Michael Molloy Microsoft Research.
Lukas Kroc, Ashish Sabharwal, Bart Selman Cornell University, USA SAT 2010 Conference Edinburgh, July 2010 An Empirical Study of Optimal Noise and Runtime.
Sampling Combinatorial Space Using Biased Random Walks Jordan Erenrich, Wei Wei and Bart Selman Dept. of Computer Science Cornell University.
Solution Counting Methods for Combinatorial Problems Ashish Sabharwal [ Cornell University] Based on joint work with: Carla Gomes, Willem-Jan van Hoeve,
Relaxed DPLL Search for MaxSAT (short paper) Lukas Kroc, Ashish Sabharwal, Bart Selman Cornell University SAT-09 Conference Swansea, U.K. July 3, 2009.
1 Exploiting Random Walk Strategies in Reasoning Wei.
Boolean Satisfiability and SAT Solvers
3/11/2002copyright Brian Williams1 Propositional Logic and Satisfiability Brian C. Williams /6.834 October 7 th, 2002.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 3 Logic Representations (Part 2)
Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Belief Propagation. What is Belief Propagation (BP)? BP is a specific instance of a general class of methods that exist for approximate inference in Bayes.
The satisfiability threshold and clusters of solutions in the 3-SAT problem Elitza Maneva IBM Almaden Research Center.
1 Agenda Modeling problems in Propositional Logic SAT basics Decision heuristics Non-chronological Backtracking Learning with Conflict Clauses SAT and.
Survey Propagation. Outline Survey Propagation: an algorithm for satisfiability 1 – Warning Propagation – Belief Propagation – Survey Propagation Survey.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module Logic Representations.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
First-Order Logic and Inductive Logic Programming.
Stochastic greedy local search Chapter 7 ICS-275 Spring 2009.
SAT 2009 Ashish Sabharwal Backdoors in the Context of Learning (short paper) Bistra Dilkina, Carla P. Gomes, Ashish Sabharwal Cornell University SAT-09.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Finding Models for Blocked 3-SAT Problems in Linear Time by Systematical Refinement of a Sub- Model Gábor Kusper Eszterházy Károly.
Accelerating Random Walks Wei Wei and Bart Selman.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
Making Path-Consistency Stronger for SAT Pavel Surynek Faculty of Mathematics and Physics Charles University in Prague Czech Republic.
Why almost all satisfiable k - CNF formulas are easy? Danny Vilenchik Joint work with A. Coja-Oghlan and M. Krivelevich.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
Phase Transitions – like death and taxes? Why we should care; what to do about it. Scott Kirkpatrick, Hebrew University, Jerusalem With thanks to: Uri.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
REU 2007-ParSat: A Parallel SAT Solver Christopher Earl, Mentor: Dr. Hao Zheng Department of Computer Science & Engineering Introduction Results and Conclusions.
1 P NP P^#P PSPACE NP-complete: SAT, propositional reasoning, scheduling, graph coloring, puzzles, … PSPACE-complete: QBF, planning, chess (bounded), …
Sudoku Solutions Using Logic Equations Christian Posthoff The University of The West Indies, Trinidad & Tobago Bernd Steinbach Freiberg University of Mining.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
Inference in Propositional Logic (and Intro to SAT)
Inference and search for the propositional satisfiability problem
First-Order Logic and Inductive Logic Programming
Local Search Strategies: From N-Queens to Walksat
SAT-Based Area Recovery in Technology Mapping
Hardness Of Approximation
GRASP-an efficient SAT solver
Presentation transcript:

1 Message Passing and Local Heuristics as Decimation Strategies for Satisfiability Lukas Kroc, Ashish Sabharwal, Bart Selman (presented by Sebastian Brand) Symposium on Applied Computing March 2009

2 Combinatorial Search Procedures Search procedures for combinatorial problems such as SAT usually fall into two categories: Local search – make local modifications ('flips') to a candidate assignment until a solution is found Systematic backtrack search – explore the search space through partial assignment, backtracking and 'flipping' values as necessary Decimation is a third mechanism, which has recently shown tremendous success on hard classes of SAT instances the focus of this paper

3 A Study of Decimation-Based Satisfiability Algorithms What is decimation? Natural strategies or heuristics for decimation? – simple 'local' heuristics – message passing 'global' heuristics, specifically, belief propagation & survey propagation How far can these heuristics push decimation? – survey propagation extremely successful on random k-SAT What makes survey propagation different? Need me asurable properties that highlight differences. – evolution of problem 'hardness' during decimation – generation (or not) of unit clauses

4 Talk Outline The decimation process (for solving SAT) Decimation strategies  Local heuristics  “Global” message passing heuristics Empirical comparison Differences in decimation strategies

5 The Decimation Procedure Given some ordering of the variable-value pairs Do: 1. Assign the first variable its value 2. Simplify the problem instance 3. Recompute the ordering and repeat Very scalable! No repair mechanism  the ordering must be “smart” to eventually find a solution Where do we get “the smart ordering” from?

6 Random k-SAT Problem k-SAT Problem: Satisfiability of Boolean formula in CNF  n vars  {0,1}  {F,T}, m clauses, each clause has k literals  Is F satisfiable? Find a solution. Canonical NP-complete problem Random problem: clauses chosen at random  Phase transition, as a function of clause-to-variable ratio  For 3-SAT,  thr  4.26

7 Local Counting Heuristic Used in standard systematic solvers (DPLL) for SAT Variants of: “set the most frequently occurring variable based on majority vote” Fast, easy to compute, but not very powerful Local UNSATSAT

8 Global Statistical Heuristic Compute marginal probabilities: how often is x True in solutions? Pr[ x=True | a solution ]  Use magnetization as a heuristic: Pr[x=T|solution] - Pr[x=F|solution] Inference in a Bayesian Network:  More difficult than SAT! xyz ABC

9 Local UNSATSAT BP SAT as an Inference Problem Marginals can be approximated using Belief Propagation:  Message Passing: numbers for each (clause,var) pair governed by a system of equations.  Scalable, but does not work for hard enough problems due to loops in the factor graph Both convergence and accuracy issues Modified BP Want to close the gap!

10 Belief Propagation for Inference The original BP does not converge – first need to dampen it to force convergence Damping constant 1: same as BP 0: guaranteed convergence

11 Belief Propagation How well does it do “in general”?  Speed: either fast, or doesn’t converge  Accuracy: not very good (for hard problems)  Benchmark: large (#vars=5K) random 3SAT,  =4.2  Comparing “true” marginals vs. BP-generated marginals (Ideal case: straight diagonal line) Standard BP: Forced BP: Solution Marginals BP Marginals Solution Marginals BP Marginals Doesn’t seem very useful for SAT!

12 Using Surveys Instead of Beliefs BP-inspired-decimation does not work for very hard random instances SAT instance Solve it by decimation Use BP for Pr[x=T|solution] For more difficult random SAT problems, use SP-inspired-decimation Modify the problem itself SAT instance Solve it by decimation Use SP for Pr[x=T|”cover”]

13 Survey Propagation Much More Accurate! 5,000 variables (  =4.2) Marginals over “covers” computed much more accurately “covers” marginals very tightly coupled with solution marginals – good enough for our purposes!

14 First experimental study: How well do various decimation heuristics perform?

15 Results: How Far Does Decimation Go? LUKAS : please put a couple of key points here, that these bar plots bring out. Mention what we are comparing.

16 Second experimental study: What are some measurable properties that provide insights into Survey Propagation vs. other heuristics? Note: common measures such as number of 2- and 3-clauses, or positive vs. negative literals, etc., do not show any measurable difference

17 Generation of Unit Clauses Unlike all other heuristics considered, SP generates nearly no unit propagations until around 40% of the variables are set!

18 Generation of Unit Clauses Proposition: If the computed marginals (solution or cover) are perfect and the maximum magnetization is unique, then there will be no unit propagation at all. SP's computation is, indeed, close to perfect, at least in the extreme magnetization regions.

19 Evolution of Problem Hardness Measure “hardness” of the residual formula at every step as no. of flips Walksat needs to find solution Unlike all other heuristics considered, SP constantly reduces the hardness of the residual formula!

20 Summary Global decimation heuristics, based on message passing, are much more effective than local ones SP is much more accurate in computing marginal estimates than BP (on hard random instances) SP shows two unique characteristics as decimation evolves:  Nearly no unit propagations generated  Instance constantly becomes easier