1 Understanding the Power of Clause Learning Ashish Sabharwal, Paul Beame, Henry Kautz University of Washington, Seattle IJCAI ConferenceAug 14, 2003.

Slides:



Advertisements
Similar presentations
The behavior of SAT solvers in model checking applications K. L. McMillan Cadence Berkeley Labs.
Advertisements

Exploiting SAT solvers in unbounded model checking
Exploiting SAT solvers in unbounded model checking K. L. McMillan Cadence Berkeley Labs.
Automated Theorem Proving
Hybrid BDD and All-SAT Method for Model Checking Orna Grumberg Joint work with Assaf Schuster and Avi Yadgar Technion – Israel Institute of Technology.
Time-Space Tradeoffs in Resolution: Superpolynomial Lower Bounds for Superlinear Space Chris Beck Princeton University Joint work with Paul Beame & Russell.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Proofs from SAT Solvers Yeting Ge ACSys NYU Nov
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Effective Propositional Reasoning CSE 473 – Autumn 2003.
Using Problem Structure for Efficient Clause Learning Ashish Sabharwal, Paul Beame, Henry Kautz University of Washington, Seattle April 23, 2003.
Time-Space Tradeoffs in Resolution: Superpolynomial Lower Bounds for Superlinear Space Chris Beck Princeton University Joint work with Paul Beame & Russell.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View SAT.
1/30 SAT Solver Changki PSWLAB SAT Solver Daniel Kroening, Ofer Strichman.
The Theory of NP-Completeness
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
© The McGraw-Hill Companies, Inc., Chapter 8 The Theory of NP-Completeness.
SAT and Model Checking. Bounded Model Checking (BMC) A.I. Planning problems: can we reach a desired state in k steps? Verification of safety properties:
08/1 Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT Wolfram Burgard and Bernhard Nebel.
1 Paul Beame University of Washington Satisfiability and Unsatisfiability: Proof Complexity and Algorithms.
Presented by Ed Clarke Slides borrowed from P. Chauhan and C. Bartzis
GRASP-an efficient SAT solver Pankaj Chauhan. 6/19/ : GRASP and Chaff2 What is SAT? Given a propositional formula in CNF, find an assignment.
1 Satisfiability Checking of Non-clausal Formulas using General Matings Himanshu Jain Constantinos Bartzis Edmund Clarke Carnegie Mellon University.
GRASP SAT solver Presented by Constantinos Bartzis Slides borrowed from Pankaj Chauhan J. Marques-Silva and K. Sakallah.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
SAT Algorithms in EDA Applications Mukul R. Prasad Dept. of Electrical Engineering & Computer Sciences University of California-Berkeley EE219B Seminar.
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
1 Abstraction Refinement for Bounded Model Checking Anubhav Gupta, CMU Ofer Strichman, Technion Highly Jet Lagged.
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.
SAT Solving Presented by Avi Yadgar. The SAT Problem Given a Boolean formula, look for assignment A for such that.  A is a solution for. A partial assignment.
Logic - Part 2 CSE 573. © Daniel S. Weld 2 Reading Already assigned R&N ch 5, 7, 8, 11 thru 11.2 For next time R&N 9.1, 9.2, 11.4 [optional 11.5]
Time-Space Tradeoffs in Proof Complexity: Superpolynomial Lower Bounds for Superlinear Space Chris Beck Princeton University Joint work with Paul Beame.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Boolean Satisfiability and SAT Solvers
Performing Bayesian Inference by Weighted Model Counting Tian Sang, Paul Beame, and Henry Kautz Department of Computer Science & Engineering University.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Toward a Universal Inference Engine Henry Kautz University of Washington With Fahiem Bacchus, Paul Beame, Toni Pitassi, Ashish Sabharwal, & Tian Sang.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Combining Component Caching and Clause Learning for Effective Model Counting Tian Sang University of Washington Fahiem Bacchus (U Toronto), Paul Beame.
On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda Rolf Drechsler Alex Orailoglu Computer Science & Engineering Dept. University.
SAT 2009 Ashish Sabharwal Backdoors in the Context of Learning (short paper) Bistra Dilkina, Carla P. Gomes, Ashish Sabharwal Cornell University SAT-09.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
SAT Solving As implemented in - DPLL solvers: GRASP, Chaff and
Inference in Propositional Logic (and Intro to SAT) CSE 473.
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
A Decision-Making Procedure for Resolution-Based SAT-solvers Eugene Goldberg Cadence Research Labs (USA) SAT-2008, Guangzhou, P.R. China.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Inference in Propositional Logic (and Intro to SAT)
Hybrid BDD and All-SAT Method for Model Checking
Clause Learning in a SAT-Solver
Inference and search for the propositional satisfiability problem
Computability and Complexity
(xy)(yz)(xz)(zy)
Where Can We Draw The Line?
Complexity 6-1 The Class P Complexity Andrei Bulatov.
ECE 667 Synthesis and Verification of Digital Circuits
Artificial Intelligence: Agents and Propositional Logic.
Provably hard problems below the satisfiability threshold
CSE 589 Applied Algorithms Spring 1999
Presentation transcript:

1 Understanding the Power of Clause Learning Ashish Sabharwal, Paul Beame, Henry Kautz University of Washington, Seattle IJCAI ConferenceAug 14, 2003

2 SAT: The Satisfiability Problem Given a CNF formula F, [e.g. F = ( a  b)  (  a  c)   a ] determine if F has a satisfying assignment Your favorite problem NO SAT EncoderSAT Solver YES + a solution CNF formula

3 SAT Solver: DPLL Algorithm Best complete CNF (un)satisfiability algorithms in practice are extensions of the DPLL algorithm [Davis-Putnam 60] [Davis-Logeman-Loveland 62] Recursive backtrack search Search space pruning based on falsified clauses

4 DPLL( F ) // Perform unit propagation while exists unit clause (y)  F F = F | y if F is empty, report satisfiable and halt if F contains the empty clause  return else choose a literal x DPLL( F | x ) DPLL( F |  x ) DPLL Algorithm Remove all clauses containing y Shrink all clauses containing  y

5 Extending DPLL: Clause Learning Added conflict clauses –Capture reasons of conflicts –Obtained via unit propagations from known ones –Reduce future search by producing conflicts sooner When backtracking in DPLL, add new clauses corresponding to causes of failure of the search EBL [Kleer-Williams 87, Stallman-Sussman 77, Genesereth 84, Davis 84] CL [Bayardo-Schrag 97, MarquesSilva-Sakallah 96, Zhang 97, Moskewicz et al. 01, Zhang et al. 01]

6 Conflict Graphs Our New Scheme: FirstNewCut scheme (x 1  x 2  x 3 ) Decision scheme (p  q   b) 1-UIP scheme t pp qq b a x1x1 x2x2 x3x3 y yy false tt Known Clauses (p  q  a) (  a   b   t) (t   x 1 ) (t   x 2 ) (t   x 3 ) (x 1  x 2  x 3  y) (x 2   y) Current decisions p = false q = false b = true

7 Restarts Clause Learning (CL) algorithms can be restarted at any point [Baptista-Silva 00] –Unset all variables and start over –But retain all clauses learned so far Avoids getting stuck in one part of the search space Evidently adds power to CL

8 CL Critical to Performance Best current SAT algorithms rely heavily on CL for good behavior on real world problems GRASP [MarquesSilva-Sakallah 96], SATO [H.Zhang 97] zChaff [Moskewicz et al. 01], Berkmin [Goldberg-Novikov 02] However,  No good understanding of its strengths and weaknesses  Not much insight on why it works when it does

9 Our Contribution Mathematical framework for analyzing clause learning Characterization of its power in relation to well-studied topics in proof complexity theory Ways to improve solver performance based on formal analysis

10 Proofs of Unsatisfiability When F is unsatisfiable, DPLL refutation of F is a proof of its unsatisfiability Size lower bound on proofs of F gives time lower bound on executions of DPLL( F ) Size upper bound on proofs of F gives potential for quick executions of such algorithms (with or w/o learning depending on the class of proofs) (with the best possible branching heuristic, the best learning scheme, etc.)

11 What about Satisfiable Formulas? [Achlioptas-Beame-Molloy 01] DPLL Tree Satisfying assignment Unsatisfiable sub-formula Bounds on unsatisfiable formulas imply bounds on satisfiable ones!

12 Proof System: Resolution F = ( a  b)  (  a  c)   a  (  b  c)  (a   c ) Unsatisfiable CNF formula c cc Proof size = 9 empty clause  (a  b)(a  b)(  a  c)(  b  c)(a  c) aa (b  c)

13 Special Cases of Resolution Tree-like resolution –Graph of inferences forms a tree  DPLL Regular resolution –Variable can be resolved on only once on any path from input to empty clause  Directed acyclic graph analog of DPLL tree –Natural to not branch on a variable once it has been eliminated –Used in original DP [Davis-Putnam 60]

14 Proof System Hierarchy DPLL = Tree-like Space of polynomial time solvable formulas Regular RES [Bonet et al. 00] General RES [Alekhnovich et al. 02] Frege systems … … Pigeonhole principle [Haken 85]

15 Our Results DPLL = Tree-like Regular RES General RES CL w/o restarts Trivial RES = Learned clauses DPLL = Tree-like Regular RES General RES

16 Thm1. CL can beat Regular RES Regular RES General RES Formula f Poly-size RES proof  Exp-size Regular proof Such formulas exist! GT n Ordering principle Peb Pebbling formulas [Alekhnovich et al. 02] Formula PT(f,  ) Poly-size CL proof Exp-size Regular proof Regular RES CL w/o restarts

17 PT(f,  ) : Proof Trace Extension Start with unsatisfiable formula f with poly-size RES proof  PT(f,  ) contains All clauses of f For each derived clause Q=(a  b  c) in , –Trace variable t Q –New clauses (t Q   a), (t Q   b), (t Q   c) CL proof of PT(f,  ) works by branching negatively on t Q ’s in bottom up order of clauses of 

18 PT(f,  ) : Proof Trace Extension (a  b  x)(c   x) Q  (a  b  c)  ………… Formula f RES proof   t Q  a  b  c x  x false Trace variable t Q New clauses (t Q   a) (t Q   b) (t Q   c) PT(f,  ) FirstNewCut (a  b  c)

19 How hard is PT(f,  ) ? Easy for CL: by construction CL branches exactly once on each trace variable  # branches = size(  ) Hard for Regular RES: reduction argument  Fact 1: PT(f,  ) | TraceVars = true  f  Fact 2: If  is a Regular RES proof of g, then  | x is a Regular RES proof of g | x  Fact 3: f does not have small Regular proofs!

20 Implications? DPLL algorithms w/o clause learning are hopeless for some structured formulas CL algorithms have potential for small proofs Can we use such analysis to harness this potential?

21 Branching Sequence B = (x 1, x 4,  x 3, x 1,  x 8,  x 2,  x 4, x 7,  x 1 ) DPLL picks branching literals from B Repetitions allowed Different from “branching order” How “good” is B ? –Depends on backtracking process, learning scheme, etc

22 From Analysis to Practice Maximum size of grid pebbling formulas solvable by zChaff (in 1 day) can be substantially increased! Results extend to general randomized pebbling formulas [Sabharwal-Beame-Kautz SAT 2003]

23 Trivial RES  Simple ladder structure  Distinct variables resolved upon  Properties: o Tree-like o Regular o Linear Clauses learned by CL are those that can be derived by trivial RES Known clauses: (a  b  c), (  a  x), (  b  c), (  c  y) Derived clause: ( x  y) (b  c  x) (c  x) (a  b  c)(  a  x) (  b  c) (  c  y) (x  y)

24 Our Results DPLL = Tree-like Regular RES CL w/o restarts Trivial RES = Learned clauses

25 CL-- A Variant of CL Allow branching on variables whose value is already implied by unit propagation –Equivalently, allow branching on variables not appearing at all in the residual formula How can this possibly help? Can learn a conflict clause that will reduce search later!

26 Error in Paper Incorrect Theorem 1 in the paper: “CL + restarts is equivalent to RES” Correct version: “CL-- + restarts is equivalent to RES”

27 Thm2. CL-- + restarts = General RES General RES can simulate CL + restarts  CL learns by unit propagation  Infer learned clauses using RES derivation CL-- + restarts can simulate General RES  If RES proof resolves (A  x) and (B   x) to obtain C, branch and set all literals of A and B to false, learn C, restart  Eventually learn empty clause

28 Our Results DPLL = Tree-like Regular RES General RES = CL-- + restarts CL w/o restarts Trivial RES = Learned clauses

29 Summary Formal framework CL can be stronger than Regular RES –FirstNewCut learning scheme CL-- + restarts is equivalent to RES

30 Open Problems Fill in complexity hierarchy gaps 1.Can CL efficiently simulate Regular RES? 2.Can CL + restarts efficiently simulate RES? From Analysis to Practice Can we use this framework to improve SAT solvers for other classes of structured formulas? E.g. Planning as satisfiability Bounded model checking