AIDAMS – S7

An introduction example: finding a top eigenvector
Exercise 1: Let \(x\in\bR^n\).
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?
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 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!
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:
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:
Example 2: the Max-Cut problem
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.
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.
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.
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.
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.
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)\).
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} \]
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)\]
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\}\).
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.
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} \]
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.

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.
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.
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 (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’.
Proposition
Let \(G=(V,E,W)\) be undirected with \(W_{ij}\geq 0\). Then:
Proof.
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.
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.\]
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.
Remark
The same statement holds for unweighted undirected graphs, by taking \(W=(1)_{i,j}\).
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.\]
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).\]

Idea: a discrete Laplacian
The graph Laplacian is the discrete analog of the Laplacian of the heat equation.
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.
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.
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 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).\]
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.
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|}}.\]
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?
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.
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?
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\)
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\)).
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)\).
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).\]
Algorithm (spectral method)
Input: Laplacian \(L\) of \(G\), and \(k\).
Choose \(k\) by an elbow in the spectrum of \(L\), or by evaluating a modularity (e.g. RatioCut) as a function of \(k\).
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).\]
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\).
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.
For \(|V_1|=n/2\), maximizing in \((p,q)\) first (KKT) yields:
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.
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.
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\)
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:
Lemma
If \(|V_1|=|V_1^c|=n/2\), the following are equivalent:
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.
We do not know \(\E A\), \(p\) or \(q\). Estimate:
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.\]
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.
\[\max_{\substack{Z\succeq 0\\{\rm diag}(Z)\preceq I_n}}\inr{A-\lambda J_n,Z}.\]
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 (SDP relaxation)
Input: adjacency matrix \(A\) of a two-community equal-size SBM.
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.\]
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\).
Write \(\cM_{\rm opt}=\{Z:Z\succeq 0,\,{\rm diag}(Z)\preceq I_n\}\). Three steps:
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}\).
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}.\]
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).\]
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.
Proposition
If \(X^*\) is primal-feasible, \(\lambda^*\) is dual-feasible, and \(\inr{C,X^*}=\inr{b,\lambda^*}\), then both are optimal.
Strategy.
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).\]
\[\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 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.
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.
Write \(\square=(\alpha-\beta)\log n\) when \(p=\alpha\log n\,/\,n\) and \(q=\beta\log n\,/\,n\). Enough to show:
Weyl / Courant–Fischer then gives \[\lambda_2(Y-B)\geq\lambda_2(\E(Y-B))-\norm{(Y-B)-\E(Y-B)}_{\rm op}>0.\]
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.\]
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}.\]
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.\]
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}.\]
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.