Relaxed DPLL Search for MaxSAT (short paper) Lukas Kroc, Ashish Sabharwal, Bart Selman Cornell University SAT-09 Conference Swansea, U.K. July 3, 2009.

Slides:



Advertisements
Similar presentations
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
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.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
1 Backdoor Sets in SAT Instances Ryan Williams Carnegie Mellon University Joint work in IJCAI03 with: Carla Gomes and Bart Selman Cornell University.
IBM Labs in Haifa © 2005 IBM Corporation Adaptive Application of SAT Solving Techniques Ohad Shacham and Karen Yorav Presented by Sharon Barner.
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
© 2002 Fadi A. Aloul, University of Michigan PBS: A Pseudo-Boolean Solver and Optimizer Fadi A. Aloul, Arathi Ramani, Igor L. Markov, Karem A. Sakallah.
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.
State-of-the-art in SAT solvers
Short XORs for Model Counting: From Theory to Practice Carla P. Gomes, Joerg Hoffmann, Ashish Sabharwal, Bart Selman Cornell University & Univ. of Innsbruck.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
1 Backdoors To Typical Case Complexity Ryan Williams Carnegie Mellon University Joint work with: Carla Gomes and Bart Selman Cornell University.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
1 BLACKBOX: A New Paradigm for Planning Bart Selman Cornell University.
Accelerating Random Walks Wei Wei and Bart Selman Dept. of Computer Science Cornell University.
1 Understanding the Power of Clause Learning Ashish Sabharwal, Paul Beame, Henry Kautz University of Washington, Seattle IJCAI ConferenceAug 14, 2003.
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
1 BLACKBOX: A New Approach to the Application of Theorem Proving to Problem Solving Bart Selman Cornell University Joint work with Henry Kautz AT&T Labs.
Stochastic greedy local search Chapter 7 ICS-275 Spring 2007.
1 Abstraction Refinement for Bounded Model Checking Anubhav Gupta, CMU Ofer Strichman, Technion Highly Jet Lagged.
MAE 552 – Heuristic Optimization Lecture 5 February 1, 2002.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
GRASP: A Search Algorithm for Propositional Satisfiability EE878C Homework #2 2002/11/1 KAIST, EECS ICS Lab Lee, Dongsoo.
Lukas Kroc, Ashish Sabharwal, Bart Selman Cornell University, USA SAT 2010 Conference Edinburgh, July 2010 An Empirical Study of Optimal Noise and Runtime.
1 Combinatorial Problems in Cooperative Control: Complexity and Scalability Carla Gomes and Bart Selman Cornell University Muri Meeting March 2002.
1 Message Passing and Local Heuristics as Decimation Strategies for Satisfiability Lukas Kroc, Ashish Sabharwal, Bart Selman (presented by Sebastian Brand)
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,
USING SAT-BASED CRAIG INTERPOLATION TO ENLARGE CLOCK GATING FUNCTIONS Ting-Hao Lin, Chung-Yang (Ric) Huang Graduate Institute of Electrical Engineering,
1 Exploiting Random Walk Strategies in Reasoning Wei.
Boolean Satisfiability and SAT Solvers
1 MCMC Style Sampling / Counting for SAT Can we extend SAT/CSP techniques to solve harder counting/sampling problems? Such an extension would lead us to.
Performing Bayesian Inference by Weighted Model Counting Tian Sang, Paul Beame, and Henry Kautz Department of Computer Science & Engineering University.
CMU, Oct 4 DPLL-based Checkers for Satisfiability Modulo Theories Cesare Tinelli Department of Computer Science The University of Iowa Joint work with.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
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)
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Lazy Annotation for Program Testing and Verification Speaker: Chen-Hsuan Adonis Lin Advisor: Jie-Hong Roland Jiang November 26,
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module Logic Representations.
On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda Rolf Drechsler Alex Orailoglu Computer Science & Engineering Dept. University.
First-Order Logic and Inductive Logic Programming.
Boolean Satisfiability Present and Future
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.
SAT Solver Heuristics. SAT-solver History Started with David-Putnam-Logemann-Loveland (DPLL) (1962) –Able to solve variable problems Satz (Chu Min.
Accelerating Random Walks Wei Wei and Bart Selman.
Satisfiability and SAT Solvers CS 270 Math Foundations of CS Jeremy Johnson.
AAAI of 20 Deconstructing Planning as Satisfiability Henry Kautz University of Rochester in collaboration with Bart Selman and Jöerg Hoffmann.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
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.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 P NP P^#P PSPACE NP-complete: SAT, propositional reasoning, scheduling, graph coloring, puzzles, … PSPACE-complete: QBF, planning, chess (bounded), …
© 2012 IBM Corporation Perfect Hashing and CNF Encodings of Cardinality Constraints Yael Ben-Haim Alexander Ivrii Oded Margalit Arie Matsliah SAT 2012.
Inference in Propositional Logic (and Intro to SAT)
CS 4700: Foundations of Artificial Intelligence
EA C461 – Artificial Intelligence Logical Agent
First-Order Logic and Inductive Logic Programming
Local Search Strategies: From N-Queens to Walksat
SAT-Based Area Recovery in Technology Mapping
Integrating Systematic and Local Search: A New Strategy for MaxSAT
ECE 667 Synthesis and Verification of Digital Circuits
A Progressive Approach for Satisfiability Modulo Theories
Presentation transcript:

Relaxed DPLL Search for MaxSAT (short paper) Lukas Kroc, Ashish Sabharwal, Bart Selman Cornell University SAT-09 Conference Swansea, U.K. July 3, 2009

SAT and MaxSAT  SAT: Given a Boolean formula such as find, if possible, a truth assignment such that F is satisfied.  MaxSAT: Given a Boolean formula, find a truth assignment that satisfies as many constraints as possible  Many applications in combinatorial and probabilistic reasoning (e.g., critical failure paths; as a tool within Markov Logic Networks)  Traditional approaches for MaxSAT:  Systematic search: complete but limited scalability (e.g., MiniMaxSat [Heras et al. ’07], Msuf [Marques-Silva et al.’08], MaxSatz [Li et al.’07] )  Local search: scalable but sometimes far from optimum (e.g., Walksat [Selman-Kautz-Cohen ’96], GLS [Mills et al. ’00], SAPS [Hutter-Tompkins-Hoos ’02- 03], Adaptg2wsat+p [Li-Wei-Zhang ’07] ) Ashish Sabharwal2 x y SatCls SAT 2009

Local Search: “Natural” for MaxSAT?  Local search methods walk on a landscape composed of truth assignments  Height = number of unsatisfied constraints  At every point in time, have a (sub-optimal) MaxSAT solution!  “anytime solution” to MaxSAT  Bottleneck: local minima, just as in local search for SAT SAT 2009Ashish Sabharwal3 [credit: reactive-search.org]

Systematic Search: 2 Key Features The DPLL process, and extensions, for SAT  Search guided by  Heuristics  Clauses falsified or made “critical” during search  Efficiency relies heavily on the ability to avoid local inconsistencies Unit propagation: if a=0, b=0, and have clause (a or b or  c), better force c=1 right away Clause learning: if a search branch reaches a contradiction, learn why this happened and never let this happen again SAT 2009Ashish Sabharwal4

Systematic Search: 2 Key Features Unfortunately, unit propagation and clause learning are not suitable for DPLL-based MaxSAT solvers  For MaxSAT, it may be best to ignore the current local inconsistency and try to satisfy the rest of the formula as much as you can  Systematic DPLL-style MaxSAT solvers necessarily do not employ traditional unit propagation or clause learning [note: may use more sophisticated resolution-based inference] Cost? Systematic MaxSAT solvers are significantly less scalable than systematic SAT solvers e.g., verification instance cmu-bmc-barrel6.cnf : – best MaxSAT solvers need minutes – MiniSat needs ~2 seconds SAT 2009Ashish Sabharwal5

The Question(s) SAT 2009Ashish Sabharwal6 Can state-of-the-art systematic SAT techniques be used as (incomplete) effective heuristics for MaxSAT? Aside: What do “best possible” near-solutions of unsatisfiable industrial SAT instances (~100K variables, 100K-1M clauses) look like? 1000’s of unsatisfied clauses or just a few? 1.Perhaps as a guidance mechanism for local search? 2.To zoom down to near-satisfying assignments? Yes! [upcoming paper at IJCAI-09] Effort driven by local search, guided by DPLL running in parallel Yes! [this talk] Effort driven by “relaxed” DPLL search, followed by local search if needed

Proposed Solver: RelaxedMinisat + Walksat Context:  Suited to MaxSAT instances non-trivial to prove unsatisfiable (otherwise method falls back to pure local search)  Instances with “near-solutions” (≤ 200 or so violated clauses) Main idea: 1.Use “relaxed” DPLL (w/ CL) as the main MaxSAT search engine  Rexation = tolerate “k” conflicts before backtracking 2.Report truth assignment with at most k conflicts on a branch 3.Improve it with local search, if needed “Theorem”: sound ( even with unit prop., clause learning, etc., solution found by RelaxedMinisat violates at most k clauses) but not complete SAT 2009Ashish Sabharwal7

Proposed Solver: RelaxedMinisat + Walksat Solver “instantiation”: ― Minisat for base DPLL search; Walksat for local search ― #conflicts to tolerate (small) fixed through quick binary search ― Rapid restarts helpful (every 100 backtracks) Key features:  Very easy to code: a few lines on top of Minisat; no change to Walksat  Running time very close to that of ‘pure’ Minisat  provides “bottleneck constraints” in the time comparable to prove unsatisfiability  Reveals a surprising feature of industrial unsat. instances not detected by any other current MaxSAT solver SAT 2009Ashish Sabharwal8

Experimental Evaluation

Results Summary  Simple idea; surprisingly good performance in practice (on instances non-trivial to prove unsatisfiable)  Tested on all 52 unsat. industrial instances from SAT Race-08 [more on this later]  Substantially better quality solutions, and faster: Often finds a solution with “very few” violated clauses within seconds – best systematic methods time out after one hour – best local search suggests 100’s to 1000’s of violated clauses SAT 2009Ashish Sabharwal10

Experimental Setup Comparison against:  Systematic solvers with best performance in MaxSAT Evaluation 2007 (maxsatz, msuf)  Local search solvers from UBCSAT with best performance on our suite (saps, adaptg2wsat+p)  Hybrid technique to be presented at IJCAI-09 (MiniWalk) [Time limit = 1 hour] SAT 2009Ashish Sabharwal11

Experimental Results Ashish Sabharwal12SAT 2009 Timelimit: 1 hour Surprising observation: Most unsat instances from SAT RACE ‘08 competition have assignments with only ONE unsatisfied clause!

Experimental Results: continued Ashish Sabharwal13SAT 2009 Timelimit: 1 hour

A Note on Benchmarks Industrial SAT Race instances clearly have interest, but… would have liked to compare on “standard” MaxSAT benchmarks from MaxSAT competitions, etc. “Unfortunately,” they are too easy for current SAT solvers (proved unsatisfiable in a couple of seconds)  RelaxedMinisat falls back to pure Walksat Is this really a true reflection of MaxSAT problem domains? Or a chicken-and-egg problem?  Perhaps there aren’t hard-to-prove-unsatisfiable MaxSAT benchmarks because no current MaxSAT solvers can handle them? SAT 2009Ashish Sabharwal14

A Note on Alternatives  Would more time have helped?  In retrospect, how about SAT re-encoding allowing one violated clause?  Create F’: satisfiable iff F has a near-solution violating 1 clause  Need one new variable per clause of F  100K+ additional vars  Need a way to count violated clauses naïve way: (100K+) 2 clauses cascading count: additional variables, limited propagation  doesn’t scale SAT 2009Ashish Sabharwal15 Local search appears to stabilize at highly sub-optimal value Not at all within the reach of systematic MaxSAT solvers

Summary and Future Directions  Simple, low-overhead strategy yields promising, and surprising, results!  DPLL-based systematic SAT solvers can provide effective guidance for MaxSAT search  Good at recognizing “near-solutions”, especially on interesting industrial instances  Creation of MaxSAT benchmarks that are hard to prove unsatisfiable  Do these single “bottleneck constraints” give any useful information?  Luckily, do not appear to be “goal constraints”; usually more interesting  Different bottleneck constraints for different random seeds  What does this say about our SAT encodings? Brittle encodings?  Dynamic parameter tuning and other optimizations [cf. Mate Soos for crypto-specific optimizations]  Weighted MaxSAT SAT 2009Ashish Sabharwal16