Towards a DEEPEREmpirical Understanding of CDCL SAT .ppt
《Towards a DEEPEREmpirical Understanding of CDCL SAT .ppt》由会员分享,可在线阅读,更多相关《Towards a DEEPEREmpirical Understanding of CDCL SAT .ppt(42页珍藏版)》请在麦多课文档分享上搜索。
1、Towards a DEEPER Empirical Understanding of CDCL SAT Solvers,Vijay Ganesh Assistant Professor, University of Waterloo, Canada Keynote Constraints Solvers in Testing, Verification, and Analysis (CSTVA) July 17, 2016 Saarbrucken, Germany,MOTIVATION: The UNREASONABLE EFFECTIVENESS OF CDCL SAT SOLVERS,C
2、onflict-driven clause learning (CDCL) SAT solvers are a key tool in software engineering and security applications, primarily due to their extraordinary efficiency Example applications: SMT solvers, dynamic symbolic testing, bounded model-checking, liquid types, exploit construction, program analysi
3、s, Isnt SAT supposed to be a hard problem. After all it is NP-complete Yes, SAT is NP-complete. And, yes, in general we believe it to be hard However, for many classes of very large industrial instances SAT solvers are very efficient. This is a mystery that has stumped theoreticians and practitioner
4、s alikeBuild significantly more efficient SAT solvers,2,THE RESEARCH QUESTIONS IN UNDERSTANDING The UNREASONABLE EFFECTIVENESS OF CDCL SAT SOLVERS,Understand the input structure of SAT instances (e.g., community structure, backdoors,) WGS03, BSG09, AL12, NGFAS14, Identify the most important techniqu
5、es in CDCL SAT solvers KSM11, Define a precise model encompassing the most important techniques, e.g., branching LGZC15Put all of this together in a complexity-theoretic framework AFT11, PD11,3,A literal p is a Boolean variable x or its negation x. A clause C is a disjunction of literals: x2 x41 x15
6、 A CNF is a conjunction of clauses: (x2 x1 x5) (x6 x2) (x3 x4 x6) An assignment is a mapping from variables to Boolean values (True, False). A unit clause C is a clause with a single unbound literal The Boolean SAT problem is Find an assignment such that each input clause has a true literal (aka inp
7、ut formula is SAT) OR establish that input formula has no solution (aka input formula is UNSAT) SAT solvers are required to output a solution if input is SAT (many solvers also produce a proof if input is UNSAT) Boolean formulas are typically represented in DIMACS Format,The boolean satisfiability p
8、roblem some standard definitions,6,DPLL SAT Solver Architecture The Basic Solver,DPLL(cnf, assign) Propagate unit clauses;if ”conflict”: return FALSE;if ”complete assign”: return TRUE;”pick decision variable x”;return DPLL(cnfx=0, assignx=0)| DPLL(cnfx=1, assignx=1);,Key Steps in a DPLL SAT SolverPr
9、opagate (Boolean Constant Propagation)Propagate inferences due to unit clausesMost of solving “effort” goes into this stepDetect ConflictConflict: partial assignment is not satisfyingDecide (Branch)Choose a variable & assign some valueBacktrackingImplicitly done via recursive calls in DPLL,7,Modern
10、CDCL SAT Solver Architecture Key Steps and Data-structures,Key steps Decide()Propagate() (Boolean constant propagation)Conflict analysis and learning() (CDCL)Backjump()Forget()Restart()CDCL: Conflict-Driven Clause-LearningConflict analysis is a key stepResults in learning a learnt clausePrunes the s
11、earch spaceKey data-structures (Solver state)Stack or trail of partial assignments (AT)Input clause databaseConflict clause databaseConflict graphDecision level (DL) of a variable,THE RESEARCH QUESTIONS IN UNDERSTANDING The UNREASONABLE EFFECTIVENESS OF CDCL SAT SOLVERS,Understand the input structur
12、e of SAT instances (e.g., community structure, backdoors,) WGS03, BSG09, AL12, NGFAS14, Identify the most important techniques in CDCL SAT solvers KSM11, Define a precise model encompassing the most important techniques, e.g., branching LGZC15Put all of this together in a complexity-theoretic framew
13、ork AFT11, PD11,8,MotivationBackground: Internals of SAT solversProblem statementOur empirical discoveriesCharacterizing industrial instances via community structure LGRC15, NGFAS14*Understanding branching heuristics, a la, VSIDS LGZC15LRB: A new branching heuristic LGPC16, LGPC+16*Putting it all to
14、gether, and conclusions(* Won best paper award at SPLC 2015, and student paper award at SAT 2014. * Won the SAT competition 2016),Talk Outline,Community Structure and SAT Solver Performance Graphs and their Community Structure,Question: How does one go about characterizing the structure of SAT insta
15、nces? Theorists have proposed a variety of metrics like backdoors, treewidth, We considered these measures, but found them to be inadequate in various ways. E.g., weak backdoors do not apply to unsatisfiable instances. Tree width has been shown to not correlate well with SAT solver performance. Answ
16、er: The intuition we had was to focus on metrics that somehow mathematically characterize “important parts” of the SAT formula. We were hoping to argue that the solver somehow focuses on these “important parts” first, and thus solves very large instances without needing to “process” the entire formu
17、la. Defining the “important part of a SAT formula” in a generic way is easier said than done Community structure to rescue View SAT formula as a variable-incidence graph. Partition the graph via the concept of community structure. Focus on highly-connected components.,A note on Community Structure i
18、n Graphs Applications in Various Domains,Community structure GN03,CNM04,OL13 is used to study all kinds of complex networks.Social Networks, e.g. Facebook Internet Protein networks Neural network of the human brain Citation graphs Business networks Populations And more recently, the graph of logical
19、 formulas,Community Structure in Graphs Variable-incidence Graph of Non-random Formula,Community Structure in Graphs Variable-incidence Graph of Random Formula,Modularity and Communities in Graphs Community Structure in Graphs,Modularity (Q) of graph lies between 0 and 1A weighted ratio of the numbe
20、r of edges inside communities to the total number of edges in the graphQ measures qualityHow separable are the communities in the graphHigher Q implies “good community structure”, i.e. highly separable communitiesLower Q implies “bad community structure”, i.e. one giant hairy ball,Community Structur
21、e and SAT Solver Performance Empirical Results,Result #1: Hard random instances have low Q (0.05 Q 0.13)Result #2: Number of communities and Q of SAT instances are more predictive of CDCL solver performance than other measures we consideredResult #3: Strong correlation between community structure an
22、d LBD (Literal Block Distance) in Glucose solver,Community Structure and SAT Solver Performance Characterizing Typical Inputs,Take-home MessageCommunity structure (the quality of which is measured using a metric called Q) of SAT instances strongly affect solver performanceWorking towards Small predi
23、ctive set of features that forms the basis for a more complete explanation Community structure idea needs to be constrained further to eliminate easy theoretical counter-examples More broadly, community structure is a starting point for a line of research that enables us to identify “important sub-p
24、arts” of SAT formulas statically Community structure and learning-sensitive with restarts (LSR) backdoors,Community Structure and SAT Solver Performance IMPACT of this idea,Impact of the Community Structure IdeaNew techniques to exploit community structure by Giraldez-Cru, Levy, Simon,A flourishing
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- TOWARDSADEEPEREMPIRICALUNDERSTANDINGOFCDCLSATPPT

链接地址:http://www.mydoc123.com/p-373428.html