Statistical Physics of Hard Optimization Problems

Lenka Zdeborová

Acknowledgment

First of all I would like to express my thanks to my advisor Marc Mézard from whom I learned a lot. He showed me how to combine enthusiasm, patience, computations, and intuition in the correct proportion to enjoy the delicious taste of the process of discovery. I thank as well to my advisor Václav Janiš who guided my scientific steps mainly in the earlier stages of my work.

This work would never be possible without the contact and discussions with my colleagues and collaborators all over the world. Without them I would feel lost in the vast world of unknown. I am grateful to all the organizers of workshops, conferences and summer schools where I had participated. I also thank for invitations on visits and seminars which were always very inspiring.

I am very thankful to the whole Laboratoire de Physique Théorique et Modèles Statistiques for a very warm reception and to all its members for helping me whenever I needed. I also owe a lot to my professors from the Charles University in Prague, and to my colleagues from the Institute of Physics of the Academy of Sciences in Prague. I also thank the referees of my thesis and other members of the thesis committee for their interest in my work and for accepting this task.

I value profoundly the scholarship granted by the French Government which covered the largest part of my stay in France. Further, I appreciated greatly the subvention from the French ministry for higher education and research ”cotutelles internationales de thése”. I also acknowledge gratefully the support from the FP6 European network EVERGROW.

My deepest thanks go to my parents for their constant support, encouragement, and love. Finally, thank you Flo for all the items above and many more. You taught me well, and yes I am the Jedi now.

Title: Statistical Physics of Hard Optimization Problems

Abstract: Optimization is fundamental in many areas of science, from computer science and information theory to engineering and statistical physics, as well as to biology or social sciences. It typically involves a large number of variables and a cost function depending on these variables. Optimization problems in the NP-complete class are particularly difficult, it is believed that the number of operations required to minimize the cost function is in the most difficult cases exponential in the system size. However, even in an NP-complete problem the practically arising instances might, in fact, be easy to solve. The principal question we address in this thesis is: How to recognize if an NP-complete constraint satisfaction problem is typically hard and what are the main reasons for this? We adopt approaches from the statistical physics of disordered systems, in particular the cavity method developed originally to describe glassy systems. We describe new properties of the space of solutions in two of the most studied constraint satisfaction problems - random satisfiability and random graph coloring. We suggest a relation between the existence of the so-called frozen variables and the algorithmic hardness of a problem. Based on these insights, we introduce a new class of problems which we named ”locked” constraint satisfaction, where the statistical description is easily solvable, but from the algorithmic point of view they are even more challenging than the canonical satisfiability.

Keywords: Constraint satisfaction problems, combinatorial optimization, random coloring problem, average computational complexity, cavity method, spin glasses, replica symmetry breaking, Bethe approximation, clustering of solutions, phase transitions, message passing, belief propagation, satisfiability threshold, reconstruction on trees.

Titre: Physique statistique des problèmes d’optimisation

Résumé: L’optimisation est un concept fondamental dans beaucoup de domaines scientifiques comme l’informatique, la théorie de l’information, les sciences de l’ingénieur et la physique statistique, ainsi que pour la biologie et les sciences sociales. Un problème d’optimisation met typiquement en jeu un nombre important de variables et une fonction de coût qui dépend de ces variables. La classe des problèmes NP-complets est particulièrement difficile, et il est communément admis que, dans le pire des cas, un nombre d’opérations exponentiel dans la taille du problème est nécessaire pour minimiser la fonction de coût. Cependant, même ces problèmes peuveut être faciles à résoudre en pratique. La principale question considérée dans cette thèse est comment reconnaître si un problème de satisfaction de contraintes NP-complet est ”typiquement” difficile et quelles sont les raisons pour cela ? Nous suivons une approche inspirée par la physique statistique des systèmes desordonnés, en particulier la méthode de la cavité développée originalement pour les systèmes vitreux. Nous décrivons les propriétés de l’espace des solutions dans deux des problèmes de satisfaction les plus étudiés : la satisfiabilité et le coloriage aléatoire. Nous suggérons une relation entre l’existence de variables dites ”gelées” et la difficulté algorithmique d’un problème donné. Nous introduisons aussi une nouvelle classe de problèmes, que nous appelons ”problèmes verrouillés”, qui présentent l’avantage d’être à la fois facilement résoluble analytiquement, du point de vue du comportement moyen, mais également extrêmement difficiles du point de vue de la recherche de solutions dans un cas donné.

Les mots clefs: Problèmes d’optimisation de contraintes, optimisation combinatoire, problèmes de coloriage, complexité de calcul moyenne, méthode de la cavité, verres de spins, brisure de la symétrie des répliques, approximation de Bethe, regroupement des solutions en amas, transitions de phases, passage de messages, propagation des convictions, seuil de satisfiabilité, reconstruction sur des arbres.

Název: Statistická fyzika těžkých optimalizačních úloh

Abstrakt: Optimalizace je fundamentální koncept v mnoha vědních oborech, počínaje počítačovou vědou a teorií informace, přes inženýrství a statistickou fyziku, až po biologii či ekonomii. Optimalizační úloha se typicky skládá z minimalizace funkce závisející na velkém množství proměnných. Problémy z takzvané NP-úplné třídy jsou obzvláště složité, věří se, že počet operací potřebný k nalezení řešení v tom nejtěžším případě roste exponenciálně s počtem proměných. Nicméně i pro NP-úplné úlohy platí, že praktické případy mohou být jednoduché. Hlavní otázka, kterou se zabývá tato práce, je: Jak rozpoznat, zda je NP-úplný problém splnitelnosti podmínek v typickém případě těžký a čím je tato složitost způsobena? K této otázce přistupujeme s využitím znalostí ze statistické fyziky neuspořádaných, a zejména skelných, systémů. Popíšeme nové vlastnosti prostoru řešení ve dvou z nejvíce studovaných optimalizačních problémů – splnitelnosti náhodných Booleovských formulí a barvení náhodných grafů. Navrhneme existenci vztahu mezi typickou algoritmickou složitostí a existencí takzvaně zamrzlých proměnných. Na základě těchto poznatků zkonstruujeme novou třídu problémů, které jsme nazvali ”uzamknuté”, zde je statistický popis množiny všech řešení poměrně jednoduchý, ale z algoritmického pohledu jsou tyto typické případy těchto problémů ještě težši než v kanonickém problému splitelnosti Booleovských formulí.

Klíčová slova: Problémy splnitelnosti podmínek, kombinatorická optimalizace, barvení náhodných grafů, průměrná algoritmická složitost, metoda kavity, spinová skla, narušení symetrie replik, Betheho aproximace, shlukování řešení, fázové přechody, posílání zpráv, propagace domněnek, práh splnitelnosti, rekonstrukce na stromech.

Foreword

P.-G. de Gennes in his foreword to the book ”Stealing the gold – A celebration of the pioneering physics of Sam Edwards” wrote:

But he {meaning S. Edwards} also has another passion, which I {meaning P.-G. de Gennes} call ”The search for unicorns.” To chase unicorns is a delicate enterprise. Medieval Britons practised it with great enthusiasm (and this still holds up to now: read Harry Potter). Sir Samuel Edwards is not far from the gallant knights of the twelfth century. Discovering a strange animal, approaching it without fear, then not necessarily harnessing the creature, but rapidly drawing a plausible sketch of its main features.

One beautiful unicorn prancing in the magic garden of Physics has been names ”Spin glass.” It is rare: not many pure breeds of Spin glasses have been found in Nature. But we have all watched the unpredictable jumps of this beast. And we have loved its story – initiated by Edwards and Anderson.

Unicorn is a mythical animal, described in the book of Job, together with another strange and fascinating creature which is less peaceful: the leviathan. Leviathans are described as immense terrible monsters, invincible beasts. Most people prefer not to even think about them.

This thesis tells a story about what happens when the fierce and mysterious beauty of a unicorn meets with the invincibility of a leviathan.

Chapter 1 Hard optimization problems

In this opening chapter we introduce the constraint satisfaction problems and discuss briefly the computer science approach to the computational complexity. We review the studies of the random satisfiability problem in the context of average computational complexity investigations. We describe the connection between spin glasses and random CSPs and highlight the most interesting results coming out from this analogy. We explain the replica symmetric approach to these problems and show its usefulness on the example of counting of matchings [ZDEB-1]. Then we review the survey propagation approach to constraint satisfaction on an example of 1-in-KK satisfiability [ZDEB-3]. Finally we summarize the main contributions of the author to the advances in the statistical physics of hard optimization problems, that are elaborated in the rest of the thesis.

Optimization is a common concept in many areas of human activities. It typically involves a large number of variables, e.g. particles, agents, cells or nodes, and a cost function depending on these variables, such as energy, measure of risk or expenses. The problem consists in finding a state of variables which minimizes the value of the cost function.

In this thesis we will concentrate on a subset of optimization problems the so-called constraint satisfaction problems (CSPs). Constraint satisfaction problems are one of the main building blocks of complex systems studied in computer science, information theory and statistical physics. Their wide range of applicability arises from their very general nature: given a set of NN discrete variables subject to MM constraints, the CSP consists in deciding whether there exists an assignment of variables which satisfies simultaneously all the constraints. And if such an assignment exists then we aim at finding it.

In computer science, CSPs are at the core of computational complexity studies: the satisfiability of boolean formulas is the canonical example of an intrinsically hard, NP-complete, problem. In information theory, error correcting codes also rely on CSPs. The transmitted information is encoded into a codeword satisfying a set of constraints, so that the information may be retrieved after transmission through a noisy channel, using the knowledge of the constraints satisfied by the codeword. Many other practical problems in scheduling a collection of tasks, in electronic design engineering or artificial intelligence are viewed as CSPs. In statistical physics the interest in CSPs stems from their close relation with the theory of spin glasses. Answering if frustration is avoidable in a system is the first, and sometimes highly nontrivial, step in understanding the low temperature behaviour.

A key point is to understand how difficult it is to solve practical instances of a constraint satisfaction problem. Everyday experience confirms that sometimes it is very hard to find a solution. Many CSPs require a combination of heuristics and combinatorial search methods to be solved in a reasonable time. A key question we address in this thesis is thus why and when are some instances of these problems intrinsically hard. Answering this question has, next to its theoretical interest, several practical motivations

Understanding where the hardness comes from helps to push the performance of CSPs solvers to its limit.

Understanding which instances are hard helps to avoid them if the nature of the given practical problem permits.

Finding the very hard problem might be interesting for cryptographic application.

A pivotal step in this direction is the understanding of the onset of hardness in random constraint satisfaction problems. In practice random constraint satisfaction problems are either regarded as extremely hard as there is no obvious structure to be explored or as extremely simple as they permit probabilistic description. Furthermore, random constraint satisfaction models are spin glasses and we shall thus borrow methods from the statistical physics of disordered systems.

2 Constraint Satisfaction Problems: Setting

Constraint Satisfaction Problem (CSP): Consider NN variables s1…,sNs_{1}\dots,s_{N} taking values from the domain {0,…,q−1}\{0,\dots,q-1\}, and a set of MM constraints. A constraint aa concerns a set of kak_{a} different variables which we call ∂a\partial a. Constraint aa is a function from all possible assignments of the variables ∂a\partial a to {0,1}\{0,1\}. If the constraint evaluates to 11 we say it is satisfied, and if it evaluates to we say it is violated. The constraint satisfaction problem consists in deciding whether there exists an assignment of variables which satisfies simultaneously all the constraints. We call such an assignment a solution of the CSP.

In physics, the variables represent qq-state Potts spins (or Ising spins if q=2q=2). The constraints represent very general (non-symmetric) interactions between kak_{a}-tuples of spins. In Boolean constraint satisfaction problems (q=2q=2) a literal is a variable or its negation. A clause is then a disjunction (logical OR) of literals.

A handy representation for a CSP is the so-called factor graph, see [KFL01] for a review. Factor graph is a bipartite graph G(V,F,E)G(V,F,E) where VV is the set of variables (variables nodes, represented by circles) and FF is the set of constraints (function nodes, represented by squares). An edge (ia)∈E(ia)\in E is present if the constraint a∈Fa\in F involves the variable i∈Vi\in V. A constraint aa is connected to kak_{a} variables, their set is denoted ∂a\partial a. A variable ii is connected to lil_{i} constraints, their set is denoted ∂i\partial i. For clarity we specify the factor graph representation for the graph coloring and exact cover problem in fig. 1.1, both defined in the following section 1.2.2.

2.2 List of CSPs discussed in this thesis

Here we define constraint satisfaction problems which will be discussed in the following. Most of them are discussed in the classical reference book [GJ79]. The most studied constraint satisfaction problems are defined over Boolean variables, q=2q=2, si∈{0,1}s_{i}\in\{0,1\}. Sometimes we use equivalently the notation with Ising spins si∈{−1,+1}s_{i}\in\{-1,+1\}. CSPs with Boolean variables that we shall discuss in this thesis are:

Satisfiability (SAT) problem: Constraints are clauses, that is logical disjunctions of literals (i.e., variables or their negations). Example of a satisfiable formula with 3 variables and 4 clauses (constraints) and 10 literals: (x1∨x2∨¬x3)∧(x2∨x3)∧(¬x1∨¬x3)∧(x1∨¬x2∨x3)(x_{1}\vee x_{2}\vee\neg x_{3})\wedge(x_{2}\vee x_{3})\wedge(\neg x_{1}\vee\neg x_{3})\wedge(x_{1}\vee\neg x_{2}\vee x_{3}).

KK-SAT: Satisfiability problem where every clause involves KK literals, ka=Kk_{a}=K for all a=1,…,Ma=1,\dots,M.

Not-All-Equal SAT: Constraints are satisfied everytime except when all the literals they involve are TRUE or all of them are FALSE.

Bicoloring: Constraints are satisfied except when all variables they involve are equal. Bicoloring is Not-All-Equal SAT without negations.

XOR-SAT: Constraints are logical XORs of literals.

Odd (resp. Even) Parity Checks: A constraint is satisfied if the sum of variables it involves is odd (resp. even). Odd parity checks are XORs without negations.

1-in-KK SAT: Constraints are satisfied if exactly one of the KK literals they involve is TRUE.

Exact Cover, or positive 1-in-KK SAT: Constraints are satisfied if exactly one of the KK variables they involve is 11 (occupied). Exact cover, or positive 1-in-KK SAT, is 1-in-KK SAT without negations.

Perfect matching: Nodes of the original graph become constraints, variables are on edges and determine if the edge is or is not in the matching, see fig. 1.5. Constraints are satisfied if exactly one of the KK variables they involve is 11 (belongs to the matching). Note that perfect matching is just a variant of the Exact Cover

Occupation problems are defined by a binary (K+1)(K+1) component vector AA. All constraints involve KK variables, and are satisfied if the sum of variables they involve r=∑∂asir=\sum_{\partial a}s_{i} is such that Ar=1A_{r}=1.

Locked Occupation Problems (LOPs): If the vector AA is such that AiAi+1=0A_{i}A_{i+1}=0 for all i=0,…,K−1i=0,\dots,K-1, and all the variables are present in at least two constraints.

We will also consider in a great detail one CSP with qq-ary variables: The graph coloring with qq colors: Every constraint involves two variables and is satisfied if the two variables are not assigned the same value (color). In physics the qq-ary variables are called Potts spins.

2.3 Random factor graphs: definition and properties

Given a constraint satisfaction problem with NN variables and MM constraints, the constraint density is defined as α=M/N\alpha=M/N. Denote by R(k){\cal R}(k) the probability distribution of the degree of constraints (number of neighbours in the factor graph), and by Q(l){\cal Q}(l) the probability distribution of the degree of variables. The average connectivity (degree) of constraints is

The constraint density is then asymptotically

A random factor graph with a given NN and MM is then created as follows: Draw a sequence {l1,…,lN}\{l_{1},\dots,l_{N}\} of NN numbers from the distribution Q(l){\cal Q}(l). Subsequently, draw a sequence {k1,…,kM}\{k_{1},\dots,k_{M}\} of MM numbers from the distribution R(k){\cal R}(k), such that ∑a=1Mki=∑i=1Nli\sum_{a=1}^{M}k_{i}=\sum_{i=1}^{N}l_{i}. The random factor graph is drawn uniformly at random from all the factor graphs with NN variables, MM constraints and degree sequences {l1,…,lN}\{l_{1},\dots,l_{N}\} and {k1,…,kM}\{k_{1},\dots,k_{M}\}.

Another definition leading to a Poissonian degree distribution is used often if the degree of constraints is fixed to KK and the number of variables is fixed to NN. There are (NK){N\choose K} possible positions for a constraint. Each of these positions is taken with probability

The number of constraints is then a Poissonian random variable with average M=cN/KM=cN/K. The degree of variables is distributed according to a Poissonian law with average cc

If K=2K=2 these are the random Erdős-Rényi graphs [ER59]. This definition works also if constraints are changed for variables, that is if the degree of variables and the number of constraints are fixed, as in e.g. the matching problem.

The random factor graphs are called regular if both the degrees of constraints and variables are fixed, R(k)=δ(k−K){\cal R}(k)=\delta(k-K) and Q(l)=δ(l−L){\cal Q}(l)=\delta(l-L). In section 4.3 we will also use the truncated Poissonian degree distribution

The average connectivity for the truncated Poissonian distribution is then

In the cavity approach, the so-called excess degree distribution is a crucial quantity. It is defined as follows: Choose an edge (ij)(ij) at random and consider the probability distribution of the number of neighbours of ii except jj. The variables (analogously for constraints) excess degree distribution thus reads

We will always deal with factor graphs where KK and cc are of order one, and N→∞,M→∞N\to\infty,M\to\infty. These are called sparse random factor graphs. Concerning the physical properties of sparse random factor graphs the two definitions of a random graph with Poissonian degree distribution are equivalent. Some properties (e.g. the annealed averages) can however depend on the details of the definition.

Consider a random variable ii in the factor graph. We want to estimate the average length of the shortest cycle going through variable ii. Consider a diffusion algorithm spreading into all direction but the one it came from. The probability that this diffusion will arrive back to ii in dd steps reads

where γl=l2‾/l‾−1\gamma_{l}=\overline{l^{2}}/\overline{l}-1 and γk=k2‾/k‾−1\gamma_{k}=\overline{k^{2}}/\overline{k}-1 are the mean values of the excess degree distribution (1.8). The probability (1.9) is almost surely zero if

An important property follows: As long as the degree distributions R(k){\cal R}(k) and Q(l){\cal Q}(l) have a finite variance the sparse random factor graphs are locally trees up to a distance scaling as log⁡N\log{N} (1.10). We define this as the tree-like property.

In this thesis we consider only degree distributions with a finite variance. A generalization to other cases (e.g. the scale-free networks with long-tail degree distributions) is not straightforward and many of the results which are asymptotically exact on the tree-like structures would be in general only approximative. We observed, see e.g. fig. 2.2, that many of the nontrivial properties predicted asymptotically on the tree-like graphs seems to be reasonably precise even on graphs with about N=102−104N=10^{2}-10^{4} variables. It means that the asymptotic behaviour sets in rather early and does not, in fact, require log⁡N≫1\log N\gg 1.

3 Computational complexity

Theoretical computer scientists developed the computational complexity theory in order to quantify how hard problems can be in the worst possible case. The most important and discussed complexity classes are the P, NP and NP-complete.

A problem is in the P (polynomial) class if there is an algorithm which is able to solve the problem for any input instance of length NN in at most cNkcN^{k} steps, where kk and cc are constants independent of the input instance. The formal definitions of what is a ”problem”, its ”input instance” and an ”algorithm” was formalized in the theory of Turing machines [Pap94], where the definition would be: The complexity class P is the set of decision problems that can be solved by a deterministic Turing machine in polynomial time. A simple example of polynomial problem is sorting a list of NN real numbers.

A problem is in the NP class if its instance can be stored in memory of polynomial size and if the correctness of a proposed result can be checked in polynomial time. Formally, the complexity class NP is the set of decision problems that can be solved by a non-deterministic Turing machine in polynomial time [Pap94], NP stands for non-deterministic polynomial. Whereas the deterministic Turing machine is basically any of our today computers, the non-deterministic Turing machine can perform unlimited number of parallel computations. Thus, if for finite NN there is a finite number of possible solutions all of them can be checked simultaneously. This class contains many problems that we would like to be able to solve efficiently, including the Boolean satisfiability problem, the traveling salesman problem or the graph coloring. Problems which do not belong to the NP class are for example counting the number of solutions in Boolean satisfiability, or the random energy model [Der80, Der81].

All the polynomial problems are in the NP class. It is not known if all the NP problems are polynomial, and it is considered by many to be the most challenging problem in theoretical computer science. It is also one of the seven, and one of the six still open, Millennium Prize Problems that were stated by the Clay Mathematics Institute in 2000 (a correct solution to each of these problems results in a $1,000,000 prize for the author). A majority of computer scientists, however, believes that the negative answer is the correct one [Gas02].

The concept of NP-complete problems was introduced by Cook in 1971 [Coo71]. All the NP problems can be polynomially reduced to any NP-complete problem, thus if any NP-complete problem would be polynomial then P==NP. Cook proved [Coo71] that the Boolean satisfiability problem is NP-complete. Karp soon after added 21 new NP-complete problems to the list [Kar72]. Since then thousands of other problems have been shown to be NP-complete by reductions from other problems previously shown to be NP-complete; many of these are collected in the Garey and Johnson’s ”Guide to NP-Completeness” [GJ79].

Schaefer in 1978 proved a dichotomy theorem for Boolean (q=2q=2) constraint satisfaction problems. He showed that if the constraint satisfaction problem has one of the following four properties then it is polynomial, otherwise it is NP-complete. (1) All constraints are such that si=1s_{i}=1 for all ii is a solution or si=0s_{i}=0 for all ii is a solution. (2) All constraints concern at most two variables (e.g. in 2-SAT). (3) All constraints are linear equations modulo two (e.g. in XOR-SAT). (4) All constraints are the so-called Horn clauses or all of them are the so-called dual Horn clauses. A Horn clause is a disjunction of variables such that at most one variable is not negated. A dual Horn clause is when at most one variable is negated. A similar dichotomy theorem exists for 3-state variables, q=3q=3, [Bul02]. Generalization for q>3q>3 is not known.

3.2 The average case hardness

Given the present knowledge, it is often said that all the polynomial problems are easy and all the NP-complete problems are very hard. But, independently if P==NP or not, even polynomial problems might be practically very difficult, and some (or even most) instances of the NP-complete problems might be practically very easy.

An example of a still difficult polynomial problem is the primality testing, a first polynomial algorithm was discovered by [AKS04]. But a ”proof” of remaining difficulty is the EFF prize [EFF] of $100,000 to the first individual or group who discovers the first prime number with at least 10,000,000 decimal digits.

And how hard are the NP-complete problems? One way to answer is that under restrictions on the structure an NP-complete problem might become polynomial. Maybe the most famous example is 4-coloring of maps (planar factor graphs) which is polynomial. Moreover, it was a long standing conjecture that every map is colorable with 4 colors, proven by Appel and Haken [AH77b, AH77a]. Interestingly enough 3-coloring of maps is NP-complete [GJ79].

But there are also settings under which the problem stays NP-complete and yet almost every instance can be solved in polynomial time. A historically important example is the Boolean satisfiability where each clause is generated by selecting literals with some fixed probability. Goldberg introduced this random ensemble and showed that the average running time of the Davis-Putnam algorithm [DP60, DLL62] is polynomial for almost all choices of parameter settings [Gol79, GPB82]. Thus in the eighties some computer scientist tended to think that all the NP-complete problems are in fact on average easy and it is hard to find the evil instances which makes them NP-complete.

The breakthrough came at the beginning of the nineties when Cheeseman, Kanefsky and Taylor asked ”Where the really hard problems are?” in their paper of the same name [CKT91]. Shortly after Mitchell, Selman and Levesque came up with a similar work [MSL92]. Both groups simply took a different random ensemble of the satisfiability (in the second case) and coloring (in the first case) instances: the length of clauses is fixed to be KK and they are drawn randomly as described in sec. 1.2.3. They observed that when the density of clauses α=M/N\alpha=M/N is small the existence of a solution is very likely and if α\alpha is large the existence of a solution is very unlikely. And the really hard instances were located nearby the critical value originally estimated to be αs≈4.25\alpha_{s}\approx 4.25 in the 3-SAT [MSL92]. The hardness was judged from the median running time of the Davis-Putnam-Logemann-Loveland (DPLL) backtracking-based algorithm [DP60, DLL62], see fig. 1.2. This whipped away the thoughts that NP-complete problems might in fact be easy on average. Many other studies and observations followed.

The hard instances of random KK-satisfiability became very fast important benchmarks for the best algorithms. Moreover, there are some indications that critically constrained instances might appear in real-world applications. One may imagine that in a real world situation the amount of constraints is given by the nature of the problem, and variables usually correspond to something costly, thus the competitive designs contain the smallest possible number of variables.

Given a random KK-SAT formula of NN variables the probability that it is satisfiable, plotted in fig. 1.3 for 3-SAT, becomes more and more like a step-function as the size NN grows. An analogy with phase transitions in physics cannot be overlooked. The existence and sharpness of the threshold were partially proved [Fri99]. The best known probabilistic bounds of the threshold value in 3-SAT are 3.5203.520 for the lower bound [KKL03, HS03] and 4.5064.506 for the upper bound [DBM00]. Numerical estimates of the asymptotic value of the threshold are αs≈4.17\alpha_{s}\approx 4.17 [KS94], αs≈4.258\alpha_{s}\approx 4.258 [CA96], αs≈4.27\alpha_{s}\approx 4.27 [MZK+99b, MZK+99a]. The finite size scaling of the curves in fig. 1.3 is quite involved as the crossing point is moving. That is why the early numerical estimates of the threshold were very inaccurate. The work of Wilson [Wil02], moreover, showed that the experimental sizes are too small and the asymptotic regime for the critical exponent is not reached in any of the current empirical works. The study of XOR-SAT indeed shows a crossover in the critical exponent at sizes which are not accessible for KK-SAT [LRTZ01].

The studies of random KK-SAT opened up the exciting possibility to connect the hardness with an algorithm-independent property, like the satisfiability phase transition. But what exactly makes the instances near to the threshold hard remained an open question.

4 Statistical physics comes to the scene

Spin glass is one of the most interesting puzzles in statistical physics. An example of a spin glass material is a piece of gold with a small fraction of iron impurities. Physicist, on contrary to the rest of the human population, are interested in the behaviour of these iron impurities and not in the piece of gold itself. A new type of a phase transition was observed from the high temperature paramagnetic phase to the low temperature spin glass phase, where the magnetization of each impurity is frozen to a non-zero value, but there is no long range ordering. More than 30 years ago Edwards and Anderson [EA75] introduced a lattice model for such magnetic disordered alloys

where Si∈{−1,+1}S_{i}\in\{-1,+1\} are Ising spins on a 3-dimensional lattice, the sum runs over all the nearest neighbours, hh is the external magnetic field and the interaction JijJ_{ij} is random (usually Gaussian or randomly ±J\pm J). The solution of the Edwards-Anderson model stays a largely open problem even today.

The mean field version of the Edwards-Anderson model was introduced by Sherrington and Kirkpatrick [SK75], the sum in the Hamiltonian (1.11) then runs over all pairs (ij)(ij) as if the underlying lattice would be fully connected. Sherrington and Kirkpatrick called their paper ”Solvable Model of a Spin-Glass”. They were indeed right, but the correct solution came only five years later by Parisi [Par80c, Par80b, Par80a]. Parisi’s replica symmetry breaking (RSB) solution of the Sherrington-Kirkpatrick model gave rise to a whole new theory of the spin glass phase and of the ideal glass transition in structural glasses. The exactness of the Parisi’s solution was, however, in doubt till 2000 when Talagrand provided its rigorous proof [Tal06]. The relevance of the RSB picture for the original Edwards-Anderson model is widely discussed but still unknown.

A different mean field version of the Edwards-Anderson model was introduced by Viana and Bray [VB85], the lattice underlying the Hamiltonian (1.11) is then a random graph of fixed average connectivity. The complete solution of the Viana-Bray model is also still an open problem.

4.2 First encounter

The Viana-Bray model of spin glasses can also be viewed as random graph bi-partitioning (or bi-coloring at a finite temperature). The peculiarity of the spin glass phase will surely have some interesting consequences for the optimization problem itself. Indeed, the close connection between optimization problems and spin glass systems brought forward a whole collection of theoretical tools to analyze the structural properties of the optimization problems.

All started in 1985 when Mézard and Parisi realized that the replica theory can be used to solve the bipartite weighted matching problem [MP85]. Let us quote from the introduction of this work: ”This being a kind of pioneering paper, we have decided to present the method {meaning the replica method} on a rather simple problem (a polynomial one) the weighted matching. In this problem one is given 2N2N points i=1,…,2Ni=1,\dots,2N, with a matrix of distance lijl_{ij}, and one looks for a matching between the points (a set of NN links between two points such that at each point one and only one link arrives) of a minimal length.” Using the replica symmetric (RS) approach they computed the average minimal length, when the elements of the matrix lijl_{ij} are random identically distributed independent variables.

Shortly after Fu and Anderson [FA86] used the replica method to treat the graph bi-partitioning problem. They were the first to suggest that, possibly, the existence of a phase transition in the average behaviour will affect the actual implementation and performance of local optimization techniques, and that this may also play an important role in the complexity theory. Only later, such a behaviour was indeed discovered empirically by computer scientists [CKT91, MSL92].

The replica method also served to compute the average minimal cost in the random traveling salesmen problem [MP86a, MP86b]. Partitioning a dense random graph into more than two groups and the coloring problem of dense random graphs were discussed in [KS87]. Later some of the early results were confirmed rigorously, mainly those concerning the matching problem [Ald01, LW04]. All these early solved models are formulated on dense or even fully connected graph. Thus the replica method and where needed the replica symmetry breaking could be used in its original form. Another example of a ”fully connected” optimization problem which was solved with a statistical physics approach is the number partitioning problem [Mer98, Mer00].

And what about our customary random KK-satisfiability, which is defined on a sparse graph? Monasson and Zecchina worked out the replica symmetric solution in [MZ96, MZ97]. It was immediately obvious that this solution is not exact as it largely overestimates the satisfiability threshold, the replica symmetry has to be broken in random KK-SAT.

An interesting observation was made in [MZK+99b]: They defined the backbone of a formula as the set of variables which take the same value in all the ground-state configurations In CSPs with a discrete symmetry, e.g. graph coloring, this symmetry has to be taken into account in the definition of the backbone.. No extensive backbone can exist in the satisfiable phase in the limit of large NN. If it would, then adding an infinitesimal fraction of constraints would almost surely cause a contradiction. At the satisfiability threshold an extensive backbone may appear. The authors of [MZK+99b] suggested that the problem is computationally hard if the backbone appears discontinuously and easy if it appears continuously. They supported this by replica symmetric solution of the SAT problem with mixed 2-clauses and 3-clauses, the so-called 2+p2+p-SAT. Even if the replica symmetric solution is not correct in random KK-SAT and even if it overlooks many other important phenomena the concept of backbone is fruitful and we will discuss its generalization in chapter 4.

How to deal with the replica symmetry breaking on a sparse tree-like graph was an open question since 1985, when Viana and Bray [VB85] introduced their model. The solution came only in 2000 when Mézard and Parisi published their paper ”Bethe lattice spin glass revisited” [MP01]. They showed how to treat correctly and without approximations the first step of replica symmetry breaking (1RSB) and described how, in the same way, one can in principal deal with more steps of replica symmetry breaking, this extension is however numerically very difficult. But before explaining the 1RSB method we describe the general replica symmetric solutions. And illustrate its usefulness on the problem of counting matchings in graphs [ZDEB-1]. Only then we describe the main results of the 1RSB solution and illustrate the method in the 1-in-KK SAT problem [ZDEB-3]. After we list several ”loose ends” which appeared in this approach. Finally we summarize the main contribution of this thesis. This will be the departure point for the following part of this thesis which contains most of the original results.

5 The replica symmetric solution

The replica symmetric (RS) solution on a locally tree-like graph consists of two steps:

Compute the partition sum and all the other quantities of interest as if the graph would be a tree.

The replica symmetric assumption: Assume that the correlations induced by long loops decay fast enough, such that this tree solution is also correct on the only locally tree-like graph.

Equivalent names used in literature for the replica symmetric solution are Bethe-Peierls approximation (in particular in the earlier physics references) or belief propagation (in computer science or when using the iterative equation as an algorithm to estimate the marginal probabilities - magnetizations in physics). Both these conveniently abbreviate to BP.

Let ϕa(∂a)\phi_{a}(\partial a) be the evaluating function for the constraint aa depending on the variables neighbourhooding with aa in the factor graph G(V,F,E)G(V,F,E). A satisfied constraint has ϕa(∂a)=1\phi_{a}(\partial a)=1 and violated constraint ϕa(∂a)=0\phi_{a}(\partial a)=0. The Hamiltonian can then be written as

The energy cost is thus one for every violated constraint. The corresponding Boltzmann measure on configurations is:

where β\beta is the inverse temperature and ZG(β)Z_{G}(\beta) is the partition function. The marginals (magnetizations) χsii\chi^{i}_{s_{i}} are defined as the probabilities that the variable ii takes value sis_{i}

The reason for this interest is that, for reasonable graph ensembles, FG(β)F_{G}(\beta) is self-averaging. This means that the distribution of FG(β)/NF_{G}(\beta)/N becomes more and more sharply peaked around f(β)f(\beta) when NN increases.

5.2 The replica symmetric solution on a single graph

First suppose that the underlying factor graph is a tree, part of this tree is depicted in fig. 1.4. We define messages ψsia→i\psi_{s_{i}}^{a\to i} as the probability that node ii takes value sis_{i} on a modified graph where all constraints around ii apart aa were deleted, and χsjj→a\chi_{s_{j}}^{j\to a} as the probability that variable jj takes value sjs_{j} on a modified graph obtained by deleting constraint aa. On a tree these messages can be computed recursively as

where Za→iZ^{a\to i} and Zj→aZ^{j\to a} are normalization constants, the factor ϕa({s},β)=1\phi_{a}(\{s\},\beta)=1 if the constraint aa is satisfied by the configuration {s}\{s\} and ϕa({s},β)=e−β\phi_{a}(\{s\},\beta)=e^{-\beta} if not. We denote by ψa→i\psi^{a\to i} the whole vector (ψ0a→i,…,ψq−1a→i)(\psi^{a\to i}_{0},\dots,\psi^{a\to i}_{q-1}) and analogically χj→a=(χ0k→a,…,χq−1j→a)\chi^{j\to a}=(\chi^{k\to a}_{0},\dots,\chi^{j\to a}_{q-1}). This is one form of the belief propagation (BP) equations [KFL01, Pea82], sometimes called sum-product equations. The probabilities ψ\psi, χ\chi are interpreted as messages (beliefs) living on the edges of the factor graph, with the consistency rules (1.16a) and (1.16b) on the function and variable nodes. Equations (1.16) are usually solved by iteration, the name message passing is used in this context. In the following it will be simpler not to consider the ”two-levels” equations (1.16) but

where Zj→i=Za→i∏j∈∂a−iZj→aZ^{j\to i}=Z^{a\to i}\prod_{j\in\partial a-i}Z^{j\to a}. Notice that on simple graphs, i.e., when either li=2l_{i}=2 for all i=1,…,Ni=1,\dots,N or ka=2k_{a}=2 for all a=1,…,Ma=1,\dots,M, the form (1.17) simplifies further. And on constraint satisfaction problems on simple graphs (e.g. the matching or coloring problems) the ”two-levels” equations are almost never used.

Assuming that one has found the fixed point of the belief propagation equations (1.16a-1.16b), one can deduce the various marginal probabilities and the free energy, entropy etc. The marginal probability (1.14) of variable ii estimated by the BP equations is

To compute the free energy we first define the free energy shift ΔFa+∂a\Delta F^{a+\partial a} after addition of a function node aa and all the variables ii around it, and the free energy shift ΔFi\Delta F^{i} after addition of a variable ii. These are given in general by:

The total free energy is then obtained by summing over all constraints and subtracting the terms counted twice [MP01, YFW03]:

This form of the free energy is variational, i.e., the derivatives ∂(βFG(β))∂χi→a\frac{\partial(\beta F_{G}(\beta))}{\partial\chi^{i\to a}} and ∂(βFG(β))∂ψa→i\frac{\partial(\beta F_{G}(\beta))}{\partial\psi^{a\to i}} vanish if and only if the probabilities χi→a\chi^{i\to a} and ψa→i\psi^{a\to i} satisfy (1.16a-1.16b). This allows to compute easily the internal energy as

All the equations (1.16)-(1.22) are exact if the graph GG is a tree. The replica symmetric approach consists in assuming that all correlations decay fast enough that application of eqs. (1.16)-(1.22) on a large tree-like graph GG gives asymptotically exact results. These equations can be used either on a given graph GG or to compute the average over the graph (and disorder) ensemble.

5.3 Average over the graph ensemble

where the functions Fψ{\cal F}_{\psi} and Fχ{\cal F}_{\chi} represent the BP equations (1.16a-1.16b), q(l)q(l) and r(k)r(k) are the excess degree distributions defined in (1.8). If there is a disorder in the interaction terms, as e.g. the negations in KK-SAT, we average over it at the same place as over the fluctuating degree.

Solving equations (1.23a-1.23b) to obtain the distributions P{\cal P} and O{\cal O} is not straightforward. In some cases (on regular factor graphs, at zero temperature, etc.) it can be argued that the distributions P{\cal P}, O{\cal O} are sums of Dirac delta functions. Then the solution of eqs. (1.23a-1.23b) can be obtained analytically. But in general distributional equations of this type are not solvable analytically. However, a numerical technique called population dynamics [MP01] is very efficient for their resolution. In appendix E we give a pseudo-code describing how the population dynamics technique works.

Once the distributions P{\cal P} and O{\cal O} are known the average of the free energy density can be computed by averaging (1.20) over P{\cal P}. This average expression for the free energy is again in its variational form (see [MP01]), i.e., the functional derivative δf(β)δP(h)\frac{\delta f(\beta)}{\delta{\cal P}(h)} vanishes if and only if P{\cal P} satisfies (1.32). The average energy and entropy density are thus expressed again via the partial derivatives.

As we mentioned, on the ensemble of random regular factor graphs (without disorder in the interactions) the solution of equations (1.23) is very simple: P(ψ)=δ(ψ−ψreg){\cal P}(\psi)=\delta(\psi-\psi^{\rm reg}), Q(χ)=δ(χ−χreg){\cal Q}(\chi)=\delta(\chi-\chi^{\rm reg}), where ψreg\psi^{\rm reg} and χreg\chi^{\rm reg} is a self-consistent solution of (1.16). This is because in the thermodynamical limit an infinite neighbourhood of every variable is exactly identical thus also the marginal probabilities have to be identical in every physical solution.

5.4 Application for counting matchings

To demonstrate how the replica symmetric method works to compute the entropy, that is the logarithm of the number of solutions, we review the results for matching on sparse random graphs [ZDEB-1]. The reasoning why the replica symmetric solution is exact for the matching problem is done on the level of self-consistency checks in [ZDEB-1]. And [BN06] have worked out a rigorous proof for graphs with bounded degree and a large girth (length of the smallest loop).

Consider a graph G(V,E)G(V,E) with NN vertices (N=∣V∣N=|V|) and a set of edges EE. A matching (dimerization) of GG is a subset of edges M⊆EM\subseteq E such that each vertex is incident with at most one edge in MM. In other words the edges in the matching MM do not touch each other. The size of the matching, ∣M∣|M|, is the number of edges in MM. Our goal is to compute the entropy of matchings of a given size on a typical large Erdős-Rényi random graph.

We describe a matching by the variables si=s(ab)∈{0,1}s_{i}=s_{(ab)}\in\{0,1\} assigned to each edge i=(ab)i=(ab) of GG, with si=1s_{i}=1 if i∈Mi\in M and si=0s_{i}=0 otherwise. The constraints that two edges in a matching cannot touch impose that, on each vertex a∈Va\in V: ∑b,(ab)∈Es(ab)≤1\sum_{b,(ab)\in E}s_{(ab)}\leq 1. To complete our statistical physics description, we define for each given graph GG an energy (or cost) function which gives, for each matching M={s}M=\{s\}, the number of unmatched vertices:

where Ea=1−∑∂bs(ab)E_{a}=1-\sum_{\partial b}s_{(ab)}.

In the factor graph representation we transform the graph GG into a factor graph F(G)F(G) as follows (see fig. 1.5): To each edge of GG corresponds a variable node (circle) in F(G)F(G); to each vertex of GG corresponds a function node (square) in F(G)F(G). We shall index the variable nodes by indices i,j,k,…i,j,k,\dots and function nodes by a,b,c,…a,b,c,\dots. The variable ii takes value si=1s_{i}=1 if the corresponding edge is in the matching, and si=0s_{i}=0 if it is not. The weight of a function node aa is

where ∂a\partial a is the set of all the variable nodes which are neighbours of the function node aa, and the total Boltzmann weight of a configuration is 1ZG(β)∏aϕa({∂a},β)\frac{1}{Z_{G}(\beta)}\prod_{a}\phi_{a}(\{\partial a\},\beta).

The belief propagation equation (1.16) becomes

where Zb→aZ^{b\to a} is a normalization constant. In statistical physics the more common form of the BP equations uses analog of local magnetic fields instead of probabilities. For every edge between a variable ii and a function node aa, we define a cavity field hi→ah^{i\to a} as

The recursion relation between cavity fields is then:

The expectation value (with respect to the Boltzmann distribution) of the occupation number sis_{i} of a given edge i=(ab)i=(ab) is equal to

The free energy shifts needed to compute the total free energy (1.20) are

The energy, related to the size of the matching via (1.24), is then

This is the sum of the probabilities that node aa is not matched.

The distributional equation (1.23) becomes

And the average free energy is explicitly

Where R(k){\cal R}(k) is the connectivity distribution of the function nodes, that is the connectivity distribution of the original graph, cc is the average connectivity. The distributional equations are solved via the population dynamics method, see appendix E. Fig. 1.6 then presents the resulting average entropy as a function of size of the matching.

6 Clustering and Survey propagation

As we said previously in the random KK-SAT the replica symmetric solution is not generically correct. Mézard and Parisi [MP01] understood how to deal properly and without approximations with the replica symmetry breaking on random sparse graphs, that is how to take into account the correlations induced by long loops. More precisely in their approach only the one-step (at most two-step on the regular graphs) replica symmetry breaking solution is numerically feasible. Anyhow, such a progress opened the door to a better understanding of the optimization problems on sparse graphs. The KK-satisfiability played again the prominent role.

To compute the ground state energy within the 1RSB approach we can restrict only to energetic considerations as described in [MP03], we call this approach the energetic zero temperature limit. Applying this method to KK-satisfiability leads to several outstanding results [MPZ02, MZ02], we describe the three most remarkable ones. Soon after, analog results were obtained for many other optimization problems, for example graph coloring [MPWZ02, BMP+03, KPW04], vertex cover [Zho03], bicoloring of hyper-graphs [CNRTZ03], XOR-SAT [FLRTZ01, MRTZ03] or lattice glass models [BM02, RBMM04].

It was known already in the ”pre-1RSB-cavity era” that replica symmetry broken solution is needed to solve random KK-SAT. Such a need is interpreted as the existence of many metastable well-separated states, in the case of highly degenerate ground state this leads to a clustering of solutions in the satisfiable phase [BMW00, MPZ02, MZ02]. The energetic 1RSB cavity method deals with clusters containing frozen variables (clusters with backbones), that is variables which have the same value in all the solutions in the cluster. It predicts how many of such clusters exist at a given energy, the logarithm of this number divided by the system size NN defines the complexity function Σ(E)\Sigma(E). According to the energetic cavity method for 3-SAT, clusters exist, Σ(0)≠0\Sigma(0)\neq 0, for constraint density α>αSP=3.92\alpha>\alpha_{\rm SP}=3.92 [MPZ02, MZ02].

It was conjectured [MPZ02, MZ02] that there is a link between clustering, ergodicity breaking, existence of many metastable states and the difficulty of finding a ground state via local algorithms. The critical value αSP\alpha_{\rm SP} was called the dynamical transition and the region of α>αSP\alpha>\alpha_{\rm SP} the hard-SAT phase.

Clusters were viewed as a kind of pure states, however, in the view of many a good formal definition was missing. It was also often referred to some sort of geometrical separation between different clusters. A particularly popular one is the following: Clusters are connected components in the graph where solutions are the nodes and two solutions are adjacent if they differ in only dd variables. Depending on the model and author the value of dd is either one of dd is a finite number of dd is said to be any sub-extensive number. The notion of xx-satisfiability, the existence of pairs of solutions at a distance xx, leads to a rigorous proof of existence of exponentially many geometrically separated clusters [MMZ05, DMMZ08, ART06].

The energetic 1RSB cavity method allows to compute the ground state energy and thus also the satisfiability threshold αs\alpha_{s}. In 3-SAT its value is αs=4.2667\alpha_{s}=4.2667 [MPZ02, MZ02, MMZ06]. This value is computed as a solution of a closed distributional equation. This time there is an excellent agreement with the empirical estimations. Is the one step of replica symmetry breaking sufficient to locate exactly the satisfiability threshold? The stability of the 1RSB solution was investigated in [MPRT04], the 1RSB energetic cavity was shown to describe correctly the ground state energy for 4.15<α<4.394.15<\alpha<4.39 in 3-SAT. In particular, it yields the conjecture that the location of the satisfiability threshold is actually exact. From a rigorous point of view it was proven that the 1RSB equations give an upper bound on the satisfiability threshold [FL03, FLT03, PT04].

The most spectacular result was the development of a new message passing algorithm, the survey propagation [MZ02, BMZ05]. Before the replica and cavity analysis were used to compute the quenched averages of thermodynamical quantities. Using always the self-averaging property that the average of certain (not all) quantities is equal to their value on a large given sample. Mézard and Zecchina applied the energetic 1RSB cavity equations, later called survey propagation, on a single large graph. This resulted in an algorithm which is arguably still the best known for large instances of random 3-SAT near to the satisfiability threshold. And even more interesting than its performance is the conceptual advance this brought into applications of statistical physics to optimization problems.

7 Energetic 1RSB solution

In this section we derive the energetic zero-temperature limit of the 1RSB method. When applied to the satisfiability problem this leads, between others, to the calculation of the satisfiability threshold and to the survey propagation equations and algorithm. We illustrate this on the 1-in-3 SAT problem. Before doing so we have to introduce the warning propagation equations, on which the derivation of the survey propagation relies.

In general warning propagation (min-sum) is a zero temperature, β→∞\beta\to\infty, limit of the belief propagation (sum-product) equations (1.16a-1.16b). It can be used to compute the ground state energy (minimal fraction of violated constraints) at the replica symmetric level. A constraint satisfaction problem at a finite temperature gives rise to ϕa({∂a},β)=1\phi_{a}(\{\partial a\},\beta)=1 if the constraint aa is satisfied by configuration {s∂a}\{s_{\partial a}\}, and ϕa({∂a},β)=e−2β\phi_{a}(\{\partial a\},\beta)=e^{-2\beta} if aa is not satisfied by {s∂a}\{s_{\partial a}\}The factor 2 in the Hamiltonian is introduced for convenience and in agreement with the notation of [ZDEB-3].. In a general Boolean CSP, with NN variables si∈{−1,1}s_{i}\in\{-1,1\}, the warning propagation can then be obtained from (1.16a-1.16b) by introducing warnings uu and hh as

This leads in the limit of zero temperature, β→∞\beta\to\infty, to

The warnings uu and hh can thus be interpreted in the following way

Given this interpretation the prescriptions (1.35) on how to update the warnings over the graph becomes intuitive. Variable ii collects the preferences from all constraints except aa and sends the result to aa. Constraint aa then decides which value ii should take given the preferences of all its other neighbours.

Given the fixed point of the warning propagation (1.35) the total warning of variable ii is

The corresponding energy can be computed as

where ΔEa+∂a\Delta E^{a+\partial a} is the number of contradictions created when constraint aa and all its neighbours are added to the graph, ΔEi\Delta E^{i} is the number of contradictions created when variables ii is added to the graph. The energy shifts can be computed from (1.19a-1.19b) using (1.34) and taking β→∞\beta\to\infty they read

To summarize, the warning propagation equations neglect every entropic information in the belief propagation (1.16a-1.16b), thus only the ground state energy can be computed. On the other hand the fact that warnings uu and hh have a discrete set of possible values simplifies considerably the average over the graph ensemble presented in sec. 1.5.3 as the distribution P{\cal P} is a sum of three Dirac function, and can be represented by their weights. Deeper interpretations of warning propagation and its fixed points will be given in chapter 4. Note that in the literature the value of warnings is also called ∗\ast or ”joker” [BMWZ03, BZ04].

7.2 Survey Propagation

Survey propagation (SP) [MPZ02, MZ02] is a form of belief propagation which aims to count the logarithm of the number of fixed points of warning propagation (1.35) of a given energy (1.38). For the sake of simplicity we present the most basic form of SP which aims to count the logarithm of number of fixed points of the warning propagation with zero energy.

The constraints on values of the warnings assuring that the fixed point of warning propagation corresponds to zero energy are

For all ii and a∈∂ia\in\partial i: the warnings {ub→i}b∈∂i−a\{u^{b\to i}\}_{b\in\partial i-a} are all non-negative or all non-positive,

For all aa and i∈∂ai\in\partial a: the preferred values of all j∈∂a−ij\in\partial a-i can be realized without violating the constraint aa.

We define probabilities that warnings ua→iu^{a\to i} or hi→ah^{i\to a} are positive, negative or null.

where Ni→a{\cal N}_{i\to a} is the normalization factor. The update of surveys qq given the incoming pps depends on the details on the constraint functions. For concreteness we write the equation for the positive 1-in-3 SAT problem. The constraints assuring zero energy then forbids that both the warnings incoming to a constraint aa have value +1+1.

where Na→i=1−p+j→ap+k→a{\cal N}_{a\to i}=1-p^{j\to a}_{+}p^{k\to a}_{+} is the normalization factor, jj and kk are the other two neighbours of aa.

The associated Shannon entropy is called complexity [Pal83] (or structural entropy in the context of glasses) and reads [MZ02]

where Na+∂a{\cal N}^{a+\partial a} is the probability that no contradiction is created when the constraint aa and all its neighbours are added, Ni{\cal N}^{i} is the probability that no contradiction is created when the variable ii is added. Remark the exact analogy with (1.19a-1.19b). We denote P0i≡∏a∈∂iq0a→i{\cal P}_{0}^{i}\equiv\prod_{a\in\partial i}q_{0}^{a\to i} and P±i≡∏a∈∂i(q±a→i+q0a→i){\cal P}_{\pm}^{i}\equiv\prod_{a\in\partial i}(q_{\pm}^{a\to i}+q_{0}^{a\to i}), then

The second equation collects the contributions from all combinations of arriving surveys except the “contradictory” ones (+,+,+)(+,+,+), (−,−,−)(-,-,-), (+,+,0)(+,+,0) and (+,+,−)(+,+,-) (plus permutations of the latter).

The survey propagation equations (1.41-1.42) and the expression for the complexity function (1.43) are exact on tree graphs. In the spirit of the Bethe approximation, we will assume sufficient decay of correlations and use these equations on a random graph The fact that on a given tree with given boundary conditions the warning propagation has a unique fixed point might seem puzzling at this point. Clarification will be made in the chapter 2.. To average over the ensemble of random graphs we adopt the same equations as we did for the belief propagation in sec. 1.5.3.

7.3 Application to the exact cover (positive 1-in-3 SAT)

The 1-in-3 SAT problem (with probability of negating a variable equal to one-half) is a rare example of an NP-complete problem which is on average algorithmically easy and where the threshold can be computed rigorously [ACIM01]. In particular it was shown that for α≠1\alpha\neq 1 an instance of the problem can be solved in polynomial time with probability going to one as N→∞N\to\infty. This result was generalized into random 1-in-3 SAT where the probability of negating a variable is p≠1/2p\neq 1/2 [ZDEB-3]. In particular we showed that for all 0.273<p<0.7180.273<p<0.718 the RS solution is correct and almost every instance can be solved in polynomial time if the constraint density α≠1/[4p(1−p)]\alpha\neq 1/[4p(1-p)]. When, however, p<0.273p<0.273 the phase diagram is more complicated, see [ZDEB-3]. For p=0p=0 the solution of the positive 1-in-3 SAT (exact cover) problem becomes very similar to the one of 3-SAT [MZ02]. The result for the complexity (1.43) in the positive 1-in-3 SAT obtained from the population dynamics method is plotted in fig. 1.7. For more detailed discussion of how the phase diagram changes from the almost-always-easy to the very-hard pattern see [ZDEB-3].

Up to certain average connectivity of variables cSP=1.822c_{\rm SP}=1.822 the only iterative fixed point of the population dynamics gives q0a→i=p0i→a=1q_{0}^{a\to i}=p_{0}^{i\to a}=1 for all (ia)(ia). The associated complexity function is zero. In an interval (cSP,cs)=(1.822,1.879)(c_{\rm SP},c_{s})=(1.822,1.879) there exist a nontrivial solution giving positive complexity function. There are thus exponentially many different fixed points of the warning propagation. Asymptotically, almost every warning propagation fixed point is associated to a cluster of solutionsThere might exist fixed points of the warning propagation which are not compatible with any solution, thus do not correspond to a cluster. Such ”fake” fixed points are negligible if the 1RSB approach is correct.. Above cs=1.879c_{s}=1.879 there is a nontrivial solution to the SP equations giving a negative complexity function. There are thus almost surely no nontrivial fixed points of warning propagation at zero energy.

Before interpreting the survey propagation results, we should check that its application on tree-like random graphs is justified. The method to do this self-consistency check has been developed in [MPRT04] and is discussed in appendix D. For 1-in-3 SAT the result in that SP is stable, thus the results are believed to be correct, for c∈(1.838,1.948)c\in(1.838,1.948) [ZDEB-3]. The point csc_{s} belongs to this interval, thus we can interpret it safely as the satisfiability threshold. However, the point cSPc_{\rm SP} has no physical meaning, and some statements that are suggested by its existence are wrong. For example it is not true that there is not exponentially many fixed points of the warning propagation, thus no clustering, for c<cSPc<c_{\rm SP}. This has been remarked in [ZDEB-4] and a part of chapter 2 will be devoted to understanding this.

8 Loose ends

We could summarize the understanding of the subject three years ago in the following way: The 1RSB cavity method was able to compute the satisfiability threshold. The clustered phase was predicted and its existence partially proven. The conjecture that clustering is a key element in understanding of the computational hardness was accepted. The survey propagation inspired decimation algorithm was breath-taking, and the computer science community was getting gradually more and more interested in the concepts which lead to its derivation. It might have seemed that a real progress can be made only on the mathematical side of the theory, in the analytical analysis of the performance of the message passing algorithms, or in new applications. But several loose ends hanged in the air and the opinions on their resolution were diverse. I will list three of them which I consider to be the most obtruding ones.

The energetic 1RSB cavity method (survey propagation) predicts the clustering in 3-SAT at αSP=3.92\alpha_{\rm SP}=3.92. But the replica symmetric solution is unstable at already αRS=3.86\alpha_{\rm RS}=3.86, at this point the spin glass susceptibility diverges and equivalently the belief propagation algorithm stops to converge on a single graph, see appendix C. What is the solution in the ”no man’s land” between αRS\alpha_{\rm RS} and αSP\alpha_{\rm SP}? The values are even more significant for the 3-coloring or Erdős-Rényi graphs where the corresponding average connectivities are cRS=4c_{\rm RS}=4 and cSP=4.42c_{\rm SP}=4.42.

An iterative procedure called whitening of a solution is defined as iteration of the warning propagation equations initialized from a solution. Whitening core is the corresponding fixed point. We call white those variables which are assigned the ”I do not care” state in the whitening core. A crucial asymptotic property is that if the 1RSB solution is correct then the whitening core of all solutions from one cluster is the same and the non-white variables are the frozen ones in that cluster. Consequently, knowing a solution, the whitening may be used to tell if the solution was or was not in a frozen cluster.

Survey propagation uses information only about frozen cluster. It might seem that every cluster is uniquely described by its whitening core, that is by the set and values of the frozen variables.

Yet, the solutions found by survey propagation have always a trivial, all white, whitening core. This paradox was pointed out in [MMW07] and observed also by the authors of [BZ04]. It was suggested that the concept of whitening might be meaningful only in the thermodynamical limit. But that was not a satisfactory explanation.

The clustered phase, baptized ”Hard” in [MZ02] does not seem to be that hard. There is no local algorithm which would perform well exactly up to αSP=3.92\alpha_{\rm SP}=3.92. For a while it was thought that the 1RSB stability point αII=4.15\alpha_{II}=4.15, see appendix D , is a better alternative. It was argued that the full-RSB states are more ”transparent” for the dynamics than the 1RSB states which should be well defined and separated. Moreover there was at least one empirical result which suggested that the Walk-SAT algorithm stops to work in linear time at that point [AGK04]. But other version of Walk-SAT stopped before or even after, as for example the ASAT which was argued in [AA06] to work in linear time at least up to α=4.21\alpha=4.21.

9 Summary of my contributions to the field

In my first works [ZDEB-1, ZDEB-2, ZDEB-3] I applied the replica symmetric and the energetic 1RSB method to the matching and the 1-in-KK SAT problems. This is why I used these two problems to illustrate the methods in sec. 1.5.4 and 1.7.

The problem of matching on graphs is a common playground for algorithmic and methodological development. I studied the problem of counting maximum matchings in a random graph in [ZDEB-1]. Finding a maximum matching is a well known polynomial problem, while their approximative counting is a much more difficult task. We showed, that the entropy of maximum matchings can be computed using the belief propagation algorithm, a result which was later on partially proved rigorously [BN06].

My interest in the 1-in-KK SAT problem stemmed from the work [ACIM01] where the authors computed rigorously the satisfiability threshold and showed that the NP-complete problem is in fact on average algorithmically easy. In [ZDEB-2, ZDEB-3] we studied the random 1-in-3 SAT in two-parameter space. One parameter is the classical constraint density, the other is the probability pp of negating a variable in a constraint (p=1/2p=1/2 in [ACIM01]). We showed that for 0.2627<p<0.73730.2627<p<0.7373 the problem is on average easy and the satisfiability threshold can be computed rigorously. On the other hand for p<0.07p<0.07 the problem is qualitatively similar to the 3-SAT. We computed the threshold from the energetic 1RSB approach. In the intermediate region the 1RSB approach is not stable, thus it stays an open question how exactly does the problem evolve from an on average easy case to a 3-SAT like case. Qualitatively similar phase diagram was described in the 2+p2+p SAT problem [MZK+99a, AKKK01]. We also found an interesting region of the parameter space in the 1-in-3 SAT where the unit clause algorithm provably finds solutions despite the replica symmetric solution being not correct (unstable).

The rest of my works [ZDEB-4, ZDEB-5, ZDEB-6, ZDEB-7, ZDEB-8, ZDEB-10, ZDEB-9] tied up the loose ends from the previous section and mainly addressed the original question of this thesis: Why are some constraint satisfaction problems intrinsically hard on average and what causes this hardness?

I used the entropic zero temperature 1RSB approach, introduced in [MPR05], to study the structure of solutions in random CSPs. In [ZDEB-4, ZDEB-5] we discovered that the true clustering (dynamical) transition does not correspond to the onset of a nontrivial solution of the survey propagation equations. We gave a proper definition of the clustering transition and formulated it in terms of extremality of the uniform measure over solutions. The clustering transition happens always before or at the same time as the replica symmetric solution ceases to be stable. This tied up the loose end (A), as in the ”no man’s land” the energetic 1RSB solution was simply incomplete.

We showed that in general there exist two distinct clustered phases below the satisfiable threshold. In the first, dynamic clustered phase, an exponentially large number of pure states is needed to cover almost all solutions. However, average properties (such as total entropy) still behave as if the splitting of the measure did not count. In particular, a simple algorithm such as belief propagation gives asymptotically correct estimates of the marginal probabilities. However, the measure over solutions is not extremal and, more importantly, the Monte Carlo equilibration time diverges, thus making the sampling of solutions a hard problem. The second kind of clustered phase is the condensed clustered phase where a finite number of pure states is sufficient to cover almost all solutions. A number of nontrivial predictions follows: for instance the total entropy has a non-analyticity at the transition to this phase, the marginal probabilities are non-self-averaging and not given anymore by the belief propagation algorithm.

In the context of the coloring problem, i.e. anti-ferromagnetic Potts glass, I also addressed related questions of what does the 1RSB solution predict for the finite temperature phase diagram and when is the 1RSB solutions correct (stable) [ZDEB-5]. We give the full phase diagram for this model and argue that in the colorable phase for at least 4 colors the 1RSB solutions is stable, and thus believed to be exact.

In order to clarify and substantiate this heuristic picture, we introduced the random subcubes model in [ZDEB-8], a generalization of the random energy model. The random subcubes model is exactly solvable and reproduces the sequence of phase transitions in the real CSPs (clustering, condensation, satisfiability threshold). Its, perhaps, most remarkable property is that it reproduces quantitatively the behaviour of random qq-coloring and random KK-SAT in the limit of large qq and KK. We showed that the random subcubes model can also be used as a simple playground for the studies of dynamics in glassy systems.

An important and quite novel phenomena I investigated in [ZDEB-5, ZDEB-7] is the freezing of variables. A variable is frozen when in all the solutions belonging to one cluster it takes the same value. I discovered that the fraction of such frozen variables undergoes a first order phase transition when the size of states is varied. I introduced the notion of the rigidity transition as the point where almost all the dominating clusters become frozen and the freezing transition as the point where all the clusters become frozen. The solutions belonging to the frozen clusters can be recognized via the whitening procedure.

We computed the rigidity transition in the random coloring in [ZDEB-5]. And we studied the freezing transition in 3-SAT numerically [ZDEB-10], with the result αf=4.254±0.009\alpha_{f}=4.254\pm 0.009 (to be compared to the satisfiability threshold αs=4.267\alpha_{s}=4.267). This study also confirms that the notion of whitening and freezing of variables in meaningful even on relatively small systems.

This allows us to tie up the loose end (B). The survey propagation algorithm describes the most numerous frozen clusters. The range of connectivities where the SP based algorithms are able to find solutions in 3-SAT lies in the phase where most solutions are in fact unfrozen. It is thus much less surprising that the SP based algorithms always find a solution with a trivial whitening.

A very natural question cannot be avoided at this point: What happens in the frozen phase where all the solutions are frozen? We know that such a phase exists, this was shown in [ART06] and numerically in [ZDEB-10]. And we also know from several authors that the known algorithms do not seem to be able to find frozen solutions in polynomial time (that is never for sufficiently large instances). We conjectured in [ZDEB-5] that the freezing is actually a relevant concept for the algorithmical hardness. Thus the answer we suggest to tie up the loose end (C) is that the simple local algorithms stop always before the freezing transition. It is a challenging problem to design an algorithm which would be able to beat this threshold.

In the coloring and satisfiability problems (at reasonably small qq and KK) the freezing transition is however very near to the satisfiability threshold, see the numbers in [ZDEB-5, ZDEB-10]. It is thus difficult to make strong empirical conclusions about the relation between hardness and freezing. Motivated by the need of problems where the freezing and satisfiability would be well separated I introduced the locked constraint satisfaction problems where the freezing transition coincides with the clustering one [ZDEB-9]. The locked CSPs are very interesting from several points of view. The clusters in locked CSPs are point-like, this is why the clustering and freezing coincide. This is also connected with a remarkable technical simplification, as these problems can be fully described on the replica symmetric level.

On the other hand the locked problems are extremely algorithmically challenging. We implemented the best known solvers and showed that they do not find solutions starting very precisely from the clustering (= freezing) transition. At the same time this transition is very well separated from the satisfiability threshold.

A remarkable point about a subclass of the locked problems which we called balanced is that the satisfiability threshold can be obtained exactly from the first and second moment calculation. This adds a huge class of constraint satisfaction problems to a handful of other NP-complete CSPs where the threshold is known rigorously. And it also brings the understanding of which properties of the problem introduce fluctuations which make the second moment method fail.

The numerical work on the 3-SAT problems [ZDEB-10] also addresses another important and almost untouched question: How much are the asymptotic results relevant for systems of practical sizes. We counted the number of clusters in random 3-SAT on instances up to size N=150N=150 and compared to the analytical prediction. We saw that the comparison is strikingly good for already so small systems. This should encourage the application of statistical physics methods to the real world problems.

Chapter 2 Clustering

In this chapter we introduce the concept of clustering of solutions. First we investigate when does the replica symmetric solution fail. Then we derive the one-step replica symmetry breaking equations on trees and give their interpretation on random graphs. We discuss how several geometrical definitions of clusters might be related to the pure states and review the properties of the clustered phase. Finally, we revise how is the clustering related to the algorithmical hardness and conclude that it is considerably less than previously anticipated. The original contributions to this chapter were published in [ZDEB-4, ZDEB-5, ZDEB-10].

How to recognize when is the replica symmetric solution correct? First we have to explain what do we precisely mean by ”being correct”. We obviously require that quantities like the free energy, energy, entropy, marginal probabilities (magnetizations) are asymptotically exact when computed in the replica symmetric approach. But this is not enough, as this is also satisfied in the phase which we will call later the clustered (dynamical) 1RSB phase.

A commonly used necessary condition for the validity of the RS solution is referred to as the local stability towards 1RSB. It consists in checking that the spin glass susceptibility does not diverge, or equivalently that the belief propagation algorithm converges on a large single graph, or in the probability theory this corresponds to the Kesten-Stigum condition [KS66a, KS66b]. These and other equivalent representations for the replica symmetric stability are discussed in detail in appendix C. If the replica symmetric solution is not stable then it predicts wrong free energy, entropy, correlation functions, etc. But the contrary is far from being true: even if stable, the RS solution might be wrong, and even unphysical (predicting negative entropies in discrete models, negative energies in models with strictly non-negative Hamiltonian function, or discontinuities in functions which physically have to be Lipschitzian).

It is tempting to say: The replica symmetric solution is correct if and only if the assumptions we used when deriving it are correct. In deriving the belief propagation (1.16) and the RS free energy (1.20) we used only one assumption: The neighbours of a variable ii are independent random variables, under the Boltzmann measure (1.13), when conditioned on the value of ii. As we will see, this assumption is asymptotically correct also in the dynamical 1RSB phase, and thus the RS marginal probabilities, or the free energy function remain asymptotically exact in that phase.

We thus need a different definition for the ”RS correctness” which would determine whether the Boltzmann measure (1.13) can be asymptotically described as a single pure state, and whether the equilibration time of a local dynamics is linear in the system size. At the same time we do not want this definition to refer the RSB solution, because obviously we want to justify the need of the RSB solution by the failure of the RS solution.

A definition satisfying the above requirements appeared only recently [MM08, MS05, MS06c], and it can be written in several equivalent ways. From now on we say that the replica symmetric solution is correct if and only if one of the following is true.

The point-to-set correlations decay to zero.

Reconstruction on the underlying graph in not possible.

The uniform measure over solutions satisfies the extremality condition.

The 1RSB equations at m=1m=1, initialized in a completely biased configuration, converge to a trivial fixed point.

In the rest of this section we explain these four statements, and show that they are indeed equivalent, and explain how do they correspond to the existence of a nontrivial 1RSB solution. We should mention that in the so-called locked constraint satisfaction problems this definition have to be slightly changed at zero temperature, we will discuss that in sec. 4.3. The transition from a phase where the RS solution is correct to a phase where it is not is called the clustering or the dynamical transition.

Our goal is to describe the structure of the set of solutions of a constraint satisfaction problem with NN variables. Let ϕa(∂a)\phi_{a}(\partial a) be the constraint function depending on variables si∈∂as_{i}\in\partial a involved in the constraint aa, ϕa(∂a)=1\phi_{a}(\partial a)=1 if the constraint is satisfied, ϕa(∂a)=0\phi_{a}(\partial a)=0 if not. The uniform measure over all solutions can be written as

where ZZ is the total number of solutions. The uniform measure over solutions is the zero temperature limit, β→∞\beta\to\infty, of the Boltzmann measure

The above expressions are valid on any given finite factor graph. The theory of Gibbs measures [Geo88] tries to formally define and describe the limiting object to which (2.1-2.2) converge in the thermodynamical limit, N→∞N\to\infty. A common way to build this theory is to ask: What is the measure induced in a finite volume Λ\Lambda when the boundary conditions are fixed? Roughly speaking, the good limiting objects, called the Gibbs measures or the pure states, are such that boundaries taken from the Gibbs measure induce the same measure inside the finite large volume Λ\Lambda.

The Ising model on a 2D lattice gives an excellent example of how a phase transition is seen via Gibbs measures. Whereas in the high temperature paramagnetic phase the Gibbs measure is unique, in the ferromagnetic phase there are two extremal measures, one corresponding to the positive average magnetization, the other to the negative average magnetization. Indeed, if a boundary condition is chosen from one of these two then the correct magnetization will be induced in the bulk. In general the bulk in equilibrium can be described by a linear combination of these two extremal objects.

In the disordered models the situation might be much more complicated. Indeed the proper definition of the Gibbs measure in the Edwards-Anderson model (1.11) and other glassy models is a widely discussed but still an open problem [Bov06, Tal03, NS92].

The locally tree-like lattices, we are interested in here, are also peculiar from this point of view. The main difference is that in any reasonable definition of the boundary variables, the boundary has volume comparable to the volume of the interior. Thus again the usual theory of Gibbs measure implies very little. On the other hand the tree structure makes some considerations simpler. We will try to understand what sort of long range correlations might appear on the tree-like graphs by studying the tree graphs with general boundary conditions.

1.1 Properties and equations on trees

It is a well known fact that on arbitrary tree, with arbitrary boundary conditions, the belief propagation equations and the Bethe free energy are exact (the thermodynamical limit is not even needed here) [Pea88, KFL01, YFW00].

But what if the boundary conditions are chosen from a complicated measure? Then very little (if anything) is known in general. However, there is a way how to choose the boundary conditions such that the tree is then described by the one-step replica symmetry breaking equations. This is closely linked to the problem of reconstruction on trees, studied in mathematics [EKPS00, Mos01, Mos04]. The link with 1RSB was discovered by Mézard and Montanari [MM06a]. We chose to present the 1RSB equations in this new way, because it opens the door to further mathematical developments. For the original statistical physics derivation we refer to [MP00]. Another recent computer science-like derivation, which is based on the construction of a decorated constraint satisfaction problem and writing belief propagation on such a problem, in presented in [MM08, Mor07].

We explain the concept of reconstruction on trees [Mos04]. For simplicity we consider qq-coloring on a rooted tree with constant branching factor γ\gamma (sometimes also called the Cayley tree). A more general situation (with disorder, in the interaction or in the branching factor) is described in appendix A.

Create a rooted tree with branching γ\gamma and with LL generations. An example of γ=2\gamma=2 and L=8L=8 is in fig. 2.1. Assign a color s0s_{0} to the root and broadcast over the edges towards the leaves of the tree in such a way that if a parent node ii was assigned color sis_{i} then each of its ancestors is assigned random one of the remaining q−1q-1 colors.

At the end of this broadcasting, every node in the tree is assigned a color, and this assignment corresponds to a proper coloring (neighbours have different colors). Now in an imaginary experiment we forget the colors everywhere but on the leaves. The problem of reconstruction consists in deciding if there is any information left in the values on the leaves (and their correlation) about the original color s0s_{0} of the root in the limit of infinite tree L→∞L\to\infty. If the answer is yes then we say that the reconstruction is possible, if the answer is no then the reconstruction is not possible.

Call {s}l\{s\}_{l} the assignment of colors in the lthl^{\rm th} generation of the tree. Consider formally the probability ψs0({s}l)\psi_{s_{0}}(\{s\}_{l}) that a broadcasting process which finished at the configuration {s}l\{s\}_{l} started from the color s0s_{0} at the root. In other words, in what fraction of assignments in the interior of the tree (compatible with the boundary conditions {s}l\{s\}_{l}) is the color of the root s0s_{0}? Reconstruction is possible if and only if

Intuitively when the branching γ\gamma is small and the number of colors large the information about the root will be lost very fast. If, on the contrary, the branching is large compared to the number of colors some information remains. A simple exercise is to analyze the so-called naive reconstruction algorithm [Sem08]. The naive reconstruction is possible if the probability that the leaves determine uniquely the root does not go to zero as the number of generation goes to infinity. We compute the probability η\eta that the far-away boundary is compatible with only one value of the root. Denote ηl\eta_{l} the probability that a variable in the lthl^{\rm th} generation is directly implied conditioned on the value of its parent. The probability ηl−1\eta_{l-1} can be computed recursively as

The terms in this telescopic sum come from probabilities that number rr out of the q−1q-1 colors are not present in the γ\gamma descendants. In the last generation we know the colors by definition of the problem, thus η∞=1\eta_{\infty}=1. If the iterative fixed point of (2.4) is positive then the reconstruction is possible.

This simple upper bound on the branching γ\gamma for which the reconstruction is possible is actually quite nontrivial and in the limit of large number of colors it coincides with the true threshold at least in the first two orders, see [ZDEB-5] and [Sem08, Sly08]. This upper bound is connected to the presence of frozen variables and will be discussed in a greater detail in chapter 4.

The iterative equations for the reconstruction problem are equivalent to the one-step replica symmetry breaking equations with Parisi parameter mm, m=1m=1 will apply to the original question of reconstructibility. This was first derived by Mézard and Montanari [MM06a] and it has some deep consequences for the understanding of the RSB solution. We now explain this derivation, still for the coloring problem with a fixed branching γ\gamma and qq colors. A more general form is presented in appendix A.

For given boundary conditions {s}l\{s\}_{l}, constructed as described above, we compute the probability ψsii→j\psi^{i\to j}_{s_{i}} (over all broadcasting experiments leading to these boundary conditions) that a variables ii had color sis_{i}, where jj is the parent of ii and the edge (ij)(ij) has been cut. Given the probabilities on the descendants of ii, which are indexed by k=1,…,γk=1,\dots,\gamma, we can write

because the descendants can take any other color but sis_{i}. The Zi→jZ^{i\to j} is a normalization constant. It should be noticed that this is in fact the belief propagation equation (1.16) for the graph coloring. This equation can also be derived by counting how many assignments are consistent with the boundary conditions {s}l\{s\}_{l}. This gives a natural interpretation to Zi→jZ^{i\to j}

where Z(i)Z^{(i)} is the total number of solutions consistent with {s}l\{s\}_{l} if ii were the root. Thus Zi→jZ^{i\to j} is a change in the number of solutions compatible with the boundary conditions when the γ\gamma branches are merged.

Now we consider the distribution over all possible boundary conditions which are achievable by the broadcasting process defined above. We have to specify the probability distribution on the boundary conditions. We consider that the probability of every boundary conditions {s}l\{s\}_{l} is proportional to the power mm of the number of ways by which we could create {s}l\{s\}_{l}, denote this number Z({s}l)Z(\{s\}_{l}). In other words, the probability of a given boundary condition is proportional to the power mm of the number of possible assignments in the bulk of the tree.

The value of m=1m=1 is natural for the original question of reconstruction, because every realization of the broadcasting experiment is then counted in a equiprobable way. We, however, introduced a general power mm. The parameter mm will play a role of the Legendre parameter, changing its value focuses on boundary conditions compatible with a given number of assignments inside the tree.

Denote Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}) the distribution of ψi→j\psi^{i\to j}, over the measure on the boundary conditions (2.7)

Where Z(i)({s}l)Z^{(i)}(\{s\}_{l}) is the number of solutions induced on the subtree rooted in vertex ii, Z(i)(m){\cal Z}^{(i)}(m) is the corresponding normalization. To express the probability distribution Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}) as a function of Pk→i(ψk→i)P^{k\to i}(\psi^{k\to i}) we need that ψi→j=F({ψk→i})\psi^{i\to j}={\cal F}(\{\psi^{k\to i}\}), eq. (2.5). Moreover, Zi→jZ^{i\to j} is the increase in the total number of solutions after merging the branches rooted at k=1,…,γk=1,\dots,\gamma into one branch rooted at ii. The distributional equation for PP is then

where F{\cal F} and Zi→jZ^{i\to j} are defined in (2.5), and Zi→j{\cal Z}^{i\to j} is a normalization constant equal to

where Z(i){\cal Z}^{(i)} is the normalization from (2.8) if ii were the root. Notice that if we start from boundary conditions which are not compatible with any solution then the re-weighting Zi→j=0Z^{i\to j}=0 at the merging where a contradiction is unavoidable. Initially at the leaves the colors of nodes are known. Call δr\delta_{r} the qq-component vector ψsii→j=δ(si,r)\psi_{s_{i}}^{i\to j}=\delta(s_{i},r), then the initial distribution is just a sum of singletons

Denote P0(ψ)P_{0}(\psi) the distribution created from (2.11) after many iteration of (2.9) with m=1m=1. The reconstruction is possible if and only if P0(ψ)P_{0}(\psi) is nontrivial, that is different from singleton on ψsi=1/q , ∀si\psi_{s_{i}}=1/q\,,\,\forall s_{i}. We define the critical branching factor γd\gamma_{d} in such a way that for γ<γd\gamma<\gamma_{d} the reconstruction is not possible, and for γ≥γd\gamma\geq\gamma_{d} the reconstruction is possible. The critical values γd=cd−1\gamma_{d}=c_{d}-1 for the coloring problem are reviewed in tab. 5.2.

If the reconstruction is not possible, then almost all (with respect to (2.7) at m=1m=1) boundary conditions do not contain any information about the original color of the root. However, for rare boundary conditions this might be different. Obviously as long as γ≥q−1\gamma\geq q-1 one can always construct boundary conditions which determine uniquely the value of the root (by assigning every of the q−1q-1 colors to the descendants of every node). If γ<q−1\gamma<q-1 then this is no longer possible. And it was proven in [Jon02] that for γ<q−1\gamma<q-1 every boundary conditions lead to an expectation 1/q1/q for every color on the root. If the reconstruction is possible, then different boundary conditions may lead to different expectations on the root.

The basic idea of the definition of clusters on a tree is the same as in the classical definition of a Gibbs measure [Geo88]. However, some more work is needed to make the following considerations rigorous. Define a dd-neighbourhood of the root as all the nodes up to dthd^{\rm th} generation, consider 1≪d≪l1\ll d\ll l. Consider the set S{\cal S} (resp. S′{\cal S}^{\prime}) of all assignments on the dd-neighbourhood compatible with a given boundary condition {s}l\{s\}_{l} (resp. {s′}l\{s^{\prime}\}_{l}). Define two boundary conditions {s}l\{s\}_{l} and {s′}l\{s^{\prime}\}_{l} as equivalent if the fraction of elements in which the two sets S{\cal S} and S′{\cal S}^{\prime} differ goes to zero as l,d→∞l,d\to\infty. Clusters are then the equivalence classes in the limit l→∞l\to\infty, d→∞d\to\infty, d≪ld\ll l. The requirement d≪ld\ll l comes from the fact that in l−dl-d iterations the equation (2.8) should converge to its iterative fixed point.

As we explained, more than one cluster exists as soon as the branching factor γ≥q−1\gamma\geq q-1, but as long as the iterative fixed point of eq. (2.9) at m=1m=1 is trivial all but one clusters are negligible because they contain an exponentially small fraction of solutions. Indeed, if the reconstruction is not possible it means that the information about the dd-neighbourhood is almost surely lost at the lthl^{\rm th} generation. Thus almost every broadcasting will lead to a boundary condition from the only relevant giant cluster.

Only for γ≥γd\gamma\geq\gamma_{d}, when the reconstruction start to be possible, the total weight of all solutions will be split into many clusters. In every of them the set of expectation values (beliefs) ψi→j\psi^{i\to j} will be different. This is related to another derivation of the 1RSB equations where the clusters of solutions on a given graph are identified with fixed points of the belief propagation equations [MM08, Mor07]. There are exponentially many (in the total number of variables NN) initial conditions, it is also reasonable to expect that the number of clusters will be exponentially large in NN.

The number of solutions compatible with a boundary condition ({s}l)(\{s\}_{l}) was denoted Z({s}l)Z(\{s\}_{l}) in eq. (2.7). The associated entropy is then, due to interpretation of Zi→jZ^{i\to j} (2.6)

where the sum is over all the vertices ii in the tree, if ii is a leaf then Zi→j=1Z^{i\to j}=1, if ii is the root that jj is a imaginary parent of the root. An intuition about this formula is the following: log⁡Zi→j\log Z^{i\to j} is the change in the entropy when the node ii and all edges (ki)(ki), where kk are descendants of ii, are added. Summing over all ii then creates the whole tree.

More commonly, we introduce also messages going from the parents to the descendants and write the expression for the entropy (2.12) in the equivalent Bethe form [YFW03]

where ∂i\partial i are all the neighbours (descendants and the parent) of node ii. The first sum in (2.13) goes over all the nodes in the tree, the root included, leaves have only one allowed color, thus eq. (2.14) changes correspondingly. Again the meaning of log⁡Zi+∂i\log{Z^{i+\partial i}} is the change in the entropy when node ii and his neighbourhooding edges are added, each edge is then counted twice, thus the shift in the entropy when an edge (ij)(ij) is added, log⁡Zij\log{Z^{ij}}, have to be subtracted.

We denote Φ(m)≡log⁡Z(m)\Phi(m)\equiv\log{{\cal Z}(m)} the thermodynamical potential associated to the measure (2.7). To avoid confusion with the real free energy, associated to the uniform measure over solutions (2.1), we call it the replicated free entropy. If a nonzero temperature is involved then −Φ(m)/(βm)-\Phi(m)/(\beta m) is called the replicated free energy. The replicated free entropy on a tree can be expressed in totally analogous way as the entropy. From (2.10) we derive

which is usually written in the equivalent way

We denote Σ(m)\Sigma(m) the Shannon entropy corresponding to measure on the boundary conditions (2.7), and we call it the complexity function.

where SS is the entropy averaged with respect to μ({s}l)\mu(\{s\}_{l})

Thus the complexity can also be written as a function of the internal entropy via the Legendre transform of the replicated free entropy Φ(m)\Phi(m)

The reader familiar with the cavity approach surely recognized eqs. (2.9) and (2.15–2.20) as the 1RSB equations.

In the cavity method [MP01] the exponential of the complexity function Σ(m)\Sigma(m) (2.18) counts the number of clusters corresponding to a given value of the parameter mm, that is of a given entropy SS (2.19). Complexity defined on the full tree is never negative, as it is a Shannon entropy of a discrete random variable. The same is, of course true, about the entropy (2.12).

It is more interesting to consider the complexity (or the entropy) function Σd(m)\Sigma_{d}(m) on the dd-neighbourhood of the root. If the total number of generations of the tree is ll we take 1≪d≪l1\ll d\ll l. And moreover we require l−dl-d to be large enough, such that the distributional iterative equation (2.9) converges to its fixed point in less than l−dl-d iterations. The average complexity function on the dd-neighbourhood can then be computed from this fixed point. And it can be both positive or negative. Its negative value then means that the number of clusters is decreasing as we are getting nearer to the root. Two important critical connectivities can be defined

γc\gamma_{c}: at which the complexity of the ”natural” clusters Σd(m=1)\Sigma_{d}(m=1) becomes negative.

γs\gamma_{s}: at which the maximum of the complexity Σd(m=0)\Sigma_{d}(m=0) becomes negative.

The connectivity γs\gamma_{s} is the tree-analog of the satisfiability threshold. The connectivity γc\gamma_{c} is the tree-analog of the condensation transition on random graphs, see chapter 3.

Strictly speaking, it is not known how to justify the interpretation of the complexity function as the counter of clusters in the derivation we just presented. In the original cavity derivation [MP01] or in the later derivations [MM08, Mor07] this point is well justified. We, however, find the purely tree derivation appealing for further progress on the mathematical side of the theory and that is why we have chosen to present this approach despite this current incompleteness.

1.2 Back to the sparse random graphs

We stress that the equations, derived in the previous section, are all exact on a given (even finite) tree and that we have not use any approximation. We were just describing boundary conditions correlated via (2.7). These, in nature recursive, equations are solved via the population dynamics technique, see the appendix E.

To come back to the sparse random graphs, which are only locally tree-like, we can consider equations (2.9-2.26) as an approximation on arbitrary graphs, just as we did with belief propagation. This leads to the one-step replica symmetry breaking (1RSB) approach. Note that on random graphs we will always speak about densities of the entropy, complexity or free-entropy etc. Thus on random graphs: instead of the entropy SS defined in (2.12) we consider s=S/Ns=S/N. The replicated free entropy Φ\Phi (2.15) and complexity Σ\Sigma (2.18) are also divided by the number of variables. We, however, denote them by the same symbol, as confusion is not possible.

Let us discuss once again, now from the random graph perspective, what are the correlations which make the replica symmetric approach fail. This will finally explain the definition of the replica symmetric solution being correct given at the beginning of this section.

The concept of the point-to-set correlations is common in the theory of glassy systems. Usually it is considered in the phenomenology of the real glassy systems on finite-dimensional lattices, see for example [BB04] and references therein. Here we restrict the discussion to properties relevant for the tree-like lattices.

Call B‾d(i)\overline{B}_{d}(i) all vertices of the graph which are at distance at least dd from ii, define point-to-set correlation function as

where μ(⋅)\mu(\cdot) is the uniform measure over solutions (2.1), and the total variation distance of two probability distributions is defined as ∣∣q−p∣∣TV=∑x∣q(x)−p(x)∣/2||q-p||_{\rm TV}=\sum_{x}|q(x)-p(x)|/2. The average point-to-set correlation is

The reconstruction on graphs is then defined via the decay of this correlation function. The reconstruction on tree-like graphs is not in general equivalent to the reconstruction on trees. Roughly said, it is not equivalent in the ferromagnetic models, e.g. the ferromagnetic Ising model, which spontaneously break some of the discrete symmetries. On the other hand on most of the frustrated models they are equivalent. A general condition, which might be very nontrivial to check, is given in [GM07].

If the point-to-set correlation function decays to zero, lim⁡d→∞Cd=0\lim_{d\to\infty}C_{d}=0, then almost every variable is independent of its far away neighbours. The replica symmetric approach then has to be asymptotically correct on locally tree-like lattices.

On the other hand if the point-to-set correlations do not decay to zero, then the far-away neighbours influence the value of the variable ii. And the replica symmetric solution fails to give the correct picture of the properties of the model. The lack of decay of the point-to-set correlations is equivalent to the reconstruction on graphs, and is also equivalent to the existence of a nontrivial solution of the 1RSB equation (2.9) at m=1m=1. This is also equivalent to the extremality condition for the uniform measure (2.1), which was used in definition of [ZDEB-4] and reads

where the external average is over quenched disorder (in interactions or connectivities).

The point-to-set correlations do not decay to zero for example in the low temperature phase of the ferromagnetic Ising model on a random graph. There it is sufficient to introduce the pure state ”up” and the pure state ”down” and within these pure states the point-to-set correlations will decay to zero again. On the frustrated models the situation is more complicated but the idea of the resolution is the same: If we manage to split the set of solutions into clusters (pure states) such that within each cluster the point-to-set correlations again decay, the situation is fixed. A statistical description of the properties of clusters can be obtained using the one-step replica symmetry breaking (1RSB) equations, derived in the previous section 2.1.1 and summarized in the next section 2.1.3.

However, the correlations might be more complicated and might not be captured fully by the 1RSB approach. In particular the 1RSB approach is correct if and only if the point-to-set correlation decay to zero within clusters and if the replica symmetric statistical description of clusters is correct. In appendix D we will discuss a necessary condition for the 1RSB approach being correct. In case the 1RSB approach does not fully describe the system further steps of replica symmetry breaking might provide a better approximation (that means splitting clusters into sub-clusters or aggregation of clusters) [MP00]. However, on the tree-like lattices, the exact solutions is not known in such cases.

In glasses, the clustering transition is usually studied at finite temperature and is called the dynamical transition. The clustered phase with Σ(m=1)>0\Sigma(m=1)>0 is called the dynamical 1RSB phase. This phase, where most of the static properties do not differ from the replica symmetric (liquid) ones, was first described and discuss in [KT87a, KT87b]. The dynamical transition is associated with a critical slowing down of the dynamical properties, e.g. the equilibration time is expected to diverge at this point. Note that such a purely dynamical phase transition is typical for mean-field models. In the finite dimensional glassy systems the barriers between a metastable and an equilibrium state are finite (independent of the system size). This is because the nucleation length might be large but have to be finite. Thus instead of a sharp dynamical transition in finite dimensional systems we observe only a crossover.

However, even at the mean field level, the exact dynamical description is known only in a few toy models, e.g. the spherical pp-spin model [CK93] or the random subcubes model [ZDEB-8]. In general, the dynamical solution is only approximative, still many very interesting results were obtained. For a review see [BCKM98]. In the models on sparse random lattices even the approximation schemes are rather poor, see e.g. [SW04]. Thus the exact general relation between dynamics and the dynamical (clustering) transition is not known.

An important contribution in establishing the link between dynamics and the static solution on random graphs is [MS05, MS06b, MS06c] where the divergence of the point-to-set correlation length is linked with divergence of the equilibration time of the Glauber dynamics. This suggests that beyond the clustering transition the Monte Carlo sampling (or maybe even sampling in general) will be a hard task.

Note also that in the mathematical literature the Glauber dynamics is often studied. Many results exist about the so-called rapid mixing of the associated Markov chain [Sin93]. But the rapid mixing questions equilibration in polynomial time, whereas in physics the relevant time scale is linear. Moreover rapid mixing is defined as convergence to the equilibrium measure from any possible initial conditions, whereas in physics of glasses the notion of a typical initial condition should be used instead.

1.3 Compendium of the 1RSB cavity equations

We review the 1RSB equations on a general CSP. The order parameter is a probability distribution of the cavity field (BP message) ψa→i=(ψ0a→i,…,ψq−1a→i)\psi^{a\to i}=(\psi^{a\to i}_{0},\dots,\psi^{a\to i}_{q-1}). The self-consistent equation for Pa→iP^{a\to i} reads

where the function F({ψb→j}){\cal F}(\{\psi^{b\to j}\}) and the term Zj→iZ^{j\to i} are defined by the BP equation (1.17), Zj→i{\cal Z}^{j\to i} is a normalization constant.

The associated thermodynamical potential (2.15) is computed as

where the terms Za+∂aZ^{a+\partial a} and ZiZ^{i} are the partition sum contributions defined in (1.19).

The logarithm of the number of states divided by the system size defines the complexity function Σ\Sigma. Inversely the number of states is eNΣe^{N\Sigma}. At finite temperature the complexity of states with a given internal free energy is a Legendre transformation of the potential Φ(m)\Phi(m)

Useful relations between the free energy, complexity and potential Φ\Phi are

At zero energy, E=0E=0, and zero temperature, β→∞\beta\to\infty, the free energy becomes entropy −βf→s-\beta f\to s. Then the complexity is a function of the internal entropy of states and (2.26) becomes

This is called the entropic zero temperature limit. The internal entropy is expressed as

where ΔSa+∂a\Delta S^{a+\partial a} (ΔSi\Delta S^{i} resp.) is an internal entropy shift when the constraint aa and all its neighbour (the variable ii resp.) are added to the graph.

In the energetic zero temperature limit, described in sec. 1.6 for zero energy, the Parisi parameter y=βmy=\beta m is kept constant, thus m→0m\to 0. The free energy then converges to the energy, and (2.26) becomes

where the complexity is this time a function of the energy density ee. The survey propagation equations generalized to nonzero yy are called the SP-yy equations.

Equations (2.24-2.31) are defined on a single instance of the constraint satisfaction problem. Averages P{\cal P} over the graph ensemble are obtained in a similar manner as in sec. 1.5.3 for the replica symmetric solution.

where in the sum over {li}\{l_{i}\}, i∈{1,…,K−1}i\in\{1,\dots,K-1\}, and the functional F2{\cal F}_{2} is defined by (2.24). Analogical expression holds for the average of the complexity or internal entropy. A general method to solve the equation (2.33) is the population of populations described in appendix E.5.

2 Geometrical definitions of clusters

Up to now we were describing clusters, i.e., partitions of the space of solutions, in a very abstract way which was defined only in the thermodynamical limit. We showed how to compute the number of clusters of a given size (internal entropy) (2.28), and we argued that the description makes sense if the point-to-set correlation (2.22) decays to zero within almost every cluster of that size. In this last sense clusters are what we would call in statistical physics pure equilibrium states.

On a very intuitive level, cluster are groups of nearby solutions which are in some sense separated from each other. Several geometrical definitions are used in the literature, we want to review the most common ones and state their relation to the definition above. We want to stress that it is not know whether any of the geometric definitions is equivalent to the description given above and used usually in the statistical physics literature.

First rigorous proofs of existence of an exponential number of clusters of solutions in the random KK-SAT were based on the concept of xx-satisfiability. Two solutions are at distance xx if they differ in exactly xNxN variables. A formula is said xx-satisfiable if there is a pair of solutions at distance xx, and xx-unsatisfiable if there is not.

Mora, Mézard and Zecchina [MMZ05, DMMZ08] managed to prove that for K≥8K\geq 8 and a constraint density α\alpha near enough to the satisfiability threshold the formulas are almost surely xx-satisfiable for x<x0x<x_{0}, almost surely xx-unsatisfiable for x1<x<x2x_{1}<x<x_{2}, and almost surely xx-satisfiable at x3<x<x4x_{3}<x<x_{4}, where obviously 0<x0<x1<x2<x3<x4<10<x_{0}<x_{1}<x_{2}<x_{3}<x_{4}<1. This means that at least two well separated clusters of solutions exist. Proving that there is an exponentially smaller number of pairs of solutions at distances x<x1x<x_{1} than at distances x>x2x>x_{2} leads to the conclusion that an exponential number of well geometrically separated clusters exists [ART06].

However, the xx-satisfiability gives too strong conditions of separability. This is illustrated for example in the XOR-SAT problem [MM06b]. It is still an open question if there is or not a gap in the xx-satisfiability in the random 3-SAT near to the satisfiability threshold.

Another popular choice of a geometrical definition of clusters is that clusters are connected components in a graph where every solution is a vertex and solutions which differ in dd or less variables are connected. The distance dd is often said to be any sub-extensive (in the number of variables NN) distance, that is d=o(N)d=o(N). However, such a rule is not very practical for numerical investigations.

In KK-SAT, in fact, d=1d=1 seems to be a more reasonable choice. There are two reasons: First, clusters defined via d=1d=1 have correct ”whitening” properties as we explain in the next paragraph. Second, we numerically investigated the complexity of d=1d=1 connected-components clusters, fig. 2.2 right, and the agreement with the total number of clusters computed from (2.28) at m=0m=0 is strikingly good. In particular, near to the satisfiability threshold α>4.15\alpha>4.15, where the 1RSB result for the total complexity function is believed to be correct (stable) [MPRT04].

Formally, connected-components clusters have no reason to be equivalent to the notion of pure states. They are not able to reproduce purely entropic separation between clusters, which might exist in models like 3-SAT. However, fig. 2.2 suggests that there is more in this definition than it might seem at a first glance.

We define the whitening of a solution as iterations of the warning propagation equations (1.35) initialized in the solution. The fixed point is then called the whitening core. Note, that the whitening core is well defined in the sense that the fixed point of the warning propagation initialized in a solution does not depend on the order in which the messages were updated. A whitening core is called trivial if all the warning messages are , that is ”I do not care”.

The 1RSB equations at m=0m=0, which give the total complexity function, can be derived as belief propagation counting of all possible whitening cores [MZ02, BZ04, MMW07]. Thus another reasonable definition of clusters is that two solutions belong to the same cluster if and only if their whitening core is identical. In fig. 2.2 left we plot numerically computed complexity of the whitening-core clusters compared to the complexity computed from (2.28) at m=0m=0. The agreement is again good, in particular near to the satisfiability threshold, α>4.15\alpha>4.15, where the SP gives a correct result.

The d=1d=1 connected-components clusters share the property that all the solution from one clusters have the same whitening core. Proof: If this would not be true then there have to exist a pair of solutions which do not have the same whitening core but differ in only one variable, this is not possible because then the whitening could be started in that variable.

Note, however, that the definition of whitening-core clusters put all the solutions with a trivial whitening core into one cluster. This is not correct as, at least near to the clustering threshold, there are many pure states with a trivial whitening core. This is closely connected to the properties of frozen variables which will be discussed in chapter 4.

In order to obtain the data in fig. 2.2 we generate instances of the random 3-SAT problem with NN variables and MM clauses, constraint density is then α=M/N\alpha=M/N. We count number of solutions in A=999A=999 random instances and choose the median one where we count the number of connected-components and whitening-core clusters S{\cal S}. This is repeated B=1000B=1000 times. The average complexity is then computed as Σ=∑i=1Blog⁡Si/(BN)\Sigma=\sum_{i=1}^{B}\log{\cal S}_{i}/(BN), if the median instance was unsatisfiable then we count zero to the average, that is if all the BB instances are unsatisfiable then the complexity is zero. We do such a non-traditional sampling to avoid rare instances with very many solutions, which we would not be able to cluster.

3 Physical properties of the clustered phase

Let us give a summary of the properties of the clustered phase, also called the dynamical 1RSB phase. We describe only the situation when Σ(m=1)>0\Sigma(m=1)>0 (2.28), when the opposite is true the properties are completely different as we will discuss in the next chapter 3.

The complexity function computed from (2.28) is the log-number of clusters of a given internal entropy. If a solution is chosen uniformly at random it will almost surely belong to a cluster with entropy s∗s^{*} such that Σ(s)+s\Sigma(s)+s is maximized in s∗s^{*}, ∂sΣ(s∗)=−1\partial_{s}\Sigma(s^{*})=-1, that is m=1m=1. At m=1m=1 the total entropy Σ(s∗)+s∗=Φ(m=1)\Sigma(s^{*})+s^{*}=\Phi(m=1). The replicated free entropy at Φ(m=1)\Phi(m=1) is equal to the replica symmetric entropy. Thus the total entropy in the dynamical 1RSB phase is equal to the RS entropy. Also the marginal probabilities at m=1m=1 are equal to the replica symmetric ones

Thus the clustering transition is not a phase transition in the Ehrenfest sense, because the thermodynamical potential, entropy in our case, in analytical at the transition.

The overlap (or here distance) distribution, which is often used to describe the spin glass phase, is also trivial and equal to the replica symmetric one in the dynamical 1RSB phase. Indeed, if exponentially many clusters are needed to cover almost all solutions, then the probability that two solutions happen to belong to the same cluster is zero.

The correlation function between two variables at a distance (shortest path in the graph) dd is defined as ⟨sisj⟩c=∣∣μ(si,sj)−μ(si)μ(sj)∣∣TV\langle s_{i}s_{j}\rangle_{c}=||\mu(s_{i},s_{j})-\mu(s_{i})\mu(s_{j})||_{\rm TV}. The variance of the overlap distribution, which is negligible compared to 11 as we explained, can be expressed as ∑i,j⟨sisj⟩c2/N2\sum_{i,j}\langle s_{i}s_{j}\rangle^{2}_{c}/N^{2}, and thus the two-point correlation have to decay faster with distance than the number on vertices at that distance is growing. This means in particular that two neighbours of a node ii are independent if we condition on the value of ii, this is again consistent with the fact that the belief propagation equations predict correct total entropy and marginal probabilities.

So far nothing is different form the replica symmetric phase. It is thus not straightforward to recognize the dynamical 1RSB phase based on the original replica computation. Presence of this phase was discovered and discussed in [KT87a, KT87b]. Later purely static methods were developed to identify this phase. The most remarkable is perhaps the ϵ\epsilon-coupling and the ”potential” of [FP95, FP97].

In our setting the main difference between the replica symmetric phase and the dynamical 1RSB phase is that in the later the point-to-set correlations do not decay to zero. Consequently the equilibration time of the local Monte Carlo dynamics diverges and Monte Carlo sampling becomes difficult [MS06b].

4 Is the clustered phase algorithmically hard?

Clustering has important implications for the dynamical behaviour. It slows down the equilibration and thus uniform sampling of solutions via local single spin flip Monte Carlo is not possible, or exponentially slow, beyond the dynamical threshold. But finding one solution is a much simpler problem than sampling.

In the 3-coloring of Erdős-Rényi graphs the clustering threshold is cd=4c_{d}=4, as at this point the spin glass susceptibility diverges, see appendix C. In the terms of the reconstruction problem the Kesten-Stigum [KS66a, KS66b] bound is sharp. On the other hand Achlioptas and Moore [AM03] proved that a simple heuristic algorithm is able to find a solution in average polynomial time up to at least c=4.03c=4.03. This shows that the RSB phase is not necessarily hard.

A similar observation was made in the 1-in-3 SAT problem in [ZDEB-3]. There is a region in the values of the average density of constraints and the probability of negating a variable in a clause in which the replica symmetric solution is unstable and yet the unit clause propagation algorithm with the short clause heuristics was proven to find a solution in polynomial average time.

We should mention a common contra-argument; which is that in the above mentioned regions the 1RSB approach might not be correct, and the presumably full-RSB phase [Par80c] is more ”transparent” for the dynamics of algorithms, see e.g. [MRT04]. However, at least in the 3-coloring, the 1RSB approach seems to be correct in the interval in question, as we argue in appendix D.

There is a lot of numerical evidence that relatively simple single spin flip stochastic local search algorithms are able to find solutions in linear time deep in the clustered region. Examples of works where performance of such algorithms was analyzed are [KK07, SAO05, AA06, AAA+07]. In fig. 2.3 we give an example of performance of the ASAT algorithm [AA06] in 4-coloring of Erdős-Rényi random graphs [ZDEB-5]. The algorithm is described in appendix F.2.2. In the 4-coloring ASAT is able to find solutions in linear time beyond the clustering transition cd=8.35c_{d}=8.35

There is no paradox in the observations above. Quantitative statements are, however, difficult to make. Let us describe on an intuitive level the behaviour of an algorithm (dynamics) which satisfies the detailed balance condition and thus in infinite time samples uniformly from the uniform measure (2.1). We think for example about the simulated annealing [KGV83]. Above the dynamical temperature TdT_{d} corresponding to an energy EdE_{d} the point-to-set correlation function (2.22) decay fast and thus simulated annealing is able to reach the equilibrium. Below temperature TdT_{d} this is not the case anymore and the dynamics is stuck for a very long time in one of the clusters, states. But the bottom of this state EbottomE_{\rm bottom} lies lower than EdE_{d}, thus when lowering the temperature the average energy seen by the simulated annealing also decreases. If Ebottom=0E_{\rm bottom}=0 then the algorithm will find a solution. It is not known how to compute EbottomE_{\rm bottom} in general. Sometimes, far from the clustering transition, the iso-complexity approach [MRT04] gives a lower bound on EbottomE_{\rm bottom}. But in general, as far as we know, there is no argument saying Ebottom>0E_{\rm bottom}>0. This picture can be substantiated for several simple models as the spherical pp-spin model [CK93] or the random subcubes model [ZDEB-8]. The connection with the optimization problems was remarked in [KK07].

For the stochastic local search algorithm, which does not satisfy the detailed balanced condition, the situation might be similar. At a point the algorithm is stuck in a cluster, but if this cluster goes down to the zero energy then it might be able to find solutions even in the clustered phase.

However, the current understanding of the dynamics of the mean field glassy systems is far from complete. More studies are needed to understand better the link between the static clustered phase and the dynamical behaviour.

Chapter 3 Condensation

In this chapter we will describe the so-called condensed clustered phase. Before turning to the models of our interest we present the random subcubes model [ZDEB-8], where the condensation of clusters can be understood on a very elementary probabilistic level. After mentioning that the condensed phase is in fact very well known in spin glasses we describe the Poisson-Dirichlet process which determines the distribution of sizes of clusters in that phase. Further, we discuss general properties of the condensed phase in random CSPs. And finally we address our original question and conclude that the condensation is not much significant for the hardness of finding a solution [ZDEB-5].

The random-subcubes model [ZDEB-8] is defined by its solution space S⊆{0,1}NS\subseteq\{0,1\}^{N}; we define SS as the union of ⌊2(1−α)N⌋\lfloor 2^{(1-\alpha)N}\rfloor random clusters (where ⌊x⌋\lfloor x\rfloor denotes the integer value of xx). A random cluster AA being defined as:

such that for each variable ii, πiA={0}\pi^{A}_{i}=\{0\} with probability p/2p/2, {1}\{1\} with probability p/2p/2, and {0,1}\{0,1\} with probability 1−p1-p. A cluster is here a random subcube of {0,1}N\{0,1\}^{N}. If πiA={0}\pi^{A}_{i}=\{0\} or {1}\{1\}, variable ii is said “frozen” in AA; otherwise it is said “free” in AA. In this model one given configuration σ\sigma might belong to zero, one or several clusters.

We describe the static properties of the set of solutions SS in the random-subcubes model in the thermodynamic limit N→∞N\to\infty (the two parameters 0≤α≤10\leq\alpha\leq 1 and 0≤p≤10\leq p\leq 1 being fixed and independent of NN). The internal entropy ss of a cluster AA is defined as 1Nlog⁡2∣A∣\frac{1}{N}\log_{2}|A|, i.e., the fraction of free variables in AA. The probability P(s){\cal P}(s) that a cluster has internal entropy ss follows the binomial distribution

Then the number of clusters of entropy ss, denoted N(s){\cal N}(s), is with high probability

where D(x∥y)≡xlog⁡2xy+(1−x)log⁡21−x1−yD(x\parallel y)\equiv x\log_{2}{\frac{x}{y}}+(1-x)\log_{2}{\frac{1-x}{1-y}} is the binary Kullback-Leibler divergence.

We compute the total entropy stot=1Nlog⁡2∣S∣s_{\rm tot}=\frac{1}{N}\log_{2}|S|. First note that a random configuration belongs on average to 2N(1−α)(1−p2)N2^{N(1-\alpha)}(1-\frac{p}{2})^{N} clusters. Therefore, if

then with high probability the total entropy is stot=1s_{\rm tot}=1.

Now assume α>αd\alpha>\alpha_{d}. The total entropy is given by a saddle-point estimation:

We denote by s∗=argmaxs[Σ(s)+s ∣ Σ(s)≥0]s^{*}={\rm argmax}_{s}{[\Sigma(s)+s\,|\,\Sigma(s)\geq 0]} the fraction of free variables in the clusters that dominate the sum. Note that our estimation is valid (there is no double counting) since in every cluster the fraction of solutions belonging to more than one cluster is exponentially small as long as α>αd\alpha>\alpha_{d}.

For α>αc\alpha>\alpha_{c}, the maximum in (3.8) is realized by the largest possible cluster entropy smaxs_{\rm max}, which is given by the largest root of Σ(s)\Sigma(s). Then stot=s∗=smaxs_{\rm tot}=s^{*}=s_{\rm max}. We will show in the next section that in such a case almost all solutions belong to only a finite number of largest clusters. This phase is thus called condensed, in the sense that almost all solutions are ”condensed” in a small number of clusters.

In summary, for a fixed value of the parameter pp, and for increasing values of α\alpha, four different phases can be distinguished:

Liquid (replica symmetric) phase, α<αd\alpha<\alpha_{d}: almost all configurations are solutions.

Clustered (dynamical 1RSB) phase with many states, αd<α<αc\alpha_{d}<\alpha<\alpha_{c}: an exponential number of clusters is needed to cover almost all the solutions.

Condensed clustered phase, αc<α<1\alpha_{c}<\alpha<1: a finite number of the biggest clusters covers almost all the solutions.

Unsatisfiable phase, α>1\alpha>1: no cluster, hence no solution, exists.

2 New in CSPs, well known in spin glasses

The complexity function Σ(s)\Sigma(s) (2.26) in random CSPs is counting the logarithm of the number of clusters per variable which have internal entropy ss per variable. We define dominating clusters in the same way as in the random subcubes model, that is clusters of entropy s∗s^{*} such that

In chap. 2 we discussed properties of the dynamical 1RSB phase, that is when Σ(s∗)>0\Sigma(s^{*})>0, in other words when there are exponentially many dominating clusters.

The condensed phase with Σ(s∗)=0\Sigma(s^{*})=0, described in the random subcubes model, exists also in random CSPs. And in the context of constraint satisfaction problems it was first computed and discussed in [MPR05] and [ZDEB-4]. However, historically it was the condensed phase where the 1RSB solution was first worked out [Par80c]. A very simple example of condensation can also be found in the random energy model [Der80, Der81]. As we discussed in the previous chapter 2, the dynamical 1RSB phase is well hidden within the replica solution — the total entropy is equal to the replica symmetric entropy, the overlap distribution is trivial and the two-point correlation functions decay to zero etc. All this changes in the condensed phase.

A small digression to the physics of glasses: In structural glasses, the analog of the condensation transition is well known for a long time, its discovery goes back to Kauzmann in 1948 who studied the configurational entropy of glassy materials. Configurational entropy is the difference between the total (experimentally measured) entropy and the entropy of a solid material, this thus corresponds to the complexity function. In the so called fragile structural glasses [Ang95] the extrapolated configurational entropy becomes zero at a positive temperature, nowadays called the Kauzmann temperature. The Kauzmann temperature in the real glasses is, however, only extrapolation. The equilibration time in glasses exceeds the observation time high above the Kauzmann temperature. It is a widely discussed question if there exists a true phase transition at the Kauzmann temperature or not, for a recent discussion see [DS01].

As we said, it is the condensed phase which was originally described by Parisi and his one-step replica symmetry breaking solution [Par80c]. Let us now briefly clarify the relation to the replica solution, similar reasoning first appeared in [Mon95]. In sec. 2.1 we called the Legendre transform of the complexity function the replicated free entropy Φ(m)\Phi(m) (2.26). In the replica approach the replicated entropy Ω(m)=Φ(m)/m\Omega(m)=\Phi(m)/m is computed. From (2.28) follows

Thus, in the condensed phase, computing the largest root of the function Σ(s)\Sigma(s), in order to maximize the total entropy, is equivalent to extremizing the replicated entropy Ω(m)\Omega(m). Moreover, as the function Σ(s)\Sigma(s) is concave and the parameter mm is minus its slope this extrema have to be a minima. Thus in the Parisi’s replica solution we have to minimize the replicated entropy function with respect to the parameter mm. If a temperature is involved then this becomes a maximization of the replicated free energy, this might have seem contra-intuitive in the original solution, but it comes out very naturally in our approach. Other physical interpretation of the maximization was proposed e.g. in [Jan05].

3 Relative sizes of clusters in the condensed phase

What is the number of dominating clusters in the condensed phase and what are their relative sizes? So far we know that the entropy per variable of the dominating states is s∗+o(1)s^{*}+o(1) and that their number is sub-exponential, Σ(s∗)=0\Sigma(s^{*})=0. But much more can be said based on purely probabilistic considerations.

Consider that the total number of clusters N{\cal N} is exponentially large in the system size NN, and that N→∞N\to\infty. Let the log-number of clusters of a given entropy be distributed according to an analytic function Σ(s)\Sigma(s). Denote −m∗=∂sΣ(s∗)-m^{*}=\partial_{s}\Sigma(s^{*}), in the condensed phase 0<m∗<10<m^{*}<1. Denote the size of the αth\alpha^{\rm th} largest cluster eNs∗+Δαe^{Ns^{*}+\Delta_{\alpha}}, Δα=O(1)\Delta_{\alpha}=O(1). The probability that there is a cluster of size between eNs∗+Δe^{Ns^{*}+\Delta} and eNs∗+Δ+dΔe^{Ns^{*}+\Delta+{\rm d}\Delta}, Δ≫dΔ\Delta\gg{\rm d}\Delta, is e−m∗ΔdΔe^{-m^{*}\Delta}{\rm d}\Delta, in other words points Δα\Delta_{\alpha} are constructed from a Poissonian process with rate e−m∗Δe^{-m^{*}\Delta} Note that in the random subcubes model the numbers (Ns∗+Δα)log⁡(2)(Ns^{*}+\Delta_{\alpha})\log(2) are integers equal to the number of free variables in the cluster AαA_{\alpha}. Then Δα\Delta_{\alpha} are discrete and some of the properties of the resulting process might be different from the Poisson-Dirichlet.. Relative size of the αth\alpha^{\rm th} largest cluster is defined as

Point process wαw_{\alpha} which is constructed as described above is in mathematics called the Poisson-Dirichlet process [PY97]. The connection between this process and the relative weights of states in the mean field models of spin glasses was (on a non-rigorous level) understood in [MPV85], for more mathematical review see [Tal03]To avoid confusion, note that the Poisson-Dirichlet process we are interested in is the PD(m∗,0){\rm PD}(m^{*},0) in the notation of [PY97]. In the mathematical literature, it is often referred to the PD(0,θ){\rm PD}(0,\theta) without indexing by the two parameters..

Any moment of any wαw_{\alpha} can be computed from the generating function [PY97]

where λ≥0\lambda\geq 0 and the functions ϕm∗\phi_{m^{*}} and ψm∗\psi_{m^{*}} are defined as

The second moments can be used to express the average probability YY that two random solutions belong to the same cluster

From the properties of the Poisson-Dirichlet process, it follows that an arbitrary large fraction of the solutions can be covered by a finite number of clusters. When m∗m^{*} is near to zero, that is near to the satisfiability threshold, the largest cluster covers a large fraction of solutions. On the other side, when m∗m^{*} is near to one, that is near to the condensation transition, very many (but finite in NN) clusters are needed to cover a given fraction of solutions.

4 Condensed phase in random CSPs

The total entropy in the condensed phase is strictly smaller than the replica symmetric entropy, stot=s∗<sRSs_{\rm tot}=s^{*}<s_{\rm RS}. At the condensation transition ccc_{c} the total entropy is non-analytic, it has a discontinuity in the second derivative. This can be seen easily for example from the expressions for the random subcubes model. At a finite temperature the discontinuity in the second derivative of the free energy corresponds to a jump in the specific heat. The parameter m∗=1m^{*}=1 at the condensation transition and decreases monotonously to m∗=0m^{*}=0 at the satisfiability threshold.

In the physics of disordered systems the self-averaging is a crucial concept. We say that quantity AA measured on a system (graph) of NN variables is self-averaging if in the limit N→∞N\to\infty

In the condensed phase quantities which involve the weights of clusters are not self-averaging. This arises from the fact that the dominating clusters are different in every realization of the system. Statistical properties of many quantities of interest can be described from the Poisson-Dirichlet process.

The overlap between two solutions is defined as one minus the Hamming distance

The overlap between two solutions belonging to two different dominating clusters is q0q_{0}, and between two solutions belonging to the same dominating cluster q1q_{1}. Values q0q_{0} and q1q_{1} are self-averaging. The distribution of overlaps in the limit N→∞N\to\infty can thus be written as

The variance of the overlap distribution is

At the same time the variance is equal to

where s0s_{0} is a typical variable in the random graph. If we consider that the two-point correlation function is of order one up to a correlation length ξ\xi and zero after that we get

where cc is approximately the branching factor. In the condensed phase the variance of the overlap is of order one thus the correlation length has to be of order log⁡N\log N. But the shortest path between two random variables is also of order log⁡N\log N thus the two-point correlations cannot be neglected in the condensed phase.

If two-point correlations cannot be neglected then the derivation of belief propagation equations (1.16a-1.16b) is not valid, because we supposed that the neighbours of a node ii are independent when we condition on the value of ii. It is thus not surprising that the value to which the BP equations converge (if they do), does not correspond to the true marginal probability. Formally, the BP fixed point corresponds to the 1RSB equations at m=1m=1, but in the condensed phase m∗<1m^{*}<1.

In fact, the probability distribution of the true marginal probabilities is another example of a non self-averaging quantity. It again depends on the realization of the Poisson-Dirichlet process.

5 Is the condensed phase algorithmically hard?

From the algorithmic point of view the only important difference between the dynamical 1RSB phase and the condensed phase is that in the condensed phase the belief propagation does not estimate correctly the asymptotic marginal probabilities. In the condensed phase, the total entropy cannot be estimated from the BP equations either, thus approximative counting and sampling of solutions will probably be even harder than in the dynamical 1RSB phase.

Concerning the hardness of finding a solution we might expect that the incorrectness of the belief propagation estimates of marginals will play a certain role. However, we used the belief propagation maximal decimation as described in appendix F.1.2 in the 3- and 4-coloring, see fig. 3.3. And this algorithm does not seem to have any problem to pass the condensation transition in both these cases. In particular, in the 3-coloring the gap between the condensation threshold cc=4c_{c}=4 and the limit of performance of the BP decimation c≈4.55c\approx 4.55 is huge. The rigidity transition crc_{r}, defined in chapter 4, and the colorability threshold csc_{s} are also marked for comparison in fig. 3.3.

The condensation transition thus does not seem to play any significant role for the computational hardness of finding a solution.

Chapter 4 Freezing

The previous two chapters describe recent contributions to the understanding of the clustering and condensation of solutions in random constraint satisfaction problems. Both these concepts are well known and widely discussed in the mean field theory of glasses and spin glasses for at least a quarter of a century.

The concept of freezing of variables appeared in the studies of optimization problems, that is systems at zero temperature (or infinite pressure). In this chapter we first define the freezing of variables, clusters and solutions, and discuss its properties both in the thermodynamical limit and on finite-size instances. Then we explain how to describe the frozen variables within the one-step replica symmetry breaking approach and we define several possible phase transition associated to the freezing. To simplify the picture we define and solve the ”completely frozen” locked constraint satisfaction problem where every cluster contains only one configuration. Finally we give several arguments about connection between the freezing and the average computational hardness. Results of this section are mostly original and were published in [ZDEB-5, ZDEB-7, ZDEB-10, ZDEB-9].

Consider a set of solutions S{\cal S} of a given instance of a constraint satisfaction problem. Define that a variable ii is frozen in the set of solutions A⊂SA\subset{\cal S} if it is assigned the same value in all the solutions in the set. If an extensive number of variables is frozen in the set AA, then we call AA and all the solutions in AA frozen, otherwise AA and all the solutions in AA are called soft (unfrozen).

A first observation is that the set of all solutions S{\cal S} is not frozen in the satisfiable phase. If it would be then adding one constraint, i.e., increasing the constraint density by 1/N1/N, would make the formula unsatisfiable with a finite probability, that would be in a contradiction with the sharpness of the satisfiability threshold. The backbone is made of variables frozen in the set of ground states. An extensive backbone can thus exist only in the unsatisfiable phase. Already in [MZK+99b] it was argued that there might be a connection between the backbone and the computational hardness of the problem. The suggestion of [MZK+99b] was that if the fraction of variables covered by the backbone is discontinuous at the satisfiability transition then it is hard to find satisfying assignments on highly constrained but still satisfiable instances. On the other hand if the backbone appears continuously the problem is easy in the satisfiable phase. This was based on the replica symmetric solution of the random KK-SAT which does not describe fully the phase space, in spite of that the relation between the existence of frozen variables inside clusters and the algorithmical hardness seems to be deep and we will develop it in this chapter.

How to recognize if clusters have frozen variables or not. Or how to recognize if a given solution belongs to a frozen cluster or not. An iterative procedure called whitening [Par02a] gives an answer to these questions.

Given a formula of a CSP and one of its solutions {si}∈{−1,1}N\{s_{i}\}\in\{-1,1\}^{N}, i=1,…,Ni=1,\dots,N, the whitening of the solution is defined as iterations of the warning propagation equations (1.35) initialized on the solution. That is, for a binary CSP hiniti→a=sih^{i\to a}_{\rm init}=s_{i}, and uinita→iu^{a\to i}_{\rm init} is computed according to eq. (1.35b). Note that the fixed point of the whitening does not depend on the order in which the warnings are updated. Indeed, during the iterations the only changes in warnings are from non-zero values to zero values. The fixed point is called the whitening core of the solution. The whitening core is called trivial if all the warnings are equal to , and nontrivial otherwise.

In the KK-SAT problem whitening can be reformulated in a very natural way: Start with the solution {si}\{s_{i}\}, assign iteratively a ”∗\ast” (joker) to variables which belong only to clauses which are already satisfied by another variable or already contain a ∗\ast variable. On a general CSP such procedure is not equivalent to the whitening, and the warning propagation definition has to be used instead in order to obtain all the desired properties and relations to the 1RSB solution.

We now argue that if the 1RSB solution is correct, then frozen variables in the cluster, to which solution {si}\{s_{i}\} belongs, asymptotically correspond to variables for which in the whitening core the total warning hi≠0h^{i}\neq 0 (1.37). Thus whitening can be used to decide if the solution {si}\{s_{i}\} belongs to a frozen cluster without knowing all the solutions in that cluster. The first step to show this property is, as in sec. 2.1.1, to consider the CSP on a tree with given boundary conditions which are compatible with a non-empty set of solutions S{\cal S} in the interior of the tree. Starting on the leaves we compute iteratively the warnings (1.35) down to the root. Variables which have at least one non-zero incoming warning are frozen in the set S{\cal S}. The correctness of the 1RSB approach on a tree-like graph means that the picture on a tree captures properly all the asymptotic properties. In particular, the whitening core determines the set of frozen variables on typical large instances of the problem. The correctness of the 1RSB solution is an essential assumption for the above statement. Because all the long-range correlations decay within one cluster the warnings ua→iu^{a\to i} in the whitening core are independent in the absence of ii. Thus there truly exist solutions in that cluster in which the variable ii takes all the values allowed by the warnings. And on the other hand, if a value is not allowed by the warnings there is no solution where ii would be taking this value. For consistency, all solutions in one cluster have to have the same whitening core. However, two different clusters can have the same whitening core. The most important example are all the soft (not frozen) clusters that all have the trivial whitening core.

Whitening, as the iterative fixed point of the warning propagation, may be defined not only for a solution but for any configuration. In this way one may find blocking metastable states. For some preliminary numerical considerations see [SAO05].

1.2 Freezing on finite size instances

The definition of whitening is applicable to any (non-random, small, etc.) instance. What does then remain from the asymptotic correspondence between frozen variables and whitening cores?

Consider now clusters as connected components in the graph where all solutions are nodes and where edges are between solutions which differ in only one variable, as in sec. 2.2. Several questions arise about this definition:

Do all the solutions in the connected-components cluster have the same whitening core? The answer is yes. If there were two solutions with different whitening cores which can be connected by a chain of single-variable flips, then along this chain there would exist a pair of solutions which differ in only one variable ii and have different whitening cores. But this is not possible, as the fixed point of the whitening does not depend on the order in which the warnings were updated, and one could thus start the whitening by setting warnings hi→a=0h^{i\to a}=0.

Does the whitening core of a connected-components cluster correspond to the set of frozen variables? The answer is: If in the whitening core hi≠0h^{i}\neq 0 (1.37) then the variable ii is frozen in the connected-components cluster. Proof: If such a variable ii is not frozen, then there have to exist a pair of solutions which differ only in the value of this variable. Then all the constraints around ii have to be compatible with both these values, this would be in contradiction with hi≠0h^{i}\neq 0. On the other hand, if in the whitening core hi=0h^{i}=0 then the variable ii might still be frozen in the connected-components cluster on a general instance, because correlations which are not considered by the 1RSB solution may play a role.

Consider now clusters as the set of all solutions which share the same whitening core. Whitening-core clusters are aggregations of the connected-components clusters. In particular, all the solutions with a trivial whitening core, which might correspond to exponentially many pure states, are put together.

What is the set of frozen variables in the whitening-core clusters? The answer is: Again if in the whitening core hi≠0h^{i}\neq 0 then the variable ii is frozen in the whitening-core cluster. In principle, one whitening-core cluster could be an union of several connected-components cluster, but ii is frozen to the same value in each of them. The inverse is not correct in general. On finite size instances some variables with a zero warning hi=0h^{i}=0 might be frozen in the whitening-core cluster.

Can there be a fixed point of the warning propagation (1.35) corresponding to zero energy (1.38) which is not compatible with any solution? The answer is yes. And such fixed points were observed in [BZ04, MMW07, KSS07b]. Again if the 1RSB solution is correct then in the thermodynamical limit these ”fake” fixed points are negligible.

1.3 Freezing transition in 3-SAT - exhaustive enumeration

Before turning to the cavity description of frozen clusters we investigate the freezing transition in the random 3-SAT numerically. We define the freezing transition, αf\alpha_{f}, as the smallest density of constraints α\alpha such that the whitening core of all solutions is nontrivial, i.e., not made only from zero warnings. We use the whitening core in the definition instead of the real set of frozen variables, because it does not depend on the definition of clusters and it has much smaller finite size effects. The existence of such a frozen phase was proven in the thermodynamical limit for K≥9K\geq 9 of the KK-SAT near to the satisfiability threshold in [ART06].

In order to determine the freezing transition we start with a 3-SAT formula of NN variables and all possible clauses, and remove the clauses one by one independently at randomIn practice we do not start with all the clauses, but as many that in all the repetitions of this procedure the initial instance is unsatisfiable.. We mark the number of clauses MsM_{s} where the formula becomes satisfiable as well as the number of clauses Mf≤MsM_{f}\leq M_{s} where at least one solution starts to have a trivial whitening core. We repeat BB-times (B=2⋅104B=2\cdot 10^{4} in fig. 4.1) and compute the probabilities that a formula of MM clauses is satisfiable Ps(α,N)P_{s}(\alpha,N), and unfrozen Pf(α,N)P_{f}(\alpha,N) respectively. Due to the memory limitation we could treat only instances which have less than 5⋅1075\cdot 10^{7} solutions which limits us to system sizes N≤100N\leq 100. The results for the satisfiability threshold are shown in fig. 1.3 and are consistent with previous studies in [KS94, MZK+99b, MZK+99a]. The probability of being unfrozen, Pf(α,N)P_{f}(\alpha,N), is shown in fig. 4.1.

It is tempting to perform a scaling analysis as has been done in [KS94, MZK+99b, MZK+99a] for the satisfiability threshold. The critical exponent related to the width of the scaling window was defined via rescaling of the constraint density α\alpha as N1/νs[1−α/αs(N)]N^{1/\nu_{s}}[1-\alpha/\alpha_{s}(N)]. Note, however, that the estimate νs=1.5±0.1\nu_{s}=1.5\pm 0.1 for 3-SAT provided in [MZK+99a] is not asymptotically correct. It was proven in [Wil02] that νs≥2\nu_{s}\geq 2. Indeed, it was shown numerically in [LRTZ01] that a crossover exists at sizes of order N≈104N\approx 10^{4} in the related XOR-SAT problem. A similar situation happens for the scaling of the freezing transition, Pf(α,N)P_{f}(\alpha,N), as the proof of [Wil02] applies also here Theorem 1 of [Wil02] applies to the freezing property where the bystander are clauses containing two leaves.. It would be interesting to investigate the scaling behaviour on an ensemble of instances where the results of [Wil02] do not apply (e.g. graphs without leaves). However, we concentrate instead on the estimation of the critical point, which we do not expect to be influenced by the crossover in the scaling. We are in a much more convenient situation for the freezing transition than for the satisfiability one. The crossing point between functions Pf(α,N)P_{f}(\alpha,N) for different system sizes seems to depend very little on NN, while for the satisfiability transition it depends very strongly on NN, compare the zooms in figs. 1.3 and 4.1.

We determine the value of the freezing transition in random 3-SAT as

which is very near but seems separated from the satisfiability threshold αs=4.267\alpha_{s}=4.267 [MZ02, MMZ06]. In any case the frozen phase in 3-SAT is very narrow, that is in contrast with the situation in K≥9K\geq 9 SAT where it covers at least 1/51/5 of the large clustered phase [ART06].

2 Cavity approach to frozen variables

In this section we present how to describe the frozen variables within the 1RSB cavity solution. We illustrate the results on an example of the random graph coloring where properties of frozen variables were studied in detail for the first time [ZDEB-5].

The energetic 1RSB (survey propagation), sec. 1.6-1.7, aims to count the total number of frozen clusters. More precisely, it counts the total number of fixed points of the warning propagation (1.35). It can be used to locate the satisfiability threshold or to design survey propagation based solvers [MPZ02, MZ02]. However, as we understood in chapter 2, by neglecting the soft clusters we cannot locate the clustering transition. In chapter 3 we defined the dominant clusters, i.e., those which cover almost all solutions. A natural question arises immediately: Are the dominant clusters frozen or soft? In order to answer the general entropic 1RSB equations (2.24,2.28) have to be analyzed.

We remind that in the 1RSB solution of the graph coloring problem the components of the messages (called also the cavity fields) ψsii→j\psi^{i\to j}_{s_{i}} are the probabilities that in a given cluster the node ii takes the color sis_{i} when the constraint on the edge (ij)(ij) is not present. The belief propagation equations, (1.16) in general, (2.5) in coloring, then define the consistency rules between the field ψsii→j\psi^{i\to j}_{s_{i}} and fields incoming to ii from the other variables than jj. In the zero temperature limit we can classify fields ψsii→j\psi^{i\to j}_{s_{i}} in the following two categories:

The hard (frozen) field corresponds to the case when all components of ψi→j\psi^{i\to j} are strictly zero except the one for color ss. This means that in the absence of edge (ij)(ij), variable ii takes color ss in all the solutions from the cluster in question.

The soft field corresponds to the case when more than one component of ψsii→j\psi^{i\to j}_{s_{i}} is nonzero. The variable ii is thus not frozen in the absence of edge (ij)(ij), and the colors of all the nonzero components are allowed.

This distinction is also meaningful for the full probabilities ψsii\psi^{i}_{s_{i}} (1.18). By definition, the variable ii is frozen in the cluster if and only if ψsii\psi^{i}_{s_{i}} is a hard field.

It is important to stress that some of the soft fields on a given instance of the problem might be very small. Some of them might even scale like e−Ne^{-N}. We insist on classifying those as the soft fields because they cannot create real contradictions. This subtle distinction becomes important mainly in the implementation of the population dynamics algorithm, see appendix E.

The distribution of fields over clusters Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}) (2.24), which is the ”order parameter” of the 1RSB equation, can be decomposed into the hard-field part of a weight ηsi→j\eta_{s}^{i\to j} and the soft-field part Psofti→jP_{\rm soft}^{i\to j} of a weight η0i→j=1−∑s=1qηsi→j\eta^{i\to j}_{0}=1-\sum_{s=1}^{q}\eta^{i\to j}_{s}

First, we derive equations for the hard fields when the parameter m=0m=0 in (2.24). This will, in fact, lead to the survey propagation equations, for coloring originally derived in [MPWZ02, BMP+03] from the energetic 1RSB method (1.6). For simplicity we write the most general form only for the 3-coloring.

We plug (4.2) into eq. (2.24). The reweighting factor (Zi→j)m(Z^{i\to j})^{m} at m=0m=0 is either equal to zero, when the arriving fields are hard and contradictory, or equal to one. This is the origin of a significant simplification. The outcoming field ψi→j\psi^{i\to j} might be frozen in direction ss if and only if for every other color r≠sr\neq s there is at least one incoming field frozen to the color rr. The update of probability ηsi→j\eta^{i\to j}_{s} that a field is frozen in direction ss is for the 3-coloring written as

In the numerator there is a telescopic sum counting the probability that color ss and only color ss is not forbidden by the incoming fields. In the denominator there is the normalization, i.e., the telescopic sum counting the probability that there is at least one color which is not forbidden. The crucial observation is that at m=0m=0 the self-consistent equations for η\eta do not depend on the soft-fields distribution Psofti→j(ψi→j)P_{\rm soft}^{i\to j}(\psi^{i\to j}).

If we do not aim at finding of a proper coloring on a single graph but just at computing of the complexity function and similar quantities, we can further simplify eq. (4.3) by imposing the color symmetry. Indeed, the probability that in a given cluster a field is frozen in the direction of a color ss has to be independent of ss. Then (4.3) becomes, now for general number of colors qq:

Let us compute how the fraction of hard fields η\eta evolves after one iteration of equation (2.24) at a general value of mm. There are two steps in each iteration of (2.24). In the first step, η\eta iterates via eq. (4.4). In the second step we re-weight the fields. Writing Pmhard(Z)P^{\rm hard}_{m}(Z) the —unknown— distribution of the reweightings ZmZ^{m} for the hard fields, one gets

A similar equation can formally be written for the soft fields

Writing explicitly the normalization Ni→j{\cal N}^{i\to j}, we finally obtain the generalized survey propagation equations:

where rr is the ratio of average reweighting factors of the soft and hard fields

In order to do this recursion, the only nontrivial information needed is the ratio rr between soft- and hard-field average reweightings, which depends on the full distribution of soft fields Psofti→j(ψi→j)P_{\rm soft}^{i\to j}(\psi^{i\to j}). Eq. (4.7) is easy to use in the population dynamics and allows to compute the fraction of frozen variables in typical clusters of a given size (for a given value mm).

There are two cases where eq. (4.7) simplifies so that the hard-field recursion becomes independent from the soft-field distribution. The first case is, of course, m=0m=0. Then r=1r=1 independently of the edge (ij)(ij), and the equation reduces to the original SP. The second case arises for m=1m=1, where the eq. (4.7) can be written as the equation for the naive reconstruction (2.4). The probability that a variables is frozen at m=1m=1 is the same at the probability that leaves (far away variables) determine uniquely the root in the reconstruction problem, see sec. 2.1.1.

Montanari and Semerjian [MS05, Sem08] developed a very interesting connection between frozen variables and the so-called minimal rearrangements. Given a CSP instance, one of its solutions {si}\{s_{i}\} and a variable ii, find the nearest solution to {si}\{s_{i}\} where the values of the variable ii is changed to si′≠sis^{\prime}_{i}\neq s_{i}. The set of variables on which these two solutions differ is called the minimal rearrangement. It was shown in [Sem08] that the size of the average (over variables ii, the solution {si}\{s_{i}\}, and the graph ensemble) minimal rearrangement diverges at the rigidity transition (when almost all the dominant clusters become frozen). Indeed, the cavity approach to minimal rearrangements leads to equations analogous to those for frozen variables. Part of the reasoning is the following [SAO05]: Consider a solution of a KK-SAT formula and a variable ii from its whitening core. By flipping the variable ii at least one neighbouring constraint aa is made unsatisfied, otherwise the variable would not be in the whitening core. All variables contained in aa are also in the whitening core, thus one of them has to be flipped in order to satisfy this constraint. There have to be a chain of flips which can be finished only by closing a loop. The length of the shortest loop going through a typical variable is of order log⁡N\log{N}. Thus a diverging number of changes is needed to find another solution. Hence the connection between frozen variables and rearrangements is:

If the variable ii is frozen in the cluster to which the solution {si}\{s_{i}\} belongs, then in order to change the value of ii one has to find a solution from a different cluster, thus at an extensive Hamming distance.

If the variable ii is not frozen in the cluster to which the solution {si}\{s_{i}\} belongs, then the best rearrangement will probably also lie within that cluster and the Hamming distance is finite.

Many more results about rearrangements can be found in [Sem08], they shed light on the onset of frozen variables. An exciting possibility is that the cavity equations for rearrangements might be useful in incremental algorithms for CSPs, like the one of [KK07].

2.2 The phase transitions: Rigidity and Freezing

A natural question is: “In which clusters are the hard fields present?” Or more in the terms of the 1RSB solutions: “When does eq. (4.7) have a nontrivial solution η>0\eta>0?” We answer this question in one of the simplest cases, that is for the coloring of random regular graphs of connectivity c=k+1c=k+1. In tree-like regular graphs the neighbourhood of each node looks identical, thus also the distribution Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}) is the same for every edge (ij)(ij). Moreover we search for a color-symmetric solution [ZDEB-5], that is ηs=ηr=η\eta_{s}=\eta_{r}=\eta for all s,r∈{1,…,q}s,r\in\{1,\dots,q\}. The function w({η})w(\{\eta\}) in the ensemble of random regular graphs simplifies to

First notice that in order to constrain a variable into one color, i.e., create a hard field, one needs at least q−1q-1 incoming fields that forbids all the other colors. It means that the function w({η})w(\{\eta\}) defined in eq. (4.9) is identically zero for k<q−1k<q-1 and might be non-zero only for k≥q−1k\geq q-1, where kk is the number of incoming fields.

The equation (4.7) also simplifies on a regular graph and η\eta follows a self-consistent relation

where r(m)r(m) is the average of the reweighting of the soft fields divided by the average of the reweighting of the frozen fields (4.7). The function r(m)r(m) is in general not easy to compute, the population dynamics is needed for that. Several properties are, however known:

and r(m)r(m) is a monotonous function of mm. Moreover, for the internal entropy of clusters s(m)→0s(m)\to 0 when m→−∞m\to-\infty, and s(m)→∞s(m)\to\infty when m→∞m\to\infty, and s(m)s(m) is also a monotonous function. We thus solve eq. (4.10) for every possible ratio rr. For all k≥q−1k\geq q-1 we compute the solution η(r)\eta(r). The result is shown in fig. 4.2 for the 3- and 4-coloring of random regular graphs.

There is a discontinuous phase transition: For r<rrr<r_{r} eq. (4.10) has a solution with a large fraction of frozen fields, η>0\eta>0, whereas for r<rrr<r_{r} the only solution is η=0\eta=0. Note that the index rr stands for ”rigidity”. In terms of the parameter mm, the critical value is r(mr)=rrr(m_{r})=r_{r}. In terms of the internal entropy of clusters s(mr)=srs(m_{r})=s_{r}. The interpretation is the following:

Clusters of internal entropy s<srs<s_{r} are almost all frozen, and the fraction of frozen variable’s they contain is quite large.

Clusters of internal entropy s>srs>s_{r} are almost all soft, meaning the fraction of frozen variables is zero.

When we change the average constraint density there are at least three interesting phase transitions related to frozen variables. Fig. 4.3 sketches the difference between the phases they separate. Recall that s∗s^{*} is the internal entropy of the dominant clusters, and smaxs_{\rm max} the internal entropy of the largest clusters Σ(smax)=0\Sigma(s_{\rm max})=0.

The rigidity transition, crc_{r}, at which s∗=srs^{*}=s_{r}, separates a phase where a typical dominant cluster is almost surely not frozen from a phase where a typical dominant cluster is almost surely frozen.

The total rigidity transition, ctrc_{tr}, at which smax=srs_{\rm max}=s_{r}, when almost all clusters of every size become frozen.

The freezing transition, cfc_{f}, separates phase where exponentially many unfrozen cluster exists from a phase where such clusters almost surely do not existNote that what is called freezing transition in [Sem08] or in sec. IV.C of [MRTS08] is in fact what we define as the rigidity transition, in agreement with [ZDEB-5]..

In general it have to be cr≤ctr≤cfc_{r}\leq c_{tr}\leq c_{f}. The relation between the rigidity and total rigidity transition is easily obtained from the 1RSB solution. It is thus known that in the qq-coloring of Erdős-Rényi graphs cr=ctrc_{r}=c_{tr} if and only if q≤8q\leq 8, in KK-SAT if and only if K≤5K\leq 5. For larger qq or KK the rigidity transition is given by the onset of frozen variables in clusters corresponding to m=1m=1, this is equivalent to the naive reconstruction (2.4).

The relation between the total rigidity transition and the freezing is less known. There are only few studies for the freezing transition in random KK-SAT. The first one is the one of [ART06] where they prove that for every K≥9K\geq 9 the freezing transition is strictly smaller than the satisfiability one cf<csc_{f}<c_{s}. In the large KK limit they showed that the frozen phase covers a finite fraction (at least 20%20\%) of the satisfiable region. The second study [MS07] gives a rigorous upper bound on the freezing transition in 3-SAT αf<4.453\alpha_{f}<4.453, which is slightly better than the best known upper bound on the satisfiability transition in 3-SAT [DBM00]. The third study is numerical [ZDEB-10], presented in fig. 4.1. It shows that in 3-SAT the frozen phase is tiny, about 0.3%0.3\% of the satisfiable region.

It is not known if the total rigidity transition coincides with the freezing transition. The entropic cavity method describes a typical but not every cluster of a given size. A generalization of the 1RSB equations which would count only the number of soft cluster would answer this question.

To summarize the description of the freezing of variables and clusters in the canonical constraint satisfaction problems, like qq-coloring or KK-satisfiability, is both numerically and conceptually involved task. Moreover in the experimentally feasible range of qq and KK the frozen phase is tiny. Thus conclusive statements about the connection between the freezing and the computational hardness are difficult to make. In the next section we introduce the so-called locked constraint satisfaction problems where the situation is much more transparent.

3 Point like clusters: The locked problems

In order to get a better understanding of the frozen phase we introduce the so-called locked constraint satisfaction problems [ZDEB-9]. In these problems the whole clustered phase is at the same time frozen, this is because in the locked problems all the clusters contain only one solution.

A locked constraint satisfaction problem is made of NN variables and MM locked constraints in such a way that every variable is present in at least two constraints. A constraint consisting of K>0K>0 variables is locked if and only if for every satisfying assignment of variables changing the value of any (but only one) variable makes the assignment unsatisfying.

A locked constraint of KK variables has the property that if (K−1)(K-1) variables are assigned then either the constraint cannot be satisfied by any value of the last variable or there is only one value of the last variable which makes the constraint satisfied. All the uniquely extendible constraints [Con04, CM04] are locked, XOR-SAT being the most common example. 1-in-K SAT (exact cover) constraint [GJ79] is another common example. On the other hand, the most studied constraint satisfaction problems KK-SAT or graph qq-coloring (q>2q>2) are not made of locked constraints.

The second important part of the definition of locked constraint satisfaction problems is the requirement that every variable is present in at least two constraints, i.e., leaves are absent. An important property follows: In order to change a satisfying assignment into a different satisfying assignment at least a closed loop of variables have to be changed. If leaves would be allowed changing a path connecting two leaves might be sufficient.

It seems to us that all the random locked constraint satisfaction problems should behave in the way we describe in the following. We, however, investigated in detail only a subclass of the locked problems called locked occupation problems (LOP). Occupation constraint satisfaction problem is defined as a problem with binary variables (0-empty, 1-occupied) where each constraint containing KK variables is a function of how many of the KK variables are occupied. A constraint of the occupation CSP can thus be characterized via a (K+1)(K+1)-component vector AA, Ai∈{0,1},i∈0,…,KA_{i}\in\{0,1\},i\in 0,\dots,K. A constraint is satisfied (resp. violated) if it contains rr occupied variables where rr is such that Ar=1A_{r}=1 (resp. Ar=0A_{r}=0). For example A=(0,1,0,0)A=(0,1,0,0) corresponds to the positive 1-in-3 SAT [ZDEB-3], A=(0,1,1,0)A=(0,1,1,0) is bicoloring [CNRTZ03], A=(0,1,0,1,0)A=(0,1,0,1,0) is 4-odd parity check (4-XOR-SAT without negations) [MRTZ03].

An occupation problem is locked if all the variables are connected to at least two constraints and the vector AA is such that AiAi+1=0A_{i}A_{i+1}=0 for all i=0,…,K−1i=0,\dots,K-1. We study the random ensembles of LOPs where all constraints are identical and the variable degree is either fixed of distributed according to a truncated Poissonian law (1.6).

3.2 The replica symmetric solution

The replica symmetric cavity equations, belief propagation (1.16a-1.16b), for the occupation problems read

where ψsia→i\psi_{s_{i}}^{a\to i} is the probability that the constraint aa is satisfied conditioned that the value of the variable ii is sis_{i}, and χsjj→a\chi_{s_{j}}^{j\to a} is the probability that variable jj takes value sjs_{j} conditioned that the constraint aa was removed from the graph. The normalizations ZZ have the meaning of the partition function contributions. The replica symmetric entropy ss is a zero temperature limit of (1.20)

where the contributions Za+∂aZ^{a+\partial a} (resp. ZiZ^{i}) are the exponentials of the entropy shifts when the node aa and its neighbours (resp. the node ii) is added (1.19a-1.19b)

Solving eqs. (4.12a-4.12b) means finding their fixed points. A crucial property of the locked problems it that if {si}\{s_{i}\} is one of the solutions then

is a fixed point of eqs. (4.12a-4.12b). The corresponding entropy is then zero, as Zi=Za+∂a=1Z^{i}=Z^{a+\partial a}=1 for all ii, aa. In the derivation of [MM08] fixed points of the belief propagation equations correspond to clusters. Thus in the locked problems every solution corresponds to a cluster.

In the satisfiable phase there exist exponentially many solutions (i.e., clusters), thus the iterative fixed point of BP equations (4.12a-4.12b) obtained from a random initialization gives an asymptotically exact value for the total entropy. And the satisfiability threshold coincides with the condensation transition, described in chap. 3. Furthermore, as each cluster contains only one solution the clustered phase is automatically frozen according to the definition in sec. 4.2.2. Interestingly, part of the satisfiable phase is only ”fake clustered” meaning that at infinitesimally small temperature there is a single fixed point of the BP equations. This has been discussed e.g. in the context of the perfect matchings in [ZDEB-1]. A general discussion and proper definition of the clustering transition in the locked problems follows in sec. 4.3.3.

Iterative fixed point of eqs. (4.12a-4.14b) averaged over the graph ensemble is in general found via the population dynamics technique, see appendix E. Note that the sum over {sj}\{s_{j}\} in (4.12a) can be computed iteratively in (K−1)2(K-1)^{2} steps instead of the naive 2K−12^{K-1} steps. Moreover, on the regular graphs ensemble or for some of the symmetric locked problems, such that Ai=AK−iA_{i}=A_{K-i} for all i=0,…,Ki=0,\dots,K, the solutions is factorized. In the factorized solution the messages χi→a\chi^{i\to a}, ψa→i\psi^{a\to i} are independent of the edge (ia)(ia) and the population dynamics is thus not needed.

For the regular graph ensemble where each variable is present in LL constraints the factorized solution is

For the symmetric locked problems where the symmetry is not spontaneously broken the solution is also factorized. We call these the balanced locked problems. The BP solution is ψ1=ψ0=1/2\psi_{1}=\psi_{0}=1/2 and the corresponding entropy

where l‾\overline{l} is the average degree of variables. Notably, this result for the entropy can be proven rigorously by computing the first and second moment of the partition sum, i.e., ⟨Z⟩,⟨Z2⟩\langle Z\rangle,\langle Z^{2}\rangle, and using the Chebyshev’s inequality. The exact value of the satisfiability threshold is then given by ssym(ls)=0s_{\rm sym}(l_{\rm s})=0. This itself is a remarkable result, because so far the exact threshold was computed in only a handful of the sparse NP-complete CSPs. As far as we know only in the 1-in-KK SAT [ACIM01] and [ZDEB-3], the 2+p2+p-SAT [MZK+99a, AKKK01] and the (3,4)(3,4)-UE-CSP [CM04]. We dedicate the appendix B to this computation.

The replica symmetric solution might be incorrect if long range correlations are present in the system, as we discussed in detail in chap. 2. A sufficient condition for its correctness is the decay of the point-to-set correlations, which we will discuss in the next section, again in context of the reconstruction problem. A necessary condition for the RS solution to be correct is the non-divergence of the spin glass susceptibility, which can be investigated in several equivalent ways, as described in appendix C. The result for all the locked problems we investigated is that the phase where the entropy (4.13) is positive is always RS stable, whereas part of the phase where the entropy (4.13) is negative might be RS unstable (depending on the parameters and the vector AA).

3.3 Small noise reconstruction

It is immediate to observe that reconstruction as we defined it in sec. 2.1.1 is always possible for the locked problems. Indeed, if we know K−1K-1 out of KK variables around a constraint the last one is given uniquely (no contradiction is possible as we broadcasted a solution). This is related to the fact that at least one closed loop has to be flipped to go from one solution of a given instance of a locked problem to another solution. Typical length of such a minimal loop is of order log⁡N\log{N}. For very low connectivities, and at infinitesimally low temperature, the BP equations will have a unique fixed point, there the zero temperature log⁡N\log{N} clustering is ”fake” and will not have a crucial influence on the dynamics and other properties of interest.

Thus for the locked problem it is useful to modify the definition of the clustering transition presented in chap. 2. In order to do that we need to introduce the small noise (SN) reconstruction. Construct an infinite tree hyper-graph, assign a value 11 or to its root and iteratively assign its offsprings uniformly at random but in such a way that the constraints are satisfied (constraints play the role of noiseless channels). At the end of the procedure forget the values of all variables in the bulk but also of an infinitesimal fraction ϵ\epsilon of leaves. If the remaining 1−ϵ1-\epsilon leaves contain some information about the original value on the root then we say that the small noise reconstruction is possible, if they do not the small noise reconstruction is not possible. The phase where the SN reconstruction is not possible is then only ”fake clustered” and is more similar to the liquid phase. Whereas the phase where the SN reconstruction is possible has all the properties of the clustered phase, except that each of the clusters contains only one configurationNote that a rigorous study of a related robust reconstruction exists [JM04]. In robust reconstruction, however, one allows ϵ\epsilon to be arbitrarily near to one. .

All the equations we derived in sec. 2.1.1 for the reconstruction apply also for the SN reconstruction. Except the specification of the initial conditions (2.11) which for the SN reconstruction is instead

where ϵ≪1\epsilon\ll 1. The second term accounts for the fraction of leaves on which the value of the variable has been forgotten. The fixed point of the 1RSB equation (2.24) is then either trivial (corresponding to the replica symmetric solution) or nontrivial describing solutions as an ensemble of totally frozen clusters. This has several interesting consequences: The threshold for the naive SN reconstruction (i.e., the one taking into account only the frozen variables) coincide with the true threshold for SN reconstruction. The solution of the 1RSB equation (2.24) in the locked problem does not depend on the value of the parameter mm.

A general form of the 1RSB equations at m=1m=1 for occupation problems is derived in appendix A. First we consider only problems where the replica symmetric solution is factorized. We define μ1\mu_{1} (resp. μ0\mu_{0}) as the probability that a variable which in the broadcasting had value 11 (resp. ) is uniquely determined by the boundary conditions. Based on the general eq. (A.10), we derive self-consistent equations for μ1\mu_{1}, μ0\mu_{0} on regular graphs ensemble of connectivity of variables LL:

where l=L−1l=L-1, k=K−1k=K-1. The indices s1,s0s_{1},s_{0} in the second sum of both equations are the largest possible but such that s1≤rs_{1}\leq r, s0≤K−1−rs_{0}\leq K-1-r, and ∑s=0s1Ar−s=0\sum_{s=0}^{s_{1}}A_{r-s}=0, ∑s=0s0Ar+1+s=0\sum_{s=0}^{s_{0}}A_{r+1+s}=0. The values ψ0\psi_{0}, ψ1\psi_{1} are the fixed point of eqs. (4.16a-4.16b), and ZregZ^{\rm reg} is the corresponding normalization. These lengthy equations have in fact a simple meaning. The first sum is over the possible numbers of occupied variables on the descendants in the broadcasting. The sums over ss is over the number of variables which were not implied by at least one constraint but still such that the set of incoming implied variables implies the outcoming value. The term 1−(1−μ)l1-(1-\mu)^{l} is the probability that at least one constraint implies the variable, (1−μ)l(1-\mu)^{l} is the probability that none of the constraints implies the variable.

The second case where the BP equations are factorized are the balanced locked problems. That is LOPs with symmetric vector AA where the symmetry is not spontaneously broken. Then ψ0=ψ1=1/2\psi_{0}=\psi_{1}=1/2 and thus also μ0=μ1=μ\mu_{0}=\mu_{1}=\mu. For the ensemble of graphs with truncated Poissonian degree distribution of coefficient cc we derive from (A.10)

where k=K−1k=K-1, and gA=∑r,Ar+1=1(kr)+∑r,Ar=1(kr)g_{A}=\sum_{r,A_{r+1}=1}{k\choose r}+\sum_{r,A_{r}=1}{k\choose r} and the value ss is, as before, the number of descendants which were not directly implied.

In both these cases, there are two solutions to eqs. (4.20a-4.20b) and (4.21). One is μ=0\mu=0 and the other μ=1\mu=1. The small noise reconstruction is investigated by the iterative stability of the solution μ=1\mu=1. If it is stable then the SN reconstruction is possible, all variables are almost surely directly implied. If it is not stable then the only other solution is μ=0\mu=0. Few observations are immediate, for example if L≥3L\geq 3 then the solution μ1=μ0=1\mu_{1}=\mu_{0}=1 of (4.20a-4.20b) is always iteratively stable. Iterative stability of (4.21) gives for the balanced locked problems, marked by ∗\ast in tab. 4.1:

3.4 Clustering transition in the locked problems

In the locked problem where the replica symmetric solution is not factorized there is another equivalent way to locate the clustering transition, which is simpler than solving eq. (A.10). It is the investigation of the iterative stability of the nontrivial fixed point of the survey propagation. In LOPs the survey propagation equations consist of eqs. (1.41) and

where the indexes rj∈{1,−1,0}r_{j}\in\{1,-1,0\}, Na→i{\cal N}^{a\to i} is the normalization constant. The C1C_{1}/C−1C_{-1} (resp. C0C_{0}) takes values 11 if and only if the incoming set of {rj}\{r_{j}\} forces the variable ii to be occupied/empty (resp. let the variable ii free), in all other cases the CC’s are zero. Let us call s1,s−1,s0s_{1},s_{-1},s_{0} the number of indexes 1,−1,01,-1,0 in the set {rj}\{r_{j}\} then

C1=1C_{1}=1 if and only if As1+s0+1=1A_{s_{1}+s_{0}+1}=1 and As1+n=0A_{s_{1}+n}=0 for all n=0…s0n=0\dots s_{0};

C−1=1C_{-1}=1 if and only if As1=1A_{s_{1}}=1 and As1+1+n=0A_{s_{1}+1+n}=0 for all n=0…s0n=0\dots s_{0};

C0=1C_{0}=1 if and only if there exists m,n=0…s0m,n=0\dots s_{0} such that As1+n=As1+m+1=1A_{s_{1}+n}=A_{s_{1}+m+1}=1.

The SP equations in LOPs have two different fixed points:

The trivial one: q0a→i=p0i→a=1q^{a\to i}_{0}=p^{i\to a}_{0}=1, q1a→i=p1i→a=q−1a→i=p−1i→a=0q^{a\to i}_{1}=p^{i\to a}_{1}=q^{a\to i}_{-1}=p^{i\to a}_{-1}=0 for all edges (ai)(ai).

The BP-like one: q0a→i=p0i→a=0q^{a\to i}_{0}=p^{i\to a}_{0}=0, qa→i=ψa→iq^{a\to i}=\psi^{a\to i}, pi→a=χi→ap^{i\to a}=\chi^{i\to a} for all edges (ai)(ai), where ψ\psi and χ\chi is the solution of the BP equations (4.12a-4.12b).

The small noise reconstruction is then investigated, using the population dynamics, from the iterative stability of the BP-like fixed point. If it is stable then the SN reconstruction is possible and the phase is clustered. If it is not stable then we are in the liquid phase. Of course, this approach gives the same critical connectivity ldl_{d} as the previous one, because for the locked problems the solutions of the 1RSB equation (2.24) is independent of the parameter mm.

We remind at this point that in a general CSP, where the sizes of clusters fluctuate, the SP equations are not related to the reconstruction problem, more technically said the 1RSB solutions at m=0m=0 and at m=1m=1 are different. The solution of the locked problems is sometimes called frozen 1RSB [MMR04, MMR05].

4 Freezing - The reason for hardness?

We describe several strong evidences that it is hard to find frozen solutions. We also give several arguments for why it is so. However, the precise mechanism stays an open question and strictly speaking the freezing of variables might just be going along with a true yet unknown reason. Or even there might be an algorithm which is able to find the frozen solutions efficiently waiting for a discovery. But in any case, we show that freezing of variables is an important new aspect in the search of the origin of the average computational hardness.

Several studies of the random 3-SAT problem [MMW07, BZ04, SAO05] showed that all known algorithms on large instances systematically find only solutions with a trivial whitening core (defined in sec. 4.1.1). On small instances of the problem solutions with a nontrivial whitening core can be found as observed by several authors, and studied systematically in sec. 4.1.3.

For solutions found by the stochastic local search algorithms, see appendix F, this observation is reasonable, as argued already in [SAO05]. Consider that a stochastic local search finds a configuration which is not a solution, but its whitening core is nontrivial. Then a diverging number of variables have to be rearranged in order to satisfy one of the unsatisfied constraints [Sem08]. In the clusters with a trivial whitening core the rearrangements are finite [Sem08] and thus stochastic local dynamics might be able to find them more easily.

The fact of finding only the ”white” solutions is, however, quite surprising for the survey propagation algorithm. The SP equations compute probabilities (over clusters) that a variables is frozen in a certain value. This information is then used in a decimation, reinforcement, etc. algorithms, see appendix F. Thus SP is explicitly exploring the information about nontrivial whitening cores and in spite of that it finishes finding solutions with trivial whitening cores.

A related, and rather surprising, result was shown in [DRZ08]. The authors considered the random bi-coloring problem in the rigid, but not frozen, phase. That is a phase where most solutions are frozen, but rare unfrozen ones still exist. They showed that belief propagation reinforcement solver, see appendix F, is in some cases able to find these exponentially rare, but unfrozen, solutions.

We observed the same phenomena in one of the non-locked occupation problem A=(0110100)A=(0110100), that is 1-or-2-or-4-in-6 SAT. On regular factor graphs this problem is in the liquid phase for L≤6L\leq 6, in the rigid phase for 7≤L≤97\leq L\leq 9, where almost all the solutions are frozen, and it is unsatisfiable for L≥10L\geq 10. In fig. 4.4 we show that belief propagation reinforcement finds almost always solutions for L=8L=8, but as the size of instances is growing the fraction of cases in which the solution is frozen goes to zero.

We listed this paradox, that only the all-white solutions can be found, as one of the loose ends in sec. 1.8. The resolution we suggest here, and substantiate in the following, is that every known algorithm is able to find efficiently (in polynomial - but more often in experiments we mean linear or quadratic - time) only the unfrozen solutions. The frozen solutions are intrinsically hard to find and all the known algorithms have to run for an exponential time to find them.

4.2 Incremental algorithms

Adopted from [KK07]: Consider an instance of a constraint satisfaction problem of NN variables and MM constraints. Order randomly the set of constraints and remove all of them. Without constraints any configuration is a solutions. In each step: First, add back one of the constraints. Second, if needed rearrange the configuration in such a way that it satisfies the new and all the previous constraints. Repeat until there are some constraints left. We call such strategy the incremental algorithm for CSPs. And one can ask about its computational complexity. The way by which the rearrangement is found in the second step needs to be specified. But independently of this specification we know that if the new constraint connects frozen and contradictory variables then the size of the minimal rearrangement diverges [Sem08], thus in the frozen phase the incremental algorithm have to be at best super-linear.

Another understanding of the situation is gained by imagining the space of solutions at a given constraint density. As we are adding the constraints some solutions are disappearing and none are appearing. At the clustering transition the space of solutions splits into exponentially many clusters. As more constraints are added the clusters are becoming smaller, they may split into several smaller ones and some may completely disappear. However, only the frozen clusters can disappear, if a constraint is added between two frozen and contradictory variables. Note also that each frozen cluster will almost surely disappear before an infinitesimally small fraction of constraints is added. An unfrozen cluster, on the other hand, may only become smaller or split. Indeed, if a constraint is added any solution belonging to an unfrozen cluster may be rearranged in a finite number of steps [Sem08]. The incremental algorithm in this setting works as a non-intelligent animal would be escaping from a rising ocean on a Pacific hilly island [KK07]. As the water starts to rise the animal would step away from it. As the water keeps rising at a point the animal would be blocked in one of the many smaller islands. This island will be getting smaller and smaller and it will disappear at a point and the animal will have to learn how to swim. But at this point there might still be many small higher island. All of them will disappear eventually. For sure the animal will be in trouble before all the clusters (island) start to contain frozen variables.

Moreover, if the sequence of constraints to be added is not known in advance there is no way to choose the best cluster, because which cluster is the best depends completely on the constraints to be added. This proves that no incremental algorithm is able to work in linear time in the frozen phase. On the other hand it was shown experimentally in [KK07] for the coloring problem that such algorithms work in linear time in part of the clustered (or even the condensed) phase.

4.3 Freezing transition and the performance of SP in 3-SAT

How does the freezing transition in 3-SAT, αf=4.254±0.009\alpha_{f}=4.254\pm 0.009 fig. 4.1, compare to the performance of the best known random 3-SAT solver — the survey propagation? We are aware of two studied where the performance of SP is investigated systematically and with a reasonable precision, [Par03] and [CFMZ05].

In [Par03] the survey propagation decimation is studied. The SP fixed point is found on the decimated graph and the variable having the largest bias is fixed as long as the SP fixed point is nontrivial. When the SP fixed point becomes trivial the Walk-SAT algorithm finishes the search for a solutions. In [Par03] the residual complexity is measured on the partially decimated graph. It is observed that if the residual complexity becomes negative then solutions are never found, if on the other hand the residual complexity is positive just before the survey propagation fixed point become trivial then solutions are found. The value of complexity in the last step before the fixed point becomes trivial is extrapolated, fig. 2 of [Par03] for system size N=3⋅105N=3\cdot 10^{5}, to zero at a constraint density α=4.252±0.003\alpha=4.252\pm 0.003 (we estimated the error bar based on data from [Par03]).

In [CFMZ05] the survey propagation reinforcement is studied. The rate of success is plotted as a function of the complexity function. From fig. 8 of [CFMZ05] it is estimated that SP reinforcement (more precisely its implementation presented in [CFMZ05]) finds solution in more than 50% of trials if Σ>0.0013\Sigma>0.0013. The data do not really concentrate on this point, thus is is difficult to obtain a reliable error bar of this value, our educated guess is 0.0013±0.00030.0013\pm 0.0003 this would correspond to a constraint density α=4.252±0.004\alpha=4.252\pm 0.004.

The striking agreement between our value for the freezing transition and the performance limit of the survey propagation supports the suggestion that the frozen phase is hard for any known algorithm. The trouble for a better study of the frozen phase in 3-SAT is its size, it covers only 0.3% of the satisfiable phase. In KK-SAT with large KK the frozen phase becomes wider, but as KK grows the constraint density of the satisfiability threshold grows like 2Klog⁡K2^{K}\log{K}, empirical study thus becomes infeasible very fast. It is also not very easy to compute the freezing transition or to check if the 1RSB solution is correct in the frozen phase. Thus KK-SAT (and qq-coloring) are not very suitable problems for understanding better how exactly the freezing influences the search for a solution.

4.4 Locked problems – New extremely challenging CSPs

We introduced the locked problems to challenge the suggestion about hardness of the frozen phase [ZDEB-9]. It is rather easy to compute the freezing transition here, it coincides with the clustering transition ldl_{d}. Moreover, the frozen phase is wide, taking more than 50% of the satisfiable phase for some of the locked problems, see table 4.1. As in the locked problems every cluster consists of one solution, all the variables are frozen. Consequently the replica symmetric approach describes correctly the phase diagram. From this point of view the locked problems seems extremely easy compared to KK-SAT.

On the other hand, experiments with the best known solvers of random CSPs show that the frozen phase of locked problems is very hard. And some of the very good solvers, e.g. the belief propagation based decimation, do not work at all even at the lowest connectivities (for an explanation see appendix F).

In fig. 4.5 we show the performance of the BP-reinforcement and the stochastic local search ASAT algorithms. Both the algorithms are described in appendix F, they are the best we were able to find for the locked CSPs. The greediness parameter in the stochastic local search ASAT we evaluated as the most optimal is p=5.10−5p=5.10^{-5} for the 4-odd parity check, and p=3.10−5p=3.10^{-5} for the 1-or-3-in-5 SAT. In the BP-reinforcement the optimal forcing parameter π\pi changes slightly with the connectivity. For the 1-or-3-in-5 SAT we used π=0.42\pi=0.42 for 2.9≤l‾<3.02.9\leq\overline{l}<3.0 and π=0.43\pi=0.43 for 3.0≤l‾≤3.23.0\leq\overline{l}\leq 3.2. For the 4-odd parity checks we used π=0.44\pi=0.44 for 2.75≤l‾≤2.952.75\leq\overline{l}\leq 2.95.

Of course, the parity check problem is an exceptional locked problem, as it is not NP-complete and can be solve via Gaussian elimination. However, our study shows that algorithms which do not use directly the linearity of the problem fail in the same way as they do in the NP-complete cases. Instances of the regular XOR-SAT indeed belong between the hardest benchmarks for all the best known satisfiability solvers which do not explore linearity of the problem, see e.g. [HJKN06].

Fig. 4.5 puts in the evidence that in all the random locked problems the best known algorithms stop to be able to find solutions (in linear time) at the clustering transition. This supports the conjecture about freezing being relevant for algorithmical hardness. The locked problems are thus (at least until they are ”unlocked”) the new benchmarks of hard constraint satisfaction problems.

Chapter 5 Coloring random graphs

In the previous three chapters we developed tools for describing the structure of solution and the phase diagram of random constraint satisfaction problems. These tools were applied to the problem of coloring random graphs in a series of works [ZDEB-4, ZDEB-5, ZDEB-6, ZDEB-7]. In this section we summarize the results.

Coloring of a graph is an assignment of colors to the vertices of the graph such that two adjacent vertices do not have the same color. The question is if on a given graph a coloring with qq colors exists. Fig. 5.1 gives an example of 3-coloring of a graphs with N=22N=22 vertices and M=27M=27 edges, the average connectivity is c=2M/N≈2.45c=2M/N\approx 2.45.

It is immediate to realize that the qq-coloring problem is equivalent to the question of determining if the ground-state energy of a Potts anti-ferromagnet on a random graph is zero or not [KS87]. Consider indeed a graph G=(V,E)G=({V,E}) defined by its vertices V={1,…,N}{V}=\{1,\dots,N\} and edges (i,j)∈E(i,j)\in{E} which connect pairs of vertices i,j∈Vi,j\in{V}; and the Hamiltonian

With this choice there is no energy contribution for neighbours with different colors, but a positive contribution otherwise. The ground state energy is thus zero if and only if the graph is qq-colorable. This transforms the coloring problem into a well-defined statistical physics model.

Studies of coloring of sparse random graphs have a long history in mathematics and computer science, see [ZDEB-5] for some references. From the statistical physics perspective it was first studied in [vMS02], where the replica symmetric solution was worked out, and the replica symmetric stability was investigated numerically. Results were compared to Monte Carlo simulations and simulated annealing was used as a solver for coloring. The energetic 1RSB solution and the survey propagation algorithm for graph coloring were developed in [MPWZ02, BMP+03]. Subsequently [KPW04] studied the stability of the 1RSB solution and its large qq limit. The entropic 1RSB solution was studies in [MPR05] for 3-coloring of Erdős-Rényi graphs. The entropic 1RSB solution was, however, fully exploited only in [ZDEB-4, ZDEB-5, ZDEB-6, ZDEB-7] and the resulting phase diagram is discussed here.

2 Phase diagram

Fig. 5.2 summarizes how does the structure of solutions of the coloring problem change when the average connectivity is increased, (A)→\to(F). In fig. 5.2 up, each colored ”pixel” corresponds to one solution, and each circle to one cluster. As the average connectivity is increased, some solutions disappear and the overall structure of clusters changes. This is depicted in the six snapshots (A)→\to(F). The magenta clusters are the unfrozen ones, the cyan-blue clusters are the frozen ones. Fig. 5.2 down, the corresponding complexity (log-number) of clusters of a given entropy, Σ(s)\Sigma(s), computed from the 1RSB approach (2.28) for the 6-coloring of random regular graphs. More detailed description of the different phases for qq-coloring follows.

A unique cluster exists: For connectivities low enough, all the proper colorings are found in a single cluster, where it is easy to “move” from one solution to another. Only one possible —and trivial— fixed point of the BP equations exists at this stage (as can be proved rigorously in some cases [BG06]). The entropy can be computed and reads in the large graph size limit

Some (irrelevant) clusters appear: As the connectivity is slightly increased, the phase space of solutions decomposes into a large (exponential) number of different clusters. It is tempting to identify that as the clustering transition. But in this phase all but one of these clusters contain relatively very few solutions, as compare to the whole set. Thus almost all proper colorings still belong to one single giant cluster, and the replica symmetric solution is correct, eq. (5.2) gives the correct entropy.

The clustered phase: For larger connectivities, the large single cluster decomposes into an exponential number of smaller ones: this now defines the genuine clustering threshold cdc_{d}. Beyond this threshold, a local algorithm that tries to move in the space of solutions will remain prisoner of a cluster of solutions for a diverging time [MS06c]. Interestingly, it can be shown that the total number of solutions is still given by eq. (5.2). Thus the free energy (entropy) has no singularity at the clustering transition, which is therefore not a phase transition in the sense of Ehrenfest. Only a diverging length scale (point-to-set correlation length) and time scale (the equilibration time) when cdc_{d} is approached justify the name ”phase transition”.

The condensed phase: As the connectivity is increased further, another phase transition arises at the condensation threshold, ccc_{c}, where most of the solutions are found in a finite number of the largest clusters. Total entropy in the condensed phase is strictly smaller than (5.2). It has a non-analyticity at ccc_{c} therefore this is a genuine static phase transition. The condensation transition can be observed from the two-point correlation functions or from the overlap distribution.

The rigid phase: As explained in chapter 4, two different types of clusters exist. In the first type, the unfrozen ones, magenta in fig. 5.2, all variables can take at least two different colors. In the second type, frozen clusters, cyan in fig. 5.2, a finite fraction of variables is allowed only one color within the cluster and is thus ”frozen” into this color. In the rigid phase, a random proper coloring belongs almost surely to a frozen cluster. Depending on the value of qq, this transition may arise before or after the condensation transition (see tab. 5.1).

The uncolorable phase: Eventually, the connectivity csc_{s} is reached beyond which no more solutions exist. The ground state energy is zero for c<csc<c_{s} and then grows continuously for c>csc>c_{s}.

In table 5.1 we present all the critical values for coloring of Erdős-Rényi graphs, in table 5.2 for random regular graphs. Notice the special role of 3-coloring where the clustering and condensation transitions coincide and are given by the local stability of the replica symmetric solution, see app. C. Notice also that for q≥9q\geq 9 in Erdős-Rényi graphs and q≥8q\geq 8 in regular graph the rigidity transition arrives before the condensation transition.

Few more words about the rigidity transition and the rigid phase in coloring. In sec. 4.2.2, next to the rigid phase, we also defined the totally rigid phase where almost all the clusters of every size become frozen. And the frozen phase where strictly all clusters become frozen. Note that in the random graph coloring the rigidity transition coincides with the total rigidity transition for q≤8q\leq 8 for Erdős-Rényi graphs and for q≤7q\leq 7 for regular graphs. For larger values of qq the rigidity transition is given by the m=1m=1 computation. We have not computed the total rigidity transition for larger qq, but it is accessible from the present method. The freezing transition is, however, not accessible for the entropic 1RSB cavity approach. We cannot exclude that in the totally rigid phase there might still be some rare unfrozen clusters.

Note also an interesting feature about the 1RSB entropic solution; in fig. 5.2 down, for the connectivity c=17c=17 the function Σ(s)\Sigma(s) consists of two branches. The low-entropy branch with frozen clusters, and the high-entropy branch with soft clusters. Note that the soft branch may also exist for positive values of complexity, e.g. in 4-coloring of Erdős-Rényi graphs. We interpreted the gap as the nonexistence of clusters of the corresponding size. The gap might, however, be an artifact of the 1RSB approximation which most likely does not describe correctly clusters of the corresponding size. For the discussion of correctness of the 1RSB solutions see appendix D.

To make the picture complete we plot the important complexities and entropies as a function of the average connectivity, for 5-coloring of Erdős-Rényi graphs see fig. 5.3. We plotted in dashed black the replica symmetric entropy (5.2), which in coloring is equal to the annealed one sanns_{\rm ann}. The correct total entropy stots_{\rm tot} (in red) differs from the replica symmetric one in the condensed and uncolorable phase. The complexity of the dominating clusters (those covering almost all solutions) Σdom\Sigma_{\rm dom} (in red, computed at m=1m=1) is non-zero between the clustering and the condensation transition. The total complexity Σmax\Sigma_{\rm max} (in blue), maximum of the curves Σ(s)\Sigma(s), can be computed in the region where survey propagation gives a nontrivial result. The colorability threshold corresponds to Σmax=0\Sigma_{\rm max}=0. We call cSPc_{\rm SP} the smallest connectivity at which survey propagation gives a nontrivial result, i.e., the part of the curve Σ(s)\Sigma(s) with a zero slope exists. Clusters exists also for c<cSPc<c_{\rm SP}, but computing their total complexity is more involved and we have not done it. The rigidity transition crc_{r} cannot be determined from these quantities.

3 Large q𝑞q limit

The coloring of random graphs in the limit of large number of colors might seem a very unpractical and artificial problem. However, it allows many simplifications in the statistical description (rigorous or not) and a lot of insight can be obtained from this limit.

It is known from the cavity method, but also from a rigorous lower [ANP05] and upper [Luc91] bound that the colorability threshold for large number of colors scales like 2qlog⁡q2q\log{q}. At the same time a very naive algorithm: Pick at random an uncolored vertex and assign it at random a color which is not assigned to any of its neighbours, was shown to work in polynomial (linear) time up to a connectivity scaling as qlog⁡qq\log{q}. In other words this algorithm uses about twice as many colors than needed. Such a performance is not very surprising, a very naive algorithm performs half as good as possible. The surprise comes with the fact that it is an open problem if there is a polynomial algorithm which would work at connectivity (1+ϵ)qlog⁡q(1+\epsilon)q\log{q} for an arbitrarily small positive ϵ\epsilon.

The complexity function Σ(s)\Sigma(s) at connectivity

where γ=Θ(1)\gamma=\Theta(1) was computed in [ZDEB-5] and reads

where ε=1/2q\varepsilon=1/2q. From this expression it is easy to see that the coloring threshold corresponds to

Notice, as in [ZDEB-8], that the complexity of the random subcubes model (3.5), sec. 3.1, gives exactly the expression (5.4) if we take the parameters of the random subcubes model as We remind that in the section 3.1 entropies were logarithms of base 2 whereas everywhere else they are natural logarithms.

This is a striking property of the coloring problem in the limit of large number of colors near to the colorability threshold. The 1−ε1-\varepsilon is a fraction of frozen variables in each cluster. Almost all the soft variables can take only one of two colors. The expression (5.4) means that the soft variables are mutually almost independent and the clusters have shape of small hypercubes. And the other way around, this property makes the random subcubes model more than just a pedagogical example of the condensation transition.

3.2 The q​log⁡q𝑞𝑞q\log{q} regime: clustering and rigidity

Another interesting scaling regime is defined as

where α=Θ(1)\alpha=\Theta(1) is of order one.

The large qq scaling of the rigidity transition (m=1m=1) is easily expressed from (2.4):

This was originally computed in [ZDEB-4, ZDEB-5] and [Sem08]. The onset of a nontrivial solution for the survey propagation corresponds to the rigidity transition at m=0m=0 and reads [KPW04]

An empirical observation is that for q=3q=3 the threshold for survey propagation is smaller than the rigidity at m=1m=1, but for q≥4q\geq 4 the order changes and the distances between the two threshold grows with qq. Based on this observation we conjectured that the clustering transition is

Note that recently the dynamical transition was proved to be 1−log⁡2≥αd1-\log 2\geq\alpha_{d} [Sly08]. Fig. 5.5 actually suggest that αd≈1/4\alpha_{d}\approx 1/4. Its precise location is actually an interesting problem because it could shed light on the way soft fields converge to hard fields in the cavity approach.

Concerning the total rigidity transition, where almost all the clusters of all sizes become frozen, we have not manage to compute it in the large qq limit. It is not even clear if the relevant scaling is as (5.8). The same is true for the even more interesting freezing transition, where all the clusters become frozen.

4 Finite temperature

It is interesting to study how does the antiferromagnetic Potts model, coloring at zero temperature, behave at finite temperature. In particular which of the zero temperature phase transitions survive to positive temperatures and what do they correspond to in the phenomenology of glasses. This has been done in [ZDEB-6] and we summarize the main results here.

The belief propagation equation for coloring (2.5) generalizes at finite temperature to

The distributional 1RSB equation (2.24) is the same.

The clustering transition — becomes the dynamical phase transition TdT_{d} at positive temperature. The notion of reconstruction on trees, introduced in sec. 2.1.1, generalizes to positive temperatures. Constraints then play the role of noisy channels in the broadcasting. The dynamical temperature TdT_{d} is then defined via divergence of the point-to-set correlations (2.22). Or equivalently via the onset of a nontrivial solution of the 1RSB equations at m=1m=1. At the dynamical transition the point-to-set correlation length and the equilibration time diverge. There is however no non-analyticity in the free energy, Ehrenfest might thus not call it a phase transition.

The condensation transition — becomes the Kauzmann phase transition TKT_{K} at positive temperature. The point at which the complexity function at m=1m=1 (structural entropy) becomes negative defines the Kauzmann temperature [Kau48]. At the Kauzmann temperature the free energy has a discontinuity in the second derivative. This corresponds to the discontinuity in the specific heat. Kauzmann transition is thus genuine even in the sense of Ehrenfest.

The rigidity transition — is a purely zero temperature phase transition. At positive temperature the fields ψsii→j\psi^{i\to j}_{s_{i}} (5.12) cannot be hard.

The colorability transition — is a purely zero temperature phase transition. At the colorability threshold the ground state energy becomes positive (it has discontinuity in the first derivative). At a finite temperature, however, there is no corresponding non-analyticity.

Fig. 5.6 shows the temperature phase diagram of 3- (left) and 4-coloring (right) on both Erdős-Rényi (up) and regular (down) random graphs. The dynamical temperature is in blue, the Kauzmann temperature in black.

The temperature at which the replica symmetric solution becomes locally unstable, see appendix C, is called TlocalT_{\rm local}. In the terms of reconstruction on trees this is the Kesten-Stigum bound [KS66a, KS66b]. This temperature is a lower bound on the dynamical temperature TdT_{d}, but also on the Kauzmann temperature TKT_{K}. This is because bellow TlocalT_{\rm local} the two-point correlations do not decay, which is possible only bellow TKT_{K}. Note that in the 3-coloring Td=TK=TlocalT_{d}=T_{K}=T_{\rm local} and this phase transition is continuous in the order parameter Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}) (2.24). For q≥4q\geq 4 colors we find instead Td>TK>TlocalT_{d}>T_{K}>T_{\rm local} and the dynamical transition is discontinuous. At large connectivity, however, the three temperatures are very close, see fig. 5.6 where the TlocalT_{\rm local} is in pink.

The last question concerns correctness of the 1RSB solutions itself. The local stabilities of the 1RSB solution are discussed in appendix D. The temperature at which the 1RSB solutions becomes type II locally unstable, see appendix D, is called the Gardner temperature TGT_{G} [Gar85]. We computed it only on the ensemble of random regular graphs, see fig. 5.6, the TGT_{G} is in green. We do not know how to compute the stability of the type I, but we argued that the corresponding critical temperature should be smaller than the TlocalT_{\rm local}. An important consequence is that in the colorable region the 1RSB solution is stable for q≥4q\geq 4 coloring.

Coloring with three colors is a bit special, as Tlocal=Td=TKT_{\rm local}=T_{d}=T_{K}. However, at small temperatures the stability of type I can be investigated from the energetic approach, again discussed in app. D. It follows that at least in interval c∈(cs,cG)=(4.69,5.08)c\in(c_{s},c_{G})=(4.69,5.08) the 1RSB solution is stable at low temperature. For c>cGc>c_{G} on contrary the Gardner temperature is strictly positive. We cannot exclude that part of the colorable phase is unstable, but in such a case the unstable region would have a sort of re-entrant behaviour. Moreover the ferromagnetic fully connected 3-state Potts model has also a continuous dynamical transition Td=TlocalT_{d}=T_{\rm local} yet it is 1RSB stable near to TdT_{d} [GKS85]. We thus find more likely that also the colorable phase of 3-coloring is 1RSB stable.

Finally, the local stability is only a necessary condition. The full correctness of the 1RSB approach have to be investigated from the 2RSB approach. We implemented the 2RSB on the regular coloring, the results are not conclusive, as the numerics is involved. but we have not found any sign for a nontrivial 2RSB solution in the colorable region.

Conclusions and perspectives

In this final section we highlight the, in our view, most interesting results of this thesis. More complete overview of the original contributions is presented in sec. 1.9. Scientific research is such that every answered question raises a number of new questions to be answered. We thus bring up a list of open problems which we find particularly intrinsic. Finally we give a brief personal view on the perspective applications of the results obtained in this work.

The main question underlying this study is: How to recognize if an NP-complete problem is typically hard and what are the main reasons for this?

In order to approach the answer we studied the structure of solutions in random constraint satisfaction problem - mainly in the graph coloring. We did not neglect the entropic contributions, as was common in previous studies, and this led to much more complete description of the phase diagram and associated phase transitions, see summarizing fig. 5.2.

The most interesting concept in these new findings was the freezing of variables. We pursued its study and investigated its relation to the average computational hardness. We introduced the locked constraint satisfaction, where the statistical description is easily solvable and the clustered phase is automatically frozen. We indeed observed empirically that these problems are much harder than the canonical K-satisfiability. They should thus become a new challenge for algorithmical development. As we mention in the perspectives, we also anticipate that the locked constraint satisfaction problems are of a more general interest.

Some open problems

In sec. 2 we derived the 1RSB equations on purely tree graphs. Our derivation was, however, not complete as it is not straightforward why the complexity function should be counting the clusters as we defined them on trees. More physically founded derivations are for example the original one [MP00]. And also the one presented in [MM08] where the complexity is shown to count the fixed points of the belief propagation. We are, however, persuaded that the purely tree approach is more appealing from the probabilistic point of view, as treating correlations in the boundary conditions on trees is easier than treating the random graphs directly, for a recent progress see e.g. [Sly08, GM07, DM08]. This is why we chose to present this derivation despite its incompleteness.

In general we should say that creating better mathematical grounds for the replica symmetry breaking approach is a very important and challenging task.

We computed the number of clusters of a given entropy via the 1RSB method. For some intervals of parameters there is no solution corresponding to certain intermediate sizes. In other words there is a gap in the 1RSB function Σ(s)\Sigma(s). See e.g. fig. 5.2, we observed such a gap in many other cases. Does this gap mean that there are truly no clusters of corresponding sizes or does it mean that the 1RSB method is wrong in that region or is there another explanation?

In this thesis we described in quite a detail the static (equilibrium) properties of the constraint satisfaction problems. Very little is known about the dynamical properties – here we mean both the physical dynamics (with detailed balance) and the dynamics of algorithms. Focusing on results described here: the dynamics of the random subcubes model can be solved [ZDEB-8], and the uniform belief propagation decimation can be analyzed [MRTS07], see also appendix F.1.2. However in general even the performance of simulated annealing as a solver is not known. And the understanding of why the survey propagation decimation works so well in 3-SAT and not that well in other problems, e.g. the locked problems or for larger KK, is also very pure.

The most exciting conjecture of this work is the connection between the algorithmical hardness and freezing of variables. Several indirect arguments and empirical results were explained in sec. 4.4 to support this conjecture. It is, however, not very clear what is the detailed origin of the connection between presence of frozen variables in solutions and the fact that dynamics (of a solver) does not seem to be able to find them.

For practical application the perhaps most important point is to understand what is the relevance of our results for instances which are not random or not infinite. For example fig. 2.2 suggests that even on small random instances the clustering can be observed and is thus probably relevant. We also observed that the solutions-related quantities seems to have stronger finite size effects than the clusters-related properties, compare e.g. fig. 1.3 with fig. 4.1. This is an interesting point and it should be pursued.

Perspectives

This work should have a practical impact on the design of new solvers of constraint satisfaction problems. Instances with only frozen solutions should be used as new benchmarks for SAT solvers. At the same time where the design allows such instances should be avoided.

More concretely, the belief propagation algorithm is used as a standard approximative inference technique in artificial intelligence and information theory. One of the important problems with applications of the belief propagation is the fact that in many cases it does not converge. Many converging modifications were introduced. In might be interesting to investigate in this context the reinforced belief propagation, see appendix F.2.3, which sometimes converges towards a fixed point when the standard belief propagation does not. As the reinforcement algorithm seems to be very efficient, robust and is not theoretically well understood different variants of the implementation should be studied empirically. It would be interesting to see if this algorithm performs well on non-random graphs, or if it can provide information useful for the practical solvers. Several other concepts enhanced in this thesis might show up useful in algorithmic applications. We feel that the whitening of solutions might be one of them.

We introduced the locked constraint satisfaction problems as a new algorithmical challenge. Moreover the simplicity of their statistical description makes accessible several quantities which are difficult to compute in the KK-SAT problem. For example the weight enumerator function or the xx-satisfiability threshold. But these new models are exciting from many other points of view. Their hardness might be appealing for noise tolerant cryptographic applications. Planted ensemble of the locked problems might be a very good one-way functions. The fact that the solutions of the locked problems are well separated makes them excellent candidates for nonlinear error correcting codes. It will be interesting to investigate if they can be advantageous over the standard linear low-density-parity-check codes [Gal62, Gal68, MN95, Mon01].

Clusters of solutions come up naturally in the pattern recognition and machine learning problems. There each cluster corresponds to a pattern which should be learned or recognized. Similarly the different phenotypes of a cell might be viewed as clusters of fixed points of the corresponding gene regulation network. The methods developed in this thesis might thus have impact also in these exciting fields.

Appendix A 1RSB cavity equations at m=1𝑚1m=1

Here we derive how the 1RSB equation (2.24) simplifies at m=1m=1 for the problems where the replica symmetric solution is not factorized. We restrict to the occupation models, but a generalization to other models is straightforward. Advantage of these equations is that the unknown object is not a functional of functionals but only a single functional. Moreover, the final self-consistent equation does not contain the reweighting term. This simplification makes implementation of the population dynamics at m=1m=1 much simpler, and thus the computation of the clustering and condensation transitions easier. Derivation of the corresponding equations for the KK-SAT problem can be found in [MRTS08].

Write the RS equation (1.17) for the occupation problems in the form

where the constraints Ca({sj},si)=1C_{a}(\{s_{j}\},s_{i})=1 if ∑jsj+si∈A\sum_{j}s_{j}+s_{i}\in A, and otherwise. Let PRS(ψ){\cal P}_{\rm RS}(\psi) be the distribution of RS fields over the graph.

satisfy the RS equation (A.1). And consequently the RS and 1RSB normalizations are equal Zj→i=Zj→i{\cal Z}^{j\to i}=Z^{j\to i}. The full order parameter is the probability distribution of PP’s over the graph, it follow the self-consistent equation

We define the average distribution P‾(ψ∣ψ‾)\overline{P}(\psi|\overline{\psi}) on those edges where the RS field is equal to a given value ψ‾\overline{\psi}

Now we rewrite all the terms on the right hand side using the incoming fields and distributions, i.e., using first eq. (A.4) and then (A.2).

where the original Dirac function was rewritten using

and in last equality was obtained using the integral of eq. (A.5)

To simplify the equations further, in particular to get rid of the reweighting term Z({ψj})Z(\{\psi^{j}\}), we define a distribution P‾s\overline{P}_{s}

then by factorizing the sum over components ss we get

This final equation might look more complicated than the original one, but, in fact, it is much easier to solve. It could seem that we need a population of populations to represent the distribution P‾s(ψ∣ψ‾)PRS(ψ‾)\overline{P}_{s}(\psi|\overline{\psi}){\cal P}_{\rm RS}(\overline{\psi}). But keeping in mind that the proper initial conditions are

independently of the RS field ψ‾\overline{\psi} we see that the probability distribution P‾s(ψ∣ψ‾)PRS(ψ‾)\overline{P}_{s}(\psi|\overline{\psi}){\cal P}_{\rm RS}(\overline{\psi}) may be represented by a population of triplets of fields - the first one corresponding to the RS field ψ‾\overline{\psi} and the other two corresponding to the two components (A.11).

In the population dynamics we first equilibrate the RS distribution PRS(ψ‾){\cal P}_{\rm RS}(\overline{\psi}) and then initialize the other two components according to (A.11). In every step of the update we first fix randomly the set of indexes {j}\{j\} and compute the new ψ‾\overline{\psi}, then given the value ss we choose the set of indexes {si}\{s_{i}\} according to a probability law given by the first line of eq. (A.10), then we compute the new ψ\psi for s=0s=0 and s=1s=1 and change a random triplet in the population for the new values. In summary, eq. (A.10) allows to reduce the double-functional equations at m=1m=1 into a simple-functional form, which is much easier to solve.

The internal entropy s=sRS−Σs=s_{RS}-\Sigma, and thus also the complexity function, may be computed by making very similar manipulations as

We can also express other quantities, e.g. the inter q0=qRSq_{0}=q_{RS} and intra q1q_{1} state overlaps.

Several times, see e.g. sec. 4.3.3, we used the equations at m=1m=1 for problems with factorized RS solution, PRS(ψ)=δ(ψ−ψ‾){\cal P}_{\rm RS}(\psi)=\delta(\psi-\overline{\psi}). The derivation is straightforward from (A.10)

Proper initial conditions for the population dynamics resolution of (A.14) is P‾s(ψs=1)=1\overline{P}_{s}(\psi_{s}=1)=1.

At zero temperature the distributions can be written as the sum of the frozen and soft part

Self-consistent equations for the fractions of hard fields μ1\mu_{1}, μ0\mu_{0} (4.20a-4.20b) follow from (A.14).

Appendix B Exact entropy for the balanced LOPs

Rigorous results about the entropy and the satisfiability threshold can be obtain comparing the first and second moment of the number of solutions, that is: If a number of solution on a graph GG is NG{\cal N}_{G} then the first moment is average over the graph ensemble:

The Markov inequality then gives an upper bound on the entropy and the satisfiability threshold

The Chebyshev’s inequality gives a lower bound via

Let us remind that the occupation models are defined via a (K+1)(K+1)-component vector AA, such that Ai=1A_{i}=1 if and only if there can be ii occupied particles around a constraint of KK variables. We consider by default A0=AK=0A_{0}=A_{K}=0, i.e., that everybody full of empty is not a solution. We also consider all the MM constraints are the same. We have Q(l)NQ(l)N variables of connectivity ll, where ∑l=0∞Q(l)=1\sum_{l=0}^{\infty}Q(l)=1 and l‾=∑i=0∞lQ(l)=KM/N\overline{l}=\sum_{i=0}^{\infty}lQ(l)=KM/N.

In order to compute the first moment we divide variables into groups according to their connectivity and in each groups we choose fraction tlt_{l} of occupied variables. Number of ways in which this is possible is then multiplied by a probability that such a configuration satisfies simultaneously all the constraints.

where tt is the total fraction of occupied variables, this variable might seem ambiguous, as it can be integrated out, but we will appreciate its usefulness later, rar_{a} is a number of occupied variables in a constraint aa.

We develop expression (B.5) in the exponential order. In order to do so we exchange the last two delta functions by their Fourier transforms, introducing two complex Lagrange parameters log⁡x\log{x} and log⁡u\log{u}.

Saddle point with respect to parameters tlt_{l} gives us

and we call pA(x)=∑r=1Kδ(Ar−1)(Kr)xrp_{A}(x)=\sum_{r=1}^{K}\delta(A_{r}-1){K\choose r}x^{r}. Using this we have

As the parameter tt is the only physically meaningful from the three, the goal is to express the annealed entropy as a function of tt and find its maxima. We do that by inverting numerically (B.9a) and plugging (B.9c) in (B.8). Eq. (B.9c) then express the saddle point with respect to the parameter tt. We can write

For the regular graphs Q(l)=δ(l−L)Q(l)=\delta(l-L) the inverse of (B.9a) is explicit u=[t/(1−t)]1/Lu=[t/(1-t)]^{1/L} and thus

The second moment is computed in a similar manner. First we fix that in a fraction tx,lt_{x,l} of nodes of connectivity ll the variable is occupied in both the solutions σ1,σ2\sigma_{1},\sigma_{2} in (B.2). In a fraction ty,lt_{y,l} the variable is occupied in σ1\sigma_{1} and empty in σ2\sigma_{2} and the other way round for tz,lt_{z,l}. We sum over all possible combinations of 0≤tx,l,ty,l,tz,l0\leq t_{x,l},t_{y,l},t_{z,l} such that ∑w=x,y,ztw,l≤1\sum_{w=x,y,z}t_{w,l}\leq 1. All this is multiplied by the probability that such two configurations σ1,σ2\sigma_{1},\sigma_{2} both satisfy all the constraints.

We introduce Fourier transforms at a place of both the Dirac functions, the conjugated parameters are log⁡x,log⁡y,log⁡z\log{x},\log{y},\log{z} for the first Dirac function, and log⁡ux,log⁡uy,log⁡uz\log{u_{x}},\log{u_{y}},\log{u_{z}} for the second one. After that we suppress the parameters tw,lt_{w,l} in the same manner as we did for the first moment. We obtain for the second moment entropy

and the saddle point with respect to twt_{w}, ww and uwu_{w} (w=x,y,zw=x,y,z) is

Once again the parameters twt_{w} are physically meaningful, so we want to express s2nds_{\rm 2nd} as a function of these. We thus need to inverse (B.16a), note that such an inverse is well defined, and using (B.16c) we obtain

The global maximum with respect to tx,ty,tzt_{x},t_{y},t_{z} needs to be found.

For the regular ensemble Q(l)=δ(l−L)Q(l)=\delta(l-L) the function (B.16a) is explicitly reversible and the final expression for the second moment entropy simplifies significantly

where the range of summations is the same as in (B.18).

B.3 The results

The main result is that for some of the symmetric (AK−r=ArA_{K-r}=A_{r} for all r=0,…,Kr=0,\dots,K) and locked occupation problems (Q(0)=Q(1)=0Q(0)=Q(1)=0) the first and second moments computation leads the exact entropy of solutions (4.18). And thus also the exact satisfiability threshold. The cases where this statement holds are marked by a ∗\ast in tab. 4.1, and we call them balanced LOPs. We observed that some of the balanced problems AA are created iteratively starting from 010010 or 0101001010 and adding

We, however, found also other balanced cases than (B.20). The simplest example of symmetric locked problem which is not balanced is A=010010A=010010, and many others of higher KK.

Let us now show this result. For all the symmetric occupation problems:

The annealed entropy (B.10) has a stationary point at t=1/2t=1/2 (u=1u=1, x=1x=1). At this stationary the entropy evaluates to (4.18).

The second moments entropy (B.17) has a stationary point at tx=ty=tz=1/4t_{x}=t_{y}=t_{z}=1/4 (ux=uy=uz=1u_{x}=u_{y}=u_{z}=1, x=y=z=1x=y=z=1). At this stationary point the second moment entropy evaluates to twice the (4.18). To prove this statement observe that for the symmetric problems pA(1/4,1/4,1/4)=[pA(1/2)]2p_{A}(1/4,1/4,1/4)=[p_{A}(1/2)]^{2}. This last identity can be derived from the Vandermonde’s combinatorial identity

The second moment entropy has another stationary point at tx=1/2,ty=tz=0t_{x}=1/2,t_{y}=t_{z}=0 or tx=0,ty=tz=1/2t_{x}=0,t_{y}=t_{z}=1/2. This stationary point is equal to the first moment entropy at t=1/2t=1/2.

In the problems where one of the above stationary points is the global maximum the annealed entropy is exact and the satisfiability threshold easily calculable from (4.18).

In the symmetric problems with leaves (Q(1)>0{\cal Q}(1)>0), or those which are not locked (e.g. 01100110) or not balanced (e.g. 010010010010) another competing maximum of the second moment entropy appears before the annealed entropy goes to zero.

We investigated numerically that this does not happen for the balanced problems described by the recursion (B.20). So far we were not able to prove this last point analytically. This is, however, a technical problem, much simpler that the original one.

The main message of this analysis is what are the ingredients of the model which make the satisfiability threshold accessible to the second moment computations. Here we showed that it is on one hand the (unbroken) symmetry of the problem and on the other hand the point-like clusters. Such a general result might be surprising because otherwise the satisfiability threshold is known exactly in only a handful of the NP-complete problems [ACIM01, MZK+99a, AKKK01, CM04].

Appendix C Stability of the RS solution

In chapter 2 we argued in detail that the replica symmetric solution is correct if and only if the point-to-set correlations decay to zero, or equivalently if the reconstruction is not possible. Failure of the RS solution may (but does not have to) manifest itself via the divergence of the spin glass susceptibility. In a system with Ising variables si∈{−1,+1}s_{i}\in\{-1,+1\} this is defined as

where ⟨⋅⟩c\langle\cdot\rangle_{c} is the connected expectation with respect to the Boltzmann measure.

Originally the replica symmetric instability was investigated from the spectrum of the Hessian matrix in a celebrated paper by de Almeida and Thouless [dAT78]. Equivalence between the RS stability and the convergence of the belief propagation equations on a single large graph is also often stated. In the reconstruction on tress this corresponds to the Kesten-Stigum condition [KS66a, KS66b]. It is not straightforward to see that all these statements are equivalent. We thus try to put a bit of order to the different ways of expressing the stability of the RS solutionThis overview has been worked out in collaboration with F. Krzakala and F. Ricci-Tersenghi..

Perhaps the most direct way how to investigate the divergence of the spin glass susceptibility (C.1) is to write

Using the fluctuation dissipation theorem we can rewrite

where h0,…,hdh_{0},\dots,h_{d} is a sequence of cavity fields (1.34) on the shortest path from s0s_{0} to sds_{d}. The dependence of the cavity field hih_{i} on hi−1h_{i-1} is given by the belief propagation equations. This method to investigate the RS stability was used e.g. in [MMR05] or [ZDEB-1]. It is numerically involved and not very precise as in practice dd can be taken only at maximum 10−2010-20.

Call vd0v^{0}_{d} the contribution to the spin glass susceptibility from the layer of variables at a distance dd from

where hkh_{k} are cavity fields at distance dd from h0h_{0}, and the sum is over all the cavity fields needed to compute h0h_{0}. The spin glass susceptibility diverges if and only if the numbers vdv_{d} are on average growing with the distance dd.

The evolution of numbers vv can be followed via the population dynamics method. Next to the population of fields hh we keep also a population of positive numbers vv. When a field h0h_{0} is updated according to the belief propagation equations, we update also the number v0v^{0} according to (C.5). The RS solution is stable if and only if the overall sum ∑ivi\sum_{i}v^{i} is decreasing during the population dynamics updates. This method was implemented e.g. in [MS06a] or [ZDEB-3]. It is simple and numerically very precise.

Consider a general form of the belief propagation equations h=f({hi})h=f(\{h_{i}\}). After averaging over the graph ensemble we obtain distributional equations (1.23a-1.23b) which are solved via the population dynamics technique. Consider now two replicas of the resulting population, each element ii differs by δhi\delta h_{i}. Keep running the population dynamics on both these replicas and record how the differences δhi\delta h_{i} are changing

The differences δh\delta h can be negative and positive. Take v=(δh)2v=(\delta h)^{2} then

The second term can be neglected because the terms δhi\delta h_{i} and δhj\delta h_{j} are independent. This brings us back to the equation (C.5).

Thus the replica symmetric solutions is stable if and only if the two infinitesimally different replicas do not deviate one from another. This method is very fast to implement and is thus useful for preliminary checks of the RS stability.

The stability of replica symmetric solutions is equivalent to the convergence of the belief propagation equations on a large random graph. This fact follows directly from the previous paragraph. Eq. (C.6) gives the rate of convergence (divergence) of two nearby trajectories of the dynamical map defined by the BP iterative equations.

Often a ”variance” formulation of the stability if described. Assume that instead of a value hih_{i} on every link, there is a narrow distribution of values g(hi)g(h_{i}) parameterized by a mean hi‾\overline{h_{i}} and a small variance viv_{i}. How does h‾\overline{h} and vv evolve? We have now

where h=f({hi})h=f(\{h_{i}\}) is the belief propagation equation. However, since the variance is infinitesimal, the variation of hih_{i} around hi‾\overline{h_{i}} is very small, so that

and therefore one obtains h‾=f({hi‾})\overline{h}=f(\{\overline{h_{i}}\}) and

which is nothing else then equations (C.5).

The RS stability can also be investigated from the numerical stability of the trivial solution of the 1RSB equations. Indeed if the distribution of fields over states is regarded the probability distribution of a small variance g(h)g(h) then the 1RSB equation (2.24) gives for a pthp^{\rm th} moment of g(h)g(h)

where ZZ is the normalization of the BP equations and its mthm^{\rm th} power is the reweighting factor. Expansion gives

The equations for the variances (C.11) does not depend on the second term from (C.13), as this is of a smaller order. As a consequence the condition for stability is independent of the parameter mm.

It is quite remarkable fact that the divergence of the spin glass susceptibility corresponds to the appearance of a nontrivial solution of the 1RSB equation at all the values of mm. In particular because we observed that when the instability is not present the onset of a nontrivial 1RSB solution is mm dependent, see e.g. fig. D.2.

The replica symmetric solution is a minimum of the Gibbs free energy. This is often investigated from the spectra of the matrix of second derivatives called Hessian. The equivalence between this approach and the divergence of the spin glass susceptibility is a classical result, see e.g. the book of Fischer and Hertz [FH91], page 98-100.

C.2 Stability of the warning propagation

At zero temperature the necessary (but not sufficient) condition for the replica symmetric solution to be stable is the convergence of the warning propagation on a single graph. Obviously if the warning propagation does not converge then BP does not either, and convergence of the BP is equivalent to the replica symmetric stability. Advantage of the investigation of the warning propagation convergence is that it can be treated analytically, without using the population dynamics method.

Call P(a→b∣c→d)P(a\to b|c\to d) the probability that the warning uu changes from value aa to value bb provided that the warning u0u_{0} was changed from value cc to value dd. This probability can be always computed from the probabilities p−,p0,p+p_{-},p_{0},p_{+} that a warning u=−1,0,+1u=-1,0,+1

where the function PkP_{k} depends on the model in consideration. This probability describes a proliferation of a ”bug” in the warning propagation. We define a bug proliferation matrix PijP_{ij} of dimension 66, i≡a→bi\equiv a\to b, j≡c→dj\equiv c\to d. The stability of the warning propagation is then governed by the largest (in absolute value) eigenvalue of this matrix λmax\lambda_{\rm max}. The warning propagation is stable if and only if

where γ=k2‾/k‾−1\gamma=\overline{k^{2}}/\overline{k}-1 is the growth rate of the tree (γd\gamma^{d} is the typical number of vertices at distance dd from the root). This analysis is often called bug proliferation [KPW04, MMZ06] (mostly in the context of the 1RSB stability). This investigation of the warning propagation stability was used e.g. in [ZDEB-1] or [CKRT05].

An example where the warning propagation is stable, however, the belief propagation is not, can be found in [ZDEB-3] for the 1-in-K SAT problem. In 1-in-K SAT the warning propagation stability threshold corresponds to the unit clause propagation upper bound [ZDEB-3].

Appendix D 1RSB stability

Concerning the correctness of the 1RSB solution: the Boltzmann measure is split into clusters. This leads to an exact description of the system if and only if both the following conditions are satisfied.

Condition of type I — the point-to-set correlation with respect to the measure over clusters decay to zero. The statistics over clusters may be described on the replica symmetric (tree) level. Clusters do not tend to aggregate.

Condition of type II — the point-to-set correlations within the dominating clusters decay to zero. The interior of these clusters may be described on the replica symmetric (tree) level. Clusters do not tend to fragment into smaller ones.

Within the cavity approach these conditions can be checked from the 2RSB equation

where the functional F2{\cal F}_{2} is given by the 1RSB equation (2.24). We call the solution of (D.1) trivial if either P^{i\to j}_{2}\big{[}P^{i\to j}\big{]}=\delta[P^{i\to j}] or each Pi→j(ψi→j)=δ(ψi→j−ψ‾i→j)P^{i\to j}(\psi^{i\to j})=\delta(\psi^{i\to j}-\overline{\psi}^{i\to j}), where the Pi→jP^{i\to j} is the solution of (2.24). If and only if the (population dynamics) solution of the 2RSB equation at m=m∗, m2=1m=m^{*},\,m_{2}=1 and at m=1, m2=m∗m=1,\,m_{2}=m^{*} is trivial then the two conditions are satisfied, and the 1RSB solution at m∗m^{*} is correct.

Solving the 2RSB equation is, however, numerically involved. Even on random regular graphs the population dynamics of populations is needed, see app. E.5. Moreover the reweighting taking in account the term (Zi→j)m2({\cal Z}^{i\to j})^{m_{2}} is costly. It is thus extremely useful to check the local stability of the 1RSB solution in the lines of the appendix C. The two types of local stability follow.

Stability of type I — the inter-cluster spin glass susceptibility does not diverge.

where the overline denotes an average over clusters

Stability of type II — the intra-cluster spin glass susceptibility does not diverge.

The instability of second type is sometimes called the Gardner instability due to [Gar85].

Again, there are several equivalent ways how to investigate the 1RSB stability. This time we first describe the zero temperature - frozen fields - version before turning to the general formalism.

In the energetic zero temperature limit the 1RSB distribution Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}) can be split into the frozen and soft part as in (4.2). Moreover the self-consistency equations on the weights of the frozen fields, called the SP-yy equations, do not depend on the details of the soft part. The methods for stability investigation of the SP-yy equations were developed in [Par02b, MRT03, MPRT04, RBMM04].

The divergence of the inter-cluster spin glass susceptibility is in general equivalent to the non-convergence of the 1RSB equations (2.24) on a single graph. The reason is exactly the same as for the equivalence of the non-divergence of the spin glass susceptibility and the convergence of the belief propagation equations, which we explained in app. C.1. In the energetic zero temperature limit the convergence of the general 1RSB equations becomes convergence of the SP-yy equations on a single graph. All the methods described in app. C.1 for the stability of the belief propagation equations can be used directly.

Remark in particular that the chain method (C.3), used e.g. in [RBMM04, KPW04], is not the simplest choice. The chains of length d→∞d\to\infty have to be considered numerically, and the treatable values are only d≈10−20d\approx 10-20. This leads to an imprecision for a relatively large numerical effort. It is much more precise to use for example the noise propagation (C.5) as e.g. in [ZDEB-3].

The intra-state susceptibility is investigated in exactly the same manner as the replica symmetric stability. The only difference is that the average over clusters have to be taken properly. The energetic 1RSB solution is based on the warning propagation equations averaged properly over the clusters. Thus the 1RSB stability of the type II leads to the bug proliferation, as in app. C.2, averaged over the clusters.

The SP-yy is 1RSB stable if and only if lim⁡d→∞λII(d)<1\lim_{d\to\infty}\lambda_{II}(d)<1. For more detailed presentation of the 1RSB bug proliferation method or concrete examples see e.g. [RBMM04, MMZ06, KPW04] and [ZDEB-3]. In all the implementations of this method the chain of d→∞d\to\infty edges was used. Unlike in the type I stability, it is not know if this can be avoided in general.

The investigation of the 1RSB stability as we just described can be very simply incorporated to the population dynamics method used to solve the survey propagation equations. This means that on random regular graphs the stability equations become algebraic, as the values of surveys do not depend on the index of the edge. In fig. D.1 we present the result for coloring of random regular graphs.

On all the parts of fig. D.1 the complexity function is plotted against energy, Σ(e)\Sigma(e) (2.32). This function is the main output of the 1RSB energetic method, the SP-yy equations. The parameter yy corresponds to the slope of the complexity function y=∂Σ(e)/∂ey=\partial\Sigma(e)/\partial e. Note that only the concave parts of the curves are physical.

The red parts of the Σ(e)\Sigma(e) curves are the 1RSB stable parts. It seems to be a general fact that the instability of type I happens first for large values of yy, and the instability of the type II for small values of yy. The unphysical (convex) branch is always type II instable. The instability of type I is sometimes completely absent.

An important observation is that the stability of the 1RSB energetic solution does not guarantee the stability of the full 1RSB solution. Differently said, the soft fields can destabilize the full solution. On the other hand also the opposite is true — the instability of the clusters corresponding to m=0m=0 does not imply the instability of the dominating clusters at m∗m^{*}. We thus want to stress that the results of [MPRT04, RBMM04, MMZ06, KPW04] and others have to be taken with these two facts in mind.

D.2 1RSB stability at general m𝑚m and T𝑇T

The stability of the full 1RSB equations at a general value of the parameter mm and of the temperature TT is a more difficult task. We are not aware of any study where this would be practically considered for models on random graphs, apart from [ZDEB-6]. We review shortly the main findings and difficulties.

Divergence of the inter-cluster spin glass susceptibility (D.2) is equivalent to the non-convergence of the probability distributions Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}) (2.24). But here arrives the biggest problem, how to judge if a probability distribution converges? The probability distribution Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}) is represented by a population of random elements picked from this distribution. How to decouple the randomness coming from this sampling and the one coming from the eventual non-convergence? Of course, provided that the numerical difficulty does not rise to the level of directly solving the 2RSB equations. This is not known in general and it is a technical but important open problem in the subject.

One interesting observation can be made, however: If the RS solution is instable then the 1RSB solution at m=1m=1 is type I instable. Indeed, if the mean value of the probability distribution does not converge then the 1RSB solution is type I instable. At the value m=1m=1 the mean (A.3) satisfies the simple belief propagation equations, as explained in app. A.

Divergence of the intra-cluster spin glass susceptibility (D.4) is much easier to investigate on a general level. It is equivalent to checking if the 1RSB iteration are stable against small changes in the probabilities ψ\psi. Arguably the simplest way to do so is the deviation of two replicas method, described for the RS stability in app. C.1. We first find a fixed point of the 1RSB equations (2.24) using the population dynamics method. Then we create a second copy of the populations representing the distributions Pi→j(ψi→j)P^{i\to j}(\psi^{i\to j}). We perturb infinitesimally every of its elements ψi→j\psi^{i\to j}. The 1RSB is type II stable if and only if the two copies converge to the same point. The noise propagation and other methods from C.1 can be used equivalently.

Fig. D.2 depicts the results for the stability of type II in the space of the parameters mm and temperature TT. The 1RSB solution is type II stable above the red curve mIIm_{\rm II}.

It is interesting to state the connection between the general mm, TT stability and the energetic zero temperature limit. The parameter m=yTm=yT when T→0T\to 0, thus when the stability of the frozen fields is relevant for the full stability the parameter yIITy_{\rm II}T gives the slope of mII(T)m_{\rm II}(T) near to zero TT. This indeed seems to be the case, as shown in fig. D.2.

Based on the arguments above, it seems reasonable that the following assumptions are correct:

The stability of the energetic method gives the full stability for small mm and TT.

If the RS solutions is stable then the 1RSB is stable type I at m=1m=1.

If the 1RSB at a given temperature is type I (II resp.) stable at a given mm, then it is type I (II resp.) stable for all smaller (larger resp.) mm.

Assuming as above, the stability of the 1RSB solution in the region where the RS solution is stable is given by the type II (Gardner) stability, which we know how to investigate. The result is depicted e.g. in fig. 5.6. This would mean that the stability of type II is always more important for the thermodynamical solution. And in particular that in the random coloring problem for q≥4q\geq 4 the 1RSB solution is stable in all the colorable phase.

The situation for 3-coloring is more subtle as 3-coloring is not RS stable for c≥cdc\geq c_{d}. However, from assumption (i) follows that the interval of connectivities (cs,cG)=(4.69,5.08)(c_{s},c_{G})=(4.69,5.08) is 1RSB stable at small temperatures. Thus we expect also all the colorable phase to be 1RSB stable (otherwise the phase diagram at fig. 5.6 would have to present a sort of re-entrant behaviour). This would also be in agreement with the situation in the fully connected ferromagnetic 3-state Potts model [GKS85] This is a contra-example to the common claim that in the systems with continuous dynamical transition (Td=TlocalT_{d}=T_{\rm local}) the 1RSB solution is not stable..

Appendix E Populations dynamics

Population dynamics is a numerical method to solve efficiently distributional equations of type (1.32) or (2.24) and compute observables of type (1.33) or (2.25a). In this context it was developed in [MP01]. As the form of the 1RSB equations was more or less known before, and they were solved approximatively using various forms of the variational ansatz, see e.g. [BMW00], it may be argued that the population dynamics technique was the crucial ingredient which made the spin glass models on random graphs solvable. Recently rigorous versions of this method were developed to analyze the performance of decoding algorithms [RU01], the name density evolution is often used in this context.

The main idea is to represent the probability distribution by a population (sample) of NN elements drawn independently at random from this distribution. The algorithm starts from a random list and it mimics TT iterations of the distributional equations and (hopefully) converges to a good representation of the desired fixed point. Several generalizations or subtleties are encountered and we describe some of them in the following. Consider the a random constraint satisfaction model specified by degree distribution R(k){\cal R}(k) of constraints, and Q(l){\cal Q}(l) of variables, the excess degree distributions r(k)r(k) and q(l)q(l) are given by (1.8).

The simplest version of the population dynamics is used to solve

Belief propagation distributional equations (1.23a-1.23b) and compute the corresponding average free energy (1.20), entropy, etc. The complete replica symmetric solution is obtained this way.

Survey propagation distributional equations, obtained from (1.41-1.42), and compute the average complexity function (1.43). The satisfiability transition is obtained this way.

The pseudocode for the procedures Population-Dynamics and One-Measurement follows. To compute the observable Φ\Phi (free energy, entropy, complexity, etc.) we first call procedure Population-Dynamics with T=TequilT=T_{\rm equil} (equilibration time) and sufficiently large NN. After we repeat One-Measurement plus Population-Dynamics with T=TrandT=T_{\rm rand} (randomization time) and MM sufficiently large, but smaller than NN. And finally we compute averages and error bars of these measurements.

In some problems the constraints are themselves random (negations in KK-SAT, interactions in a spin glass etc.). The choice of this quenched randomness is then done at line E.1 of Population-Dynamics, and at line E.1 of One-Measurement.

The population {ψ}\{\psi\} is randomly initialized to a random assignment at line E.1 of Population-Dynamics. That is all the zero components of the surveys (1.41-1.42) are zero, and the beliefs are completely biased, i.e., either (1,0)(1,0) or (0,1)(0,1). Such a choice is justified from the analogy with the reconstruction on trees where the proper initial condition is given by (2.11).

Satisfactory results are usually obtained with the population sizes and times of order N≈104−105N\approx 10^{4}-10^{5}, Tequil≈103−104T_{\rm equil}\approx 10^{3}-10^{4}, Trand≈10T_{\rm rand}\approx 10, M≈NM\approx N. But these values may change problem from problem and a special care have to be taken about the numerics every time as basically no convergence theorems are known for a general case.

Population-Dynamics(r(k),q(l),N,T)\textnormal{Population-Dynamics}(r(k),q(l),N,T) 1Initialize randomly NN-component array {ψ}\{\psi\}; 2for t=1,…,Tt=1,\dots,T: 3 dofor i=1,…,Ni=1,\dots,N: 4 doDraw an integer kk from the distribution r(k)r(k); 5 for d=1,…,kd=1,\dots,k: 6 doDraw an integer ll from the distribution q(l)q(l); 7 Draw indexes j1,…,jlj_{1},\dots,j_{l} uniformly in {1,…,N}\{1,\dots,N\}; 8 Compute χd\chi_{d} from {ψj1,…,ψjl}\{\psi_{j_{1}},\dots,\psi_{j_{l}}\} according to eq. (1.16b); 9 Compute ψnew\psi_{\rm new} from {χ1,…,χk}\{\chi_{1},\dots,\chi_{k}\} according to eq. (1.16a); 10 ψi←ψnew\psi_{i}\leftarrow\psi_{\rm new}; 11return array {ψ}\{\psi\};

One-Measurement(R(k),Q(l),q(l),N,M)\textnormal{One-Measurement}({\cal R}(k),{\cal Q}(l),q(l),N,M) 1Initialize Φconstraint=0\Phi_{\rm constraint}=0; Φvariable=0\Phi_{\rm variable}=0; 2for i=1,…,Mi=1,\dots,M: ⊳\rhd Compute the constraint part. 3 doDraw an integer kk from the distribution R(k){\cal R}(k); 4 for d=1,…,kd=1,\dots,k: 5 doDraw an integer ll from the distribution q(l)q(l); 6 Draw indexes j1,…,jlj_{1},\dots,j_{l} uniformly in {1,…,N}\{1,\dots,N\}; 7 Compute χd=∏n=1lψjn\chi_{d}=\prod_{n=1}^{l}\psi_{j_{n}}; 8 Compute ZnewZ_{\rm new} from {χ1,…,χk}\{\chi_{1},\dots,\chi_{k}\} according to eq. (1.19a); 9 Φconstraint←Φconstraint+log⁡Znew\Phi_{\rm constraint}\leftarrow\Phi_{\rm constraint}+\log{Z_{\rm new}}; 10for i=1,…,Mi=1,\dots,M: ⊳\rhd Compute the variable part. 11 doDraw an integer ll from the distribution Q(l){\cal Q}(l); 12 Draw indexes j1,…,jlj_{1},\dots,j_{l} uniformly in {1,…,N}\{1,\dots,N\}; 13 Compute ZnewZ_{\rm new} from {ψj1,…,ψjl}\{\psi_{j_{1}},\dots,\psi_{j_{l}}\} according to eq. (1.19b); 14 Φvariable←Φvariable+(l−1)log⁡Znew\Phi_{\rm variable}\leftarrow\Phi_{\rm variable}+(l-1)\log{Z_{\rm new}}; 15return (αΦconstraint−Φvariable)/M(\alpha\Phi_{\rm constraint}-\Phi_{\rm variable})/M;

E.2 Population dynamics to solve 1RSB at m=1𝑚1m=1

The general 1RSB equations for general random graph ensemble require a population dynamics with population of populations. We will explain this in sec. E.5. Treating the population of populations requires a lot of CPU time and it is not very precise, thus anytime we have the opportunity to avoid this we have to take it. One such opportunity is the simplification of the 1RSB equations at m=1m=1 explained in appendix A. Conveniently, both the clustering and the condensation transitions are obtained this way.

The population dynamics method have to be adapted to solve eq. (A.10) and to measure the entropy of states (A.11). We give the m=1m=1 generalization of the procedure Population-Dynamics, the changes in One-Measurement are then straightforward. Note that lines E.2 and E.2 take in general 2k2^{k} steps as we need to compute probability of every combination of the set {s1,…,sk}\{s_{1},\dots,s_{k}\}.

\textnormal{PD-(m=1)-Generalization}(r(k),q(l),N,T) 1{ψRS}←Population-Dynamics(r(k),q(l),N,T)\{\psi^{\rm RS}\}\leftarrow\textnormal{Population-Dynamics}(r(k),q(l),N,T); 2Initialize NN-component arrays {ψ1←1}\{\psi^{1}\leftarrow 1\} and {ψ0←0}\{\psi^{0}\leftarrow 0\}; 3for t=1,…,Tt=1,\dots,T: 4for i=1,…,Ni=1,\dots,N: 5 doDraw an integer kk from the distribution r(k)r(k); 6 for d=1,…,kd=1,\dots,k: 7 doDraw an integer ldl_{d} from the distribution q(l)q(l); 8 Draw indexes j(d,1),…,j(d,ld)j(d,1),\dots,j(d,l_{d}) uniformly in {1,…,N}\{1,\dots,N\}; 9 Compute χdRS\chi^{\rm RS}_{d} from {ψj(d,1)RS,…,ψj(d,ld)RS}\{\psi^{\rm RS}_{j(d,1)},\dots,\psi^{\rm RS}_{j(d,l_{d})}\} according to eq. (1.16b); 10 s←1s\leftarrow 1; 11 Choose {s1,…,sk}\{s_{1},\dots,s_{k}\} with prob. given by the 2nd line of eq. (A.10); 12 s←0s\leftarrow 0; 13 Choose {r1,…,rk}\{r_{1},\dots,r_{k}\} with prob. given by the 2nd line of eq. (A.10); 14 for d=1,…,kd=1,\dots,k: 15 doCompute χd1\chi^{1}_{d} from {ψj(d,1)sd,…,ψj(d,ld)sd}\{\psi^{s_{d}}_{j(d,1)},\dots,\psi^{s_{d}}_{j(d,l_{d})}\} according to eq. (1.16b); 16 Compute χd0\chi^{0}_{d} from {ψj(d,1)rd,…,ψj(d,ld)rd}\{\psi^{r_{d}}_{j(d,1)},\dots,\psi^{r_{d}}_{j(d,l_{d})}\} according to eq. (1.16b); 17 Compute ψnewRS\psi^{\rm RS}_{\rm new} from {χ1RS,…,χkRS}\{\chi^{\rm RS}_{1},\dots,\chi^{\rm RS}_{k}\} according to eq. (1.16a); 18 Compute ψnew1\psi^{1}_{\rm new} from {χ11,…,χk1}\{\chi^{1}_{1},\dots,\chi^{1}_{k}\} according to eq. (1.16a); 19 Compute ψnew0\psi^{0}_{\rm new} from {χ10,…,χk0}\{\chi^{0}_{1},\dots,\chi^{0}_{k}\} according to eq. (1.16a); 20 ψiRS←ψnewRS\psi^{\rm RS}_{i}\leftarrow\psi^{\rm RS}_{\rm new}; 21 ψi1←ψnew1\psi^{1}_{i}\leftarrow\psi^{1}_{\rm new}; 22 ψi0←ψnew0\psi^{0}_{i}\leftarrow\psi^{0}_{\rm new}; 23return arrays {ψRS}\{\psi^{\rm RS}\}, {ψ1}\{\psi^{1}\}, {ψ0}\{\psi^{0}\};

E.3 Population dynamics with reweighting

A simplification of the 1RSB equations (2.24) arises for the ensemble of random regular graphs, there the distribution Pi→j(ψi→j){\cal P}^{i\to j}(\psi^{i\to j}) over clusters is the same for every edge (ij)(ij). In the corresponding population dynamics a special care have to be taken about the reweighting term \big{(}Z^{i\to j}\big{)}^{m}.

We describe two different strategies to deal with the reweighting. In the first one Reweighting-Faster the elements of the population have all the same weight and thus in each sweep the population needs to be re-sampled and some less probable elements might be lost. In the second strategy Regular-Reweighting-Precise each element has its own weight, no re-sampling is needed, but the search of a random element, at the line E.3, takes log⁡N\log{N} steps. Thus the first strategy is faster, the second one is slightly more precise. Which one is eventually better seems to be problem specific.

Consider a population {ψ}\{\psi\} where each element ψi\psi_{i} has weight wiw_{i}. The weights are computed from the BP update (1.16a-1.16a) as w_{i}=\Big{(}Z^{a\to i}\prod_{j\in\partial a-i}Z^{j\to a}\Big{)}^{m}.

Reweighting-Faster(N,{ψ},{w})\textnormal{Reweighting-Faster}(N,\{\psi\},\{w\}) 1wtot←0w_{\rm tot}\leftarrow 0; 2for i=1,…,Ni=1,\dots,N: 3 dowtot←wtot+wiw_{\rm tot}\leftarrow w_{\rm tot}+w_{i}; 4⊳\rhd ziz_{i} is the cumulative distribution of indexes ii; 5z0=0z_{0}=0; 6for i=1,…,Ni=1,\dots,N: 7 dozi←zi−1+wi/wtotz_{i}\leftarrow z_{i-1}+w_{i}/w_{\rm tot} 8⊳\rhd Trick to make a list of ordered random numbers nin_{i} in O(N)O(N) steps. 9G←0G\leftarrow 0; 10for i=1,…,Ni=1,\dots,N: 11 doni←−log⁡Randn_{i}\leftarrow-\log{\textnormal{Rand}}; 12 ⊳\rhd Rand outputs a random number in the interval (0,1)(0,1). 13 G←G+niG\leftarrow G+n_{i}; 14G←G−log⁡RandG\leftarrow G-\log{\textnormal{Rand}}; 15n1←n1/Gn_{1}\leftarrow n_{1}/G; 16for i=2,…,Ni=2,\dots,N: 17 doni←ni/Gn_{i}\leftarrow n_{i}/G; 18 ni←ni+ni−1n_{i}\leftarrow n_{i}+n_{i-1}; 19⊳\rhd Finally making the new population. 20p←0p\leftarrow 0; 21for i=1,…,Ni=1,\dots,N 22 dowhile (ni>zpn_{i}>z_{p}) p←p+1p\leftarrow p+1; 23 ψinew←ψp\psi^{\rm new}_{i}\leftarrow\psi_{p}; 24return array {ψnew}\{\psi^{\rm new}\};

Regular-Reweighting-Precise(r(k),q(l),N,T,m)\textnormal{Regular-Reweighting-Precise}(r(k),q(l),N,T,m) 1Initialize randomly NN-component arrays {ψ}\{\psi\} and {w}\{w\}; 2for t=1,…,Tt=1,\dots,T: 3for i=1,…,Ni=1,\dots,N: 4 doDraw an integer kk from the distribution r(k)r(k); 5 Znew←1Z_{\rm new}\leftarrow 1; 6 for d=1,…,kd=1,\dots,k: 7 doDraw an integer ll from the distribution q(l)q(l); 8 for n=1,…,ln=1,\dots,l: 9 doCreate cumulative probability distribution from weights {w}\{w\}; 10 Draw index jnj_{n} from this cumulative distribution; 11 Compute χd\chi_{d} from {ψj1,…,ψjl}\{\psi_{j_{1}},\dots,\psi_{j_{l}}\} according to eq. (1.16b); 12 Znew←Znew⋅ZdZ_{\rm new}\leftarrow Z_{\rm new}\cdot Z_{d}, where ZdZ_{d} is the norm. from eq. (1.16b); 13 Compute ψnew\psi_{\rm new} from {χ1,…,χk}\{\chi_{1},\dots,\chi_{k}\} according to eq. (1.16a); 14 Znew←Znew⋅ZdZ_{\rm new}\leftarrow Z_{\rm new}\cdot Z_{d}, where ZdZ_{d} is the norm. from eq. (1.16a); 15 ψi←ψnew\psi_{i}\leftarrow\psi_{\rm new}; 16 wi←(Znew)mw_{i}\leftarrow(Z_{\rm new})^{m}; 17return array {ψ}\{\psi\}, weights {w}\{w\};

E.4 Population dynamics with hard and soft fields

Fraction of frozen variables (again on random regular graphs for simplicity) can be obtained by solving equation (4.10). To compute the value r(m)r(m) a population needs to be kept for the soft part of the distribution PsoftP_{\rm soft}, eq. (4.2). It is important to stress that when evaluating the if conditions on lines E.4,E.4 and E.4 we consider as frozen only the incoming fields created at line E.4.

PD-Hard-Soft(r(k),q(l),N,T,m)\textnormal{PD-Hard-Soft}(r(k),q(l),N,T,m) 1Initialize randomly NN-component array {ψ←Rand}\{\psi\leftarrow\textnormal{Rand}\}; 2η←1\eta\leftarrow 1; 3for t=1,…,Tt=1,\dots,T: 4 doi←1i\leftarrow 1; 5 h←0h\leftarrow 0; Zhard←0Z_{\rm hard}\leftarrow 0; Zsoft←0Z_{\rm soft}\leftarrow 0; 6 while i≤Ni\leq N: 7 doDraw an integer kk from the distribution r(k)r(k); 8 Znew←1Z_{\rm new}\leftarrow 1; 9 for d=1,…,kd=1,\dots,k: 10 doDraw an integer ll from the distribution q(l)q(l); 11 for r=1,…,lr=1,\dots,l: 12 doif Rand<η\textnormal{Rand}<\eta 13 then Set ψr\psi_{r} to be a frozen field; 14 else Draw ψr\psi_{r} uniformly from {ψ}\{\psi\}; 15 if No contradiction between the frozen fields in {ψ1,…,ψl}\{\psi_{1},\dots,\psi_{l}\} 16 then Compute χd\chi_{d} from {ψ1,…,ψl}\{\psi_{1},\dots,\psi_{l}\} using eq. (1.16b); 17 Znew←Znew⋅ZdZ_{\rm new}\leftarrow Z_{\rm new}\cdot Z_{d}, ZdZ_{d} is the norm. from (1.16b); 18 else goto line E.4; 19 if No contradiction between the frozen fields in {χ1,…,χk}\{\chi_{1},\dots,\chi_{k}\} 20 then Compute ψnew\psi_{\rm new} from {χ1,…,χk}\{\chi_{1},\dots,\chi_{k}\} according to eq. (1.16a); 21 Znew←Znew⋅ZdZ_{\rm new}\leftarrow Z_{\rm new}\cdot Z_{d}, where ZdZ_{d} is the norm. from eq. (1.16a); 22 else goto line E.4; 23 if ψnew\psi_{\rm new} is a frozen field 24 then Z_{\rm hard}\leftarrow Z_{\rm hard}+\big{(}Z_{\rm new}\big{)}^{m}; 25 h←h+1h\leftarrow h+1; 26 else Z_{\rm soft}\leftarrow Z_{\rm soft}+\big{(}Z_{\rm new}\big{)}^{m}; 27 ψi←ψnew\psi_{i}\leftarrow\psi_{\rm new}; 28 wi←(Znew)mw_{i}\leftarrow(Z_{\rm new})^{m}; 29 i←i+1i\leftarrow i+1; 30 r←(Zsofth)/(ZhardN)r\leftarrow(Z_{\rm soft}h)/(Z_{\rm hard}N); 31 Update η\eta according to eq. (4.10); 32 {ψ}←Reweighting-Faster(N,{ψ},{w})\{\psi\}\leftarrow\textnormal{Reweighting-Faster}(N,\{\psi\},\{w\}); 33return array {ψ}\{\psi\}, η\eta;

E.5 The population of populations

The general 1RSB equations take form (2.33), the order parameter P[P(ψ)]{\cal P}[P(\psi)] is a distribution (over the graph ensemble) of distributions (over the clusters). It can be represented by a population {{ψ}}\{\{\psi\}\} of NN-component populations {ψ}i\{\psi\}_{i}, where i=1,…,Mi=1,\dots,M. We sketch here the corresponding population dynamics of populations. Again this has been first described in [MP01].

Population-of-Populations(r(k),q(l),N,M,T,m)\textnormal{Population-of-Populations}(r(k),q(l),N,M,T,m) 1Initialize randomly M×NM\times N-component array {{ψ}}\{\{\psi\}\}; 2for t=1,…,Tt=1,\dots,T: 3 dofor i=1,…,Mi=1,\dots,M: 4 doDraw an integer kk from the distribution r(k)r(k); 5 for d=1,…,kd=1,\dots,k: 6 doDraw an integer ldl_{d} from the distribution q(l)q(l); 7 Draw indexes i(d,1),…,i(d,ld)i(d,1),\dots,i(d,l_{d}) uniformly in {1,…,M}\{1,\dots,M\}; 8 {ψ}new←One-Step({{ψ}},{i(1,1),…,i(k,lk)},{l},k,N,m)\{\psi\}_{\rm new}\leftarrow\textnormal{One-Step}(\{\{\psi\}\},\{i(1,1),\dots,i(k,l_{k})\},\{l\},k,N,m); 9 {ψ}i←{ψ}new\{\psi\}_{i}\leftarrow\{\psi\}_{\rm new}; 10return array {{ψ}}\{\{\psi\}\};

One-Step({{ψ}},{i(1,1),…,i(k,lk)},{l},k,N,m)\textnormal{One-Step}(\{\{\psi\}\},\{i(1,1),\dots,i(k,l_{k})\},\{l\},k,N,m) 1for j=1,…,Nj=1,\dots,N: 2 doZnew←1Z_{\rm new}\leftarrow 1; 3 for d=1,…,kd=1,\dots,k: 4 doDraw indexes j(d,1),…,j(d,ld)j(d,1),\dots,j(d,l_{d}) uniformly in {1,…,N}\{1,\dots,N\}; 5 Compute χd\chi_{d} from {ψi(d,1),j(d,1),…,ψi(d,ld),j(d,ld)}\{\psi_{i(d,1),j(d,1)},\dots,\psi_{i(d,l_{d}),j(d,l_{d})}\} using (1.16b); 6 Znew←Znew⋅ZdZ_{\rm new}\leftarrow Z_{\rm new}\cdot Z_{d}, ZdZ_{d} is the norm. from (1.16b); 7 Compute ψnew\psi_{\rm new} from {χ1,…,χk}\{\chi_{1},\dots,\chi_{k}\} according to eq. (1.16a); 8 Znew←Znew⋅ZdZ_{\rm new}\leftarrow Z_{\rm new}\cdot Z_{d}, ZdZ_{d} is the norm from (1.16a); 9 w_{j}\leftarrow\big{(}Z_{\rm new}\big{)}^{m}; 10 ψj←ψnew\psi_{j}\leftarrow\psi_{\rm new}; 11{ψ}←Reweighting-Faster(N,{ψ},{w})\{\psi\}\leftarrow\textnormal{Reweighting-Faster}(N,\{\psi\},\{w\}); 12return array {ψ}\{\psi\};

Depending on the problem we are about to solve the population of populations might also be combined with the reweighting of populations or the separation of the frozen and soft fields, see e.g. appendix D of [ZDEB-5].

E.6 How many populations needed?

We make a summary of which level of the population dynamics technique is needed depending on the problem. References are just examples and are biased towards works presented in this thesis.

Belief propagation on regular graphs [ZDEB-1, ZDEB-5, ZDEB-9].

General warning propagation with integer warnings [ZDEB-1, ZDEB-3].

Frozen variables at m=1m=1 [ZDEB-5, ZDEB-9].

Survey propagation on regular graphs (frozen variables at m=0m=0, energetic cavity) [KPW04] or [ZDEB-5, ZDEB-9].

General belief propagation in models with discrete variables [ZDEB-1, ZDEB-5, ZDEB-9].

General survey propagation (1RSB at m=0m=0, energetic cavity) on model with integer warnings [ZDEB-3, ZDEB-9], or very precise numerics in [MMZ06].

1RSB at m=1m=1 [MM06a, MRTS08] or [ZDEB-4, ZDEB-5].

1RSB on random regular graphs [ZDEB-4, ZDEB-5].

2RSB at m=0m=0 (energetic cavity) on regular graphs [Riv05].

General 1RSB (also finite temperature) [MP01, MPR05, MRTS08] or [ZDEB-4, ZDEB-5, ZDEB-6].

3RSB at m=0m=0 (energetic cavity) on regular graphs.

We are not aware on any work where the last two points would be implemented. More levels of replica symmetry breaking would require more levels of populations. We are not aware of any work where more than population of populations would be treated. Rather than pushing the numerics in this direction new theoretical works are needed for models where the 1RSB solution is not correct.

Appendix F Algorithms

Here we do not aim to provide a complete summary of algorithms used to solve the random constraint satisfaction problems. We just define and briefly discuss algorithms which were used, generalized or tested in the context of this thesis. Strictly speaking we are almost always dealing with incomplete solvers, that is algorithms which might find a solution but never provide a certificate of unsatisfiability. It is an open and interesting questions if the methods presented in this thesis can imply something for certification of unsatisfiability.

A large class of algorithms for CSPs is based on the following iterative scheme:

Decimation 1repeat Choose a variable ii ; 2 Choose a value sis_{i} ; 3 Assign ii the value sis_{i} and simplify the formula; 4 untilSolution or contradiction is found;

The nontrivial part is how to choose a variable in step F.1 and how to choose its value in step F.1. In the following we describe several more or less sophisticated or efficient strategies.

Note that all these strategies can be improved by backtracking, that is if a contradiction was found we return to the last variable where another value than the one we chose was possible and make this choice instead.

One of the simplest (and obvious) strategies is to choose and assign a variable which is present in a constraint which is compatible with only one value of that variable. In K-SAT this is equivalent to assigning variables belonging to clauses which contain only this variable, hence the name unit clause. If no such variable exists one possibility (the random heuristics) is to choose an arbitrary variable and assign it a random value from the available ones. The unit clause propagation combined with the random heuristics (without backtracking) is not very efficient solver of K-SAT. But the situation is more fortunate for some other constraint satisfaction problems. The most interesting example being perhaps the 1-in-K SAT [ACIM01] and [ZDEB-3]. The random 1-in-K SAT exhibits a sharp satisfiability phase transition for K≥3K\geq 3. Moreover, if the probability of negation of variables lies in the interval (0.2726,0.7274)(0.2726,0.7274) (for K=3K=3) then:

In the satisfiable phase the unit clause propagation combined with the random heuristics finds a solution with finite probability in every run.

In the unsatisfiable phase every run of the unit clause propagation leads to a contradiction with finite probability after the assignment of the very first variable.

Hence, with random restarts the random 1-in-3 SAT is almost surely solvable in polynomial time in the whole phase space (given the probability of a negation is as specified above). At the same time the 1-in-3 SAT is an NP-complete problem, it thus provides a rare example of an on average easy NP-complete problem with a satisfiability phase transition.

Unit clause propagation is the main element of all the exact solvers of constraint satisfaction problems. The most studied example being the Davis-Putnam-Logemann-Loveland (DPLL) algorithm [DP60, DLL62] for K-SAT which combines the unit clause propagation with the pure literal elimination (pure literal appears either only negated or non-negated) with backtracking. It was mostly this algorithm which was used when the connection between the algorithmical hardness and phase transitions was being discovered [MSL92, CKT91]. Moreover, all the modern complete solvers of the satisfiability problem follow a similar, more elaborated, path.

F.1.2 Belief propagation based decimation

Belief propagation [Pea82] computes, or on general graphs approximates, marginal probabilities. These can then be used to find an actual solution. In some problems the marginals give the solution directly, e.g. in the error correcting codes [Gal68], in the matching [BSS05, BSS06], or the random field Ising model at zero temperature [KW05, Che08] etc. In constraint satisfaction problems, typically, marginals do not give a direct information about a solution. For example in coloring of random graphs, the BP equations always converge to all marginals being equal to 1/q1/q. Belief propagation based decimation strategies have been studied recently.

In every cycle of the algorithm Decimation, the belief propagation equations are updated until they converge or a maximal number of updates per variable TmaxT_{\rm max} is reached. At least two strategies how to choose the decimated variable and its value were tested and studied, see e.g. [ZDEB-4] and [MRTS07]:

Uniform BP decimation – Choose a variable at random and assign its value according to the marginal probability estimated by BP.

Maximal BP decimation – Find the variable with the most biased BP marginal and assign it the most probable value.

The other two combinations where a random variables is assigned its most probable value or when the most biased variable is assigned random value according to its marginal probability can be think of. The BP decimation, as described above, runs in quadratic time. In eventual practical implementations a small fraction of variables should be decimated at each step, thus reducing the computational complexity to linear (or log-linear if the maximum convergence time increases as log⁡N\log{N}).

The empirically best strategy is the maximal BP decimation. This can be understood from the fact that this strategy aims to destroy the smallest possible number of solutions in every step, as argued on a more quantitative level in [Par03]. We gave as an example the performance of the maximal BP decimation in the 3- and 4-coloring of random Erdős-Rényi graphs [ZDEB-5] in fig. 3.3.

The uniform BP decimation is less successful, because it aims not only to find a solution but also to sample solutions uniformly at random. Indeed, if an exact calculation of marginal probabilities would be used instead of the BP estimates the uniform exact decimation would lead to a perfect sampling. The uniform exact decimation is a process which can be analyzed using the cavity method. The result then sheds light on the limitations of the BP decimation. This analysis was developed in [MRTS07], and we give an example for the factorized occupation problems in the following.

We implemented the maximal BP decimation algorithm on the random graph coloring. We chose Tmax⁡=10T_{\max}=10, if a solutions is not found we restart with Tmax⁡=20T_{\max}=20 and eventually once again with Tmax⁡=40T_{\max}=40. The fraction of successful runs is plotted in fig. 3.3 and we see that this algorithm works even in condensed phase where the BP marginals are not asymptotically correct, or in a phase where the equations do not even converge. The non-convergence of the belief propagation equations is ignored (in 3-coloring from the beginning, in 4-coloring after a small fraction, typically around 10%, of variables was fixed). It thus seems that in coloring the BP decimation is a very robust algorithm.

What is the reason for the failure of the maximal BP decimation at higher connectivities? A straightforward suggestion would be that is should not work in the condensed phase where the BP marginals are not asymptotically correct. But we do not observe anything particular in the performance curves at the condensation transition. A second natural suggestion would be that BP should converge in order that the algorithm works, this also does not seem to be the case, as BP does not converge in the 3-coloring for connectivity c>4c>4 and yet the algorithm is perfectly able to find solutions. Moreover, even in 4-coloring where the BP equations converge on large formulas in all the satisfiable phase, after a certain (rather small) fraction of variables is decimated the convergence is lost. As we argued in appendix C the non-convergence of BP is equivalent to the local instability of the replica symmetric solution. It thus seems that the reduced problem, after a certain fraction of variable was fixed, is even harder from the statistical physics perspective than the original problem. Yet, this does not seem to be fatal for the finding of solutions. Finally, in the region where the BP decimation algorithm really does not succeed we observed that a precursor of the failure exists. The normalizations in the BP equations (1.16a-1.16b) gradually decreases to zero, meaning that the incoming beliefs become almost contradictory.

The uniform exact decimation after θN\theta N steps is equivalent to taking a solution uniformly at random and fixing its first θN\theta N variables. Such a procedure can be analyzed [MRTS07] and conclusions made about the influence of small errors in the BP estimates of marginals.

Given an instance of the CSP, consider a solution {s}\{s\} taken uniformly at random and reveal the value of each variable with probability θ\theta. Denote Φ\Phi the fraction of variables which were either revealed or are directly implied by the revealed ones. To compute Φ(θ)\Phi(\theta) we derive the cavity equations on a tree. Denote Φsi→b\Phi^{i\to b}_{s} the probability that a variable ii is fixed conditioned on the value ss of the variable ii and on the absence of the edge (ib)(ib):

Meaning that the variable ii was either revealed or not, and if not it is implied if at least one of the incoming constraints implies it. The qsa→iq_{s}^{a\to i} is a probability that constraint aa implies variable ii to be ss conditioned on: 1) variable ii taking the value s∈{s}s\in\{s\} in the solution we chose, 2) variable ii was not revealed directly and 3) the edge (ai)(ai) is absent.

We write the expression for qsa→iq_{s}^{a\to i} only for random occupation CSPs on random regular graphs where the replica symmetric equation is factorized. Then also qsa→iq_{s}^{a\to i} and Φsi→b\Phi^{i\to b}_{s} are factorized, that is independent of a,b,ia,b,i. The conditioned probability qsq_{s} is the ratio of the probability that variable ii takes the value ss and is implied by the constraint aa and probability that variable ii takes the value ss:

where l=L−1l=L-1, k=K−1k=K-1. The indexes s1,s0s_{1},s_{0} in the second sum of both equations are the largest possible but such that s1≤rs_{1}\leq r, s0≤K−1−rs_{0}\leq K-1-r, and ∑s=0s1Ar−s=0\sum_{s=0}^{s_{1}}A_{r-s}=0, ∑s=0s0Ar+1+s=0\sum_{s=0}^{s_{0}}A_{r+1+s}=0. The terms Φ1rΦ0k−r−s(1−Φ0)s\Phi^{r}_{1}\Phi^{k-r-s}_{0}(1-\Phi_{0})^{s} and Φ1r−sΦ0K−r−1(1−Φ1)s\Phi^{r-s}_{1}\Phi^{K-r-1}_{0}(1-\Phi_{1})^{s} are the probabilities that a sufficient number of incoming variables was revealed such that the out-coming variable is implied (not conditioned on its value). The first sum goes over all the possible numbers of 11’s being assigned on the incoming variables, rr. The term ψ1lrψ0l(k−r)\psi_{1}^{lr}\psi_{0}^{l(k-r)} is then the probability that such a configuration took place. The cavity probabilities that the corresponding variable takes value 0/10/1, ψ0,ψ1\psi_{0},\psi_{1} are taken from the BP equations (4.16a-4.16b), ZregZ^{\rm reg} is the normalization in (4.16a-4.16b). The first condition on rr takes care about the values of the incoming neighbours being compatible with the value of the variable ii on which is conditioned, the second condition on rr is satisfied if and only if the value of the variable ii is implied by the incoming configuration.

Once a solution for qsq_{s} is found (from initial conditions Φ=θ\Phi=\theta) the total probability that a variable is fixed is computed as

where μ0,μ1\mu_{0},\mu_{1} are the total BP marginals, μs=ψsL/(ψ0L+ψ1L)\mu_{s}=\psi_{s}^{L}/(\psi^{L}_{0}+\psi^{L}_{1}).

Notice the complete analogy between eqs. (F.2b-F.2a) and the equations for hard fields at m=1m=1 (4.20b-4.20a). To compute the function Φ(θ)\Phi(\theta) for a general CSP on a general graph ensemble a derivation in the lines of app. A have to be adapted, see also [MRTS07]. Finally note that as the probabilities ψ1\psi_{1}, ψ0\psi_{0} are taken from the belief propagation equations the form (F.2b-F.2a) is not correct in the condensed phase (but in the locked problems the satisfiable phase is never condensed).

In the locked problems, see sec. 4.3, the BP decimation algorithm does not succeed to find a satisfying assignment even at the lowest possible connectivity. To give an example in the 1-or-3-in-5 SAT on truncated Poissonian graphs the maximal BP decimation succeeds to find a solution in only about 25% at the lowest average connectivity l‾=2\overline{l}=2, and this fraction drops down to less than 5% at already l‾=2.3\overline{l}=2.3 (to be compared with the clustering threshold ld=3.07l_{d}=3.07, or the satisfiability threshold ls=4.72l_{s}=4.72).

Interestingly, the precursors of the failure of the BP decimation algorithm observed in the graph coloring are not present in the locked problems. In particular the BP equations converge during all the process and the normalizations in the BP equations (1.16a-1.16b) stays finite. However, the above analysis of the function Φ(θ)\Phi(\theta) sheds light on the origin of the failure.

In fig. F.1 we compare the function Φ(θ)\Phi(\theta) (F.3) with the experimental performance of the uniform BP decimation. Before the failure of the algorithm (when a contradiction is encountered) the two curves collapse perfectly. The reason why the algorithm fails to find solutions is now transparent.

Avalanche of direct implications – In some cases the function Φ(θ)\Phi(\theta) has a discontinuity at a certain spinodal point θs\theta_{s} (θs≈0.46\theta_{s}\approx 0.46 at L=3L=3 of the 1-or-3-in-5 SAT). Before θs\theta_{s} after fixing one variable there is a finite number of direct implications. As the loops are of order log⁡N\log{N} these implications never lead to a contradiction. At the spinodal point θs\theta_{s} after fixing one more variable and extensive avalanche of direct implications follows. Small (order 1/N1/N) errors in the previously used BP marginals may thus lead to a contradiction. This indeed happens in almost all the runs we have done. For more detailed discussion see [MRTS07].

No more free variables – The second reason for the failure is specific to the locked problems, more precisely to the problems where Φ=1\Phi=1 is a solutions of (F.2a-F.2b). In these cases function Φ(θ)→1\Phi(\theta)\to 1 at some θ1<1\theta_{1}<1 (θ1≈0.73\theta_{1}\approx 0.73 at L=4L=4 of 1-or-3-in-5 SAT). In other words if we reveal a fraction θ>θ1\theta>\theta_{1} of variables from a random solution, the reduced problem will be compatible with only that given solution. Again a little error in the previously fixed variables and the BP uniform decimation ends up in a contradiction. If on the contrary the function Φ(θ)\Phi(\theta) reaches value 1 only for θ=1\theta=1 then the residual entropy is positive and there should everytime be some space to correct previous small errors, demonstrated on a non-locked problem in fig. F.2.

These two reasons of failure of the BP uniform decimation seems quite different. But they have one property in common. As the point of failure is approached we observe a divergence of the ratio between the number of variables which were not directly implied before being fixed and the number of directly implied variables, see fig. F.2. This ratio can also be computed for the maximal BP decimation and no quantitative difference is observed for the locked problems, thus the two reasons above explain also the failure of the, otherwise more efficient, maximal BP decimation.

F.1.3 Survey propagation based decimation

The seminal works [MPZ02, MZ02] not only derived the survey propagation equations, but also suggested it as a base for a decimation algorithm for random 3-SAT. The performance is spectacular, near to the satisfiability threshold on large random 3-SAT formulas it works faster than any other known algorithm. SP based decimation seem to be able to find solutions in O(Nlog⁡N)O(N\log{N}) time up to the connectivity α=4.252\alpha=4.252 in 3-SAT [Par03] (to be compared with the satisfiability threshold αs=4.267\alpha_{s}=4.267).

Survey propagation equations (1.41-1.42) aim to compute the probability (over clusters) that a certain variables is frozen to take a certain value. This information can then be used to design a strategy for the Decimation algorithm. In particular, as long as the result of survey propagation is nontrivial (not all p0i→a=1p_{0}^{i\to a}=1) the variable with the largest bias ∣p+i−p−i∣|p_{+}^{i}-p_{-}^{i}| is chosen and is assigned the more probable value. After a certain fraction of variables is decimated the fixed point of the survey propagation on the reduced formula is trivial. The suggestion of [MPZ02, MZ02] is that such a reduced formula is easily satisfiable and some of the well known heuristic algorithms may be used to solve it (Walk-SAT, see the next section F.2.2, was used in the original implementation). Note also that the original implementation of [MPZ02, MZ02] decimated a fraction of variables at each Decimation step, thus reducing significantly the computational time.

Originally, the success of the survey propagation based algorithm was contributed to the fact that survey propagation equations take into account the clustering of solutions. This was, however, put in doubt since. To give an example, in the locked problems, see sec. 4.3, the survey propagation equations give an identical fixed point as the belief propagation and as we argued in the previous section F.1.2 the maximal BP decimation fails to find solutions in the locked problem in the whole range of connectivities.

The true reason for the high performance of survey propagation in 3-SAT thus stays an open problem. For example, and unlike with BP, there are usually no problems with SP convergence during the decimation. Two very interesting observations were made in [KSS07a] for SP the decimation algorithm on KK-SAT. First, the SP decimation indeed makes the formula gradually simpler for local search algorithms, see sec. F.2.2, again in contrast with BP decimation. Second, the SP decimation on KK-SAT does not create any (or a very small number) of direct implications (unit clauses) during the process. Given that creation of direct implication makes the decimation fail in the locked problems, as we just showed, this might be a promising direction for a new understanding.

F.2 Search of improvement based solvers

Here we describe another large class of CSPs solvers, the search of improvement algorithms. All these algorithms start with a random assignment of variables. Then different rules are adopted to gradually improve this assignment and eventually to find a solution. The most typical example of that strategy is the simulated annealing [KGV83] or stochastic local search algorithms like Walk-SAT [SLM92, SKC94].

In physics simulated annealing is a popular and very universal solver of optimization problems. It is based on running the Metropolis [MRR+53] (or other Monte Carlo) algorithm and gradually decreasing the temperature-like parameter. Simulated annealing algorithm respects the detailed balance condition, after large time it thus converges to the equilibrium state, and it is thus guaranteed to find the optimal state in a finite time for a finite system size. In general, the time can of course depend exponentially on the system size, and in such a case it is not really of practical interest.

We argued in chap. 2 that at the clustering (dynamical) transition the equilibration time of a detailed balance local dynamics diverges. However, the clusters which appear at the dynamical energy Ed>0E_{d}>0 have bottom at an energy Ebottom≤EdE_{\rm bottom}\leq E_{d} and numerical performance of the simulated annealing in the 3-coloring of random graphs [vMS02] suggests that EbottomE_{\rm bottom} might be zero even if EdE_{d} is positive. More precise numerical investigation of this point is, however, needed.

F.2.2 Stochastic local search

Solving KK-SAT by a pure random walk was suggested in [Pap91]:

Pure-Random-Walk-SAT(Tmax)\textnormal{Pure-Random-Walk-SAT}(T_{\rm max}) 1Draw a random assignment of variables; 2T←0T\leftarrow 0; 3repeat Draw a random unsatisfied constraint aa; 4 Flip a random variable ii belonging to aa; 5 T←T+1T\leftarrow T+1; 6 untilSolution is found or T>NTmaxT>NT_{\rm max};

In random 3-SAT this simple strategy seems to work in linear time up to αRW≈2.7\alpha_{\rm RW}\approx 2.7 [SM03]. Improvements of the Pure-Random-Walk-SAT have led to a large class of so-called stochastic local search algorithms. All are based on a random walk in the configurational space with more complicated rules about which variables would be flipped. The version called WalkSAT introduced in [SKC94, SKC96] became, next to the DPLL-based exact solvers, the most widely used solver of practical SAT instances. In random 3-SAT the Walk-SAT with p=0.5p=0.5 was shown to work in linear time up to about αWS=4.15\alpha_{\rm WS}=4.15 [AGK04].

WalkSAT(Tmax,p)\textnormal{WalkSAT}(T_{\rm max},p) 1Draw a random assignment of variables; 2T←0T\leftarrow 0; 3repeat Pick a random unsatisfied constraint aa; 4 if Exists a variable ii in aa that is not necessary in any other constraint; 5 then Flip this variable ii; 6 else if Rand<p\textnormal{Rand}<p; 7 then Flip a random variable ii belonging to aa; 8 else Flip ii (from aa) that minimizes the #\# of unsat. constraints; 9 T←T+1T\leftarrow T+1; 10 untilSolution is found or T>NTmaxT>NT_{\rm max};

Several other variants of stochastic local search on random 3-SAT were studied in [SAO05] showing that with a proper tuning of parameters like pp the linear performance can be extended up to at least α≈4.20\alpha\approx 4.20. Finally a version of the stochastic local search called ASAT was introduced in [AA06]. In random 3-SAT ASAT works in a linear time at least up to α=4.21\alpha=4.21 [AA06]. We adapted the implementation of ASAT and studied its performance in coloring and on the occupation CSPs.

ASAT(Tmax,p)\textnormal{ASAT}(T_{\rm max},p) 1Draw a random assignment of variables; 2T←0T\leftarrow 0; 3Create the list {v}\{v\} of variables which are present in unsatisfied constraints. 4repeat Pick a random variable ii from the list {v}\{v\}; 5 Compute the change of energy ΔE\Delta E if the value of ii is flipped. 6 if ΔE≤0\Delta E\leq 0; 7 then Flip ii; 8 else if Rand<p\textnormal{Rand}<p; 9 then Flip ii; 10 else Do nothing; 11 Update list {v}\{v\} of variables which are present in unsatisfied constraints. 12 T←T+1T\leftarrow T+1; 13 untilSolution is found or T>NTmaxT>NT_{\rm max};

In the coloring problem where variables take one from more than two possible values, the only modification of ASAT is that we choose a random value into which the variable is flipped on line F.2.2. The performance for the 4-coloring of Erdős-Rényi graphs was sketched in fig. 2.3.

There are two free parameters in the ASAT algorithm, the maximal number of steps per variable TmaxT_{\rm max} and, more importantly, the greediness (temperature-like) parameter pp, which need to be optimized. In [AA06] and [ZDEB-5] it was observed that in the random K-SAT and random coloring problems the optimal value of pp does not depend on the system size NN, neither very strongly on the constraint density α\alpha. But these observation might be model dependent, as it indeed seems to be the case for the locked problems.

F.2.3 Belief propagation reinforcement

A ”search of improvement” solver can also be based on the belief propagation equations. The idea of the belief propagation reinforcement, introduced in [CFMZ05] Strictly speaking the reinforcement strategy was fist introduced for the survey propagation equations, but the concept is the same for belief propagation., is to write belief propagation equations with an external ”magnetic” field (site potential) μsii\mu^{i}_{s_{i}}

and then iteratively update this field in order to make the procedure converge to a solution given by the direction of the external field ri=argmaxsiμsiir_{i}={\rm argmax}_{s_{i}}\mu^{i}_{s_{i}}. At every step the configuration given by the direction of the external field is regarded as the current configuration which is being improved.

The question is how to update the external field. The basic idea is to choose the local potential μsii\mu^{i}_{s_{i}} in some way proportional to the current value of the total marginal probability χsii\chi^{i}_{s_{i}}, which is computed without the external fields as

How exactly, and how often should the value of local potential be updated is open to many different implementations, some of them can be found in [BZ06, DRZ08]. The same as in the local search algorithm it is not well understood, beyond a purely experimental level, how the details of the implementation influence the final performance. We tried several ways and the best performing seemed to be the following

where 0≤π≤1/20\leq\pi\leq 1/2, lil_{i} is the degree of variable ii and the auxiliary variable ξsii\xi^{i}_{s_{i}} is computed before updating the field μi\mu^{i}

BP-Reincorcement(Tmax,n,π)\textnormal{BP-Reincorcement}(T_{\rm max},n,\pi) 1Initialize μsii\mu^{i}_{s_{i}} and ψsia→i\psi_{s_{i}}^{a\to i} randomly; 2T←0T\leftarrow 0; 3Compute the current configuration ri=argmaxsiμsiir_{i}={\rm argmax}_{s_{i}}\mu^{i}_{s_{i}}; 4repeat Make nn sweeps of the BP iterations (F.4a-F.4b); 5 Update all the local fields μsii\mu_{s_{i}}^{i} according to (F.6a-F.6b); 6 Update ri=argmaxsiμsiir_{i}={\rm argmax}_{s_{i}}\mu^{i}_{s_{i}}; 7 T←T+1T\leftarrow T+1; 8 until{r}\{r\} is a solution or T>TmaxT>T_{\rm max};

How should the strength of the forcing π\pi be chosen? Empirically we observed three different regimes:

πBP−like<π<0.5\pi_{\rm BP-like}<\pi<0.5: When the forcing is weak the BP-Reinforcement converges very fast to a BP-like fixed point, the values of the local fields do not point towards any solution. On contrary many constraints are violated by the final configuration {ri}\{r_{i}\}.

πconv<π<πBP−like\pi_{\rm conv}<\pi<\pi_{\rm BP-like}: The BP-Reinforcement converges to a solution {ri}\{r_{i}\}.

0<π<πconv0<\pi<\pi_{\rm conv}: When the forcing is too strong the BP-Reinforcement does not converge. And many constraints are violated by the configuration {ri}\{r_{i}\} which is reached after TmaxT_{\rm max} steps.

When the constraint density in the CSP is large the regime b) disappears and πconv=πBP−like\pi_{\rm conv}=\pi_{\rm BP-like}. For an obvious reason our goal is to find πconv<π<πBP−like\pi_{\rm conv}<\pi<\pi_{\rm BP-like}. The point πBP−like\pi_{\rm BP-like} is very easy to find, because for larger π\pi the convergence of BP-Reinforcement to a BP-like fixed point happens in just several sweeps. Thus in all the runs we chose π\pi to be just bellow πBP−like\pi_{\rm BP-like}, that is to hit the possible gap between πBP−like\pi_{\rm BP-like} and πconv\pi_{\rm conv}. The value of π\pi chosen in this way does not seem to depend on the size of the system, it, however, depends slightly on the constraint density.

Experimentally it seems that the optimal number of BP sweeps on line F.2.3 of BP-Reinforcement is very small, typically n=2n=2, in agreement with [CFMZ05]. We observed with a surprise that when nn is much larger not only the total running time is larger but the overall performance of the algorithm is worse.

In the regime where the BP-reinforcement algorithm performs well the median running time TT seems to be independent of the size, leading to an overall linear time complexity. The total CPU time is comparable to the time achieved by the stochastic local search ASAT.

There is an imperfection of our implementation of the BP-reinforcement, because in small fraction of cases, for all connectivities, the algorithm is blocked in a configuration with only 1-3 violated constraints. If this happens we reinforce stronger the problematic variables which sometimes shifts the problem to a different part of the graph, where it might be resolved. Also a restart leads to a solution.

We tested the BP-Reinforcement algorithm mainly in the occupation CSPs, the results are shown in sec. 4.3. Survey propagation reinforcement can be implemented in a similar way, as was done originally in [CFMZ05].

[ZDEB-1]

”The number of matchings in random graphs”

L. Zdeborová, M. Mézard, J. Stat. Mech, P05003 (2006).

This article develops a way how to count matchings in random graphs. We used this as an example to introduce the replica symmetric method in sec. 1.5.4. The main result of this work is that the belief propagation estimates asymptotically correctly the entropy of matchings, this was partially proven on a rigorous level in [BN06].

[ZDEB-2]

”A Hike in the Phases of the 1-in-3 Satisfiability”

E. Maneva, T. Meltzer, J. Raymond, A. Sportiello, L. Zdeborová, In proceedings of the Les Houches Summer School, Session LXXXV 2006 on Complex Systems.

This work on the 1-in-KK SAT problem started as a student project on the summer school in Les Houches 2006: Complex Systems, organized by M. Mézard and J.-P. Bouchaud. This short note contains a non-technical overview of our findings, and appeared in the collection of lecture notes from the school.

[ZDEB-3]

”The Phase Diagram of 1-in-3 Satisfiability”

J. Raymond, A. Sportiello, L. Zdeborová, Phys. Rev. E 76, 011101 (2007)

In this article we present in detail the energetic 1RSB solution of the 1-in-3 SAT problem. We also analyze the performance of the unit clause propagation algorithms. We show how the phase diagram changes from an on average easy to K-SAT like when the probability of negating a variable is varied. An interesting point is the existence of a region where the replica symmetric solution is unstable, yet the unit clause propagation provably finds solutions in a randomized polynomial time. This work is a continuation of [ZDEB-2]. We used the 1-in-K SAT to present the energetic 1RSB solution in sec. 1.7. Note that 1-in-K SAT on factor graphs without leaves is one of the locked problems, this article however studies the Poissonian graph ensemble.

[ZDEB-4]

”Gibbs States and the Set of Solutions of Random Constraint Satisfaction Problems”

F. Krzakala, A. Montanari, F. Ricci-Tersenghi, G. Semerjian, L. Zdeborová, Proc. Natl. Acad. Sci. 104, 10318 (2007).

In this article the clustering transition was defined via the extremality of the uniform measure over solutions, or equivalently via the onset of a nontrivial solution of the 1RSB equations at m=1m=1. The derivation of the 1RSB equations on trees is sketched. This is a basis of our chapter 2. The condensation transition in constraint satisfaction problems, different from the clustering one, was discovered here. This is a basis of our chapter 3. The use of the belief propagation as a solver in the clustered but non-condensed phase was suggested here and studied. The results of this short article are developed in greater detail in [ZDEB-5] for the graph coloring, and in [MRTS08] for the KK-SAT problem. This article is addressed mainly to a mathematical and computer science audience.

[ZDEB-5]

”Phase transition in the Coloring of Random Graphs”

L. Zdeborová, F. Krzakala, Phys. Rev. E 76, 031131 (2007).

This is a detailed article about the phase diagram of the random coloring problem, summarized in chapter 5. We give an overview of the entropic 1RSB solution of the problem. We derive many results about the clustering and condensation transitions. The cavity method study of the frozen variables, as presented in 4.2, is developed here. The conjecture about freezing of variables being relevant for the computational hardness, which we discuss in 4.4, is made here.

[ZDEB-6]

F. Krzakala, L. Zdeborová, Eur. Phys. Lett. 81 (2008) 57005.

In this letter we present the finite temperature phase diagram of the coloring problem, or in other words the antiferromagnetic Potts model on random graphs. We showed the phase diagram in sec. 5.4. We also analyze the stability of the 1RSB solution and in particular show that the colorable phase is 1RSB stable (at least for q≥4q\geq 4). This is reviewed in more detail in appendix D.

[ZDEB-7]

”Phase Transitions and Computational Difficulty in Random Constraint Satisfaction Problems”

F. Krzakala, L. Zdeborová, J. Phys.: Conf. Ser. 95 (2008) 012012.

In this article we present in a accessible and non-technical way the main new results for the phase diagram of the random coloring. This might be a good reading for uninitialized audience. We also summarize the present ideas about the origin of the average computational hardness. This article was presented in the Proceedings of the International Workshop on Statistical-Mechanical Informatics, Kyoto 2007. Chapter 5 is largely inspired by this colloquial presentation.

[ZDEB-8]

”Random subcubes as a toy model for constraint satisfaction problems”

T. Mora, L. Zdeborová, J. Stat. Phys. 131 n.6 (2008) 1121-1138.

In this article we introduced the random subcubes model. It plays the same role for constraint satisfaction problems as the random energy model played for spin glasses. It is an exactly solvable toy model which reproduces the series of phase transitions studied in CSPs. The condensation transition comes out very naturally in this simple model, see sec. 3.1. The space of solutions in the random subcubes model compares even quantitatively to the space of solutions in the qq-coloring and KK-SAT in the limit of large qq and KK near to the satisfiability threshold, as explained in sec. 5.3.1. We also introduced an energy landscape and showed that the glassy dynamics in this model can be understood purely from the static solution.

[ZDEB-9]

”Locked constraint satisfaction problems”

L. Zdeborová, M. Mézard, to be accepted in Phys. Rev. Lett.

In this letter we introduce the locked constraint satisfaction problems, presented in sec. 4.3. The space of solutions of these problems have an extremely easy statistical description, as illustrated e.g. by the second moment computation of the entropy in app. B. On the other hand these problems are algorithmically very challenging, none of the algorithms we tried is able to find solutions in the clustered phase. Some classical algorithms do not work at all in these problems, for example the belief propagation decimation analyzed in app. F. A more detailed version of this article is in preparation.

[ZDEB-10]

”Exhaustive enumeration unveils clustering and freezing in random 3-SAT”

J. Ardelius, L. Zdeborová, submitted to Phys. Rev.

In this letter we study via an exhaustive enumeration the phase space in the random 3-SAT. The main question we addressed here is the relevance of the asymptotic predictions to instances of moderate size. We show that the complexity of clusters compares strikingly well to the analytical prediction. We also locate for a first time the freezing transition and show that it practically coincides with the performance limit of the survey propagation based algorithms. Results of this work appear on several places of the thesis, mainly figs. 1.3, 2.2, and 4.1.

Bibliography

Index