Testing Bipartiteness in Logarithmic Rounds


Abstract

The seminal work of Goldreich and Ron (Combinatorica, 1999) showed that bipartiteness of bounded-degree graphs can be tested using \(O(\sqrt{n\log n})\) random walks of length \(O(\log^{6} n)\). In this work, we improve their result by showing that \(O(\sqrt{n})\) random walks of length \(O(\log n)\) suffice. As a corollary, we obtain an \(O(\log n)\)-pass, \(O(\sqrt{n}\log n)\)-space streaming algorithm for testing bipartiteness, whose pass complexity is optimal in light of a recent lower bound of Fei, Minzer, and Wang (arXiv, 2026).

Our proof takes a different approach from that of Goldreich and Ron, using the semidefinite programming relaxation for Max-Cut introduced by Goemans and Williamson (J. ACM, 1995).

1 Introduction↩︎

Property testing studies the task of deciding whether a large object satisfies a prescribed property or is far from every object satisfying that property, while inspecting only a small portion of the input. In this paper, we study graph property testing in the adjacency-list model, formally defined below.

Definition 1. In the adjacency-list model for graph property testing, an algorithm accesses the input graph \(G=([n],E)\) through the following two types of oracle queries.

  1. Degree queries: given a vertex \(v\in[n]\), the oracle returns its degree in \(G\), denoted \(\deg_G(v)\).

  2. Local neighbor queries: given a pair \((v,i)\in[n]\times\mathbb{Z}\), the oracle returns the \(i\)th neighbor of \(v\) in \(G\) if \(1\leqslant i\leqslant\deg_G(v)\),3 and returns a special symbol \(\perp\) otherwise.

Definition 2. For \(\varepsilon\in(0,1)\), an \(\varepsilon\)-tester for a graph property \(\mathcal{P}\) (in the adjacency-list model) is a randomized algorithm that, given access to an input graph \(G=([n],E)\), achieves the following.

  1. If \(G\in\mathcal{P}\), the tester accepts \(G\) with probability at least \(2/3\).

  2. If \(|E\triangle E'| \geqslant\varepsilon |E|\) for every graph \(G'=([n],E')\in\mathcal{P}\) on the same vertex set (in other words, if at least \(\varepsilon|E|\) edge must be added or deleted in order to make \(G\) satisfy \(\mathcal{P}\)), the tester rejects \(G\) with probability at least \(2/3\).

One of the most basic and influential problems in this model is testing bipartiteness. The seminal work of Goldreich and Ron [1] gave a sublinear-time tester for bipartiteness based on random walks.4 Their tester samples a collection of starting vertices, performs random walks from each of them, and rejects if it finds two walks from the same starting vertex that end at the same vertex with different parities. Quantitatively, their analysis shows that \(O(\sqrt{n\log n})\) random walks of length \(O(\log^{6} n)\) suffice. This result has become a cornerstone of the area, both as a canonical example of a random-walk-based tester and as a key primitive in subsequent work on testing graph properties; see, for example, [3][11].

Despite the conceptual simplicity of the tester, the analysis in [1] is quite intricate. When the input graph is a good expander, the argument is simple: Goldreich and Ron showed that \(O(\sqrt{n})\) random walks of length \(O(\log n)\) already suffice. The difficulty lies in handling graphs with no expansion guarantee. To do so, they prove that the graph can be decomposed into expander-like pieces,5 and then argue that only a small fraction of edges go between different pieces. This decomposition-based approach incurs losses of \(\operatorname{polylog}(n)\) factors,6 and makes the proof substantially more complicated than the expander case.

In this work, we give a different analysis of the Goldreich–Ron tester that avoids these losses. In particular, we show that the parameters from the expander case in fact suffice for arbitrary graphs.

Theorem 1 (Informal). In the adjacency-list model, for any \(\varepsilon\in (0,1)\) there is an \(\varepsilon\)-tester for bipartiteness that, given an \(n\)-vertex simple graph (without isolated vertices), performs \(O_{\varepsilon}(\sqrt{n})\) random walks of length \(O_{\varepsilon}(\log n)\).

Remark 1. The query complexity of the algorithm in 1 is \(O(\sqrt{n}\log n)\); the best known lower bound on the query complexity is \(\Omega(\sqrt{n})\), due to Goldreich and Ron [12].

1.1 Discussion: Max-Cut Value↩︎

A property tester may be viewed as an algorithm that approximates the distance of an input to satisfying a property, albeit in a very coarse sense: it only distinguishes zero distance from sufficiently large distance. In the adjacency-list model, the distance of a graph to bipartiteness is directly related to its Max-Cut value.

Definition 3. Given a graph \(G=([n],E)\),7 the Max-Cut value of \(G\) is \[\label{eq:def95max95cut} \mathrm{val}_{\mathrm{MC}}(G) = \max_{f:[n]\to\{0,1\}} \frac{1}{|E|} \sum_{\{u,v\}\in E}\mathbb{1} \left[ f(u)\neq f(v) \right] .\tag{1}\] Equivalently, \(\mathrm{val}_{\mathrm{MC}}(G)\) is the maximum fraction of edges crossing a bipartition of the vertex set.

It is easy to see from 2 that testing bipartiteness with proximity parameter \(\varepsilon\) is the same as distinguishing graphs of Max-Cut value \(1\) from graphs of Max-Cut value at most \(1-\varepsilon\). We formalize this using the following standard promise-problem notation.

Definition 4. Fix a completeness parameter \(c\in(0,1]\) and a soundness parameter \(s\in[0,c)\). The promise problem \(\mathsf{MaxCut}[c,s]\) is the following decision problem: given a graph \(G\), distinguish between (1) the yes case, where \(\mathrm{val}_{\mathrm{MC}}(G)\geqslant c\), and (2) the no case, where \(\mathrm{val}_{\mathrm{MC}}(G)\leqslant s\). A randomized algorithm must accept with probability at least \(2/3\) in the yes case and reject with probability at least \(2/3\) in the no case.

Assuming \(\mathbf{P}\neq \mathbf{NP}\) and the Unique Games Conjecture, the range of parameters \(c,s\) for which \(\mathsf{MaxCut}[c,s]\in \mathbf{P}\) is now well understood [13][15]. In particular, given a graph \(G=([n],E)\), the semidefinite programming (SDP) rounding algorithm of Goemans and Williamson [13] outputs (in \(\mathrm{poly}(n)\) time) a bipartition of \([n]\) that cuts at least \(0.87856\cdot \mathrm{val}_{\mathrm{MC}}(G)\) fraction of the edges of \(G\). Consequently, for every \(c\in(0,1]\), the promise problem \(\mathsf{MaxCut}[c,\,0.878\,c]\) is in \(\mathbf{P}\). Moreover, when the completeness parameter \(c\) is close to \(1\), one can obtain a better soundness guarantee:

Theorem 2 ([13]). For any rational numbers \(\varepsilon,\varepsilon'\in(0,1)\) such that \(\varepsilon'>\sqrt{\varepsilon}\), we have \(\mathsf{MaxCut}[1-\varepsilon,1-\varepsilon']\in \mathbf{P}.\)

Goemans and Williamson proved 2 by showing that if a certain semidefinite programming relaxation of the maximization problem in 1 has value at least \(1-\varepsilon\), then its solution can be rounded to an actual bipartition achieving Max-Cut value at least \(1-\sqrt{\varepsilon}\). We formalize this statement in 7. This theorem will be a crucial tool in the proof of 1, as we now explain.

The original analysis of Goldreich and Ron proceeds by showing that, if the random-walk tester fails to find a violation with constant probability, then the graph must contain a large cut. Without expansion assumptions, however, the most direct consequence of a low rejection probability is only local: for many vertex subsets \(V\subseteq[n]\), there exists a good bipartition of the subgraph induced by \(V\). To patch these local bipartitions into a global cut \(f:[n]\to\{0,1\}\), one needs the subsets \(V\) to be disjoint. This led Goldreich and Ron to iteratively peel off such subsets after finding local bipartitions. The difficulty is that random walks started in the residual graph may enter previously peeled-off sets \(V\). As a result, their analysis requires sufficiently long walks so that the walk returns to the residual graph many times.

Using 7, we can relax the goal: instead of directly constructing a large cut under the assumption that the random-walk tester rejects with low probability, it suffices to construct a good solution to the Goemans–Williamson SDP. The smoothness of the SDP makes it much easier to combine local information without requiring the underlying vertex subsets to be disjoint. In particular, local SDP solutions can be patched together by using the elementary fact that sums of positive semidefinite matrices remain positive semidefinite.

Remark 2. We note that our sublinear-time algorithm itself (which is the same as in [1]) does not compute an approximate solution to the Goemans–Williamson SDP, nor does it output an approximate Max-Cut. These approximate solutions are only shown to exist in the analysis, under the assumption that the tester rejects with low probability.

1.2 Discussion: Multi-Pass Streaming↩︎

In the multi-pass streaming model, the edges of an input graph \(G=([n],E)\) are presented as an (adversarially ordered) data stream, and the algorithm is allowed to make multiple passes over the stream while maintaining a small memory space. This sublinear-space model is closely related to the adjacency-list model for sublinear-query algorithms, as evidenced by, for example, a recent work of Fei, Minzer and Wang [16]. In particular, 1 essentially implies the following result:

Theorem 3. For any \(\varepsilon\in (0,1)\), there is an \(O_{\varepsilon}(\log n)\)-pass \(O_{\varepsilon}(\sqrt{n}\log n)\)-space randomized streaming algorithm for \(\mathsf{MaxCut}[1,1-\varepsilon]\) on graphs with \(n\) vertices and \(\mathrm{poly}(n)\) edges.

The \(O(\log n)\) pass complexity in 3 is asymptotically optimal, due to the following lower bound of Fei, Minzer and Wang [17]:

Theorem 4 ([17]). Fix an arbitrary constant \(\varepsilon\in (0,1)\). Then any \(o(\log n)\)-pass randomized streaming algorithm for \(\mathsf{MaxCut}[1,\frac{1}{2}+\varepsilon]\) on graphs with \(n\) vertices and \(O(n)\) edges must use at least \(n^{1-o(1)}\) bits of memory.

1.3 Related Work and Open Problems↩︎

There has been some interest in obtaining tolerant testers for bipartiteness in the adjacency-list model. In the terminology used here, tolerant testing can be formulated as the gap problem \(\mathsf{MaxCut}[1-\varepsilon,1-\varepsilon']\) for constants \(0<\varepsilon<\varepsilon'<1/2\). Existing sublinear-query algorithms for such problems [18], [19] require additional assumptions on the input graph, such as expansion or clusterability. It is therefore natural to ask whether the connection between random-walk-based testing and semidefinite programming can be used to design sublinear-time tolerant testers for general graphs.

Problem 5. Does there exist a constant \(\varepsilon\in(0,1/4)\) such that \(\mathsf{MaxCut}[1-\varepsilon,1/2+\varepsilon]\) admits a sublinear-query algorithm in the adjacency-list model?

We note that query lower bounds of \(n^{1/2+\Omega_{\varepsilon}(1)}\) are known for \(\mathsf{MaxCut}[1-\varepsilon,1/2+\varepsilon]\), due to [20], [21].

Max-Cut is a special case of a constraint satisfaction problem (CSP), and testing bipartiteness in the adjacency-list model can be viewed as a special case of testing satisfiability of CSP instances.8 The general question of which CSPs admit sublinear-time satisfiability testers has received some attention [20], [22][26]. In particular, recent work [26] shows that testing satisfiability of any unbounded-width9 CSP requires \(\Omega(n)\) queries, leaving open the case of bounded-width CSPs. Besides Max-Cut, another prominent bounded-width CSP is \(\mathsf{2SAT}\). It would be very interesting to understand whether satisfiability of \(\mathsf{2SAT}\) instances can be tested in sublinear time.

Problem 6. Does there exist a constant \(\varepsilon\in(0,1/4)\) such that \(\mathsf{Max2SAT}[1,3/4+\varepsilon]\) admits a sublinear-query algorithm in the bounded-degree model?10

We remark that for every soundness parameter \(s<3/4\), Yoshida [24] gives a constant-query algorithm for \(\mathsf{Max2SAT}[1,s]\) in the bounded-degree model. We also note that, due to semidefinite programming, \(\mathsf{Max2SAT}\) behaves similarly to \(\mathsf{MaxCut}\) in the regime of 2; see [28].

2 Preliminaries↩︎

In this section, we first recall the Goemans–Williamson SDP [13] and the Goldreich–Ron algorithm [1]. In 2.2, we state our main technical theorem (9) and show how it implies [thm:main_informal,thm:streaming]. Finally, in 2.3, we introduce notation that will be used in the proof of 9 in 3.

2.0.0.1 Notation.

Throughout the remainder of the paper, let \(G=([n],E)\) be a graph with vertex set \([n]\), where \(E\) is the multiset of edges of \(G\). We assume that \(n\geqslant 2\) and \(|E|\geqslant 1\). Let \(A\in\mathbb{Z}^{n\times n}\) denote the adjacency matrix of \(G\): for distinct vertices \(i,j\in[n]\), the entry \(A_{ij}\) is the multiplicity of the edge \(\{i,j\}\) in \(E\). Thus \(A\) is symmetric, and since \(G\) has no self-loops, all diagonal entries of \(A\) are zero.

The simple random walk on \(G\) is the Markov chain with state space \([n]\) which, at each step, chooses an incident edge uniformly at random (counting multiplicities) and moves to the other endpoint of that edge. The lazy random walk on \(G\) is the Markov chain with state space \([n]\) which, at each step, performs a simple-random-walk step with probability \(1/2\) and stays at the current vertex with probability \(1/2\).

2.1 Semidefinite Programming↩︎

We use the following formulation of the Goemans–Williamson SDP.

Definition 5. For a symmetric matrix \(A\in\mathbb{Z}^{n\times n}\), let \(\mathrm{\small BasicSDP}_{A}\) denote the following semidefinite program, whose variables are the entries of a positive semidefinite matrix \(X\in\mathbb{R}^{n\times n}\):

\[\begin{align} {3} \mathrm{maximize} \quad && \frac{1}{2}-\frac{\mathrm{tr}(AX)}{2\cdot\mathbf{1}^{T}A\mathbf{1}} \tag{2}\\ \mathrm{subject to} \quad && X_{ii} &\leqslant 1 \quad && \forall\, i\in[n], \tag{3}\\ && X &\succeq 0. \nonumber \end{align}\]

Remark 3. The quantity \(\mathbf{1}^{T}A\mathbf{1}\) appearing in 2 is the sum of all entries of \(A\), and hence equals \(2|E|\). In the standard formulation of the Goemans–Williamson SDP, the diagonal constraints are \(X_{ii}=1\) rather than \(X_{ii}\leqslant 1\). The two formulations are equivalent here: the diagonal entries of \(A\) are all zero, so changing the diagonal entries of \(X\) does not affect the objective, and increasing diagonal entries preserves positive semidefiniteness.

We will use the following key property of the Goemans–Williamson SDP.

Theorem 7 ([13]). For any \(\varepsilon\in[0,1]\), if the optimal value of \(\mathrm{\small BasicSDP}_{A}\) is at least \(1-\varepsilon\), then the Max-Cut value of \(G\) is at least \(1-\sqrt{\varepsilon}\).

2.2 The Goldreich–Ron Algorithm↩︎

Given the graph \(G=([n],E)\), a positive integer \(m\) and a parameter \(\varepsilon\in(0,1)\), let \(\mathrm{\small BipTest}(G,m,\varepsilon)\) denote the algorithm presented in 1.

Figure 1: \mathrm{\small BipTest}(G,m,\varepsilon)

The algorithm \(\mathrm{\small BipTest}(G,m,\varepsilon)\) is clearly a one-sided-error tester, in the following sense.

Proposition 8. If \(G\) is bipartite, then for any positive integer \(m\) and parameter \(\varepsilon\in (0,1)\), the algorithm \(\mathrm{\small BipTest}(G,m,\varepsilon)\) accepts with probability 1.

Proof. It is clear that whenever the “if” condition in [line:odd95cycle] of 1 is satisfied, the algorithm has found an odd cycle in \(G\), which means \(G\) cannot be bipartite. ◻

We are now ready to state our main technical theorem.

Theorem 9 (Main theorem). Fix an arbitrary parameter \(\varepsilon\in (0,1)\). Let \(t=\left\lceil 200\varepsilon^{-8}\log_{2}n\right\rceil\) and \(\varepsilon'=\varepsilon^{4}/9\). If \(\mathrm{\small BipTest}(G,4t,\varepsilon')\) (1) rejects with probability at most \(2/3\), then the Max-Cut value of \(G\) is at least \(1-\varepsilon\).

Since every step of 1 can be readily implemented in the multi-pass streaming model, we immediately obtain 3 from 9.

Proof of 3 assuming 9. Fix a positive integer \(t\) and a parameter \(\varepsilon\in (0,1)\). Let \(\varepsilon'=\varepsilon^{4}/9\) and \(k=\left\lceil 10^{3}\varepsilon'^{-1}\sqrt{n}\right\rceil\). Consider the algorithm \(\mathrm{\small BipTest}(G,4t,\varepsilon')\). We claim that all \(\lceil 4/\varepsilon'\rceil\cdot k\) random walks in \(\mathrm{\small BipTest}(G,4t,\varepsilon')\) can be simulated by a streaming algorithm in parallel. Indeed, to advance one step in all the random walks, it clearly suffices to take 2 additional passes over the stream of edges. Therefore the algorithm \(\mathrm{\small BipTest}(G,4t,\varepsilon)\) can be implemented in \(8t+O(1/\varepsilon')\) passes and \(O(\varepsilon'^{-1}k\log n)\) space.

Plugging 9 into the above, we obtain a streaming algorithm for \(\mathsf{MaxCut}[1,1-\varepsilon]\) using \(O(\varepsilon^{-8}\log n)\) passes and \(O(\varepsilon^{-8}\sqrt{n}\log n)\) bits of memory. ◻

To implement 1 in the adjacency-list model, the only step that requires special attention is [line:sample95edge], where we need to sample vertices with probability proportional to their degrees.

Proof of 1 assuming 9. Fix a parameter \(\varepsilon\in (0,1)\). Let \[\varepsilon'=\varepsilon^{4}/9,\qquad k=\left\lceil 10^{3}\varepsilon'^{-1}\sqrt{n}\right\rceil,\qquad\text{and}\qquad t=\left\lceil 200\varepsilon^{-8}\log_{2}n\right\rceil.\] On any \(n\)-vertex simple graph \(G\) with no isolated vertices, the algorithm of Eden and Rosenbaum [29] is able to produce an edge of \(G\) that is \((\varepsilon'/40)\)-close to uniformly random (in total variation distance) over \(E\), using \(O(\varepsilon'^{-2}\sqrt{n})\) queries in the adjacency-list model. Using the Eden–Rosenbaum algorithm as a subroutine on [line:sample95edge] of 1, we can thus approximately simulate \(\mathrm{\small BipTest}(G,4t,\varepsilon')\) in the adjacency-list model with additive error at most \[\frac{\varepsilon'}{40}\cdot \lceil4/\varepsilon'\rceil\leqslant\frac{1}{5}.\] Furthermore, this approximate simulation of \(\mathrm{\small BipTest}(G,4t,\varepsilon')\) still accepts with probability 1 if \(G\) is bipartite. Therefore, by 9, this approximate simulation is a one-sided-error \(\varepsilon\)-tester for the bipartiteness of \(G\) with no-case rejection probability at least \(\frac{2}{3}-\frac{1}{5}=\frac{7}{15}\). Repeating the simulation twice yields a one-sided-error \(\varepsilon\)-tester with rejection probability at least \[1-\left(1-\frac{7}{15}\right)^{2}\geqslant\frac{2}{3}.\]

The final algorithm performs \(2k\cdot \lceil 4/\varepsilon'\rceil=O(\varepsilon^{-8}\sqrt{n})\) random walks of length \(4t=O(\varepsilon^{-8}\log n)\), and has total query complexity at most \(O(\varepsilon'^{-2}\sqrt{n})+8kt\cdot\lceil 4/\varepsilon'\rceil=O(\varepsilon^{-16}\sqrt{n}\log n)\). ◻

The rest of the paper is devoted to proving 9.

2.3 Probability Space and Random Walk↩︎

In this subsection, we set up the notation that will be used in 3.

Recall from [line:sample95edge] of 1 that we sample vertices of \(G\) with probability proportional to their degrees. Throughout the rest of the paper, we denote this distribution by \(\mu\).

Definition 6. Let \(\mu\) be the probability distribution on \([n]\) defined by \[\mu(\{i\}) = \frac{\deg_G(i)}{2|E|} = \frac{1}{2|E|}\sum_{j=1}^{n} A_{ij} \qquad\text{for all } i\in[n].\]

We regard \(([n],\mu)\) as a probability space and use the following standard notation.

Definition 7. Let \(L^{2}(\mu)\) denote the vector space of all functions \([n]\to\mathbb{R}\), equipped with the inner product \[\left\langle f, g \right\rangle = \underset{i\sim\mu} \mathbb{E}\left[ f(i)g(i) \right] \qquad\text{for all } f,g:[n]\to\mathbb{R}.\] For \(f\in L^{2}(\mu)\) and \(p\geqslant 1\), define \[\|f\|_{p} = \left(\underset{i\sim\mu} \mathbb{E}\left[ |f(i)|^{p} \right] \right)^{1/p}.\]

Definition 8. A function \(f:[n]\to[0,+\infty)\) satisfying \(\|f\|_{1}=1\) is called a probability density function with respect to \(\mu\). Given such a function \(f\), we write \(f\,\mathrm{d}\mu\) for the probability distribution on \([n]\) that assigns probability mass \(f(i)\mu(\{i\})\) to each element \(i\in[n]\).

For any vertex \(v\in [n]\) that is not isolated in \(G\), we have \(\deg_{G}(v)\geqslant 1\) and \(\mu(\{v\})>0\). The point-mass distribution at \(v\) can then be represented by the following density function.

Definition 9. For any non-isolated vertex \(v\in [n]\), we define a probability density function \(\delta_{v}:[n]\rightarrow [0,+\infty)\) by \[\delta_{v}(u)=\begin{cases} \mu(\{v\})^{-1},&\text{if }v=u,\\ 0,&\text{if }v\neq u. \end{cases}\] Equivalently, let the distribution \(\delta_{v}\,\mathrm{d}\mu\) be the point mass at \(v\).

The main benefit of the notational framework we have established is that the simple random walk on \(G\) can be represented neatly by a linear operator on the inner product space \(L^{2}(\mu)\).

Definition 10. Define the simple-random-walk operator \(P:L^{2}(\mu)\rightarrow L^{2}(\mu)\) as follows: for any function \(f\in L^{2}(\mu)\), the function \(Pf\) is defined by \[Pf(i)=\frac{\sum_{j=1}^{n}A_{ij}f(j)}{\sum_{j=1}^{n}A_{ij}}\qquad\text{for all }i\in [n].\]

Note that for any function \(f:[n]\rightarrow\mathbb{R}\), the value of \(Pf\) at a vertex \(i\in [n]\) is the average \(f\)-value of the neighbors of \(i\). The fact that the simple random walk is a reversible Markov chain will be crucial to our proof. It implies that \(P\) is a self-adjoint operator with respect to the inner product on \(L^{2}(\mu)\). More concretely, it has the following standard consequence.

Proposition 10. Fix a non-isolated vertex \(v\in [n]\) and a nonnegative integer \(r\). If we perform a simple random walk of length \(r\) on \(G\) starting from \(v\), then the distribution of the endpoint of the walk is \((P^{r}\delta_{v})\,\mathrm{d}\mu\).

Proof. For any vertex \(u\), the probability of \(u\) under the distribution \((P^{r}\delta_{v})\,\mathrm{d}\mu\) is \[\begin{align} \sum_{\substack{(v_{0},v_{1},\dots,v_{r})\in [n]^{r+1}\\ v_{0}=u}}\frac{\prod_{i=0}^{r-1}A_{v_{i}v_{i+1}}}{\prod_{i=0}^{r-1}\deg_{G}(v_{i})}\delta_{v}(v_{r})\mu(\{u\})&=\sum_{\substack{(v_{0},v_{1},\dots,v_{r})\in [n]^{r+1}\\ v_{0}=u,\; v_{r}=v}}\frac{\prod_{i=0}^{r-1}A_{v_{i}v_{i+1}}}{\prod_{i=1}^{r}\deg_{G}(v_{i})}}\\ &=\sum_{\substack{(v_{r},v_{r-1},\dots,v_{0})\in [n]^{r+1}\\ v_{r}=v,\; v_{0}=u}}\prod_{i=0}^{r-1}\frac{A_{v_{r-i}v_{r-i-1}}}{\deg_{G}(v_{r-i})},\end{align}\] which clearly equals the probability that a simple random walk of length \(r\) starting from \(v\) ends at \(u\). ◻

3 Proof of Main Result↩︎

In this section, we prove the main technical theorem, 9. The proof consists of four main steps, carried out in [subsec:birthday,subsec:solution_SDP,subsec:remove_parity,subsec:mixing], respectively. In 3.5, the four steps will be combined together to conclude the proof.

3.1 Birthday Paradox↩︎

In each iteration of the “for” loop on [line:each95vertex95v] of 1, the algorithm collects \(O(\sqrt n)\) endpoints of lazy random walks. These endpoints can be partitioned into two sets according to the parity of the number of non-lazy steps taken. If the algorithm does not reject on [line:reject], then these two sets must be disjoint.

This observation naturally leads to a birthday-paradox argument: if we draw \(O(\sqrt n)\) samples from each of two distributions on \([n]\) and observe no collision with high probability, then the two distributions must be far apart in total variation distance.

Before carrying out this argument in 1, we first define several operators that will be used there and throughout the rest of the paper.

Definition 11. We define two operators \(W,S:L^{2}(\mu)\rightarrow L^{2}(\mu)\) by letting \(W=\frac{1}{2}(I+P)\) and \(S=\frac{1}{2}(I-P)\). For any nonnegative integer \(r\), define two operators \(Q_{r},R_{r}:L^{2}(\mu)\rightarrow L^{2}(\mu)\) by \[Q_{r}=W^{r}+S^{r}\qquad\text{and}\qquad R_{r}=W^{r}-S^{r}.\]

Lemma 1. Fix a parameter \(\varepsilon\in(0,1)\), a non-isolated vertex \(v\in[n]\), and a positive integer \(m\). Suppose that \[\left\|Q_m\delta_v-R_m\delta_v\big.\right\|_1\leqslant 2-\varepsilon .\] If we perform \(k\geqslant 10^{3}\varepsilon^{-1}\sqrt{n}\) lazy random walks of length \(m\) on \(G\), each starting from \(v\), then with probability at least \(2/3\) there exists a vertex \(u\in[n]\) that is the endpoint of both a walk with an odd number of non-lazy steps and a walk with an even number of non-lazy steps.

Proof. The number of non-lazy steps in a lazy random walk of length \(m\) follows the binomial distribution \(\mathrm{Bin}(m,\frac{1}{2})\), and hence is even with probability exactly \(\frac{1}{2}\). Furthermore, using 10, it is easy to see that conditioned on the number of non-lazy steps being even, the distribution of the endpoint is given by the probability density function \[\left(\left(\frac{I+P}{2}\right)^{m}+\left(\frac{I-P}{2}\right)^{m}\right)\delta_{v}=Q_{m}\delta_{v}.\] Similarly, conditioned on the number of non-lazy steps being odd, the distribution of the endpoint is \(R_{m}\delta_{v}\,\mathrm{d}\mu\). Since the total variation distance between the two conditional distribution is \[\left\|Q_{m}\delta_{v}\,\mathrm{d}\mu -R_{m}\delta_{v}\,\mathrm{d}\mu\big.\right\|_{\mathrm{TV}}=\frac{1}{2}\left\|Q_m\delta_v-R_m\delta_v\big.\right\|_1\leqslant 1-\frac{\varepsilon}{2},\] the desired conclusion follows from standard birthday paradox arguments (4). ◻

Using 1, we can now convert the assumption that 1 rejects with low probability into a clean analytic statement:

Corollary 1. Fix a positive integer \(m\) and a parameter \(\varepsilon\in (0,1)\). Suppose \(\mathrm{\small BipTest}(G,m,\varepsilon)\) (1) rejects with probability at most \(2/3\). Then \[\underset{v\sim \mu} \mathbb{E}\left[ 2-\left\|Q_m\delta_v-R_m\delta_v\big.\right\|_1\Big. \right] \leqslant 2\varepsilon.\]

Proof. Assume that the conclusion does not hold. Since \(\left\|Q_m\delta_v-R_m\delta_v\big.\right\|_1\leqslant 2\) for any \(v\in [n]\),11 it follows that \[\underset{ v\sim \mu }\mathbb{P}\left[ 2-\left\|Q_m\delta_v-R_m\delta_v\big.\right\|_1\geqslant\varepsilon\Big. \right]\geqslant\frac{\varepsilon}{2}.\] Therefore, when \(v\) is sampled from \(\mu\), with probability at least \(\varepsilon/2\) the conclusion of 1 holds for \(v\). This implies that in each iteration of the “for” loop on [line:each95vertex95v] of 1, the algorithm rejects on with probability at least \(\varepsilon/3\) on [line:reject]. Since there are \(\lceil 4/\varepsilon\rceil\) iterations of this “for” loop, and each iteration uses independent randomness, it follows that \(\mathrm{\small BipTest}(G,m,\varepsilon)\) accepts with probability at most \((1-\varepsilon/3)^{4/\varepsilon}<1/3\). This contradicts the assumption that \(\mathrm{\small BipTest}(G,m,\varepsilon)\) accepts with probability at most \(2/3\). ◻

3.2 Approximate Solution to the SDP↩︎

In this subsection, we construct a feasible solution to the Goemans–Williamson SDP using the random walk operators defined in 11. We will then prove in [subsec:remove_parity,subsec:mixing,subsec:conclude] that this feasible solution achieves a value close to 1 if 1 rejects with low probability.

As argued in the proof of 1, the functions \(Q_{m}\delta_{v}\) and \(R_{m}\delta_{v}\) are probability density functions for any non-isolated vertex \(v\) and positive integer \(m\). In particular, they are nonnegative functions, and hence the following definition is justified.

Definition 12. For any non-isolated vertex \(v\in [n]\) and any nonnegative integer \(r\), we define a function \(f_{v}^{(r)}\in L^{2}(\mu)\) by \[f^{(r)}_{v}=\sqrt{\frac{1}{2}Q_{r}\delta_{v}}-\sqrt{\frac{1}{2}R_{r}\delta_{v}}.\]

Roughly speaking, the function \(f_{v}^{(r)}\) corresponds to a “local bipartition” of a subset of vertices found in an iteration of Goldreich and Ron’s analysis (see [1]). As mentioned in 1.1, the key benefit of working with the SDP relaxation of Max-Cut is that these “local bipartitions” can be effortlessly patched together into a positive semidefinite matrix:

Proposition 11. Let \(r\) be a fixed positive integer. If we define \(X\in \mathbb{R}^{n\times n}\) by letting \[\label{eq:def95of95X} X_{ij}=\underset{v\sim\mu} \mathbb{E}\left[ f_{v}^{(r)}(i)f_{v}^{(r)}(j) \right]\tag{4}\] for each \(i,j\in [n]\), then we have

  1. \(X\) is positive semi-definite,

  2. \(X_{ii}\leqslant 1\) for any \(i\in [n]\), and

  3. \(\mathrm{tr}(AX)=2|E|\cdot \underset{v\sim \mu} \mathbb{E}\left[ \left\langle f_{v}^{(r)}, Pf_{v}^{(r)} \right\rangle \right]\).

Proof. For any vector \(a\in \mathbb{R}^{n}\), we have \[a^{T}Xa=\underset{v\sim\mu} \mathbb{E}\left[ \left(\sum_{i=1}^{n}a_{i}f^{(r)}_{v}(i)\right)^{2} \right] \geqslant 0.\] Combined with the obvious fact that \(X\) is symmetric, this implies \(X\) is positive semi-definite.

For any \(i\in [n]\), we have \[X_{ii}=\underset{v\sim \mu} \mathbb{E}\left[ f_{v}^{(r)}(i)^{2} \right] \leqslant\underset{v\sim \mu} \mathbb{E}\left[ \frac{1}{2}Q_{r}\delta_{v}(i)+\frac{1}{2}R_{r}\delta_{v}(i) \right] = \underset{v\sim \mu} \mathbb{E}\left[ W^{r}\delta_{v}(i)\Big. \right] =W^{r}\mathbf{1}(i)=1.\]

We also have the direct calculation \[\begin{align} \mathrm{tr}(AX)&=\sum_{i=1}^{n}\sum_{j=1}^{n}A_{ij}\underset{v\sim\mu} \mathbb{E}\left[ f_{v}^{(r)}(i)f_{v}^{(r)}(j) \right] }\\ &=\underset{v\sim\mu} \mathbb{E}\left[ 2|E|\cdot\underset{i\sim \mu} \mathbb{E}\left[ f_{v}^{(r)}(i)\cdot \frac{\sum_{j=1}^{n}A_{ij}f_{v}^{(r)}(j)}{\sum_{j=1}^{n}A_{ij}} \right] \right] }\\ &=2|E|\cdot \underset{v\sim\mu} \mathbb{E}\left[ \left\langle f_{v}^{(r)}, Pf_{v}^{(r)} \right\rangle \right] ,} \end{align}\] which proves the desired identity in the third item. ◻

Corollary 2. The optimal value of \(\mathrm{\small BasicSDP}_{A}\) is at least \[1-\frac{1}{2}\cdot\inf_{r\in\mathbb{Z},\,r>0}\left\{\underset{v\sim \mu} \mathbb{E}\left[ \left\langle f_{v}^{(r)}, Pf_{v}^{(r)} \right\rangle+1 \right] \right\}.\]

Proof. For any positive integer \(r\), the matrix \(X\in \mathbb{R}^{n\times n}\) defined in 4 is a feasible solution to \(\mathrm{\small BasicSDP}_{A}\), due to the first and second conclusions of 11. The value achieved by this matrix \(X\) is \[\frac{1}{2}-\frac{1}{4|E|}\cdot\mathrm{tr}(AX)\geqslant 1-\frac{1}{2}\cdot \underset{v\sim \mu} \mathbb{E}\left[ \left\langle f_{v}^{(r)}, Pf_{v}^{(r)} \right\rangle+1 \right] ,\] where the inequality follows from the third conclusion of 11. Therefore, the optimal value of \(\mathrm{\small BasicSDP}_{A}\) is at least \[\label{eq:opt95at95least} 1-\frac{1}{2}\cdot \underset{v\sim \mu} \mathbb{E}\left[ \left\langle f_{v}^{(r)}, Pf_{v}^{(r)} \right\rangle+1 \right]\tag{5}\] for any positive integer \(r\), as desired. ◻

Note that for any non-isolated vertex \(v\in [n]\) and any positive integer \(r\), we have \[\left\|f_{v}^{(r)}\right\|_{2}^{2}\leqslant\underset{i\sim \mu} \mathbb{E}\left[ \frac{1}{2}Q_{r}\delta_{v}(i)+\frac{1}{2}R_{r}\delta_{v}(i) \right] =\underset{i\sim \mu} \mathbb{E}\left[ W^{r}\delta_{v}(i) \right] =1.\] Furthermore, the Markov operator \(P\) contracts \(L^{2}\)-norm, and hence \[\left\langle f_{v}^{(r)}, Pf_{v}^{(r)} \right\rangle\geqslant-\left\|f_{v}^{(r)}\right\|_{2}\cdot \left\|Pf_{v}^{(r)}\right\|_{2}\geqslant-1.\] Therefore, in order for 5 to be close to 1, we need to show that the inner product \(\left\langle f_{v}^{(r)}, Pf_{v}^{(r)} \right\rangle\) is close to \(-1\) with high probability over the random vertex \(v\) sampled from \(\mu\). The next two subsections will be devoted to understanding this inner product. In particular, we will show in 3.3 how to relate it to the analytic version of the low-reject-probability assumption derived in 1.

3.3 Removing Parity↩︎

In 3.1, we showed how to use the fact that the number of random walks is \(\Omega(\sqrt n)\). To prove 9, we must also exploit the fact that the walks have length \(\Omega(\log n)\), which has not yet enter the picture.

Intuitively, once a lazy random walk has run for sufficiently many steps, the distribution of its endpoint becomes approximately stationary, in the sense that taking one additional step changes the distribution only slightly. A natural way to formalize this is to show that, for every non-isolated vertex \(v\in[n]\) and every sufficiently large integer \(r\), the density functions \(W^{r}\delta_v\) and \(W^{r+1}\delta_v\) are close in \(L^{1}\) distance, or equivalently, that the corresponding endpoint distributions are close in total variation distance. This is the content of the next lemma.

Lemma 2. For any positive integer \(t\) and any non-isolated vertex \(v\in [n]\), we have \[\big\|Q_{2t}\delta_{v}-PR_{2t}\delta_{v}\big\|_{1}\leqslant\sqrt{\frac{2}{t}}\qquad\text{and}\qquad \big\|PQ_{2t}\delta_{v}-R_{2t}\delta_{v}\big\|_{1}\leqslant\sqrt{\frac{2}{t}}.\]

Proof. Recall from the proof of 1 that \(Q_{2t}\delta_{v}\,\mathrm{d}\mu\) (respectively, \(R_{2t}\delta_{v}\,\mathrm{d}\mu\)) is the distribution of the endpoint of the length-\(2t\) lazy-random walk starting at \(v\) conditioned on the number of non-lazy steps being even (respectively, odd). It follows from 5 (and 10) that the total variation distance between \(Q_{2t}\delta_{v}\,\mathrm{d}\mu\) and \(PR_{2t}\delta_{v}\,\mathrm{d}\mu\) is at most \((2t)^{-1/2}\), and hence \(\big\|Q_{2t}\delta_{v}-PR_{2t}\delta_{v}\big\|_{1}\leqslant\sqrt{2/t}\). Due to the reflection symmetry of the binomial distribution \(\mathrm{Bin}(2t,\frac{1}{2})\) about \(t\), it also follows from 5 that the total variation distance between \(PQ_{2t}\delta_{v}\,\mathrm{d}\mu\) and \(R_{2t}\delta_{v}\,\mathrm{d}\mu\) is at most \((2t)^{-1/2}\), and hence \(\big\|Q_{2t}\delta_{v}-PR_{2t}\delta_{v}\big\|_{1}\leqslant\sqrt{2/t}\). ◻

It turns out that 2 does not fully capture the “mixing” behavior arising from the \(\Omega(\log n)\) walk length; we will return to this point in 3.4. Nevertheless, the lemma plays an important role in the proof of 9. Its conclusion allows us to relate the inner product \(\left\langle f_v^{(r)}, P f_v^{(r)} \right\rangle\), which we need to analyze, to the more tractable quantity \[\left\langle \sqrt{W^{2t}\delta_v}, P\sqrt{W^{2t}\delta_v} \right\rangle,\] as shown in the next corollary. The latter inner product involves only nonnegative functions, and moreover no longer distinguishes between even- and odd-length random walks.

Corollary 3. Fix a positive integer \(t\) and a non-isolated vertex \(v\in [n]\). If we let \(\gamma=2-\big\|Q_{2t}\delta_{v}-R_{2t}\delta_{v}\big\|_{1}\), then we have \[\left\langle f_{v}^{(2t)}, Pf_{v}^{(2t)} \right\rangle+\left\langle \sqrt{W^{2t}\delta_{v}}, P\sqrt{W^{2t}\delta_{v}} \right\rangle\leqslant 2\sqrt{\gamma}+2\left(\frac{2}{t}\right)^{1/4}.\]

Proof. In this proof, we write \(g=\frac{1}{2}Q_{2t}\delta_{v}\) and \(h=\frac{1}{2}R_{2t}\delta_{v}\). Then by [def:Q_r_and_R_r,def:f_r] we have \[\label{eq:root95g-root95h} \left\langle f_{v}^{(2t)}, Pf_{v}^{(2t)} \right\rangle=\left\langle \sqrt{g}-\sqrt{h}, P\left(\sqrt{g}-\sqrt{h}\right) \right\rangle\tag{6}\] and \[\label{eq:root95g43root95h} \left\langle \sqrt{W^{2t}\delta_{v}}, P\sqrt{W^{2t}\delta_{v}} \right\rangle=\left\langle \sqrt{g+h}, P\sqrt{g+h} \right\rangle\leqslant\left\langle \sqrt{g}+\sqrt{h}, P\left(\sqrt{g}+\sqrt{h}\right) \right\rangle.\tag{7}\] Adding 6 and 7 together yields \[\left\langle f_{v}^{(2t)}, Pf_{v}^{(2t)} \right\rangle+\left\langle \sqrt{W^{2t}\delta_{v}}, P\sqrt{W^{2t}\delta_{v}} \right\rangle\leqslant 2\left\langle \sqrt{g}, P\sqrt{g} \right\rangle+2\left\langle \sqrt{h}, P\sqrt{h} \right\rangle.\] Therefore, it suffices to show that both \(\left\langle \sqrt{g}, P\sqrt{g} \right\rangle\) and \(\left\langle \sqrt{h}, P\sqrt{h} \right\rangle\) are at most \(\left(\sqrt{\gamma}+(2/t)^{1/4}\right)/2\). We next prove \(\left\langle \sqrt{g}, P\sqrt{g} \right\rangle\leqslant\left(\sqrt{\gamma}+(2/t)^{1/4}\right)/2\); the other one can be proved in a similar way.

First note that by 10, for any \(i\in [n]\) we have \[\label{eq:P95rootg95root95Pg} P\sqrt{g}\,(i)=\frac{\sum_{j=1}^{n}A_{ij}\sqrt{g(j)}}{\sum_{j=1}^{n}A_{ij}}\leqslant\sqrt{\frac{\sum_{j=1}^{n}A_{ij}\,g(j)}{\sum_{j=1}^{n}A_{ij}}}=\sqrt{Pg}\,(i),\tag{8}\] where we used Cauchy-Schwarz in the second transition. Therefore, we have \[\begin{align} \left\langle \sqrt{g}, P\sqrt{g} \right\rangle&\leqslant\left\langle \sqrt{g}, \sqrt{Pg} \right\rangle}\\ &\leqslant\left\langle \sqrt{g}, \sqrt{h} \right\rangle+\big\|\sqrt{g}\big\| _{2}\cdot\left\|\sqrt{h}-\sqrt{Pg}\right\|_{2}\\ &\leqslant\frac{1}{2}\left\langle \sqrt{2g}, \sqrt{2h} \right\rangle+\frac{1}{\sqrt{2}}\cdot \sqrt{\big\|h-Pg\big\|_{1}}(1)}\\ &\leqslant\frac{1}{2}\sqrt{2-\big\|2g-2h\big\|_{1}}+\frac{1}{2}\sqrt{\big\|2h-P(2g)\big\|_{1}}(2)}\\ &\leqslant\frac{1}{2}\sqrt{\gamma}+\frac{1}{2}\left(\frac{2}{t}\right)^{1/4},} \end{align}\] as desired. ◻

3.4 An Interpretation of Mixing↩︎

As discussed in 3.3, we need to understand what is special about walks of length \(\Omega(\log n)\). The benefit of sufficiently long walks is already partially reflected in 2, but the applications of that lemma only require the walk length to be at least a constant depending on \(\varepsilon\). Intuitively speaking, the correct threshold \(\Theta(\log n)\) should correspond to the point at which random walks begin to exhibit a form of “mixing.”

Since we do not assume that \(G\) is an expander, we cannot expect the endpoint distribution of a \(\Theta(\log n)\)-step random walk to be close to the global stationary distribution \(\mu\). Instead, we track the distance of the endpoint distribution from \(\mu\). For many natural notions of distance, this distance is nonincreasing with the walk length.12 Thus, in this setting, “mixing” can be interpreted as the stabilization of this distance rather than convergence to stationarity.

For our purposes, the most suitable notion of distance is relative entropy,13 which is featured in the proof of the following key lemma.

Lemma 3. For any non-isolated vertex \(v\in [n]\), we have \[\sum_{r=0}^{+\infty}\left(1-\left\langle \sqrt{W^{r}\delta_{v}}, P\sqrt{W^{r}\delta_{v}} \right\rangle\right)\leqslant\log_{2}\frac{1}{\mu(\{v\})}.\]

Proof. For any nonnegative function \(g:[n]\rightarrow [0,+\infty)\), define its relative entropy to be \[\mathrm{Ent}_{\mu}(g):=\underset{i\sim\mu} \mathbb{E}\left[ g(i)\log_{2}g(i)\big. \right] .\] For any probability density function \(g\), we have \(\mathrm{Ent}_{\mu}(g)\geqslant 0\).14 The goal is to prove that for any probability density function \(g:[n]\rightarrow [0,+\infty)\), we have15 \[\label{eq:JS95Hellinger} 1-\left\langle \sqrt{g}, P\sqrt{g} \right\rangle\leqslant\mathrm{Ent}_{\mu}(g)-\mathrm{Ent}_{\mu}(Wg).\tag{9}\] Once we have 9 , we can replace \(g\) with \(W^{r}\delta_{v}\) and sum over all nonnegative integers \(r\), yielding \[\sum_{r=0}^{+\infty}\left(1-\left\langle \sqrt{W^{r}\delta_{v}}, P\sqrt{W^{r}\delta_{v}} \right\rangle\right)\leqslant\sum_{r=0}^{+\infty}\Big(\mathrm{Ent}_{\mu}\big(W^{r}\delta_{v}\big)-\mathrm{Ent}_{\mu}\big(W^{r+1}\delta_{v}\big)\Big)\leqslant\mathrm{Ent}_{\mu}(\delta_{v})=\log_{2}\frac{1}{\mu(\{v\})}.\]

It remains to prove that 9 holds for any probability density function \(g\).16 We denote \(\varphi:[0,+\infty)\rightarrow\mathbb{R}\) to be the convex function \(\varphi(x)=x\log_{2}x\). For any \(i\in [n]\), by [def:Markov_operator,def:Q_r_and_R_r] we have \[\varphi\big(Wg(i)\big)=\varphi\left(\frac{\sum_{j=1}^{n}A_{ij}(g(i)+g(j))/2}{\sum_{j=1}^{n}A_{ij}}\right)\leqslant\frac{\sum_{j=1}^{n}A_{ij}\,\varphi\big((g(i)+g(j))/2\big)}{\sum_{j=1}^{n}A_{ij}}.\] Now we apply 7 to the numerator and get \[\varphi\big(Wg(i)\big)\leqslant\frac{1}{\sum_{j=1}^{n}A_{ij}}\cdot \sum_{j=1}^{n}A_{ij}\left(\frac{1}{2}\varphi\big(g(i)\big)+\frac{1}{2}\varphi\big(g(j)\big)+\sqrt{g(i)g(j)}-\frac{1}{2}g(i)-\frac{1}{2}g(j)\right).\] Taking expectation over \(i\sim \mu\) yields \[\big\|\varphi\circ (Wg)\big\|_{1}\leqslant\frac{1}{2}\big\|\varphi\circ g\big\|_{1}+\frac{1}{2}\big\|P(\varphi\circ g)\big\|_{1}+\left\langle \sqrt{g}, P\sqrt{g} \right\rangle-\frac{1}{2}\big\|g\big\|_{1}-\frac{1}{2}\big\|Pg\big\|_{1}\] Since the operator \(P\) preserves \(L^{1}\)-norm of nonnegative functions, the above can be rewritten as \[\mathrm{Ent}_{\mu}(Wg)\leqslant\mathrm{Ent}_{\mu}(g)+\left\langle \sqrt{g}, P\sqrt{g} \right\rangle-1,\] which is exactly the desired inequality 9 . ◻

The importance of having walks of length \(\Omega(\log n)\) finally becomes clear in the following corollary: if \(\mu(\{v\})=1/\mathrm{poly}(n)\), we need \(t=\Omega(\log n)\) to make the right-hand side of 10 sufficiently small.

Corollary 4. Fix a positive integer \(t\) and a non-isolated vertex \(v\in [n]\). If we let \(\gamma=2-\big\|Q_{4t}\delta_{v}-R_{4t}\delta_{v}\big\|_{1}\), then we have \[\label{eq:importance95log95n} \frac{1}{t}\sum_{r=t}^{2t-1}\left(\left\langle f_{v}^{(2r)}, Pf_{v}^{(2r)} \right\rangle+1\right)\leqslant 2\sqrt{\gamma}+2\left(\frac{2}{t}\right)^{1/4}+\frac{1}{t}\log_{2}\frac{1}{\mu(\{v\})}.\tag{10}\]

Proof. For any \(r\in\{t,t+1,\dots,2t-1\}\), due to the fact that the operator \(S=\frac{1}{2}(I-P)\) contracts \(L^{1}\)-norm, we have \[\big\|Q_{2r}\delta_{v}-R_{2r}\delta_{v}\big\|_{1}=2\big\|S^{2r}\delta_{v}\big\|_{1}\geqslant 2\big\|S^{4t}\delta_{v}\big\|_{1}=\big\|Q_{4t}\delta_{v}-R_{4t}\delta_{v}\big\|_{1}=2-\gamma.\] It then follows from 3 that \[\label{eq:average95first95part} \frac{1}{t}\sum_{r=t}^{2t-1}\left(\left\langle f_{v}^{(2r)}, Pf_{v}^{(2r)} \right\rangle+\left\langle \sqrt{W^{2r}\delta_{v}}, P\sqrt{W^{2r}\delta_{v}} \right\rangle\right)\leqslant 2\sqrt{\gamma}+2\left(\frac{2}{t}\right)^{1/4}.\tag{11}\] On the other hand, 3 clearly implies \[\label{eq:average95second95part} \frac{1}{t}\sum_{r=t}^{2t-1}\left(1-\left\langle \sqrt{W^{2r}\delta_{v}}, P\sqrt{W^{2r}\delta_{v}} \right\rangle\right)\leqslant\frac{1}{t}\log_{2}\frac{1}{\mu(\{v\})}.\tag{12}\] Adding 11 and 12 together yields the conclusion. ◻

3.5 Concluding the Proof↩︎

The following theorem summarizes what we have proved in [subsec:birthday,subsec:solution_SDP,subsec:remove_parity,subsec:mixing].

Theorem 12. Fix an arbitrary parameter \(\varepsilon\in (0,1)\). Let \(t\) be an integer such that \(t\geqslant 2\varepsilon^{-2}\log_{2}n\). If \(\mathrm{\small BipTest}(G,4t,\varepsilon)\) (1) rejects with probability at most \(2/3\), then \(\mathrm{\small BasicSDP}_{A}\) has value at least \(1-3\sqrt{\varepsilon}\).

Proof. Suppose \(\mathrm{\small BipTest}(G,4t,\varepsilon)\) (1) rejects with probability at most \(2/3\). By 1, it follows that \[\underset{v\sim \mu} \mathbb{E}\left[ 2-\left\|Q_{4t}\delta_v-R_{4t}\delta_v\big.\right\|_1\Big. \right] \leqslant 2\varepsilon.\] Applying Cauchy-Schwarz yields \[\underset{v\sim \mu} \mathbb{E}\left[ \sqrt{2-\left\|Q_{4t}\delta_v-R_{4t}\delta_v\big.\right\|_1} \right] \leqslant\sqrt{2\varepsilon}.\] It then follows from 4 that \[\begin{align} \frac{1}{t}\sum_{r=t}^{2t-1}\underset{v\sim \mu} \mathbb{E}\left[ \left\langle f_{v}^{(2r)}, Pf_{v}^{(2r)} \right\rangle+1 \right] &\leqslant 2\sqrt{2\varepsilon}+2\left(\frac{2}{t}\right)^{1/4}+\frac{1}{t}\underset{v\sim \mu} \mathbb{E}\left[ \log_{2}\frac{1}{\mu(\{v\})} \right] \\ &\leqslant 2\sqrt{2\varepsilon}+2\left(\frac{2}{t}\right)^{1/4}+\frac{1}{t}\log_{2}\left(\underset{v\sim \mu} \mathbb{E}\left[ \frac{1}{\mu(\{v\})} \right] \right)\\ &=2\sqrt{2\varepsilon}+2\left(\frac{2}{t}\right)^{1/4}+\frac{\log_{2}n}{t}\\ &\leqslant 2\sqrt{2\varepsilon}+2\sqrt{\varepsilon}+\frac{\varepsilon^{2}}{2}\leqslant 6\sqrt{\varepsilon}. \end{align}\] Therefore, there exists an \(r\in \{t,t+1,\dots,2t\}\) such that \[\underset{v\sim \mu} \mathbb{E}\left[ \left\langle f_{v}^{(2r)}, Pf_{v}^{(2r)} \right\rangle+1 \right] \leqslant 6\sqrt{\varepsilon},\] and hence the desired conclusion follows from 2. ◻

We are now ready to conclude the proof of 9.

Proof of 9. Apply 12 to conclude that the value of \(\mathrm{\small BasicSDP}_{A}\) is at least \(1-\varepsilon^{2}\). It then follows from 7 that the the Max-Cut value of \(G\) is at least \(1-\varepsilon\). ◻

4 Some Basic Lemmas↩︎

In this appendix, we collect some basic lemmas used in 3 and present their proofs.

Lemma 4 (Birthday paradox). Fix parameters \(\varepsilon,\delta\in (0,1)\). Let \(p^{(0)},p^{(1)}\in \mathbb{R}^{n}\) be two vectors that satisfy

  1. \(p^{(0)}_{i},p^{(1)}_{i}\geqslant 0\) for any \(i\in [n]\),

  2. \(\sum_{i=1}^{n}p^{(0)}_{i}=\sum_{i=1}^{n}p_{i}^{(1)}=1\), and

  3. \(\sum_{i=1}^{n}\left|p^{(0)}_{i}-p^{(1)}_{i}\right|\leqslant 2-\varepsilon\).

Let \(\nu\) be the probability distribution on \([n]\times \{0,1\}\) under which the probability of each pair \((i,j)\in [n]\times \{0,1\}\) equals \(p^{(j)}_{i}/2\). Then, in \(64\left\lceil (4\varepsilon)^{-1}\log(2/\delta)\sqrt{n} \right\rceil\) independent samples from \(\nu\), with probability at least \(1-\delta\) there exist two sampled pairs \((i,0)\) and \((i,1)\) with the same first coordinate \(i\in [n]\) but different second coordinates.

Proof. The given conditions imply \[\sum_{i=1}^{n}\min\left\{\frac{1}{2}p^{(0)}_{i},\frac{1}{2}p^{(1)}_{i}\right\}=\sum_{i=1}^{n}\frac{1}{4}\left(p^{(0)}_{i}+p^{(1)}_{i}-\left|p^{(0)}_{i}-p^{(1)}_{i}\right|\right)\geqslant\frac{\varepsilon}{4}.\] The conclusion then follows [30], or any of the standard birthday-paradox arguments. ◻

Lemma 5 (Binomial distributions). Fix a positive integer \(t\). Let \(X\) be a random variable following the binomial distribution \(\mathrm{Bin}(2t,1/2)\). Let \(\nu_{0}\) be the distribution of \(X\) conditioned on being even, and let \(\nu_{1}\) be the distribution of \(X+1\) conditioned on \(X\) being odd. Then the total variation distance between \(\nu_{0}\) and \(\nu_{1}\) equals \(2^{-2t}\binom{2t}{t}\), which is no more than \((2t)^{-1/2}\).

Proof. For each \(i\in \{0,1,\dots,2t\}\), write \[p_i:=\mathbb{P}\left[ X=i \right]=2^{-2t}\binom{2t}{i}\] The total variation distance between \(\nu_{0}\) and \(\nu_{1}\) equals \[\begin{align} \frac{1}{2}\sum_{i=0}^{t}\big|\nu_{0}(\{2i\})-\nu_{1}(\{2i\})\big|&=\frac{1}{2}\cdot2p_{0}+\frac{1}{2}\sum_{i=1}^{t}|2p_{2i}-2p_{2i-1}|\\ &=p_{0}+\sum_{i=1}^{\lfloor t/2\rfloor}(p_{2i}-p_{2i-1})+\sum_{i=0}^{\lceil t/2\rceil-1}(p_{2t-2i-1}-p_{2t-2i})\\ &=p_{0}+\sum_{i=1}^{\lfloor t/2\rfloor}(p_{2i}-p_{2i-1})+\sum_{i=0}^{\lceil t/2\rceil-1}(p_{2i+1}-p_{2i})\\ &=p_{t}=2^{-2t}\binom{2t}{t}.\qedhere \end{align}\] ◻

Lemma 6 (Norm inequalities). Let \(\mu\) be a probability distribution over \([n]\), and let \(f,g\in L^{2}(\mu)\) be two nonnegative functions. Then the following statements hold.

  1. We have \(\left\|\sqrt{f}-\sqrt{g}\right\|_{2}\leqslant\sqrt{\|f-g\|_{1}}\).

  2. If \(f\) and \(g\) are probability density functions, then \(\left\langle \sqrt{f}, \sqrt{g} \right\rangle\leqslant\sqrt{2-\|f-g\|_{1}}\),

Proof. The first item follows from pointwise comparison: \[\left\|\sqrt{f}-\sqrt{g}\right\|_{2}^{2}=\underset{i\sim \mu} \mathbb{E}\left[ \left(\sqrt{f(i)}-\sqrt{g(i)}\right)^{2} \right] \leqslant\underset{i\sim \mu} \mathbb{E}\left[ \left|f(i)-g(i)\right|\big. \right] =\|f-g\|_{1}.\] For the second item, by Cauchy-Schwarz we have \[\begin{align} \left\langle \sqrt{f}, \sqrt{g} \right\rangle^{2}&=\underset{i\sim \mu} \mathbb{E}\left[ \sqrt{f(i)g(i)} \right] ^{2}\leqslant\underset{i\sim \mu} \mathbb{E}\left[ \min\{f(i),g(i)\}\big. \right] \cdot \underset{i\sim \mu} \mathbb{E}\left[ \max\{f(i),g(i)\}\big. \right] \\ &=\underset{i\sim \mu} \mathbb{E}\left[ \frac{f(i)+g(i)-|f(i)-g(i)|}{2}\big. \right] \cdot \underset{i\sim \mu} \mathbb{E}\left[ \max\{f(i),g(i)\}\big. \right] \\ &\leqslant\left(1-\frac{1}{2}\|f-g\|_{1}\right)\cdot \|f+g\|_{1}\leqslant 2-\|f-g\|_{1}.\qedhere \end{align}\] ◻

Lemma 7 (Information inequality). Let \(\varphi:[0,+\infty)\rightarrow \mathbb{R}\) be the function \(\varphi(x)=x\log_{2}x\). Then for any nonnegative numbers \(a,b\) we have \[\label{eq:two95point95ineq} \varphi(a)+\varphi(b)-2\,\varphi\left(\frac{a+b}{2}\right)\geqslant a+b-2\sqrt{ab}.\tag{13}\]

Proof. Without loss of generality assume \(a\geqslant b\). We re-parameterize by letting \(a=\lambda (1+x)\) and \(b=\lambda(1-x)\), where \(\lambda\in [0,+\infty)\) and \(x\in [0,1]\). For fixed \(x\), both sides of 13 scales linearly in \(\lambda\), so we may assume \(\lambda=\frac{1}{2}\). The desired inequality 13 thus reduces to \[\label{eq:two95point95ineq95reduces} \varphi\left(\frac{1+x}{2}\right)+\varphi\left(\frac{1-x}{2}\right)+1\geqslant 1-\sqrt{1-x^{2}},\qquad\text{for all }x\in [0,1].\tag{14}\]

We first apply 8 to get that the function \[x\mapsto \frac{\int_{0}^{x}(1-t^{2})^{-1}\,\mathrm{d}t}{\int_{0}^{x}(1-t^{2})^{-3/2}\,\mathrm{d}t}=\frac{\frac{1}{2}\ln\frac{1+x}{1-x}}{x(1-x^{2})^{-1/2}}\] is nonincreasing in \((0,1)\). Applying 8 again yields that the function \[x\mapsto \frac{\int_{0}^{x}\frac{1}{2}\ln\frac{1+t}{1-t}\,\mathrm{d}t}{\int_{0}^{x}t(1-t^{2})^{-1/2}\,\mathrm{d}t}=\frac{\frac{1}{2}(1+x)\ln (1+x)+\frac{1}{2}(1-x)\ln (1-x)}{1-\sqrt{1-x^{2}}}\] is nonincreasing in \((0,1)\). This function converges to \(\ln 2\) as \(x\) goes to 1. Therefore, for any \(x\in (0,1)\) we have \[\frac{\frac{1}{2}(1+x)\ln (1+x)+\frac{1}{2}(1-x)\ln (1-x)}{1-\sqrt{1-x^{2}}}\geqslant\ln 2,\] which rearranges to \[\frac{1+x}{2}\log_{2}\frac{1+x}{2}+\frac{1-x}{2}\log_{2}\frac{1-x}{2}+1\geqslant 1-\sqrt{1-x^{2}}.\] Since both sides of the above inequality are continuous functions on \([0,1]\), this proves 14 . ◻

Lemma 8 (Basic Calculus). Suppose \(f_{1},f_{2}:(0,1)\rightarrow(0,+\infty)\) are continuous functions such that \(f_{1}(x)/f_{2}(x)\) is nonincreasing in \(x\). Then the function \(\left(\int_{0}^{x}f_{1}(t)\,\mathrm{d}t\right)/\left(\int_{0}^{x}f_{2}(t)\,\mathrm{d}t\right)\) is also nonincreasing in \(x\).

Proof. Fix \(x,y\in (0,1)\) such that \(x<y\), and let \[a_{i}=\int_{0}^{x}f_{i}(t)\,\mathrm{d}t,\qquad b_{i}=\int_{x}^{y}f_{i}(t)\,\mathrm{d}t,\qquad\text{for each }i\in \{1,2\}.\] Since \(f_{1}/f_{2}\) is nonincreasing, it is easy to see that \(a_{1}/a_{2}\leqslant f_{1}(x)/f_{2}(x)\leqslant b_{1}/b_{2}\). Therefore \[\frac{a_{1}}{a_{2}}\leqslant\frac{a_{1}+b_{1}}{a_{2}+b_{2}},\] as desired. ◻

References↩︎

[1]
O. Goldreich and D. Ron, “A sublinear bipartiteness tester for bounded degree graphs,” Combinatorica, vol. 19, no. 3, pp. 335–373, 1999.
[2]
T. Kaufman, M. Krivelevich, and D. Ron, “Tight bounds for testing bipartiteness in general graphs,” SIAM Journal on computing, vol. 33, no. 6, pp. 1441–1483, 2004.
[3]
O. Goldreich and D. Ron, “On testing expansion in bounded-degree graphs,” Studies in Complexity and Cryptography, p. 68, 2011.
[4]
T. Batu, L. Fortnow, R. Rubinfeld, W. D. Smith, and P. White, “Testing closeness of discrete distributions,” J. ACM, vol. 60, no. 1, pp. 4:1–4:25, 2013, doi: 10.1145/2432622.2432626.
[5]
A. Czumaj and C. Sohler, “Testing expansion in bounded-degree graphs,” Combinatorics, Probability and Computing, vol. 19, no. 5–6, pp. 693–709, 2010.
[6]
S. Kale and C. Seshadhri, “An expansion tester for bounded degree graphs,” SIAM Journal on Computing, vol. 40, no. 3, pp. 709–720, 2011.
[7]
A. Nachmias and A. Shapira, “Testing the expansion of a graph,” Information and Computation, vol. 208, no. 4, pp. 309–314, 2010.
[8]
A. Czumaj, O. Goldreich, D. Ron, C. Seshadhri, A. Shapira, and C. Sohler, “Finding cycles and trees in sublinear time,” Random Structures & Algorithms, vol. 45, no. 2, pp. 139–184, 2014.
[9]
A. Czumaj, P. Peng, and C. Sohler, “Testing cluster structure of graphs,” in Proceedings of the forty-seventh annual ACM symposium on theory of computing, 2015, pp. 723–732.
[10]
A. Kumar, C. Seshadhri, and A. Stolman, “Random walks and forbidden minors I: An \(n^{1/2+o(1)}\)-query one-sided tester for minor closed properties on bounded degree graphs,” SIAM Journal on Computing, vol. 52, no. 6, pp. FOCS18–216, 2020.
[11]
F. Adriaens and S. Apers, “Testing cluster properties of signed graphs,” in Proceedings of the ACM web conference 2023, 2023, pp. 49–59.
[12]
O. Goldreich and D. Ron, “Property testing in bounded degree graphs,” Algorithmica, vol. 32, no. 2, pp. 302–343, 2002.
[13]
M. X. Goemans and D. P. Williamson, “Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming,” Journal of the ACM (JACM), vol. 42, no. 6, pp. 1115–1145, 1995.
[14]
S. Khot, G. Kindler, E. Mossel, and R. O’Donnell, “Optimal inapproximability results for MAX-CUT and other 2-variable CSPs?” SIAM Journal on Computing, vol. 37, no. 1, pp. 319–357, 2007.
[15]
R. O’Donnell and Y. Wu, “An optimal SDP algorithm for max-cut, and equally optimal long code tests,” in Proceedings of the fortieth annual ACM symposium on theory of computing, 2008, pp. 335–344.
[16]
Y. Fei, D. Minzer, and S. Wang, “A dichotomy theorem for multi-pass streaming CSPs,” arXiv preprint arXiv:2509.11399, 2025.
[17]
Y. Fei, D. Minzer, and S. Wang, “Near-optimal space lower bounds for streaming CSPs,” arXiv preprint arXiv:2604.01400, 2026.
[18]
P. Peng and Y. Yoshida, “Sublinear-time algorithms for Max Cut, Max E2Lin(\(q\)), and Unique Label Cover on expanders,” in Proceedings of the 2023 annual ACM-SIAM symposium on discrete algorithms (SODA), 2023, pp. 4936–4965.
[19]
A. V. Jha and A. Kumar, “A sublinear time tester for max-cut on clusterable graphs,” in 51st international colloquium on automata, languages, and programming (ICALP 2024), 2024, pp. 91–1.
[20]
Y. Yoshida, “Lower bounds on query complexity for testing bounded-degree CSPs,” in 2011 IEEE 26th annual conference on computational complexity, 2011, pp. 34–44.
[21]
A. Chiplunkar, M. Kapralov, S. Khanna, A. Mousavifar, and Y. Peres, “Testing graph clusterability: Algorithms and lower bounds,” in 2018 IEEE 59th annual symposium on foundations of computer science (FOCS), 2018, pp. 497–508.
[22]
A. Bogdanov, K. Obata, and L. Trevisan, “A lower bound for testing 3-colorability in bounded-degree graphs,” in The 43rd annual IEEE symposium on foundations of computer science, 2002. proceedings., 2002, pp. 93–102.
[23]
Y. Yoshida and H. Ito, “Query-number preserving reductions and linear lower bounds for testing,” IEICE TRANSACTIONS on Information and Systems, vol. 93, no. 2, pp. 233–240, 2010.
[24]
Y. Yoshida, “Optimal constant-time approximation algorithms and (unconditional) inapproximability results for every bounded-degree CSP,” in Proceedings of the forty-third annual ACM symposium on theory of computing, 2011, pp. 665–674.
[25]
H. Aaronson, G. Carenini, and A. Chanda, “Property testing in bounded degree hypergraphs,” arXiv preprint arXiv:2502.18382, 2025.
[26]
Y. Fei, “Unbounded-width CSPs are untestable in a sublinear number of queries,” arXiv preprint arXiv:2510.27012, 2025.
[27]
T. Feder and M. Y. Vardi, “The computational structure of monotone monadic SNP and constraint satisfaction: A study through datalog and group theory,” SIAM Journal on Computing, vol. 28, no. 1, pp. 57–104, 1998.
[28]
M. Charikar, K. Makarychev, and Y. Makarychev, “Near-optimal algorithms for maximum constraint satisfaction problems,” ACM Transactions on Algorithms (TALG), vol. 5, no. 3, pp. 1–14, 2009.
[29]
T. Eden and W. Rosenbaum, “On sampling edges almost uniformly,” in 1st symposium on simplicity in algorithms, 2018.
[30]
Y. Fei, “Testing properties of edge distributions,” arXiv preprint arXiv:2603.22702, 2026.

  1. Massachusetts Institute of Technology, yumou415@mit.edu. Supported by NSF awards DMS-2022448 and CCF-2310818.↩︎

  2. Massachusetts Institute of Technology, ronitt@mit.edu. Supported by NSF awards DMS-2022448 and CCF-2310818.↩︎

  3. The ordering of the neighbors of each vertex is arbitrary and may be chosen adversarially.↩︎

  4. Strictly speaking, the result of [1] applies only to bounded-degree graphs and regular graphs. The extension to general graphs is due to Kaufman, Krivelevich, and Ron [2].↩︎

  5. In the analysis of [1], these pieces are not necessarily expanders, but they satisfy enough of the properties needed for the expander-case argument to go through.↩︎

  6. One source of this loss is that random walks started inside one piece may “leak” into other pieces.↩︎

  7. Throughout this paper, graphs have no self-loops but may have parallel edges; equivalently, the edge set is a multiset. A simple graph is a graph that has no parallel edges, i.e. every edge has multiplicity 1.↩︎

  8. In the adjacency-list model for CSPs, given a query \((v,i)\), the local neighbor oracle returns the \(i\)th constraint containing the variable \(v\).↩︎

  9. The notion of unbounded width was introduced by Feder and Vardi [27]; we do not define it here.↩︎

  10. The bounded-degree model is the adjacency-list model under the additional assumption that every variable participates in at most a constant number of constraints.↩︎

  11. This is because the operator \(\frac{1}{2}(Q_{m}-R_{m})=S^{m}\) contracts \(L^{1}\)-norm. Indeed, since the Markov operator \(P\) contracts \(L^{1}\)-norm, so does \(S=\frac{1}{2}(I-P)\).↩︎

  12. A non-increasing infinite sequence of nonnegative numbers must converge to a limit. Here, the limit of the distance to \(\mu\) (as walk length tends to infinity) may not be zero if the graph \(G\) is not connected.↩︎

  13. The original analysis of Goldreich and Ron [1] uses a similar idea to find a local bipartition of a subset of vertices, but uses the \(L^{2}\) distance to capture the relevant mixing behavior.↩︎

  14. This is due to Jensen’s inequality and the convexity of the function \(x\mapsto x\log_{2}x\) on \([0,+\infty)\)↩︎

  15. Since \(\|\sqrt{g}\|_{2}=1\) and \(P\) contracts \(L^{2}\)-norm, the left-hand side of 9 is always nonnegative.↩︎

  16. The inequality 9 is standard in Markov chain theory, with important consequences such as the implication from log-Sobolev inequalities to entropy contraction. Nevertheless, for the sake of completeness, we choose provide a full proof of 9 .↩︎