Local max-cut in smoothed polynomial time
Omer Angel, Sébastien Bubeck, Yuval Peres, Fan Wei
Introduction
Let be a connected graph with vertices and be an edge weight function. The local max-cut problem asks to find a partition of the vertices whose total cut weight
There is a natural algorithm to find a local maximum of (1), sometimes referred to as the FLIP algorithm: Start from some initial partition , and until reaching a local maximum, repeatedly find a vertex for which flipping the sign of would increase the cut weight - and carry out this flip. (To be precise, this is a family of algorithms corresponding to different ways of selecting the improving change when there are multiple possibilities.) This algorithm also corresponds to a natural dynamics for the party affiliation game, and a specific implementation (random selection of an improving vertex) exactly corresponds to the asynchronous Hopfield network dynamics described above. However, it is easy to see that there exists weight functions such that FLIP takes an exponential number of steps before reaching a local maximum. As noted in (Johnson et al., 1988) (who introduced the PLS class), this seems at odd with empirical evidence suggesting that algorithms such as FLIP usually reach a local maximum in a reasonable time. This conflicting situation naturally motivates the study of the smoothed complexity of local max-cut: is it true that after adding a small amount of noise to the edge weights, the FLIP algorithm terminates in polynomial time with high probability? In this paper we answer this question affirmatively, provided that a small amount of noise is added to all vertex pairs (i.e., even to non-edges); in other words, we assume that is a complete graph. We note that a similar subtlety arises in the smoothed analysis of the simplex algorithm by (Spielman and Teng, 2004) where noise is added to every entry of the constraint matrix (in particular, the null entries are also smoothed).
Our objective is to find a local maximum of with respect to the Hamming distance . Equivalently, we are looking for a locally optimal cut in the weighted graph (since (1) and (2) differ by the half of the total weight of all edges).
We say that is an improving move from if and . We will sometimes refer to a sequence of improving moves as an improving sequence. The FLIP algorithm iteratively performs improving moves until reaching a configuration with no improving move. An implementation of FLIP specifies how to choose the initial configuration and how to choose among the improving moves available at each step. (Etscheid and Röglin, 2014) show that for any graph with smoothed weights, with high probability, any implementation of FLIP will terminate in at most steps, for some universal constant .
Our main result is that FLIP terminates in a polynomial number of steps for the complete graph. Since our results are asymptotic in , in the rest of the paper we assume for some universal constant .
Let be the complete graph on vertices, and assume the edge weights are independent random variables with and density bounded above by . For any , with high probability any implementation of FLIP terminates in at most steps, with implicit constant depending only on .
Under the assumptions of Theorem 1.1, the expected number of steps of any implementation of FLIP is , with implicit constant depending only on .
Note that any implementation is a very broad category. It includes an implementation where an adversary with unbounded computational power chooses each improving step. Theorem 1.1 implies that even in this case the number of steps is polynomial with high probability.
In the the classical Sherrington-Kirkpatrick model (Sherrington and Kirkpatrick, 1975), a mean field model for a spin glass, the Hamiltonian is exactly a scaled version of the random map defined in (2) and when are i.i.d. Gaussian random variables for all pairs . Therefore our Theorem 1.1 implies that in the in the Sherrington-Kirkpatrick model, the maximal length of a monotone path (along which the energy is decreasing) in the random energy landscape is .
Theorem 1.1 can be equivalently stated as follows.
Let be the complete graph. Assume the edge weights are independent random variables with and density bounded above by . The probability that there is an improving sequence of length is .
We say that a sequence is -slowly improving from an initial state if each step of increases by at most (and more than ). Our main task will be to prove the following proposition:
Fix and let . Then with high probability, there is no -slowly improving sequence of length from any .
Proposition 1.6 implies Theorem 1.5 as follows. Since , the maximum total improvement for is at most . If there exists an improving sequence of length at least then there must exist an improving sequence of length with total improvement less than . Apart from Section 5 the rest of the paper is dedicated to proving Proposition 1.6.
We believe that the exponent in Theorem 1.1 is far from tight. In fact we make the conjecture that local max-cut is in smoothed quasi-linear time:
Let be the complete graph on vertices, and assume the edge weights are independent random variables with and density bounded above by . With high probability any implementation of FLIP terminates in at most steps where is a universal constant.
This quasi-linear time behavior could quite possibly extend to an arbitrary graph ; however, the first step should be to show smoothed polynomial complexity in this setting (that is, to generalize Theorem 1.1 to an arbitrary graph). Some graphs are easier than others. E.g., (Elsässer and Tscheuschner, 2011) observed that for graphs with maximum degree endowed with Gaussian edge weights, with high probability, any implementation of FLIP terminates in a polynomial number of steps. (Since, with high probability, each improving move increases significantly.) In the final section of the paper we show that a natural approach to generalize our result to arbitrary graphs cannot work; the proof relies on a new result on combinatorics of words, which is of independent interest.
Preliminaries
In this section we provide a high-level overview of the proof of Proposition 1.6. We also state and prove some lemmas which will be useful in our analysis.
Recall that we work in the state space and that a move flips the sign of a single vertex. Each move can be viewed as a linear operator, which we define now. For any and , we denote by the state equal to except for the coordinate corresponding to which is flipped. For such there exists a vector such that . More specifically is defined by
Crucially, note that does not depend on . We say that is an improving move from a configuration if . It will be convenient to identify a move with the corresponding vector . Thus we may talk of improving vectors (meaning that ). Similarly, we say that certain moves are linearly independent if the corresponding vectors are.
A rigorous and more general statement in this direction is given in the following lemma.
This turns out not to be sufficient for our needs. However, if a sequence of moves is an improving sequence from some initial state, then every contiguous segment of is also improving from some (different) state. We use the term block to refer to a contiguous segment of some sequence of moves under consideration (we will formally define it in Section 3). Thus to bound the probability that is improving we can instead consider only a segment of our choice of . Note that there are two competing effects in the choice of a segment: on the one hand the probability that a block is -slowly improving is generally much larger than the probability that the full sequence is -slowly improving; on the other hand any given block appears in many different sequences, which yields an improvement in the union bound.
Our proof will proceed in two key steps: (i) find a block of with relatively high rank (this is done in Section 3), and (ii) apply the union bound we alluded to above in a more efficient way so as to replace the term (counting possible initial configurations) by a smaller term (Section 4). To this end, we will want to find a block in which has a high rank and in which the number of distinct symbols is as small as possible.
2. Preliminary linear algebra
The vector is supported precisely on the edges incident to . The entry in corresponding to the edge is , which is also equal to .
We now make the following simple observation.
The rank of does not depend on the initial configuration .
Let be obtained from some initial configuration and let be obtained from another initial configuration . Both matrices are derived from the same sequence . For any vertex and time we have that . Thus the row corresponding to an edge in is times the corresponding row in , and thus these two matrices have the same rank. ∎
Thus the -th entry of the row corresponding to an edge is non-zero, if and only if . If , then the -th entry of the row is the spin of (the other endpoint of the edge) at time , i.e., (which also equals since ).
Bounding the rank of L𝐿L
The goal of this section is to prove Lemma 3.1 which gives a lower bound on the rank of in terms of simple combinatorial properties of . First we introduce some notation.
The next lemma is the main result of this section.
Furthermore, if and does not visit any state more than once, then
, where the sum is over the transition blocks of .
Note that visits a state more than once if for some , or equivalently the block contains every vertex an even number of times. (This clearly is a property of , independent of ). If a sequence is improving, then it cannot revisit any state. We can safely disregard any sequence which fails this condition in later analysis.
(i) Without loss of generality, suppose are the only vertices appearing in , and suppose that . Let be some time at which vertex appears in ; Consider the sub-matrix of restricted to the columns ’s and the rows corresponding to edges for . By our choice of , the column has a non-zero entry at the row corresponding to , and no others, and thus has full rank . If apply the above reasoning to the set of times .
(ii) We first make the following simple observation. Given a sequence which does not revisit any state, if vertex is moved at least twice, then the block between any two consecutive moves of contains some vertex an odd number of times in this block. This is clear, since any block in contains some vertex an odd number of times by an earlier argument.
We create an auxiliary directed graph as follows. The vertices of are the vertices of . For each repeated vertex , there must be a vertex that appears an odd number of times between the first two times appears. We pick one such arbitrarily, and add to a directed edge from to . Note that might contain both an edge and its reverse (e.g. for the sequence ). Each repeated vertex has one out-going edge in , and so has exactly directed edges. Moreover, directed cycles (including cycles of length ) in are vertex-disjoint, and their total length is at most . Let us define a sub-graph of by removing one edge from each directed cycle of . Since the cycles are vertex-disjoint (since the out-degree for each vertex is at most ), we remove at most edges, and obtain an acyclic sub-graph of with at least edges.
Since not all vertices appear in , suppose without loss of generality that vertex does not appear in . Part (ii) of the lemma now follows from the following.
For any acyclic sub-graph of , the following edges correspond to linearly independent rows in : All edges of , together with for vertices .
We prove this by induction on the number of edges in . If is the empty subgraph, these are precisely the rows used to prove part (i). Now suppose is not empty. Since is acyclic, there must be a vertex with in-degree 0 and unique outgoing edge . Suppose we have a linear combination , where is the row corresponding to and the sum is over the edges of the claim. Let be the first two times that moves. By the definition of (see Definition 2.4), the -th and -th entry of are both (since does not move). Furthermore, since appears an odd number of times between the first two appearance of we have that the -th entry and -th entry of are of opposite signs. Furthermore, since has out-degree 1 in and in-degree 0, among the rows we have picked, only the rows and have non-zero entries in positions . We thus have , implying . Thus the linear combination involves only edges of and edges to . Applying the inductive hypothesis to gives that the linear combination is trivial.
(iii) Suppose without loss of generality that are the repeated vertices in . By the definition of , there exist times in different transition blocks at which moves, and for any , there is a singleton vertex that appears in the block .
We claim that the following rows are linearly independent. For each in the edge , and for each repeated vertex , the rows for .
For any repeated vertex , among the rows we have picked, the ones which have non-zero entries at times correspond to the rows of , and for . At those columns, by Lemma 2.3, we can assume the row has all ones. The row has entries before the (unique) appearance of and after the appearance. Thus the minor for these rows and the sequence of times has the form
This clearly has full rank . For singleton vertices appearing at time , the only selected row with no-zero -th entry corresponds to edge . Thus if we group together columns for the repeated vertices, the selected rows of have a block structure, with blocks of the form above along the diagonal and zeros elsewhere. It follows that
Proof of Proposition 1.6
In this section we prove Proposition 1.6, and thus conclude the proof of our main result (Theorem 1.1). We first show in Subsection 4.1 that any improving sequence contains a certain special block which we can use to obtain high rank. Then we conclude the proof of Proposition 1.6 in Section 4.3 with an “improved” union bound argument.
Suppose . For a critical block as in Lemma 4.1, we have
For a critical block with , we have
The two bounds come from Lemmas 3.1 and 4.2. Since , the last bound is obtained by a convex combination of the two preceding bounds. ∎
2. A better bound on improving sequences
Lemma 2.1 implies that the probability that a sequence is -slowly improving from any given is at most , and therefore the probability that is -slowly improving from some is at most . For sequences with large rank this is sufficiently small for our needs. However, for sequences with small rank and small a better bound is needed. The next novel ingredient of our proof is an improvement of this bound that reduces the factor of , provided is small.
Suppose the random weights a.s. have . Then
The key idea is that instead of taking a union over the initial state for the non-moving vertices, we only consider the influence of the non-moving vertices on the moving vertices.
where . One may think of as a constant external field acting on the moving vertices. Finally, the increments of are linear functionals of the weights on edges with both endpoints in . We denote these functionals by , so that
Note that is simply the restriction of to edges with both endpoints in . Observe that depends on the first coordinates of , but not on the other coordinates.
where . If the sequence is -slowly increasing, then
and thus lies in the union of two intervals of length centered at . Note that , since we included in the contributions from the stationary vertex . (This holds also if .) By Lemma 2.1, the probability of this event is at most . Crucially, if we know and for , then the event under consideration is the same for all possible configurations .
The claim now follows by a union bound over the possible values of and . ∎
3. Proof of Proposition 1.6
The summation is over all initial configurations and all possible sequences of improving moves from with moving vertices. There are initial configurations and at most sequences of length . Since , each such sequence has by Lemma 3.1(i). By Lemma 2.1, each term in (5) is bounded by , and so
We turn to the event , that there exists an initial configuration and an -slowly improving sequence of length such that . By Lemma 4.1, on the event for some there exists a critical block using precisely vertices and some initial configuration such that the block is -slowly improving from that configuration. Thus
This sum tends to as when with . ∎
Corollary 1.2 follows easily from the proof of Proposition 1.6:
Suppose an increasing sequence of length exists. Since the total weight of any cut is in , there must be a block of size in such that the total improvement along the block is at most . Let be the probability there is such a block using all letters ( above), and the probability there is a critical block of length using letters.
Let be the number of steps before FLIP terminates. Then we have
and we need to show that the last sum is . For , by (6),
and the sum over is .
For small the bound above is not sufficient, and we need a better rank bound. There are no critical blocks with or . It is easy to check that critical blocks with all have rank . A short exhaustive search yields that critical blocks with have rank or . Since the number of sequences with or is , for we get
A word that is sparse at every scale
Suppose , and that is a sequence of length in an alphabet of letters. Then there exists a block in such that
Since , this shows that has to be greater than which concludes the proof. ∎
It is easy to check that the proof of the rank lower bound given in Lemma 3.1(ii) (and (i)) applies to arbitrary graphs. By using Lemma 5.1 above together with the union bound argument from Section 4.3 one obtains an alternative proof to the quasi-polynomial complexity result of (Etscheid and Röglin, 2014). A tempting approach to prove a polynomial complexity result for any graph would be to “simply” replace the term in Lemma 5.1 by some constant. The main result of this section is to show that this cannot be done, and that the in Lemma 5.1 is tight up to possibly constant factors. As noted above, this can be interpreted as saying that there exist words which are sparse at every scale. In fact, we prove something stronger, as stated in the following theorem.
The construction proving Theorem 5.2 is probabilistic, and implies that there are many sequences with these properties. We do not optimize the constant here in order to keep the proof simple and clean. A more careful analysis will improve .
We create a sequence as follows. In stage one of the construction we write down the (potentially) repeated letters. Each repeated letter is written in some random set of locations, possibly overwriting previous letters. Afterwards, in stage two, all positions where no repeated letters have been written are filled in with new and unique letters. Note that it is possible that a potentially repeated letter is overwritten, and consequently appears only once or even not at all in the final sequence.
2. Negative correlations
Negative correlation of the will follow from the following more general statement.
Let be some finite sets, and pick a uniform element from each set independently. Let be the event that element is never picked. Then the are negatively correlated.
This applies to our model, by taking the sets to be the intervals for and all .
The effect of conditioning on is simple: The element from is chosen uniformly from . Clearly this can only decrease the probability that an element is not selected from any . Since selections are independent, this gives (10).
Now we prove (11). The claim is equivalent to proving
Let be the element picked from . To obtain the law of conditioned on , start with the unconditioned selections, and resample each if , until another element is chosen. If initially (in the unconditioned vector), every element of is selected from some , then this is also true after the resampling, and so the probability of such full occupation is increased. ∎
We use the following generalized Chernoff bounds for negatively correlated events.
Suppose are negatively correlated events, and let be the number of bad events occur. Then for any constant ,
3. Analysis of the construction
Let . Then is increasing in , and . We have that
as this is a telescoping product. Similarly,
With and given, we apply the probabilistic construction above with parameters
Note that , and therefore tends to as .
To estimate , we note that the number of letters in is at least the number of letters added to in stage two:
For blocks of length at least this is . By a union bound, with high probability every block of length at least has
and so . (Shorter blocks have .)
As , this decays as , implying the claim for large enough. By changing we can get the claim also for all smaller . ∎