SDP relaxation
Max-Cut and community detection

AIDAMS – S7

Guillaume Lecué

Matrix lifting and SDP relaxation

An introduction example: finding a top eigenvector

Exercises

Exercise 1: Let \(x\in\bR^n\).

  1. What are the size and the entries of the matrix \(Z=xx^\top\)?
  2. How can you write \(\norm{x}_2^2\) using \(Z\)?
  3. How can you write \(\norm{Ax}_2^2\) using \(Z\) where \(A\) is a matrix?

Exercise 2: Show that \(Z\) is positive semidefinite, rank 1 matrix if and only if there exists \(x\in\bR^n\) such that \(Z=xx^\top\).

Exercise 3: Let \(f, g:x\mapsto x^\top M_fx, x^\top M_gx\) be two quadratic functions. Let \(K = \{x:g(x)\leq1\}\). Write the problem \(\min_{x\in K} f(x)\) with variable \(x\) into a problem with variable \(Z=xx^\top\). What are the pros and cons of this transformation?

The lifting device

Idea: Any (purely) quadratic problem in \(x\) (i.e. a quadratic objective and quadratic constraints without linear terms) can be rewritten as a linear problem in \(Z=xx^\top\).

Exercise 1: Let \(x\in\bR^n\). What are the size and the entries of the matrix \(Z= \begin{pmatrix}1\\x\end{pmatrix}\begin{pmatrix}1&x^\top\end{pmatrix}\)?

Exercise 2: Write any quadratic problem in \(x\) (that may contain linear terms) into a problem with variable \(Z= \begin{pmatrix}1\\x\end{pmatrix}\begin{pmatrix}1&x^\top\end{pmatrix}\).

Lifting device: transform a ‘vector’ quadratic problem into a ‘matrix’ linear problem. The price to pay is that we go from dimension \(n\) to dimension \((n+1)^2\).

Problem: find a leading eigenvector

Problem statement

Let \(A\in\bR^{n\times n}\). Find \(x\in\bR^n\) such that \(\norm{x}_2=1\) and \(\norm{Ax}_2\) is maximized.

Classical solution: The most efficient way to solve this problem is to use the power method: take \(x_0\in\bR^n\) at random and iterate \(x_{k+1} = \frac{Ax_k}{\norm{Ax_k}_2}\).

An alternative solution is using the lifting device: \[ (P_x) \quad \max_{\norm{x}_2=1}\norm{Ax}_2 = \max_{\substack{Z\succeq 0\\ {\rm rank}(Z)=1\\ {\rm Tr}(Z)=1}}\inr{A^\top A,Z} \quad (P_Z) \]

Because: \(\norm{Ax}_2^2=\inr{A^\top A,xx^\top}\), \(\norm{x}_2=1\) iff \({\rm Tr}(xx^\top)=1\) and \(Z=xx^\top\) iff \(Z\succeq 0\) and \({\rm rank}(Z)=1\).

Moreover: \(v_1\) is a leading eigenvector of \(A\) (i.e. a solution of \((P_x)\)) iff \(Z=v_1v_1^\top\) is a solution of \((P_Z)\).

Problem: The rank \(1\) constraint is not convex.

Solution: Drop the rank constraint!

SDP relaxation for the problem of finding a leading eigenvector

Dropping the rank constraint, we get the following optimization problem: \[ \max_{\substack{Z\succeq 0\\ {\rm Tr}(Z)=1}}\inr{A^\top A,Z} \quad (P^\prime_Z) \]

Questions:

  • What kind of optimization problem is \((P^\prime_Z)\)?
  • What do we lose by dropping the rank constraint?
  • We get an SDP problem: this is what we call an SDP relaxation.
  • We lose nothing! This relaxation is exact: \((P_Z)\) and \((P^\prime_Z)\) have the same optimal value and the same optimal solution(s). (this is not always the case!)

Take away message from this introduction example:

We have seen matrix lifting: transforming a vector quadratic problem in \(x\) into a matrix linear problem in \(Z= \begin{pmatrix}1\\x\end{pmatrix}\begin{pmatrix}1&x^\top\end{pmatrix}\). The price to pay is that we go from dimension \(n\) to dimension \((n+1)^2\).

We have seen SDP relaxation: dropping the rank constraint in a matrix problem to get an SDP problem. Sometimes, this relaxation is exact, but sometimes it is not.

Next, we will see how to use these techniques to solve two problems:

  • The Max-Cut problem,
  • The community detection problem.

Matrix lifting and SDP relaxation

Example 2: the Max-Cut problem

What is a graph?

Definition (graph)

A graph is a pair \((V,E)\): \(V\) is the set of nodes, and \(E\subset V\times V\) is the set of edges.

A weighted graph is a triple \((V,E,W)\) with \(W\in\R^{|V|\times|V|}\). The entries of \(W\) are the weights.

  • Undirected graph: \((i,j)\in E\) implies \((j,i)\in E\).
  • Undirected weighted graph: the graph is undirected and \(W=W^\top\).
  • Four classical types of graphs: directed or not, weighted or not.

Four types of graphs

Undirected/directed and unweighted/weighted graphs.

Complete graphs and a ring graph

Complete graphs \(K_4\), \(K_5\) and \(K_6\).

A directed ring graph.

Adjacency matrix

Definition (adjacency matrix)

Let \(G=(V,E)\). The adjacency matrix \(A\in\{0,1\}^{|V|\times|V|}\) is \[A_{ij}=1\quad\text{if }(i,j)\in E,\qquad A_{ij}=0\quad\text{otherwise.}\] For a weighted graph, \(A_{ij}=W_{ij}\) when \((i,j)\in E\) and \(A_{ij}=0\) otherwise.

  • If \(G\) is undirected, then \(A\) is symmetric.
  • The Max-Cut and community detection problems are about the connectivity of \(G\), which is encoded in \(A\).
  • Everything is inside \(A\) (all graphs problems are matrix problems): Adjacency matrix is the central mathematical object in graph theory.

Exercise: International Trade Network

Question: The bipartite graph below represents annual exports (in billions of €) between France (FR), the UK, and Germany (DE). Construct the \(3 \times 3\) adjacency matrix \(A\) for this directed, weighted graph.

International Trade Network.

Solution:

Assuming the node order is 1: FR, 2: UK, 3: DE:

\[ A = \begin{pmatrix} 0 & 30 & 70 \\ 25 & 0 & 40 \\ 65 & 50 & 0 \end{pmatrix} \]


Note: \(A_{i,j}\) represents the edge from node \(i\) to node \(j\). For example, \(A_{1,2} = 30\) means FR exports 30 to the UK.

The Max-Cut problem

Given an undirected and unweighted graph \(G=(V,E)\), a cut is a partition \(S\sqcup S^c=V\) of the nodes.

The Max-Cut problem is to find a cut that maximizes the number of edges across the cut.

Example in Frequency Allocation: Nodes are cellular towers, and edges represent overlapping broadcast radii (interference zones) (possibly weighted by the population density in that overlap). Finding the Max-Cut assigns the towers to Frequency 1 (set \(S\)) and Frequency 2 (set \(S^c\)) such that the maximum amount of interference is neutralized.

Exercise: Finding the Max-Cut

Question: Consider the graph \(G=(V,E)\) below. Find a partition \(S \sqcup S^c = V\) that solves the Max-Cut problem. What is the value of the maximum cut?

Solution:

The Max-Cut value is 4.

The Partition: \(S = \{1, 3\}\) and \(S^c = \{2, 4\}\).

Why? Because nodes 1, 2, and 3 form a triangle, it is impossible to cut all 5 edges (any cut of a triangle can cross at most 2 of its 3 edges). Therefore, the theoretical maximum is \(5 - 1 = 4\).

By grouping the diagonal’s endpoints (1 and 3) into the same set \(S\), we make \((1,3)\) the only internal edge.

The cut edges are: \((1,2), (2,3), (3,4),\) and \((4,1)\).

Formulation of the Max-Cut problem

Exercise: Write the mathematical formulation of the Max-cut problem.

MAX-CUT maximizes over all possible cuts the number of edges across the cut: \[\max_{S\subset V}\sum_{(i,j)\in E}\mathbf{1}_{i\in S,\,j\in S^c}\] where \(\mathbf{1}_{i\in S,\,j\in S^c}\) is the indicator function of the event \(\{i\in S,\,j\in S^c\}\): \[ \mathbf{1}_{i\in S,\,j\in S^c} = \begin{cases} 1 & \text{if } i\in S \text{ and } j\in S^c \\ 0 & \text{otherwise} \end{cases} \]

Equivalent formulation of the Max-Cut problem

Exercise 1: Show that the Max-Cut problem is equivalent to \[\max_{S\subset V}\sum_{(i,j)\in E}\mathbf{1}_{i\in S,\,j\in S^c}=\max_{x\in\{\pm 1\}^n}\frac14\sum_{i,j}A_{ij}(1-x_ix_j).\]

Exercise 2: Show that one can find a solution to the Max-Cut problem from a solution to the following problem: \[\min\big(x^\top Ax:x_i^2=1\big) \quad (\dagger)\]

  • Is \((\dagger)\) an easy problem to solve?
  • What sort of problem is \((\dagger)\)?
  • Can you suggest a convex surrogate problem for \((\dagger)\)?

The Goemans–Williamson SDP relaxation

Exercise: Lift and relax \(\min\big(x^\top Ax:x_i^2=1\big) \quad (\dagger)\).

Lifting: \((\dagger)\) is a purely quadratic problem in \(x\) (i.e. only quadratic terms in \(x\) in both the objective function and the constraints). One can lift this type of problem to a matrix optimization problem:

\[\min\big(x^\top Ax:x_i^2=1\big) = \min\big(\inr{A, Z}:Z\succeq 0, {\rm rank}(Z) = 1, Z_{ii}=1, \forall i\in V\big).\]

SDP relaxation: drop the rank constraint to get the SDP problem: \[\min\big(\inr{A,Z}:Z\succeq 0,\,Z_{ii}=1\big). \quad (\dagger\dagger)\] \((\dagger\dagger)\) is the Goemans–Williamson SDP relaxation of the Max-Cut problem.

Usually \((\dagger\dagger)\) does not have a rank one solution and so \((\dagger)\) and \((\dagger\dagger)\) are not equivalent (in general).

Question: How can we find a solution to the Max-Cut problem from a solution to \((\dagger\dagger)\)?

Solution: Rounding: from \(Z^*\) a solution to \((\dagger\dagger)\), we draw \(G\sim\cN(0, Z^*)\) and set \(x^{**} = {\rm sign}(G)\) ie \(S^{**} = \{i\in V: x^{**}_i = 1\}\).

The Goemans–Williamson Theorem

Let \(Z^*\) be a solution to, \[\min\big(\inr{A,Z}:Z\succeq 0,\,Z_{ii}=1\big). \quad (\dagger\dagger)\] Let \(G\sim\cN(0, Z^*)\) and set \(x^{**} = {\rm sign}(G)\). Then, \[\E\Big[\frac14\sum_{i,j}A_{ij}(1- x^{**}_i x^{**}_j)\Big]\geq \alpha_{GW}\cdot{\rm OPT}\] where \(\alpha_{GW} = \frac{2}{\pi}\min_{0\leq \theta\leq \pi}\frac{\theta}{1-\cos(\theta)} \approx 0.878\) and \({\rm OPT}:=\max_{x\in\{\pm 1\}^n}\frac14\sum_{i,j}A_{ij}(1-x_ix_j)\) is the value achieved by the optimal solution to the Max-Cut problem.

Question: Tell what is random in the result above.

Idea: Goemans-Williamson approximating solution to the Max-Cut problem is a polynomial time randomized algorithm.

There are many such algorithms in computer science. The class of such algorithms with polynomial time complexity is called BPP (Bounded-error Probabilistic Polynomial time). It is believed that BPP = P.

Sketch of Proof of the Goemans-Williamson Theorem

The proof relies on evaluating the expected contribution of a single pair \((i,j)\) and comparing it to the SDP’s contribution.

1. The Bivariate Gaussian Since \(G \sim \cN(0, Z^*)\), the marginals \(G_i\) and \(G_j\) form a zero-mean bivariate normal distribution. Their variances are \(Z^*_{ii}=1\) and \(Z^*_{jj}=1\), and their covariance is \(Z^*_{ij}\).

2. Sheppard’s Lemma (Geometric Probability) The probability that \(G_i\) and \(G_j\) have different signs is determined by the angle between them. By setting \(Z^*_{ij} = \cos(\theta)\), the probability they are separated by the random hyperplane (i.e., \(x^{**}_i \neq x^{**}_j\)) is exactly \(\frac{\theta}{\pi}\).

3. Term-by-Term Ratio We compare the expected cut for the pair \((i,j)\) against the SDP’s relaxed value for that same pair: \[ \frac{\text{Expected Cut}_{ij}}{\text{SDP Value}_{ij}} = \frac{\frac{1}{2}\cdot\frac{\theta}{\pi}}{\frac{1}{4}(1 - Z^*_{ij})} = \frac{2}{\pi} \frac{\theta}{1 - \cos(\theta)} \]

4. Global Bound Because this ratio is bounded below by \(\alpha_{GW} \approx 0.878\) for every angle \(\theta \in [0, \pi]\), we sum over all pairs \((i,j)\) by linearity of expectation to get: \[ \E[\text{Cut}] \geq \alpha_{GW} \cdot \text{SDP-VAL} \geq \alpha_{GW} \cdot \text{OPT} \]

Can we do better than the \(\alpha_{GW}\) factor?

Question: Is it possible to construct in polynomial time an approximating solution to the Max-Cut problem that can do better than the \(\alpha_{GW}\) factor? That is to construct (in polynomial time) a cut \(x^\circ\in\{\pm 1\}^{|V|}\) such that \[\frac14\sum_{i,j}A_{ij}(1- x^{\circ}_i x^{\circ}_j) > \alpha_{GW}\cdot{\rm OPT} ?\] (in a deterministic or randomized way).

OpenAI (6/10/26) answer: No, it is not possible to construct in polynomial time an approximating solution to the Max-Cut problem that can do better than the \(\alpha_{GW}\) factor (unless \(P=NP\)) for both deterministic and randomized algorithms.

Relaxations for community detection

Community detection network diagram

The community detection problem

Goal: find groups of nodes that are more densely connected to one another than to the rest of the graph.

Once the communities are found, we may:

  • Look for influencers (ie nodes with high centrality) and send them advertisements, or approach them directly.

  • Look for connectors (ie nodes with high betweenness centrality).

  • Understand the common features of the nodes inside this community to understand how the community was created based on what share the people inside of it. Then target the entire community with an advertisement based on the common features or use it for fraud detection, identifies suspicious behavior on the network (like bot activity or fake accounts).

  • Measure polarization between the communities (how dense the edges are within the community compared to the edges between the communities).

Applications: recommendation systems, fraud detection, social media analysis, protein function prediction, topic modeling, etc.

Connectivity and connected components

Definition (connected graph)

\(G=(V,E)\) is connected if a path of edges links all the nodes. A connected component is a connected subgraph with no edge to its complement. A connected partition is a partition of \(V\) into connected components.

  • Weighted version: the edges of the path must have nonzero weight. Unweighted graphs correspond to \(W=(1)_{i,j}\).

Remark for community detection

A nontrivial connected partition is an ideal setting: the communities do not interact. Rare in practice, but a good guide for algorithms.

Definition of the Laplacian

Definition (Laplacian)

Let \(A\) be the adjacency matrix of \(G\). The Laplacian is \[L=D-A,\qquad D={\rm diag}(d),\qquad d_i=\sum_{j\in V}A_{ij}\] where \(d_i\) is the degree of node \(i\).

If \(G\) is undirected, then \(L\) is symmetric: the spectral theorem applies, and \(L=PDP^\top\) with \(P\) orthogonal.

The spectrum of \(L\) is the key object behind ‘spectral community detection algorithms’.

Quadratic form and first properties

Proposition

Let \(G=(V,E,W)\) be undirected with \(W_{ij}\geq 0\). Then:

  1. \(f^\top Lf=\frac12\sum_{(i,j)\in E}W_{ij}(f_i-f_j)^2\) for every \(f\in\R^{|V|}\);
  2. \(L\) is symmetric positive semidefinite;
  3. \(0\) is an eigenvalue and \(L\mathbf{1}=0\).

Proof.

  1. \(f^\top(D-A)f=\sum_i d_if_i^2-\sum_{(i,j)\in E}f_iW_{ij}f_j=\frac12\sum_{(i,j)\in E}W_{ij}(f_i-f_j)^2\).
  2. The right-hand side is \(\geq 0\), so \(L\succeq 0\).
  3. \((L\mathbf{1})_i=d_i-\sum_j A_{ij}=0\). \(\square\)

Multiplicity of \(0\) and connected components

Proposition

For an undirected weighted graph with nonnegative weights, the multiplicity of the eigenvalue \(0\) of \(L\) equals the number of connected components.

Moreover \({\rm Ker}(L)\) is spanned by \(\mathbf{1}_{V_1},\ldots,\mathbf{1}_{V_k}\), where \(V_1\sqcup\cdots\sqcup V_k\) is the partition of \(V\) into connected components.

Idea: the kernel of \(L\) sees the communities

In the ideal case, the indicators of the communities are eigenvectors for \(\lambda=0\). Spectral methods start from this fact.

Proof sketch: one connected component

Assume \(G\) is connected and \(Lf=0\). Then \(f^\top Lf=0\), so \[\sum_{(i,j)\in E}W_{ij}(f_i-f_j)^2=0.\]

  • Weights are nonnegative, so \(W_{ij}(f_i-f_j)^2=0\) on every edge: \(W_{ij}=0\) or \(f_i=f_j\).
  • Connectivity: any \(i,j\) are joined by a path of positive weights, so \(f\) is constant along the path.
  • Hence \(f\) is constant: \({\rm Ker}(L)={\rm span}(\mathbf{1})\).

Proof sketch: several components

Up to reordering the nodes, \[ L= \left[ \begin{array}{c|c|c|c} L_1& 0 & \cdots & 0 \\ \hline 0 & L_2 & \cdots & 0 \\ \hline \cdots & \cdots & \ddots & 0 \\ \hline 0 & 0 & \cdots & L_k \end{array} \right] \] where \(L_i\) is the Laplacian of the \(i\)-th connected component.

  • Each \(L_i\) has kernel spanned by the constant vector on \(V_i\), so \(\mathbf{1}_{V_i}\in{\rm Ker}(L)\).
  • Conversely \(Lf=0\) if and only if \(L_if=0\) on each block, so \(f\) is constant on each \(V_i\).
  • Therefore \({\rm Ker}(L)={\rm span}(\mathbf{1}_{V_1},\ldots,\mathbf{1}_{V_k})\).

Remark

The same statement holds for unweighted undirected graphs, by taking \(W=(1)_{i,j}\).

Example: the complete graph \(K_n\)

  1. Compute the Laplacian \(L\) of the complete graph \(K_n\).
  2. Show that the multiplicity of \(0\) is \(1\), as expected: \(K_n\) is connected.

The Laplacian of \(K_n\) is \[L=\begin{pmatrix}n-1&-1&\cdots&-1\\-1&n-1&\cdots&-1\\\vdots&&\ddots&\vdots\\-1&-1&\cdots&n-1\end{pmatrix} =nI_n-\mathbf{1}\mathbf{1}^\top.\]

  • If \(Lf=0\), then \(nf=\inr{f,\mathbf{1}}\mathbf{1}\), so \(f\in{\rm span}(\mathbf{1})\).
  • Hence, the multiplicity of \(0\) is \(1\).

Why is \(L\) called a Laplacian? Newton’s law of cooling

Imagine temperatures \(T_i\) on the nodes. Heat flows in proportion to the temperature difference: \[\frac{dT_i}{dt}=-\kappa\sum_{j\in V}A_{ij}(T_i-T_j).\]

  • Node \(i\) exchanges heat only with its neighbours.
  • In vector form: \(\dfrac{dT}{dt}=-\kappa(D-A)T=-\kappa LT\).
  • Compare with the heat equation \(\partial_t u=\alpha\Delta u\), where the Laplacian is \(\Delta = \partial_1^2 + \partial_2^2 + \cdots + \partial_n^2\). Hence, one identifies \(L\) with \(-\Delta\).

Newton heat flow

Idea: a discrete Laplacian

The graph Laplacian is the discrete analog of the Laplacian of the heat equation.

Ideal setting: disjoint communities

Ideal case: the communities are the connected components. They do not interact. Then \({\rm Ker}(L)={\rm span}(\mathbf{1}_{V_1},\ldots,\mathbf{1}_{V_k})\) where \(\mathbf{1}_{V_i}\) are the indicator vectors of the communities.

  • Almost never true in practice (a few inter-community edges always exist), but a good guide:
    replace the kernel of \(L\) by the eigenspace of the \(k\) smallest eigenvalues.
  • Given a linear space spanned by \(\mathbf{1}_{V_1},\ldots,\mathbf{1}_{V_k}\), it is hard to find the indicator vectors \(\mathbf{1}_{V_i}\) but an orthonormal basis \(u_1,\ldots,u_k\) of the space is easy to find.

The spectral method for community detection

  1. Find an orthonormal basis \(u_1,\ldots,u_k\) of \(k\) eigenvectors for the \(k\) smallest eigenvalues of \(L\) (\(k\) is a given parameter) (no need to compute the full SVD of \(L\), one can use Locally Optimal Block Preconditioned Conjugate Gradient or Implicitly Restarted Lanczos Method methods instead)
  2. Cluster the \(|V|\) row vectors \(y_i\in\R^k\) of the matrix \([u_1|\cdots|u_k]\) into \(k\) clusters \(C_1,\ldots,C_k\).
  3. Return \(V_p=\{i\in V:y_i\in C_p\}\). These are the detected communities.

Idea: cluster the rows = cluster the nodes

Each node \(i\) is represented by the \(i\)-th row of the \(n\times k\) eigenbasis matrix \([u_1|\cdots|u_k]\). Clustering these rows clusters the nodes.

Rem.: In the ideal disjoint communities setting where the \(u_i\)’s are the \(k\) normalized indicator of communities vectors, the spectral method recovers the communities exactly.

Graph cuts and modularity

Next, let us write the spectral method as an algorithm for a (none convex) relaxation problem derived from a modularity minimization problem.

Detecting communities \(\iff\) finding a cut (ie a partition of the nodes) that minimizes the inter-community weight while keeping the communities large enough.

A first modularity function (that does not keep communities’ sizes large enough): the cut modularity function of a partition \(V_1\sqcup\cdots\sqcup V_k = V\) is defined as: \[{\rm cut}(V_1,\ldots,V_k)=\frac12\sum_{i=1}^k W(V_i,V_i^c)\] where for all \(A,B\subset V\), \[W(A,B)=\sum_{\substack{(i,j)\in E\\(i,j)\in A\times B}}(W_{ij}+W_{ji})=2\sum_{\substack{(i,j)\in E\\(i,j)\in A\times B}}W_{ij}.\]

The mincut problem over two communities

The mincut problem over two communities is: \[\min_{V_1\subset V}{\rm cut}(V_1,V_1^c).\]

Show that the mincut problem over two communities is equivalent to: \[\min_{x\in\{0,1\}^{|V|}}\sum_{(i,j)\in E}x_i W_{ij}(1-x_j).\]

  • Solvable by the Stoer–Wagner algorithm.
  • In practice it often returns a singleton: the node of smallest degree.

A singleton is not a community. One must force the communities to have sufficient size
\(\Rightarrow\) we introduce the RatioCut modularity function that forces communities to have sufficient size.

The RatioCut modularity function

Definition (RatioCut)

\[{\rm RatioCut}(V_1,\ldots,V_k)=\frac12\sum_{i=1}^k\frac{W(V_i,V_i^c)}{\color{red}{|V_i|}}.\]

  • The factor \(1/|V_i|\) penalizes small communities.
  • Minimizing RatioCut over all partitions of \(V\) is NP-hard in general.
  • We rewrite it as a vector optimization problem for the problem of finding two communities (then as a matrix problem for the general \(k\) communities case).
  • A relaxation of this problem will be the spectral method.

Membership vector for two communities

For \(V_1\subset V\), we define the membership vector as \(f^{V_1} = (f_i^{V_1})_{i\in V}\) with \(i\)th coordinate given by \[f_i^{V_1}=\begin{cases}\sqrt{|V_1^c|/|V_1|}& \text{if }i\in V_1,\\[4pt]-\sqrt{|V_1|/|V_1^c|}& \text{if }i\notin V_1.\end{cases}\]

Proposition

Let \(L\) be the Laplacian of an undirected weighted graph, and \(n=|V|\). Then for all \(V_1\subset V\), \(\inr{f^{V_1},\mathbf{1}}=0\) and \(\norm{f^{V_1}}_2^2=n\). Moreover, \((f^{V_1})^\top L f^{V_1}=n\,{\rm RatioCut}(V_1,V_1^c)\).

Minimizing RatioCut is equivalent to minimizing \(f\to f^\top Lf\) over these discrete vectors \(f^{V_1}\): \[ \min_{V_1\subset V}\left((f^{V_1})^\top L f^{V_1} \right) = \min_{V_1\subset V}\left((f^{V_1})^\top L f^{V_1}: \inr{f^{V_1},\mathbf{1}}=0,\,\norm{f^{V_1}}_2^2=n\right). \]

Is there a fast algorithm to solve this optimization problem? What makes it difficult?

Convex relaxation for \(k=2\) communities

Three equivalent discrete problems: \[ \min_{V_1\subset V}(f^{V_1})^\top Lf^{V_1},\qquad\min_{V_1\subset V}\big((f^{V_1})^\top Lf^{V_1}:\norm{f^{V_1}}_2^2=n,\,\inr{f^{V_1},\mathbf{1}}=0\big), \qquad \min_{V_1\subset V}{\rm RatioCut}(V_1,V_1^c). \] All are NP-hard.

  • The objective function \(f\mapsto f^\top Lf\) is convex (\({\rm Hess}=2L\succeq 0\)). ✔
  • The difficulty is the discrete constraint \(f=f^{V_1}\) or \(V_1\subset V\). ✘

Relaxation: Drop the combinatorial constraint $f=f^{V_1}$ to let $f\in\R^{|V|}$: \[ \min_{f\in\color{red}{\R^{|V|}}}\big(f^\top Lf:\norm{f}_2^2=1,\,\inr{f,\mathbf{1}}=0\big). \]

Is this a convex optimization problem? Is it better than the discrete problems?

The Fiedler vector

Definition (Fiedler vector)

A Fiedler vector of \(L\) is an eigenvector for the second smallest eigenvalue. That eigenvalue is the algebraic connectivity.

Proposition

The Fiedler vectors are exactly the solutions of the relaxed problem.

Proof. Write \(0=\lambda_1\leq\lambda_2\leq\cdots\leq\lambda_n\) and \(u_1=\mathbf{1}\). If \(\norm{f}_2=1\) and \(\inr{f,\mathbf{1}}=0\), \[f^\top Lf=\sum_{i=2}^n\lambda_i\inr{u_i,f}^2\geq\lambda_2,\] with equality at \(f=u_2\). \(\square\)

From a Fiedler vector to two communities

  • A Fiedler vector \(u_2\) approximates the two-valued membership vector \(f^{V_1^*}\).
  • Its coordinates should concentrate around two values.
  • Cluster the coordinates of \(u_2\) into two classes \(C_1,C_2\) on \(\R\).
  • The communities are \(\{i:u_{2i}\in C_1\}\) and \(\{i:u_{2i}\in C_2\}\).

This is the spectral method for \(k=2\), with first eigenvector \(u_1=\mathbf{1}\) (clustering the rows of \([u_1|u_2]\) is the same as clustering the coordinates of \(u_2\)).

Membership matrix for \(k\) communities

To a partition \(V_1\sqcup\cdots\sqcup V_k\) associate \(H\in\R^{|V|\times k}\) with columns \(h_j=\mathbf{1}_{V_j}/\sqrt{|V_j|}\): \[H_{ij}=\begin{cases}1/\sqrt{|V_j|}& \text{if }i\in V_j,\\0& \text{otherwise.}\end{cases}\]

Proposition

\(H^\top H=I_k\) and \({\rm RatioCut}(V_1,\ldots,V_k)={\rm Tr}(H^\top LH)\).

  • \(H^\top H=I_k\): the \(V_j\) are disjoint, and \(\sum_{i\in V_j}1/|V_j|=1\).
  • \({\rm Tr}(H^\top LH)=\sum_p h_p^\top Lh_p=\sum_p W(V_p,V_p^c)/(2|V_p|)\).

Relaxation for \(k\) communities

The discrete problems \(\min{\rm Tr}(H^\top LH)\) over membership matrices \(H\) are NP-hard. The objective \(H\mapsto{\rm Tr}(H^\top LH)\) is convex. Relax the combinatorial constraint: \[\min_{\substack{H\in\R^{|V|\times k}\\H^\top H=I_k}}{\rm Tr}(H^\top LH).\]

Write \(L=UDU^\top\) with \(0=\lambda_1\leq\cdots\leq\lambda_n\). Then \[{\rm Tr}(H^\top LH)=\sum_i\lambda_i\norm{a_i}_2^2,\qquad\sum_i\norm{a_i}_2^2=k,\] where \(a_i\) is the \(i\)-th row of \(U^\top H\). The minimum is \(\sum_{i=1}^k\lambda_i\), attained when \[{\rm span}(h_1,\ldots,h_k)={\rm span}(u_1,\ldots,u_k).\]

  • The solutions are orthonormal bases of the eigenspace of the \(k\) smallest eigenvalues.
  • Cluster the \(n\) rows of \(H\) into \(k\) groups: this is again the spectral method.

Algorithm of the spectral method

Algorithm (spectral method)

Input: Laplacian \(L\) of \(G\), and \(k\).

  1. Compute an orthonormal basis of \(k\) eigenvectors \(u_1,\ldots,u_k\) for the \(k\) smallest eigenvalues of \(L\).
  2. Form the \(n\times k\) matrix \(H=[u_1|\cdots|u_k]\) with these columns.
  3. Cluster the \(n\) rows \(y_1,\ldots,y_n\in\R^k\) of \(H\) into \(k\) clusters \(C_1,\ldots,C_k\).
  4. Output: communities \(\{i:y_i\in C_p\}\), \(p=1,\ldots,k\).
  • Justified by the relaxation of the RatioCut minimization problem, or by the ideal connected-component picture.

Choose \(k\) by an elbow in the spectrum of \(L\), or by evaluating a modularity (e.g. RatioCut) as a function of \(k\).

Probabilistic graph models for community detection

Why a random graph?

  • Until now every edge was observed.
  • In applications (genes, companies, ) some links are missing or uncertain.
  • One then assumes a probabilistic model under the observations, and still wants the communities.
  • The same spectral method will be applied to the Laplacian of the observed adjacency matrix.

The Erdős–Rényi model

Definition (Erdős–Rényi)

\(G\sim G(n,p)\) is an undirected unweighted graph on \(n\) nodes with \[A_{ij}=A_{ji},\qquad A_{ii}=1,\qquad (A_{ij})_{j>i}\ \text{i.i.d. }{\rm Bern}(p).\]

  • Every pair of distinct nodes is connected independently with probability \(p\).
  • No community structure: a null model.

The stochastic block model

Definition (SBM)

\(G\sim G(n,p,q)\) with \(0\leq q<p\leq 1\) if there is a partition \(V=V_1\sqcup V_1^c\) such that, for \(i<j\), \[A_{ij}\sim\begin{cases}{\rm Bern}(p)&\text{if }i,j\text{ are in the same community},\\{\rm Bern}(q)&\text{otherwise,}\end{cases}\] and \(A_{ji}=A_{ij}\), \(A_{ii}=1\).

  • Intra-community edges are more likely than inter-community edges (\(p>q\)).
  • Problem: given one draw of \(G\), recover \(V_1\) and \(V_1^c\).

Likelihood in the two-community SBM

Given \(A\), the likelihood at \((V_1,p,q)\) is \[\cL(V_1,p,q)=\prod_{(i,j)\in\cC}p^{A_{ij}}(1-p)^{1-A_{ij}}\prod_{(i,j)\in\cC^c}q^{A_{ij}}(1-q)^{1-A_{ij}},\] where \(\cC\) is the set of intra-community pairs \(i<j\) and \(\cC^c\) the inter-community pairs.

  • Write \(N_{\cC}=\sum_{(i,j)\in\cC}A_{ij}\) and \(P_{\cC}=N_{\cC}/|\cC|\) (and likewise for \(\cC^c\)).
  • The MLE maximizes \(\log\cL\) in \((V_1,p,q)\) under \(p\geq q\).
  • For equal-size communities, \(|\cC|=|\cC^c|=(n^2-n)/4\).

Maximum likelihood equals RatioCut

For \(|V_1|=n/2\), maximizing in \((p,q)\) first (KKT) yields:

  • if \(P_{\cC}>P_{\cC^c}\), then \(\hat p=P_{\cC}\), \(\hat q=P_{\cC^c}\);
  • otherwise \(\hat p=\hat q=(P_{\cC}+P_{\cC^c})/2\), and the value does not depend on \(V_1\).

The remaining problem in \(V_1\) is to maximize an entropy under \(P_{\cC}\geq P_{\cC^c}\). Since \(P_{\cC}+P_{\cC^c}\) is constant, this is equivalent to minimizing \(P_{\cC^c}\).

\[P_{\cC^c}={\rm RatioCut}(V_1,V_1^c).\]

Idea: MLE is RatioCut

For two equal-size communities, the MLE in the SBM is the RatioCut problem.

An equivalent discrete program

Remark

For \(|V_1|=n/2\) one has \(f^{V_1}\in\{-1,1\}^n\), so the MLE / RatioCut problem is \[\min\big(x^\top Lx:\inr{x,\mathbf{1}}=0,\,x\in\{-1,1\}^n\big).\] Since \(x^\top Lx=-x^\top Ax+\sum_{i,j}A_{ij}\) and the second term is constant, this is also \[\max\big(x^\top Ax:\inr{x,\mathbf{1}}=0,\,x\in\{-1,1\}^n\big).\]

This last form is the one we shall lift to an SDP.

Detectability: isolated nodes

If a node of \(V_1\) has no edge inside \(V_1\), there is no reason to assign it to \(V_1\). Exact recovery then fails.

Proposition

If \(p\leq\log(n/2)\,/\,(n/2-2)\), then \(\PP[\text{some node of }V_1\text{ is isolated in }V_1]\geq 1/2\).

Proof idea. Let \(A_i\) be the event that \(i\in V_1\) is isolated in \(V_1\), and \(N=|V_1|-1\). Then \(\PP[A_i]=(1-p)^N\). A Bonferroni bound \[\PP[\cup_i A_i]\geq(N+1)(1-p)^N-(N+1)N(1-p)^{2N-1}\] is at least \(1/2\) as soon as \(p\leq(\log N)/(N-1)\). \(\square\)

  • Exact recovery therefore requires \(p\gtrsim\alpha\log n\,/\,n\). The hard regime is \(q=\beta\log n\,/\,n\) with \(\beta<\alpha\).

Information-theoretic phase transition

Theorem (phase transition in the equal-size SBM)

Let \(\hat V_1\) be the MLE (minimal RatioCut). If \(p=\alpha\log n\,/\,n\) and \(q=\beta\log n\,/\,n\), then:

  • if \(\sqrt{\alpha}-\sqrt{\beta}>\sqrt{2}\), then \(\hat V_1,\hat V_1^c\) recover \(V_1,V_1^c\) with high probability;
  • if \(\sqrt{\alpha}-\sqrt{\beta}<\sqrt{2}\), no algorithm succeeds with probability \(\geq 1/2\).
  • A sharp threshold, but the MLE is not computable.
  • The practical question: can a spectral or SDP method attain (or approach) this threshold?

Spectral method for the equal-size SBM

Lemma

If \(|V_1|=|V_1^c|=n/2\), the following are equivalent:

  1. \(u_2\) is a Fiedler vector of \(\E L=\E(D-A)\);
  2. \(u_2\) is a leading eigenvector of \[\E A-\Big[n\tfrac{p+q}{2}+(1-p)\Big]\Big(\tfrac{\mathbf{1}}{\sqrt n}\Big)\Big(\tfrac{\mathbf{1}}{\sqrt n}\Big)^\top.\]

Why. All mean degrees are equal, so \(\E D\) is a multiple of \(I_n\). Eigenvectors of \(\E L\) and \(\E A\) coincide (eigenvalues reversed). The leading eigenspace of \(\E A\) is \({\rm span}(\mathbf{1})\); removing it leaves the Fiedler direction.

A practical spectral problem

We do not know \(\E A\), \(p\) or \(q\). Estimate:

  • \(\E A\) by \(A\);
  • \((p+q)/2\) by the edge density \[\lambda=\frac{2}{n(n-1)}\sum_{i<j}A_{ij},\qquad \E\lambda=\frac{p+q}{2}-\frac{p-q}{n-1}.\]

The spectral method becomes \[\max_{\norm{x}_2\leq 1}\inr{x,(A-\lambda J_n)x},\qquad J_n=\mathbf{1}\mathbf{1}^\top.\]

Matrix lifting

Under equal sizes, \(f^{V_1}\in\{-1,1\}^n\), and the discrete problem is \[\max_{x\in\{-1,1\}^n}x^\top(A-\lambda J_n)x=\max_{x\in\{-1,1\}^n}\inr{A-\lambda J_n,xx^\top}.\]

Passing from a quadratic function of \(x\) to a linear function of \(Z=xx^\top\) is matrix lifting.

The matrix \(Z=xx^\top\) satisfies: \(Z=Z^\top\), \(Z\succeq 0\), \({\rm diag}(Z)=I_n\), and \({\rm rank}(Z)=1\).

Idea: drop the rank

The only nonconvex constraint is \({\rm rank}(Z)=1\). Removing it yields an SDP.

SDP relaxation

\[\max_{\substack{Z\succeq 0\\{\rm diag}(Z)\preceq I_n}}\inr{A-\lambda J_n,Z}.\]

  • If \(\hat Z\) is a solution, take a leading eigenvector \(\hat x\) and its sign.
  • \(\{i:{\rm sign}(\hat x_i)=1\}\) and its complement are the estimated communities.

Proposition

The oracle problem \(\max\inr{\E A-\alpha u_1\otimes u_1,Z}\) (same constraints) has the unique solution \(\bar x\otimes\bar x\), where \(\bar x_i=\pm 1\) is the true membership vector and \(\alpha=n(p+q)/2+(1-p)\).

Algorithm of the SDP method

Algorithm (SDP relaxation)

Input: adjacency matrix \(A\) of a two-community equal-size SBM.

  1. Compute \(\lambda=\frac{2}{n(n-1)}\sum_{i<j}A_{ij}\).
  2. Solve the SDP \(\max\inr{A-\lambda J_n,Z}\) over \(Z\succeq 0\), \({\rm diag}(Z)\preceq I_n\).
  3. Take a leading eigenvector \(\hat x\) of the solution \(\hat Z\).
  4. Output: \(\hat V_1=\{i:{\rm sign}(\hat x_i)=1\}\) and \(\hat V_1^c\).

Estimation rate and Grothendieck’s inequality

What we want to prove

Observe \(A\sim{\rm SBM}(n,p,q)\) with equal-size communities. Let \(\hat Z\) be the SDP solution and \(\hat x\) a leading eigenvector. We want \(\hat x\) close to the membership \(\bar x\in\{\pm 1\}^n\).

Theorem (estimation of \(\bar x\bar x^\top\))

Assume \(n\geq 10^4\eps\), \(\max(p(1-p),q(1-q))\geq 20/n\), \(p\geq a/n\), \(q\geq b/n\) and \((a-b)^2\geq 10^4\eps^{-2}(a+b)\). Then, with probability at least \(1-e^3 5^{-n}\), \[\norm{\hat Z-\bar x\bar x^\top}_2^2\leq \eps n^2=\eps\norm{\bar x\bar x^\top}_2^2.\]

From matrices to vectors: Davis–Kahan

Corollary

Under the same assumptions, if \(\norm{\hat x}_2=\sqrt n\), then \[\min_{\alpha\in\{\pm 1\}}\norm{\alpha\hat x-\bar x}_2^2\leq 8\eps n=8\eps\norm{\bar x}_2^2.\]

Theorem (Davis–Kahan)

If \(A,B\) are symmetric and \(\lambda_i(A)\) has gap \(\delta>0\) from the rest of the spectrum, then \[\min_{\alpha\in\{\pm 1\}}\norm{u_i(A)-\alpha u_i(B)}_2\leq 2^{3/2}\frac{\norm{A-B}_2}{\delta}.\]

Apply it to \(A=\bar x\bar x^\top\) (gap \(\delta=n\)) and \(B=\hat Z\).

Outline of the proof

Write \(\cM_{\rm opt}=\{Z:Z\succeq 0,\,{\rm diag}(Z)\preceq I_n\}\). Three steps:

  1. Oracle: \(\bar Z=\bar x\bar x^\top\) maximizes \(Z\mapsto\inr{\E(A-\lambda J_n),Z}\) over \(\cM_{\rm opt}\) (as in the oracle proposition).
  2. Uniform concentration: with high probability, \[\sup_{Z\in\cM_{\rm opt}}\big|\inr{(A-\lambda J_n)-\E(A-\lambda J_n),Z}\big|\] is small. This is the probabilistic step.
  3. Curvature at the optimum: \(\inr{\E(A-\lambda J_n),\bar Z-Z}\gtrsim\norm{Z-\bar Z}_1\).

Grothendieck’s inequality

Theorem (Grothendieck)

If \(\big|\sum_{i,j}b_{ij}s_it_j\big|\leq 1\) for all \(s_i,t_j\in\{\pm 1\}\), then for every Hilbert space \(H\) and unit vectors \(u_i,v_j\), \(\big|\sum_{i,j}b_{ij}\inr{u_i,v_j}\big|\leq K_G\), with \(K_G\leq 1.783\).

Write \(\cM_1=\{st^\top:s,t\in\{\pm 1\}^n\}\) and \(\cM_G=\{XY^\top:\text{rows of }X,Y\text{ in }B_2^n\}\).

Corollary

\(\displaystyle\sup_{Z\in\cM_G}\inr{B,Z}\leq K_G\sup_{Z\in\cM_1}\inr{B,Z}=K_G\norm{B}_{\infty\to 1}\).

Why Grothendieck applies here

Proposition

\(\cM_{\rm opt}\subset\cM_G\).

If \(Z\succeq 0\) then \(Z=XX^\top\), and \({\rm diag}(Z)\preceq I_n\) means \(\norm{X_{i\bullet}}_2\leq 1\).

Therefore \[\sup_{Z\in\cM_{\rm opt}}\big|\inr{(A-\lambda J_n)-\E(\cdots),Z}\big|\leq K_G\norm{A-\E A}_{\infty\to 1}+K_G|\lambda-\E\lambda|\,\norm{J_n}_{\infty\to 1}.\]

  • Bound \(\norm{A-\E A}_{\infty\to 1}\) and \(|\lambda-\E\lambda|\) by Bernstein and a union bound.
  • If \(\bar p=\frac{2}{n(n-1)}\sum_{i<j}{\rm Var}(A_{ij})>9/n\), then with probability \(1-e^3 5^{-n}\), \[\norm{A-\E A}_{\infty\to 1}\leq 6n(n-1)\sqrt{\bar p/n}.\]

Exact recovery by a dual certificate

Weak duality for SDP problems

A standard SDP and its dual: \[\min\big(\inr{C,X}:X\succeq 0,\,\cA(X)=b\big),\qquad\max\big(\inr{\lambda,b}:C-\cA^\top(\lambda)\succeq 0\big).\]

  • Weak duality: \(\inr{C,X}\geq\inr{\lambda,b}\) for every feasible pair.
  • If a feasible pair saturates the inequality, both are optimal: this is a dual certificate.

Theorem (strong duality for SDP)

If there exist \(X_0\succ 0\) with \(\cA(X_0)=b\) and \(\lambda_0\) with \(C-\cA^\top(\lambda_0)\succ 0\) (Slater), then both problems attain their optima and there is no duality gap.

The dual-certificate method

Proposition

If \(X^*\) is primal-feasible, \(\lambda^*\) is dual-feasible, and \(\inr{C,X^*}=\inr{b,\lambda^*}\), then both are optimal.

Strategy.

  1. Start from an NP-hard problem \((P_0)\) (here, recover \(g=f^{V_1}\)).
  2. Convexify it into an SDP \((P)\).
  3. Take the candidate \(X_0=gg^\top\) and build a dual-feasible \(\lambda_0\) with equal objective values.
  4. Then \(X_0\) solves \((P)\): one has solved \((P_0)\) by solving \((P)\).

Another SDP, designed for exact recovery

The theoretical problem with \(\E L\) has unique solutions \(f^{V_1}\) and \(f^{V_1^c}\). We observe only \(L\), so we solve the empirical version \[\max\big(x^\top Ax:\inr{x,\mathbf{1}}=0,\,x\in\{-1,1\}^n\big).\]

  • Dropping \(\inr{x,\mathbf{1}}=0\) makes \(\mathbf{1}\) optimal: the trivial cut.
  • Penalize: replace the objective by \(x^\top Ax-\lambda\inr{x,\mathbf{1}}^2\), and add the constant \(\lambda\norm{x}_2^2\).
  • For \(\lambda=1/2\) this is \(x^\top Bx\) with \[B=2A-\mathbf{1}\mathbf{1}^\top-I_n,\qquad B_{ij}=\begin{cases}0&i=j,\\1&(i,j)\in E,\\-1&(i,j)\notin E.\end{cases}\]

Lifted SDP

\[\max\big(x^\top Bx:x\in\{-1,1\}^n\big)\quad\rightsquigarrow\quad\max\big(\inr{B,Z}:Z\succeq 0,\,Z_{ii}=1\big).\]

  • The rank constraint has been dropped: this is an SDP.
  • From a solution \(\hat Z\): take a leading eigenvector and its sign, or round \(G\sim\cN(0,\hat Z)\) and take \({\rm sign}(G)\).
  • Goal: prove that \(gg^\top\) is the unique solution, by a strict dual certificate.

Dual of the community-detection SDP

The dual can be written \[\min\big({\rm Tr}(Y):Y-B\succeq 0,\,Y\text{ diagonal}\big).\]

Weak duality: for primal-feasible \(Z\) and dual-feasible \(Y\), \[\inr{B,Z}\leq{\rm Tr}(Y).\]

\(Y\) certifies a feasible \(Z\) when \(\inr{B,Z}={\rm Tr}(Y)\), i.e. \(\inr{B-Y,Z}=0\).

For uniqueness one needs a strict certificate: \({\rm Ker}(B-Y)\) of dimension \(1\).

Lemma

If \(Y\) certifies \(gg^\top\) and \(\dim{\rm Ker}(B-Y)=1\), then \(gg^\top\) is the unique primal solution.

Construction of the certificate

Conditions on \(Y\): diagonal, \(Y\succeq B\), \((B-Y)g=0\), and \(\lambda_2(Y-B)>0\).

The first three force \[Y_{ii}=\frac{(Bg)_i}{g_i}=\frac{2(Ag)_i}{g_i}-1,\qquad Y_{ij}=0\text{ for }i\neq j.\]

Proposition

If \(\lambda_2(Y-B)>0\), then \(gg^\top\) is the unique solution of the SDP.

It remains to prove \(\lambda_2(Y-B)>0\) with high probability in the SBM.

Deterministic plus concentration

Write \(\square=(\alpha-\beta)\log n\) when \(p=\alpha\log n\,/\,n\) and \(q=\beta\log n\,/\,n\). Enough to show:

  1. \(\lambda_2(\E(Y-B))=\square\);
  2. \(\norm{(Y-B)-\E(Y-B)}_{\rm op}<\square\) with high probability.

Weyl / Courant–Fischer then gives \[\lambda_2(Y-B)\geq\lambda_2(\E(Y-B))-\norm{(Y-B)-\E(Y-B)}_{\rm op}>0.\]

Spectrum of the mean certificate

A computation with \(g\in\{\pm 1\}^n\) and \(\inr{g,\mathbf{1}}=0\) yields \[\E(Y-B)=n(p-q)I_n-(p-q)gg^\top+(1-p-q)\mathbf{1}\mathbf{1}^\top.\]

  • \(g\) is an eigenvector for the eigenvalue \(0\).
  • On \(g^\perp\), if \(p+q\leq 1\) then \(v^\top\E(Y-B)v\geq n(p-q)\), with equality for \(v\perp\mathbf{1}\).
  • Hence \(\lambda_2(\E(Y-B))=n(p-q)=(\alpha-\beta)\log n\).

Decomposing intra- and inter-community edges

Figure 1: Adjacency matrix \(A=A^{\sim}+A^{\not\sim}\): intra-community blocks (blue) and inter-community blocks (red).
  • \(Y-B=2\big[(D^{\sim}-A^{\sim})-(D^{\not\sim}-A^{\not\sim})\big]+\mathbf{1}\mathbf{1}^\top\): difference of the two Laplacians.
  • Each Laplacian is a sum of independent matrices \(\Delta_{ij}=E_{ii}+E_{jj}-E_{ij}-E_{ji}\).

Matrix Bernstein

Theorem (matrix Bernstein)

Let \(X_k\) be independent centered symmetric \(d\times d\) matrices with \(\lambda_{\max}(X_k)\leq R\) a.s. Then, with probability at least \(1-d\exp(-t)\), \[\lambda_{\max}\Big(\frac1n\sum_k X_k\Big)\leq\sigma\sqrt{\frac{2t}{n}}+\frac{2Rt}{3n},\qquad\sigma^2=\Big\|\frac1n\sum_k\E X_k^2\Big\|_{\rm op}.\]

  • The dimension \(d\) appears in the probability. Here \(t\sim\log n\), so it only costs constants.
  • Applied to the sum over intra- and inter-edges: \(R=2\) and \(\sigma^2\leq n(p+q)\).

Exact recovery by SDP

Theorem

Let \(p=\alpha\log n\,/\,n\), \(q=\beta\log n\,/\,n\) with \(0<\beta<\alpha\) and \(p+q<1\), and \(|V_1|=n/2\). Then \[\{gg^\top\}=\argmax\big(\inr{B,Z}:Z\succeq 0,\,Z_{ii}=1\big)\] with probability at least \(1-2/n^\eps\), as soon as \[\sqrt{2(1+\eps)(\alpha+\beta)}+\frac{4(1+\eps)}{3}<\alpha-\beta.\]

  • An NP-hard problem is solved, for most SBM graphs, by an SDP.
  • The threshold is more restrictive than \(\sqrt{\alpha}-\sqrt{\beta}>\sqrt{2}\).

No computational gap

Theorem (improved analysis)

Under the same SBM assumptions, \(gg^\top\) is the unique SDP solution with high probability as soon as \[\sqrt{\alpha}-\sqrt{\beta}>\sqrt{2}.\]

  • The SDP attains the information-theoretic threshold.
  • There is no computational gap for two equal-size communities in the SBM.

Idea: randomness does things well

NP-hard problems can become easy under a natural random model. Convex relaxation — of the objective, of the constraint, or by matrix lifting — is the right device.