




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































A Dissertation Presented to the Faculty of the Graduate School of Cornell University In Partial Fulfillment of the Requirements for the Degree of Doctor of Philosophy
by Lukas Kroc August 2009
Lukas Kroc has earned his PhD degreed in computer science at Cornell University in 2009. His research interests lie in the field of artificial intelligence, with focus on using techniques of probabilistic inference in combinatorial reasoning. Prior to his PhD time he worked at Los Alamos National Laboratory on large scale simulation design and development. Lukas received a MSc in computer science from Charles University, Prague, in 2004.
iii
To Beatrice, for being an eternal inspiration.
I would like to extend my sincerest gratitude towards people who have helped me with this dissertation, and have supported me during my time at Cornell. This, of course, includes the members of my committee, Michael Spivey, John Hopcroft, and my advisor Bart Selman. Bart’s very encouraging and supportive attitude in particular was a great help during my studies. Above all, I appreciated very much his friendly approach to me, and his good understanding of basic human needs, the search for happiness being one of the more important ones. My stay in Ithaca would not have been possible without the constant support from many of my friends, who I dare not list here fearing that I might unintention- ally omit some. I want to thank them all from the bottom of my heart for sharing parts of their lives with me, and for showing me many a thing that I did not even know I had been missing before. However, one name must be mentioned, as he not only supported me as a friend, but also very much as a researcher: Ashish Sab- harwal. Ashish was a post-doctoral researcher at Cornell at the time, and all the research described in this dissertation was discussed with him and made possible only through his help.
vi
Biographical Sketch.............................. iii Dedication................................... iv Acknowledgements.............................. vi Table of Contents............................... vii List of Tables................................. ix
6.1 Performance of BPCount and MiniCount................ 148 6.2 (Continued from Table 6.1.) Performance of BPCount and MiniCount. 6.3 Performance of MiniCount without restarts.............. 150 7.1 Comparison of MaxSAT results for exact, local search, and cur- rently proposed hybrid, and relaxed DPLL methods......... 169 7.2 (Continued from Table 7.1.) Comparison of MaxSAT results.... 170
ix
2.1 An example of a factor graph..................... 12 2.2 Belief propagation update equations for SAT problem........ 19 3.1 Modified belief propagation update equations, BPκ.......... 29 3.2 Quality of solution marginals computed by BP (left) and BPκ^ (right). 31 3.3 Various decimation heuristics on random 3-SAT, 4-SAT, and 5-SAT formulas................................. 33 3.4 Cumulative number of unit clauses generated during decimation.. 36 3.5 Hardness of subformulas created by BPκ^ and SP.......... 38 4.1 BP equations for Fx.......................... 55 4.2 BP equations for Fa.......................... 55 4.3 The peeling experiment, showing the evolution of the number of stars as ∗-propagation proceeds.................... 58 4.4 Non-trivial covers in random formulas. Left: existence probability. Right: average number......................... 59 4.5 Left: Expected number of solutions leading to non-trivial covers (log-log scale). Right: Probability of a solution leading to a non- trivial cover............................... 61 4.6 Magnetization plots. Left: SP vs. covers. Middle: covers vs. solu- tions. Right: BP vs. solutions..................... 63 5.1 Illustration for the proof of Lemma 4................. 87 5.2 Left: Z(−1) vs. number of clusters in random 3-COL problems with 20, 50 and 100 vertices, and average vertex degree between
x
Many problems occurring in science, engineering and life in general have the form of making several interdependent decisions, so that a certain set of conditions is satisfied. For example, an airline company makes decisions about which airplanes fly from where and when, subject to the conditions that the planes are available and its customers are properly served. These kinds of problems can be conveniently modeled in a framework of Constraints Satisfaction Problems (CSPs). The choices and other unknowns in the problem are represented by variables, typically with a discrete domain, and the conditions that need to be satisfied in a solution of the problem are given as a set of constraints, limiting the set of values each variable can take given values of other variables. A solution to a CSP is then an assignment to all variables such that all constraints are satisfied. This framework allows for natural modeling of many practical problems, and devising solution techniques for CSP is thus a very important area of research. In the worst case, solving a CSP problem is an NP-hard task, because Boolean Satisfiability (SAT), the first problem to be shown NP-hard, is a special case of a CSP with binary boolean variables and constraints specified as logical disjunctions. It is also the case that many practical CSP problems are hard to solve, and a lot of research effort goes into
1
improving efficiency of CSP and SAT solvers. The solvers have become gradually more and more powerful, and in the past 15 years they evolved from a “toy- problem solvers” to solvers that help with important industrial tasks. Nevertheless, scalability remains an issue, and new and more advanced techniques are being sought. The material contained in this dissertation touches on several possible exten- sions to current techniques. A large portion is devoted to examining and analyzing an algorithm that was introduced in the statistical physics community by M´ezard, Parisi, and Zecchina [2002], called Survey Propagation (SP). This algorithm is able to solve hard instances from a family of so called “random SAT problems” with millions of variables, far outperforming other kinds of solvers. The solution tech- nique being employed is decimation, that is setting variables one by one, where the information about which variables to set to which values comes from the SP. Being developed in a vastly different field, the algorithm remained hard to understand in the computer science community for many years. Braunstein and Zecchina [2004] and Maneva et al. [2005] showed that SP algorithm can be viewed as an instance of the well known Belief Propagation algorithm (BP) [Pearl, 1988], which has strengths and limitations that are well established in the CS community. Both BP and SP are called message passing algorithms, since they operate by converg- ing on a solution by letting the variables and constraints exchange information (messages). The details are reviewed in the following chapter. The first part of the dissertation compares performance of SP and BP with other decimation heuristics, with the aim of identifying features of the decimation process that allow the SP algorithm to outperform the other approaches. Survey propagation is then analyzed in more detail in the subsequent chapter, where solid empirical evidence is provided to complement the original derivation of SP as an
Without going into a formal definition, let us informally introduce a Constraint Satisfaction Problem (CSP). Such problem has a set of variables with discrete domains, and a set of constraints, each specifying a set of allowed value tuples for a certain subset of variables. We can now describe the three problem classes that are discussed in this dissertation:
Solution Search: A value assignment to all variables is being sought such that every constraint is satisfied, that is the assignment comprises of allowed value tuples for all constraints. Such an assignment is a solution. A special case of this class is the well studied Boolean Satisfiability problem (SAT).
Solution Count: Problem of counting the number of solutions of a CSP. A special case is a problem of counting number of solutions to SAT, a so called #SAT problem.
Most Satisfying Assignment: Problem of finding an assignment that violates the fewest possible constraints (usually with the assumption that there is no solution that satisfies all constraints). A special case is Maximum Satisfiabil- ity (MaxSAT), a problem of minimizing the number of violated constraints in SAT.
These are all hard problems in the worst case. Solution search (also a special case of minimizing number of violated constraints) is an NP-hard problem, due to SAT; solution count is #P-hard, due to #SAT [Valiant, 1979].
The two most widely used solution techniques for CSP are systematic search and local search. This part briefly describes the two approaches, contrasting their way of search. Details can be found for example in Biere et al. [2009]. In addition, a third solution technique that became promising with the success of Survey propagation, so called decimation, is reviewed.
Systematic Search: The basic idea of systematic search is to keep assigning variables one at a time, until a solution is found, or some constraint becomes vi- olated. In the latter case, the search unassigns some previous assignments (back- tracks), making the violated constraint possible to satisfy, and continues the search with other variable assignments. The most important decisions to be made are which variables to assign values first (variable selection), and which values to choose (value selection). In case of SAT, there are only two possible values for each vari- able (true or false), and together with the simplicity of the constraints (logical or), this has led to development of highly efficient heuristics, capable of solving rel- atively large instances of SAT encoded problems. The systematic solution search in SAT dates back several decades, and modern solvers still use an enhanced version of the Davis-Putnam-Logemann-Loveland (DPLL) procedure [Davis and Putnam, 1960, Davis et al., 1962]. The two main ingredients of modern systematic SAT solvers are fast unit propagation (the ability to discover variables that surely have to assume one particular value after some other variables have been set) and clause learning (the ability to learn inferred constraints that better guide the search). To contrast with the other approaches, the main characteristic of systematic search is the following: it works with an incomplete, but consistent assignment. Incomplete because not all variables are assigned a value, and consistent because
The decimation step itself is rather simple: determine which variable-value assign- ment is the most “prominent” one, and fix it. This simplifies the problem and the procedure can be repeated. We leave the exact meaning of “prominent” un- specified at this point, but it will usually be something like “an assignment that is compatible with most solutions”. This is of course a very expensive piece of infor- mation (in fact, more expensive than obtaining any one solution!), but sufficiently accurate estimates are obtainable using probabilistic inference with message pass- ing algorithms, like belief or survey propagation. The details of how decimation works are covered in Chapter 3. On the other hand, decimation could also be viewed as a systematic search, with very expensive variable and value ordering heuristics. However, if a violated constraint is found due to incorrect variable setting, the algorithm fails rather than performing a backtrack.
The main technical contributions of the dissertation are summarized below.
7
CSP. A cluster is a set of solutions that are similar to each other in terms of the values of the variables. This work results in new insights about the solution space structure of CSPs, and provides a novel derivation of SP for SAT as a BP used to reason about clusters.