Phase Transitions in Semidefinite Relaxations

Adel Javanmard, Andrea Montanari, Federico Ricci-Tersenghi

Introduction

Many information processing tasks can be formulated as optimization problems. This idea has been central to data analysis and statistics at least since Gauss and Legendre’s invention of the least-squares method in the early 19th century [Gau09].

Modern datasets pose new challenges to this centuries’ old framework. On the one hand, high-dimensional applications require to estimate simultaneously millions of parameters. Examples span genomics [BDSY99], imaging [P+09], web-services [KBV09], and so on. On the other hand, the unknown object to be estimated has often a combinatorial structure: In clustering we aim at estimating a partition of the data points [VL07]. Network analysis tasks usually require to identify a discrete subset of nodes in a graph [GN02, KMM+13]. Parsimonious data explanations are sought by imposing combinatorial sparsity constraints [Was00].

There is an obvious tension between the above requirements. While efficient algorithms are needed to estimate a large number of parameters, the maximum likelihood method often requires to solve NP-hard combinatorial optimizations. A flourishing line of work addresses this conundrum by designing effective convex relaxations of these combinatorial problems [Tib96, CDS98, CT10].

Unfortunately, the statistical properties of such convex relaxations are well understood only in a few cases (compressed sensing being the most important success story [DT05, CT07, DMM09, ALMT14]). In this paper we use tools from statistical mechanics to develop a precise picture of the behavior of a class of semidefinite programming relaxations. Relaxations of this type appear to be surprisingly effective in a variety of problems ranging from clustering to graph synchronization. For the sake of concreteness we will focus on three specific problems:

(Note that entries on the diagonal carry no information.) Here x0∈{+1,−1}n\bm{x_{0}}\in\{+1,-1\}^{n}, x0∗\bm{x_{0}}^{*} denote the transpose of x0\bm{x_{0}}, and W=(Wij)i,j≤n\bm{W}=(W_{ij})_{i,j\leq n} is a random matrix from the Gaussian Orthogonal Ensemble (GOE), i.e. a symmetric matrix with independent entries (up to symmetry) (Wij)1≤i<j≤n∼i.i.d.N(0,1/n)(W_{ij})_{1\leq i<j\leq n}\sim_{i.i.d.}{\sf N}(0,1/n) and (Wii)1≤i≤n∼i.i.d.N(0,2/n)(W_{ii})_{1\leq i\leq n}\sim_{i.i.d.}{\sf N}(0,2/n).

Here a>b>0a>b>0 are model parameters that will be kept of order one as n→∞n\to\infty. This corresponds to a random graph with bounded average degree d=(a+b)/2d=(a+b)/2, and a cluster (a.k.a. ‘block’ or ‘community’) structure corresponding to the partition V+∪V−V_{+}\cup V_{-}. Given a realization of such a graph, we are interested in estimating the underlying partition.

A generalization of this problem to the case of more than two blocks has been studied since the eighties as a model for social network structure [HLL83], under the name of ‘stochastic block model.’ For the sake of simplicity, we will focus here on the two-blocks case.

Illustrations

Classical statistical theory suggests two natural reference estimators: the Bayes-optimal and the maximum likelihood estimators. We will discuss these methods first, in order to set the stage for SDP relaxations.

Bayes-optimal estimator (a.k.a. minimum MSE). This provides a lower bound on the performance of any other approach. It takes the conditional expectation of the unknown signal given the observations:

Explicit formulas are given in Supplementary Information (SI). We note that x^\mboxBayes(Y)\bm{\hat{x}}^{\mbox{\tiny{Bayes}}}(\bm{Y}) assumes knowledge of the prior distribution. The red-dashed curve in Fig. 1 presents our analytical prediction for the asymptotic MSE for x^\mboxBayes( ⋅ )\bm{\hat{x}}^{\mbox{\tiny{Bayes}}}(\,\cdot\,). Notice that MSE(x^\mboxBayes)=1{\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{Bayes}}})=1 for all λ≤1\lambda\leq 1 and MSE(x^\mboxBayes)<1{\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{Bayes}}})<1 strictly for all λ>1\lambda>1, with MSE(x^\mboxBayes)→0{\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{Bayes}}})\to 0 quickly as λ→∞\lambda\to\infty. The point λc\mboxBayes=1\lambda_{c}^{\mbox{\tiny{Bayes}}}=1 corresponds to a phase transition for optimal estimation, and no method can have non-trivial MSE{\rm MSE} for λ≤λc\mboxBayes\lambda\leq\lambda_{c}^{\mbox{\tiny{Bayes}}}.

Maximum likelihood (MLE). The estimator x^\mboxML(Y)\bm{\hat{x}}^{\mbox{\tiny{ML}}}(Y) is given by the solution of

Here c(λ)c(\lambda) is a scaling factorIn practical applications, λ\lambda might not be known. We are not concerned by this at the moment, since maximum likelihood is used as a idealized benchmark here. Note that, strictly speaking, this is a ‘scaled’ maximum likelihood estimator. We prefer to scale x^\mboxML(Y)\bm{\hat{x}}^{\mbox{\tiny{ML}}}(\bm{Y}) in order to keep MSE(x^\mboxML)∈{\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{ML}}})\in. that is chosen according to the asymptotic theory as to minimize the MSE. As for the Bayes-optimal curve, we obtain MSE(x^\mboxML)=1{\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{ML}}})=1 for λ≤λc\mboxML=1\lambda\leq\lambda_{c}^{\mbox{\tiny{ML}}}=1 and MSE(x^\mboxML)<1{\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{ML}}})<1 (and rapidly decaying to 0) for λ>λc\mboxML\lambda>\lambda_{c}^{\mbox{\tiny{ML}}} . (We refer to the SI for this result.)

We use ⟨ ⋅ ,⋅ ⟩\langle\,\cdot\,,\cdot\,\rangle to denote the scalar product between matrices, namely ⟨A,B⟩≡Tr(A∗B)\langle\bm{A},\bm{B}\rangle\equiv{\sf Tr}(\bm{A}^{*}\bm{B}), and A⪰0\bm{A}\succeq 0 to indicate that A\bm{A} is positive semidefiniteRecall that a symmetric matrix A\bm{A} is said to be PSD if all of its eigenvalues are non-negative. (PSD). If we assume X=xx∗\bm{X}={\bm{x}}{\bm{x}}^{*}, the SDP (288) reduces to the maximum-likelihood problem (5). By dropping this condition, we obtain a convex optimization problem that is solvable in polynomial time. Given an optimizer X\mboxopt=X\mboxopt(Y)\bm{X}_{\mbox{\tiny{opt}}}=\bm{X}_{\mbox{\tiny{opt}}}(\bm{Y}) of this convex problem, we need to produce a vector estimate. We follow a different strategy from standard ‘rounding’ methods in computer science, which is motivated by our analysis below. We compute the eigenvalue decomposition X\mboxopt=∑i=1nξi vivi∗\bm{X}_{\mbox{\tiny{opt}}}=\sum_{i=1}^{n}\xi_{i}\,{\bm{v}}_{i}{\bm{v}}_{i}^{*}, with eigenvalues ξ1≥ξ2≥⋯≥ξn≥0\xi_{1}\geq\xi_{2}\geq\dots\geq\xi_{n}\geq 0, and eigenvectors vi=vi(X\mboxopt(Y)){\bm{v}}_{i}={\bm{v}}_{i}(\bm{X}_{\mbox{\tiny{opt}}}(\bm{Y})), with ∥vi∥2=1\|{\bm{v}}_{i}\|_{2}=1. We then return the estimate

with c\mboxSDP(λ)c^{\mbox{\tiny{SDP}}}(\lambda) a certain scaling factor, see SI.

Our analytical prediction for MSE(x^\mboxSDP){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}}) is plotted as blue solid line in Fig. 1. Dots report the results of numerical simulations with this relaxation for increasing problem dimensions. The asymptotic theory appears to capture very well these data already for n=200n=200. For further comparison, alongside the above estimators, we report the asymptotic prediction for MSE(x^\mboxPCA){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{PCA}}}), the mean square error of principal component analysis. This method simply returns the principal eigenvector of Y\bm{Y}, suitably rescaled (see SI).

Figure 1 reveals several interesting features:

Phase transition for optimal estimation. Bayes-optimal estimation achieves non-trivial accuracy as soon as λ>λc\mboxBayes=1\lambda>\lambda_{c}^{\mbox{\tiny{Bayes}}}=1. The same is achieved by a method as simple as PCA (blue-dashed curve). On the other hand, for λ<1\lambda<1 no method can achieve a mean square error that is asymptotically smaller than one (the latter can be achieved trivially by returning x^=0\bm{\hat{x}}=0.)

Suboptimality of PCA at large signal strength. PCA can be implemented efficiently, but does not exploit the information x0,i∈{+1,−1}x_{0,i}\in\{+1,-1\}. As a consequence, its estimation error is significantly sub-optimal at large λ\lambda (see SI).

Near-optimality of SDP relaxations. The tractable estimator x^\mboxSDP(Y)\bm{\hat{x}}^{\mbox{\tiny{SDP}}}(\bm{Y}) achieves the best of both worlds. Its phase transition coincides with the Bayes-optimal one λc\mboxBayes=1\lambda_{c}^{\mbox{\tiny{Bayes}}}=1, and MSE(x^\mboxSDP){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}}) decays exponentially at large λ\lambda, staying close to MSE(x^\mboxBayes){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{Bayes}}}) and strictly smaller than MSE(x^\mboxPCA){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{PCA}}}), for λ≥1\lambda\geq 1.

We believe that the above features are generic: as shown in the SI, U(1)U(1) synchronization confirms this expectation.

Figures 2 illustrates our results for the community detection problem under the hidden partition model of Eq. (287). Recall that we encode the ground truth by a vector x0∈{+1,−1}n\bm{x_{0}}\in\{+1,-1\}^{n}. In the present context, an estimator is required to return a partition of the vertices of the graph. Formally, it is a function on the space of graphs with nn vertices Gn{\mathcal{G}}_{n}, namely x^:Gn→{+1,−1}n\bm{\hat{x}}:{\mathcal{G}}_{n}\to\{+1,-1\}^{n}, G↦x^(G)G\mapsto\bm{\hat{x}}(G). We will measure the performances of such an estimator through the overlap:

where 1=(1,1,…,1){\mathbf{1}}=(1,1,\dots,1) is the all-ones vector. Once more, this problem is hard to approximate [Kho06], which motivates the following SDP relaxation:

Let us emphasize a few features of Figure 2:

Superiority of SDP to PCA. A sequence of recent papers (see [KMM+13] and references therein) demonstrate that classical spectral methods –such as PCA– fail to detect the hidden partition in graphs with bounded average degree. In contrast, Figure 2 shows that a standard SDP relaxation does not break down in the sparse regime. See [MS15] for rigorous evidence towards the same conclusion.

Near optimality of SDP. As proven in [MNS12], no estimator can achieve Overlapn(x^)≥δ>0{\rm Overlap}_{n}(\bm{\hat{x}})\geq\delta>0 as n→∞n\to\infty, if λ=(a−b)/2(a+b)<1\lambda=(a-b)/\sqrt{2(a+b)}<1.

Figure 2 (and the theory developed in the next section) suggests that SDP has a phase transition threshold. Namely, there exists λc\mboxSDP=λc\mboxSDP(d)\lambda_{c}^{\mbox{\tiny{SDP}}}=\lambda_{c}^{\mbox{\tiny{SDP}}}(d) such that, if

then SDP achieves overlap bounded away from zero: Overlap(x^\mboxSDP)>0{\rm Overlap}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}})>0. The figure also suggests λc\mboxSDP(5)≈λc\mboxBayes=1\lambda_{c}^{\mbox{\tiny{SDP}}}(5)\approx\lambda_{c}^{\mbox{\tiny{Bayes}}}=1, i.e. SDP is nearly optimal.

Below we will derive an accurate approximation for the critical point λc\mboxSDP(d)\lambda_{c}^{\mbox{\tiny{SDP}}}(d). The factor λc\mboxSDP(d)\lambda_{c}^{\mbox{\tiny{SDP}}}(d) measures the sub-optimality of SDP for graphs of average degree dd.

Figure 3 plots our prediction for the function λc\mboxSDP(d)\lambda_{c}^{\mbox{\tiny{SDP}}}(d), together with empirically determined values for this threshold, obtained through Monte Carlo experiments for d∈{2,5,10}d\in\{2,5,10\} (red circles). These were obtained by running the SDP estimator on randomly generated graphs with size up to n=64,000n=64,000 (total CPU time was about 1010 years). In particular, we obtain λc\mboxSDP(d)>1\lambda_{c}^{\mbox{\tiny{SDP}}}(d)>1 strictly, but the gap λc\mboxSDP(d)−1\lambda_{c}^{\mbox{\tiny{SDP}}}(d)-1 is very small (at most of the order of 2%2\%) for all dd. This confirms in a precise quantitative way the conclusion that SDP is nearly optimal for the hidden partition problem.

Simulations results are in broad agreement with our predictions, but present small discrepancies (below 0.5%0.5\%). These discrepancies might be due to the extrapolation form finite-nn simulations to n→∞n\to\infty, or to the inaccuracy of our analytical calculation.

Analytical results

Our analysis is based on a connection with statistical mechanics. The models arising from this connection are spin models in the so-called ‘large-NN’ limit, a topic of intense study across statistical mechanics and quantum field theory [BW93]. Here we exploit this connection to apply non-rigorous but sophisticated tools from the theory of mean field spin glasses [MM09, MPV87]. The paper [MS15] provides partial rigorous evidence towards the predictions developed here.

A crucial question is how the solution of (49) depends on the spin dimensionality mm, for m≪nm\ll n. Denote by OPT(Y;m){\rm OPT}(\bm{Y};m) the optimum value when the dimension is mm (in particular OPT(Y;m){\rm OPT}(\bm{Y};m) is also the value of (288) for m≥nm\geq n). It was proven in [MS15] that there exists a constant CC independent of mm and nn such that

with probability converging to one as n→∞n\to\infty (whereby Y\bm{Y} is chosen with any of the distributions studied in the present paper). The upper bound in Eq. (14) follows immediately from the definition. The lower bound is a generalization of the celebrated Grothendieck inequality from functional analysis [KN12].

The above inequalities imply that we can obtain information about the SDP (288) in the n→∞n\to\infty limit, by taking m→∞m\to\infty after n→∞n\to\infty. This is the asymptotic regime usually studied in physics under the term ‘large-NN limit.’

Finally, we can associate to the problem (49) a finite-temperature Gibbs measure as follows:

where p0(dσi)p_{0}({\rm d}{\bm{\sigma}}_{i}) is the uniform measure over the mm-dimensional sphere Sm−1S^{m-1}, and ℜ(z)\Re(z) denotes the real part of zz. This allows to treat in a unified framework all of the estimators introduced above. The optimization problem (49) is recovered by taking the limit β→∞\beta\to\infty (with maximum likelihood for m=1m=1 and SDP for m→∞m\to\infty). The Bayes-optimal estimator is recovered by setting m=1m=1 and β=λ/2\beta=\lambda/2 (in the real case) or β=λ\beta=\lambda (in the complex case).

The cavity method from spin-glass theory can be used to analyze the asymptotic structure of the Gibbs measure (42) as n→∞n\to\infty. Below we will state the predictions of our approach for the SDP estimator x^\mboxSDP\bm{\hat{x}}^{\mbox{\tiny{SDP}}}.

Here we list the main steps of our analysis for the expert reader, deferring a complete derivation to the SI:

We use the cavity method to derive the ‘replica symmetric’ predictions for the model (42) in the limit n→∞n\to\infty.

By setting m=1m=1, β=λ/2\beta=\lambda/2 (in the real case) or β=λ\beta=\lambda (in the complex case) we obtain the Bayes-optimal error MSE(x^\mboxBayes){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{Bayes}}}): on the basis of [DAM15], we expect the replica symmetric assumption to hold, and these predictions to be exact. (See also [LKZ15] for related work.)

By setting m=1m=1 and β→∞\beta\to\infty we obtain a prediction for the error of maximum likelihood estimation MSE(x^\mboxML){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{ML}}}). While this prediction is not expected to be exact (because of replica symmetry breaking), it should be nevertheless rather accurate, especially for large λ\lambda.

By setting m→∞m\to\infty and β→∞\beta\to\infty, we obtain the SDP estimation error MSE(x^\mboxSDP){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}}), which is our main object of interest. Notice that the inversion of limits m→∞m\to\infty and n→∞n\to\infty is justified (at the level of objective value) by Grothendieck inequality. Further, since the m=∞m=\infty case is equivalent to a convex program, we expect the replica symmetric prediction to be exact in this case.

These equations can be solved by iteration, after approximating the expectations on the right-hand side numerically. The properties of the SDP estimator can be derived from this solution. Concretely, we have

The corresponding curve is plotted in Figure 2.

For ν\nu a probability measure on Sm−1S^{m-1} and RR an orthogonal (or unitary) matrix, let νR\nu^{R} be the measure obtained byFormally, νR(σ∈A)≡ν(R−1σ∈A)\nu^{R}({\bm{\sigma}}\in A)\equiv\nu(R^{-1}{\bm{\sigma}}\in A). ‘rotating’ ν\nu. Finally, let pi(1),…,i(k)(m,β)p^{(m,\beta)}_{i(1),\dots,i(k)} denote the joint distribution of σi(1),⋯ ,σi(k){\bm{\sigma}}_{i(1)},\cdots,{\bm{\sigma}}_{i(k)} under pm,βp_{m,\beta}. Then, for any fixed kk, and any sequence of kk-uples (i(1),…,i(k))n∈[n](i(1),\dots,i(k))_{n}\in[n], we have

Here dR{\rm d}R denotes the uniform (Haar) measure on the orthogonal group, ⇒\Rightarrow denotes convergence in distribution (note that pi(1),…,i(k)(m,β)p^{(m,\beta)}_{i(1),\dots,i(k)} is a random variable), and ξ1,…,ξk∼iidN(μ e1,Q){\bm{\xi}}_{1},\dots,{\bm{\xi}}_{k}\sim_{iid}{\sf N}(\mu\,{\bm{e}}_{1},{\bm{Q}}) with Q=diag(q,q0…,q0){\bm{Q}}={\rm diag}(q,q_{0}\dots,q_{0}), q0=(1−q)/(m−1)q_{0}=(1-q)/(m-1).

3 Cavity method: Community detection in sparse graphs

The main change with respect to the dense case is that the phase transition at λ=1\lambda=1, is slightly shifted, as per Eq. (12). Namely, SDP can detect the hidden partition with high probability if and only if λ≥λc\mboxSDP(d)\lambda\geq\lambda_{c}^{\mbox{\tiny{SDP}}}(d), for some λc\mboxSDP(d)>1\lambda_{c}^{\mbox{\tiny{SDP}}}(d)>1.

The quantity c∗{\sf c}_{*} has a beautiful interpretation. Consider a (rooted) Galton-Watson tree with offspring distribution dd, and imagine each edge to be a conductor with conductance equal to one. Then c∗{\sf c}_{*} is the total conductance between the root, and the boundary of the tree ‘at infinity.’ In particular, c∗=0{\sf c}_{*}=0 almost surely for d≤1d\leq 1, and c∗>0{\sf c}_{*}>0 with positive probability if d>1d>1 (see [LP13] and SI).

Next consider the distributional recursion

This value can be computed numerically, for instance by sampling the recursion (230). The results of such an evaluation are plotted as a continuous line in Figure 3.

Final algorithmic considerations

Let us emphasize that other polynomial-time algorithms can be used for the specific problems studied here. In the synchronization problem, naive PCA achieves the optimal threshold λ=1\lambda=1. In the community detection problem, several authors recently developed ingenious spectral algorithms that achieve the information theoretically optimal threshold (a−b)/2(a+b)=1(a-b)/\sqrt{2(a+b)}=1, see e.g. [DKMZ11, KMM+13, Mas14, MNS13, SKZ14].

In the SI, we compare the behavior of SDP and the Bethe Hessian algorithm of [SKZ14] for this perturbed model: while SDP appears to be rather insensitive to the perturbation, the performance of Bethe Hessian are severely degraded by it. We expect a similar fragility to arise in other spectral algorithms.

Acknowledgments

A.J. and A.M. were partially supported by NSF grants CCF-1319979 and DMS-1106627 and the AFOSR grant FA9550-13-1-0036.

References

Notations

The standard Gaussian density is denoted by ϕ(x)=e−x2/2/2π\phi(x)=e^{-x^{2}/2}/\sqrt{2\pi}, and the Gaussian distribution by Φ(x)=∫−∞xϕ(t) dt\Phi(x)=\int_{-\infty}^{x}\phi(t)\,{\rm d}t.

Given two un-normalized measures pp and qq on the same space, we write p(s)≅q(s)p(s)\cong q(s) if they are equal up to an overall normalization constant. We use ≐\doteq to denote equality up to subexponential factors, i.e. f(n)≐g(n)f(n)\doteq g(n) if lim⁡n→∞n−1log⁡[f(n)/g(n)]=0\lim_{n\to\infty}n^{-1}\log[f(n)/g(n)]=0.

2 Estimation metrics

We also define the overlap as follows in the real case

In the complex case, we replace sign(z){\rm sign}(z) by z/∣z∣z/|z| (defined to be at z=0z=0):

This formula applies to the real case as well. (Note that, in the main text, we defined the overlap only for estimators taking values in {+1,−1}n\{+1,-1\}^{n}, in the real case. Throughout these notes, we generalize that definition for the sake of uniformity.)

Preliminary facts

where the expectation is with respect to the independent random variables Z∼N(0,1)Z\sim{\sf N}(0,1), and σ∼p0( ⋅ )\sigma\sim p_{0}(\,\cdot\,).

Then we have the identity (with Z∼CN(0,1)Z\sim{\sf CN}(0,1) a complex normal)

Consider, to be definite, the real case, and define the observation model

where σ∼p0( ⋅ )\sigma\sim p_{0}(\,\cdot\,) independent of the noise Z∼N(0,1)Z\sim{\sf N}(0,1). Then a straightforward calculation shows that

The identity (31) follows by exploiting the symmetry of p0p_{0}, which implies f(−y;γ)=−f(y;γ)f(-y;\gamma)=-f(y;\gamma).

The proof follows a similar argument in the complex case. ∎

We apply the above lemma to specific cases that will be of interest to us. Below, Ik(z){\rm I}_{k}(z) denotes the modified Bessel function of the second kind. Explicitly, for kk integer, we have the integral representation

For any γ≥0\gamma\geq 0, we have the identities

where the expectation is with respect to Z∼N(0,1)Z\sim{\sf N}(0,1) (first line) or Z∼CN(0,1)Z\sim{\sf CN}(0,1) (second line).

These follows from Lemma 6.1. For the first line we apply the real case (31) with p0=(1/2)δ+1+(1/2)δ−1p_{0}=(1/2)\delta_{+1}+(1/2)\delta_{-1}, whence

For the second line we apply the complex case (32) with p0p_{0} the uniform measure over the unit circle. Consider the change of variables y=∣y∣ejϕy=|y|e^{j\phi} and σ=ej(ϕ+θ)\sigma=e^{j(\phi+\theta)}. Computing the curve integral, we have

where in the second equality we used the fact that ∫02πe2γ∣y∣cos⁡(θ)sin⁡(θ)dθ=0\int_{0}^{2\pi}e^{2\sqrt{\gamma}|y|\cos(\theta)}\sin(\theta){\rm d}\theta=0. ∎

As explained in the main text, we are interested in the following probability measure over σ=(σ1,σ2,…,σn){\bm{\sigma}}=({\bm{\sigma}}_{1},{\bm{\sigma}}_{2},\dots,{\bm{\sigma}}_{n}), where σi∈Sm−1{\bm{\sigma}}_{i}\in S^{m-1}:

Here p0(dσi)p_{0}({\rm d}{\bm{\sigma}}_{i}) is the uniform measure over σi∈Sm−1{\bm{\sigma}}_{i}\in S^{m-1}.

We define a general m,βm,\beta estimator as follows.

In order to break the O(m){\mathcal{O}}(m) symmetry, we add a term β∑i=1n⟨h,σ⟩\beta\sum_{i=1}^{n}\langle\bm{h},{\bm{\sigma}}\rangle in the exponent of Eq. (42), for h\bm{h} an arbitrary small vector. It is understood throughout that ∥h∥2→0\|\bm{h}\|_{2}\to 0 after n→∞n\to\infty.

As is customary in statistical physics, we will not explicitly carry out calculations with the perturbation h≠0\bm{h}\neq 0, but only using this device to select the relevant solution at h=0\bm{h}=0.

Note that for β→∞\beta\to\infty this amounts to maximizing the exponent term in equation (42).

Let u^{\bm{\widehat{u}}} be its principal eigenvector.

where c=c(λ)c=c(\lambda) is the optimal scaling predicted by the asymptotic theory.

The Gibbs measure (42) encodes several estimators of interests. Here we briefly describe this connections.

Bayes-optimal estimators. As mentioned in the main text, this is obtained by setting m=1m=1 and β=λ/2\beta=\lambda/2 (in the real case) or β=λ\beta=\lambda (in the complex case). To see this, recall our observation model (for i<ji<j)

As claimed, this coincides with Eq. (42) if we set β=λ/2\beta=\lambda/2 (in the real case) or β=λ\beta=\lambda (in the complex case).

Maximum-likelihood and SDP estimators. By letting β→∞\beta\to\infty in Eq. (42), we obtain that pβ,mp_{\beta,m} concentrates on the maximizers of the problem

In the case m≥nm\geq n we recover the SDP relaxation. In the case m=1m=1, this is equivalent to the maximum likelihood problem

In this section we use the cavity method to derive the asymptotic properties of the measure (42).

In the replica-symmetric cavity method, we consider adding a single variable σ0{\bm{\sigma}}_{0} to a problem with nn variables σ1,σ2,…,σn{\bm{\sigma}}_{1},{\bm{\sigma}}_{2},\dots,{\bm{\sigma}}_{n}. We compute the marginal distribution of σ0{\bm{\sigma}}_{0} in the system with n+1n+1 variables, to be denoted by ν0n+1(dσ0)\nu^{n+1}_{0}({\rm d}{\bm{\sigma}}_{0}). This is expressed in terms of the marginals of the other variables in the system with nn variables ν1n(dσ0)\nu^{n}_{1}({\rm d}{\bm{\sigma}}_{0}), …νnn(dσ1)\nu^{n}_{n}({\rm d}{\bm{\sigma}}_{1}). We will finally impose the consistency condition that ν0n+1\nu^{n+1}_{0} is distributed as any of ν1n\nu^{n}_{1}, …νnn\nu^{n}_{n} in the n→∞n\to\infty limit.

Assuming that σ1{\bm{\sigma}}_{1}, …σn{\bm{\sigma}}_{n} are, for this purpose, approximately independent, we get

Next we consider a fixed k∈[n]k\in[n] and estimate the integral by expanding the exponential term. This expansion proceeds slightly different in the real and the complex cases. We give details for the first one, leaving the second to the reader. Write

where Ek( ⋅ )≡∫( ⋅ ) νk(dσk){\rm E}_{k}(\,\cdot\,)\equiv\int(\,\cdot\,)\,\nu_{k}({\rm d}{\bm{\sigma}}_{k}) denotes expectation with respect to νk\nu_{k}. Here, we used the fact that Yij=O(1/n)Y_{ij}=O(1/\sqrt{n}), as per equation (46).

Substituting in Eq. (51), and neglecting O(n−1/2)O(n^{-1/2}) terms, we get (both in the real and complex case)

We further have the following equations for ξ0{\bm{\xi}}_{0}, C0{\bm{C}}_{0}:

Notice that the expectations Ek( ⋅ ){\rm E}_{k}(\,\cdot\,) on the right-hand side are in fact functions of ξk{\bm{\xi}}_{k}, Ck{\bm{C}}_{k} through Eq. (52).

We next pass to studying the distribution of {ξk}\{{\bm{\xi}}_{k}\} and {Ck}\{{\bm{C}}_{k}\}. For large nn, the pairs {(ξk,Ck)}\{({\bm{\xi}}_{k},{\bm{C}}_{k})\} appearing on the right-hand side of Eqs. (53), (54) can be treated as independent. By the law of large numbers and central limit theorem, we obtain that

for some deterministic quantities μ{\bm{\mu}}, Q{\bm{Q}}, C{\bm{C}}. Note that the law of ξi{\bm{\xi}}_{i} can be equivalently described by

where g=(g1,g2,…,gm)∼N(0,Im){\bm{g}}=(g_{1},g_{2},\dots,g_{m})\sim{\sf N}(0,{\rm I}_{m}).

Using these and the consistency condition in Eqs. (53), (54), we obtain the following equations for the unknowns μ,Q,C{\bm{\mu}},{\bm{Q}},{\bm{C}}:

The prediction of the replica-symmetric cavity methods have been summarized in the main text. We generalize the discussion here. Assume, for simplicity x0=(+1,…,+1)\bm{x_{0}}=(+1,\dots,+1). For ν\nu a probability measure on Sm−1S^{m-1} and RR an orthogonal (or unitary) matrix, let νR\nu^{R} be the measure obtained by ‘rotating’ ν\nu, i.e. νR(σ∈A)≡ν(R−1σ∈A)\nu^{R}({\bm{\sigma}}\in A)\equiv\nu(R^{-1}{\bm{\sigma}}\in A) for any measurable set AA. Finally, let pi(1),…,i(k)(m,β)p^{(m,\beta)}_{i(1),\dots,i(k)} denote the joint distribution of σi(1),⋯ ,σi(k){\bm{\sigma}}_{i(1)},\cdots,{\bm{\sigma}}_{i(k)} under pm,βp_{m,\beta}. Then, for any fixed kk, and any sequence of kk-tuples (i(1),…,i(k))n∈[n](i(1),\dots,i(k))_{n}\in[n], we have

While in general this prediction is only a good approximation (because of replica symmetry breaking) we expect to be asymptotically exact for the Bayes-optimal, ML and SDP estimator. In the next sections we will discuss special estimators.

2.2 Bayes-optimal: m=1𝑚1m=1 and β∈{λ/2,λ}𝛽𝜆2𝜆\beta\in\{\lambda/2,\lambda\}

For m=1m=1, σ=σ{\bm{\sigma}}=\sigma is a scalar satisfying σσ∗=∣σ∣2=1\sigma\sigma^{*}=|\sigma|^{2}=1. Hence, the term proportional to C{\bm{C}} in Eq. (60) is a constant and can be dropped. Also ξ=ξ{\bm{\xi}}=\xi, μ=μ{\bm{\mu}}=\mu and Q=q{\bm{Q}}=q are scalar in this case.

We will write these equations below in terms of classical functions both in the real and in the complex cases. Before doing that, we derive expressions for the estimation error in the n→∞n\to\infty limit. The estimator x^(Y)\bm{\hat{x}}(\bm{Y}) is given in this case by x^(Y)=x^β,m=1(Y)\bm{\hat{x}}(\bm{Y})=\bm{\hat{x}}^{\beta,m=1}(\bm{Y}), cf. Eq. (43). Therefore, the scaled MSE, cf. Eq. (27), reads

Note that the optimal scaling is c=μ/(λq)c=\mu/(\lambda q), leading to minimal error –for the ideally scaled estimator–

Real case. In this case Eξ(σ)=tanh⁡(2βξ){\rm E}_{\xi}(\sigma)=\tanh(2\beta\xi) and therefore Eqs. (63), (64) yield

where expectation is with respect to Z∼N(0,1)Z\sim{\sf N}(0,1). As discussed in Section 7.1, the Bayes optimal estimator is recovered by setting β=λ/2\beta=\lambda/2 above. Using the identity (38) in Corollary 6.2, we obtain the solution

where κ\kappa satisfies the fixed point equation

We denote by κ∗=κ∗(λ)\kappa_{*}=\kappa_{*}(\lambda) the largest non-negative solution of this equation. Using Eqs. (67) and (70) we obtain the following predictions for the asymptotic estimation error

(Note that in this case, the optimal choice of a scaling is c=1c=1.)

where, as mentioned above, Ik(z){\rm I}_{k}(z) denotes the modified Bessel function of the second kind.

The general fixed point equations (63) and (64) yield

As discussed in Section 7.1, the Bayes optimal estimator is recovered by setting β=λ\beta=\lambda in these equations. In this case we can use the identity (39) in Corollary 6.2, to obtain the solution

where κ\kappa satisfies the fixed point equation

where the expectation is taken with respect to Z∼CN(0,1)Z\sim{\sf CN}(0,1). We denote by κ∗=κ∗(λ)\kappa_{*}=\kappa_{*}(\lambda) the largest non-negative solution of these equations.

Using again Eqs. (67) and (70) , we obtain

2.3 Maximum likelihood: m=1𝑚1m=1 and β→∞→𝛽\beta\to\infty

As discussed in Section 7.1, the maximum likelihood estimator is recovered by setting m=1m=1 and β→∞\beta\to\infty. Notice that in this case our results are only approximate because of replica symmetry breaking.

We can take the limit β→∞\beta\to\infty in Eqs. (62), (63), (64). In this limit, the measure νξ( ⋅ )\nu_{\xi}(\,\cdot\,) concentrates on the single point σ∗=ξ/∣ξ∣∈S0\sigma^{*}=\xi/|\xi|\in S^{0}. We thus obtain

We next specialize our discussion to the real and complex cases.

Real case. Specializing Eq. (84) to the real case, we get the equation

Taylor expanding near μ=0\mu=0, this yields μ=2ϕ(0)λ μ+O(μ2)\mu=2\phi(0)\lambda\,\mu+O(\mu^{2}) which yields the critical point (within the replica symmetric approximation)

We denote by μ∗=μ∗(λ)\mu_{*}=\mu_{*}(\lambda) the largest non-negative solution of Eq. (86). The asymptotic estimation metrics (for optimally scaled estimator) at level λ\lambda are given by

It follows immediately from Eq. (86) that, as λ→∞\lambda\to\infty, μ∗(λ)=λ[1−2Φ(−λ)+O(Φ(−λ)2)]\mu_{*}(\lambda)=\lambda[1-2\Phi(-\lambda)+O(\Phi(-\lambda)^{2})], whence

Complex case. Specializing Eq. (84), we get

Denoting by μ∗=μ∗(λ)\mu_{*}=\mu_{*}(\lambda) the largest non-negative solution of Eq. (92), the estimation metrics are obtained again via Eqs. (88) and (89).

For large λ\lambda, it is easy to get μ∗(λ)/λ=1−(4λ2)−1+O(λ−3)\mu_{*}(\lambda)/\lambda=1-(4\lambda^{2})^{-1}+O(\lambda^{-3}) whence

2.4 General m𝑚m and β→∞→𝛽\beta\to\infty

In the limit β→∞\beta\to\infty, the measure νξ,C( ⋅ )\nu_{{\bm{\xi}},{\bm{C}}}(\,\cdot\,) of Eq. (60) concentrates on the single point σ∗(ξ,C){\bm{\sigma}}_{*}({\bm{\xi}},{\bm{C}}) that maximizes the exponent. A simple calculation yields

where ρ\rho is a Lagrange multiplier determined by the normalization condition ∥σ∗∥2=1\|{\bm{\sigma}}_{*}\|_{2}=1, or

Further νξ,C( ⋅ )\nu_{{\bm{\xi}},{\bm{C}}}(\,\cdot\,) has variance of order 1/β1/\beta around σ∗{\bm{\sigma}}_{*}.

In order to solve Eqs. (57) to (59) we next assume that the O(m){\mathcal{O}}(m) symmetry is –at most– broken vectorially to O(m−1){\mathcal{O}}(m-1). Without loss of generality, we can assume that it is broken along the direction e1=(1,0,…,0){\bm{e}}_{1}=(1,0,\dots,0). Further, since νξ,C( ⋅ )\nu_{{\bm{\xi}},{\bm{C}}}(\,\cdot\,) is a measure on the unit sphere {σ:  ∥σ∥2=1}\{{\bm{\sigma}}:\;\|{\bm{\sigma}}\|_{2}=1\}, the matrix C{\bm{C}} is only defined up to a shift C−c0I{\bm{C}}-c_{0}{\rm I}. This leads to the following ansatz for the order parameters.

and σ∗(ξ,C){\bm{\sigma}}_{*}({\bm{\xi}},{\bm{C}}) reads

Taking the limit β→∞\beta\to\infty of Eqs. (57) to (59) we obtain the following four equations for the four parameters μ,r,q0,q1\mu,r,q_{0},q_{1}:

In the above expressions, expectation is with respect to the Gaussian vector Z=(Z1,…,Zm)∼N(0,Im){\bm{Z}}=(Z_{1},\dots,Z_{m})\sim{\sf N}(0,{\rm I}_{m}), and ρ=ρ(Z1,…,Zm)\rho=\rho(Z_{1},\dots,Z_{m}) is defined as the solution of the equation

The simplest derivation of these equations is obtained by differentiating the ground state energy, for which we defer to Section 7.3.

We can then compute the performance of the estimator x^(β,m)\bm{\hat{x}}^{(\beta,m)} defined at the beginning of this section. Note that Q^→Q{\bm{\widehat{Q}}}\to{\bm{Q}} as n→∞n\to\infty, and therefore its principal vector is u^→e1{\bm{\widehat{u}}}\to{\bm{e}}_{1} (within the above ansatz), and therefore, for a test function ff, we have

where X0∼Unif(S0)X_{0}\sim{\sf Unif}(S^{0}) independent of Z1Z_{1}.

Applying (107) and after a simple calculation we obtain

where μ∗(λ)\mu_{*}(\lambda), q1,∗(λ)q_{1,*}(\lambda) denote the solutions of the above equations. Also, invoking (107) the asymptotic overlap is given by

Spin-glass phase. The spin-glass phase is described by the completely symmetric solution with μ=0\mu=0, b=0b=0 and q0=q1=1/mq_{0}=q_{1}=1/m. From Eq. (106) we get

Critical signal-to-noise ratio. We next compute the critical value of λ\lambda. We begin by expanding Eq. (106). Define

and let ρ0\rho_{0} be the solution of the equation 1=F(ρ0)1=F(\rho_{0}). Notice that ρ0\rho_{0} is unaltered under sign change Z1→−Z1Z_{1}\to-Z_{1}. Further, comparing with the equation for ρ\rho, see Eq. (106), we obtain the following perturbative estimate

By the results for the spin glass phase, we have q0,q1→(1/m)q_{0},q_{1}\to(1/m) and ρ,(ρ+r)→∥Z∥2/m\rho,(\rho+r)\to\|{\bm{Z}}\|_{2}/\sqrt{m} as μ→0\mu\to 0, whence

Now consider Eq. (101). Retaining only O(μ)O(\mu) terms we get

where in the last step we used Eq. (113) and q1=1/m+o(1)q_{1}=1/m+o(1) as μ→0\mu\to 0. Now recalling that ρ0\rho_{0} is even in Z1Z_{1}, the second term vanishes and we obtain

We therefore get the critical point λc(m)\lambda_{\rm c}(m) by setting to 11 the coefficient of μ\mu above. In the real case, we get

Summarizing the (replica symmetric) critical point is

In particular, for m=1m=1 we recover λc\mboxRS(1)=π/2\lambda^{\mbox{\tiny RS}}_{\rm c}(1)=\sqrt{\pi/2} for the real case, and λc\mboxRS(1)=2/π\lambda^{\mbox{\tiny RS}}_{\rm c}(1)=2/\sqrt{\pi} for the complex case. These are the values derived in Section 7.2.3. For large mm, we get

with sG=1s_{{\mathfrak{G}}}=1 (real case), or sG=2s_{{\mathfrak{G}}}=2 (complex case).

Let us emphasize once more: we do not expect the replica symmetric calculation above to be exact, but only an excellent approximation. In other words, for any bounded mm, we expect λc(m)≈λc\mboxRS(m)\lambda_{\rm c}(m)\approx\lambda^{\mbox{\tiny RS}}_{\rm c}(m) but λc(m)≠λc\mboxRS(m)\lambda_{\rm c}(m)\neq\lambda^{\mbox{\tiny RS}}_{\rm c}(m). However, as m→∞m\to\infty the problem becomes convex, and hence we expect lim⁡m→∞∣λc(m)−λc\mboxRS(m)∣=0\lim_{m\to\infty}|\lambda_{\rm c}(m)-\lambda^{\mbox{\tiny RS}}_{\rm c}(m)|=0. Hence

2.5 SDP: m→∞→𝑚m\to\infty and β→∞→𝛽\beta\to\infty

In the limit m→∞m\to\infty, Eqs. (101) to (104) simplify somewhat. We set q1=qq_{1}=q and eliminate q0q_{0} using Eq. (105). Applying the law of large numbers, the equation for ρ\rho reads

As a consequence, ρ\rho becomes independent of Z2Z_{2}. Hence, Eqs. (101) to (104) reduce to

Denoting by μ∗(λ)\mu_{*}(\lambda) and q∗(λ)q_{*}(\lambda) the solutions to the above equations, we have

We solution of the above equations displays a phase transition at the critical point λc\mboxSDP=1\lambda_{c}^{\mbox{\tiny{SDP}}}=1, which we next characterize.

Spin glass phase and critical point. The spin-glass phase corresponds to a symmetric solution μ=q=r=0\mu=q=r=0.

In order to investigate the critical behavior, we expand the equations (125) to (127) for λ=1+ε\lambda=1+{\varepsilon}, ε≪1{\varepsilon}\ll 1. To leading order in ε{\varepsilon}, we get the following solution

To check the above perturbative solution, note that expanding the denominator of Eq. (126) and using ρ=1+O(ε2)\rho=1+O({\varepsilon}^{2}), we get

Multiplying Eq. (124) by ρ2\rho^{2} and expanding the right-hand side, we get

Finally, expanding Eq. (125) we get r=ε+O(ε3/2)r={\varepsilon}+O({\varepsilon}^{3/2}).

3 Free energy and energy

It is easier to derive the free energy using the replica method. This also give an independent verification of the cavity calculations in the previous section.

In this section, apply the replica method to compute the free energy of model (42). Our aim is to compute asymptotics for the partition function

where we recall that p0(dσi)p_{0}({\rm d}{\bm{\sigma}}_{i}) is the uniform measure over σi∈Sm−1{\bm{\sigma}}_{i}\in S^{m-1}. The kk-th moment is given by

where we introduced replicas σi1,…,σik∈Sm−1{\bm{\sigma}}_{i}^{1},\dots,{\bm{\sigma}}_{i}^{k}\in S^{m-1}, along with the notation p‾0(dσ)≡∏i=1n∏a=1kp0(dσia)\overline{p}_{0}({\rm d}{\bm{\sigma}})\equiv\prod_{i=1}^{n}\prod_{a=1}^{k}p_{0}({\rm d}{\bm{\sigma}}_{i}^{a}). Taking the expectation over Yij=(λ/n)+WijY_{ij}=(\lambda/n)+W_{ij}, we get

The final formula for the free energy density is obtained by integrating with respect to σ{\bm{\sigma}} (now the integrand is in product form) and taking the saddle point in Q{\bm{Q}}, μ{\bm{\mu}}, and is reported in the next section, see Eq. (150) below.

3.2 Non-zero temperature (β<∞𝛽\beta<\infty)

The final result of the calculations in the previous section is obtaining the moments

where we used the following identity in its derivation

Replica-symmetric free energy. The replica-symmetric (RS) ansatz is

For computing the third term, we use the following identity. For a fixed arbitrary vector v{\bm{v}},

Combining Eqs. (156), (157) and (160) we arrive at

In the complex case, the last line should be interpreted as ξ ∼CN(μ,Q){\bm{\xi}}~{}\sim{\sf CN}({\bm{\mu}},{\bm{Q}}). Differentiating this expression against μ,C,Q{\bm{\mu}},{\bm{C}},{\bm{Q}} we recover Eqs. (57) to (59) as saddle point conditions.

3.3 Zero temperature (β→∞→𝛽\beta\to\infty)

As β→∞\beta\to\infty, the free energy behaves as

where u(Q,C,μ)u({\bm{Q}},{\bm{C}},{\bm{\mu}}) is the replica-symmetric ground state energy

Let us stress that expectation is with respect to ξ{\bm{\xi}}. Denote by σM=σM(ξ,C){\bm{\sigma}}_{\rm M}={\bm{\sigma}}_{\rm M}({\bm{\xi}},{\bm{C}}) the solution of the above maximization problem. It is immediate to see that this is given by

The equations for μ{\bm{\mu}} and Q{\bm{Q}} are immediate by taking the β→∞\beta\to\infty limit on Eqs. (57), (58). In zero temperature, measure νξ,C\nu_{{\bm{\xi}},{\bm{C}}} concentrates around σM(ξ,C){\bm{\sigma}}_{\rm M}({\bm{\xi}},{\bm{C}}).

Equivalently, we obtain the above equations by differentiating u(Q,C,μ)u({\bm{Q}},{\bm{C}},{\bm{\mu}}) with respect to μ{\bm{\mu}} and C{\bm{C}}, as follows. We write σM=σM(ξ,C){\bm{\sigma}}_{\rm M}={\bm{\sigma}}_{\rm M}({\bm{\xi}},{\bm{C}}) to lighten the notation. Since ρ\rho is a Lagrange multiplier, we have

where the second equation follows from the constraint ∥σM∥2=1\|{\bm{\sigma}}_{\rm M}\|_{2}=1.

We next substitute ξ=μ+Q1/2Z{\bm{\xi}}={\bm{\mu}}+{\bm{Q}}^{1/2}{\bm{Z}}. By a similar calculation, we have

Using the ansatz (98), we recover Eqs. (101) to (104). Specifically, Eq (101) follows readily from Eq. (166), restricting to the (1,1)(1,1) entry and plugging in for σM{\bm{\sigma}}_{\rm M} from Eq. (100). Also, Eqs. (102) and (103) follow from Eq. (167), restricting to (1,1)(1,1) and (2,2)(2,2) entries, respectively. Derivation of Eq. (104) requires more care. Note that since νξ,C\nu_{\xi,{\bm{C}}}, given by (60), is a measure on the unit sphere, the matrix C{\bm{C}} is only defined up to a diagonal shift. Let sGη/2s_{{\mathfrak{G}}}\eta/2 denote the slack shift parameter. The ansatz (98) for C{\bm{C}} then becomes

We set ∇Q1/2u=0\nabla_{{\bm{Q}}^{1/2}}u=0. Applying Eq. (170), this results in the following two equations for C11{\bm{C}}_{11} and C22{\bm{C}}_{22}:

Solving for η\eta from Eq. (172) and substituting for that in Eq. (171), we obtain Eq. (104).

4 On the maximum likelihood phase transition

It turns out that this is an artifact of the replica symmetric approximation and instead

For a given noise realization W\bm{W}, the maximum likelihood estimator is

We expect lim⁡n→∞FW,n(m)≡F(m)\lim_{n\to\infty}F_{\bm{W},n}(m)\equiv F(m) to exist and to be non-random. This implies that the asymptotic overlap is given by

By symmetry we have F(m)=F(−m)F(m)=F(-m). Assuming m↦F(m)m\mapsto F(m) to be differentiable, this implies F′(0)=0F^{\prime}(0)=0. Hence m=0m=0 is a local maximum for λ<−F′′(0)\lambda<-F^{\prime\prime}(0) and a local minimum for λ>−F′′(0)\lambda>-F^{\prime\prime}(0). Since at λ=0\lambda=0 we obviously have Overlap(x^\mboxML)=0{\rm Overlap}(\bm{\hat{x}}^{\mbox{\tiny{ML}}})=0, F′′(0)<0F^{\prime\prime}(0)<0. Further, if m=0m=0 is a local minimum, we necessarily have Overlap(x^\mboxML)>0{\rm Overlap}(\bm{\hat{x}}^{\mbox{\tiny{ML}}})>0. Hence λc\mboxML≤−F′′(0)\lambda_{c}^{\mbox{\tiny{ML}}}\leq-F^{\prime\prime}(0).

On the other hand, we know that we cannot estimate x0\bm{x_{0}} with non-vanishing overlap for λ<1\lambda<1. This is a consequence –for instance– of [DAM15, Theorem 4.3] or can, in alternative, be proved directly using the technique of [MRZ14]. This implies that λc\mboxML≥1\lambda_{c}^{\mbox{\tiny{ML}}}\geq 1. Summarizing, we have

We next claim that earlier work on the Sherrington-Kirkpatrick model implies F′′(0)=−1F^{\prime\prime}(0)=-1, thus yielding λc\mboxML=1\lambda_{c}^{\mbox{\tiny{ML}}}=1. Indeed, alternative expressions can be obtained by studying the modified problem

where hh is an added magnetic field. Then, we have lim⁡n→∞F^W,n(h)=F^(h)\lim_{n\to\infty}\widehat{F}_{\bm{W},n}(h)=\widehat{F}(h), the Legendre transform of FF, and we get the alternative upper bound

Note that F^(h)\widehat{F}(h) is the zero-temperature free energy density of the Sherrington-Kirkpatrick model in a magnetic field hh [MPV87], whose n→∞n\to\infty limit exists by [GT02]. Using well-known thermodynamic identities, we get

where χ(β,h)\chi(\beta,h) is the magnetic susceptibility of the Sherrington-Kirkpatrick model at inverse temperature β\beta, and magnetic field hh, and QQ is the random overlap.

To the best of our knowledge, the above connection between response to a magneric field, and couplings with non-zero mean was first described by Gérard ToulouseIn [Tou80], this argument was put forward within the context of the so-called Parisi-Toulouse (PaT) scaling hypothesis. Let us emphasize that here we are not assuming PaT to hold (and indeed, it has been convincingly shown that PaT is not correct, albeit an excellent approximation, see e.g. [CRT03]). in [Tou80].

Analysis of PCA estimator for synchronization problem

Here, we study the PCA estimator for the synchronization problem. Recall the observation model

Let v1(Y){\bm{v}}_{1}(Y) denote the leading eigenvector of Y\bm{Y}. The PCA estimator x^\mboxPCA\bm{\hat{x}}^{\mbox{\tiny{PCA}}} is defined as

with c\mboxPCAc^{\mbox{\tiny{PCA}}} a certain scaling factor discussed below.

In order to characterize the error of x^\mboxPCA\bm{\hat{x}}^{\mbox{\tiny{PCA}}}, we use a simplified version of the main theorem in [CDMF09].

Let Y=λv0v0∗+W\bm{Y}=\lambda{\bm{v}}_{0}{\bm{v}}_{0}^{*}+\bm{W} be a rank-one deformation of the Gaussian symmetric matrix W\bm{W}, with Wij∼N(0,1/n)W_{ij}\sim{\sf N}(0,1/n) independent for i<ji<j, and ∥v0∥=1\|{\bm{v}}_{0}\|=1. Then, we have, almost surely

Further, letting λ1(Y)\lambda_{1}(\bm{Y}) be the top eigenvalue of Y\bm{Y}, the following holds true almost surely

Applying this lemma, we compute MSE(x^\mboxPCA;c){\rm MSE}(\bm{\hat{x}}^{\mbox{\tiny{PCA}}};c) as follows

which is optimized for c=c\mboxPCA(λ)≡max⁡(1−λ−2,0)c=c^{\mbox{\tiny{PCA}}}(\lambda)\equiv\sqrt{\max(1-\lambda^{-2},0)}. Note that this choice can be written in terms of λ1(Y)\lambda_{1}(\bm{Y}) as well and so knowledge of λ\lambda is not required. We then obtain

Analytical results for community detection

In this Section we use the cavity method to analyze the semidefinite programming approach to community detection. We refer, for instance, to [MM09] for general background on the cavity method for sparse graphs. Also, see [BSS87, SW87] for early statistical mechanics work on the related graph bisection problem.

Recall (from the main text) that we are interested in the hidden partition model. Namely, consider a random graph Gn=(Vn,En)G_{n}=(V_{n},E_{n}) over vertex set Vn=[n]V_{n}=[n], generated according to the following distribution. We let x0∈{+1,−1}n\bm{x_{0}}\in\{+1,-1\}^{n} be uniformly random: this vector contains the vertex labels (equivalently, it encodes a partition of the vertex set V=V+∪V−V=V_{+}\cup V_{-}, in the obvious way). Conditional on x0\bm{x_{0}}, edges are independent with distribution

As explained in the main text, we tackle this problem via the semidefinite relaxation

For our analysis, we use the non-convex formulation

This is equivalent to the above SDP provided m≥nm\geq n. Note that, throughout this section, the spin variables σi{\bm{\sigma}}_{i} are real vectors.

We introduce the following Boltzmann-Gibbs distribution

Here p‾0(dσi)\overline{p}_{0}({\rm d}{\bm{\sigma}}_{i}) is the uniform measure over σ=(σ1,σ2,…,σn){\bm{\sigma}}=({\bm{\sigma}}_{1},{\bm{\sigma}}_{2},\dots,{\bm{\sigma}}_{n}) with σi∈Sm−1{\bm{\sigma}}_{i}\in S^{m-1} and ∑i=1nσi=0\sum_{i=1}^{n}{\bm{\sigma}}_{i}={\mathbf{0}}. In order to extract information about the SDP (191), we take the limits m→∞m\to\infty, β→∞\beta\to\infty after n→∞n\to\infty.

As n→∞n\to\infty, the graph GnG_{n} converges locally to a rooted multi-type Galton-Watson tree with vertices of type ++ (corresponding to x0,i=+1x_{0,i}=+1) or −- (corresponding to x0,i=−1x_{0,i}=-1). Each vertex has Poisson(a/2){\rm Poisson}(a/2) offsprings of the same type, and Poisson(b/2){\rm Poisson}(b/2) offsprings of the other type (see, e.g. [DM10] for background on local weak convergence in statistical mechanics).

We write the sum-product fixed point equations to compute the marginals at different nodes.

where νi→j\nu_{i\to j} are the messages associated to the directed edges of the graph. The marginal ν0(dσ0)\nu_{0}({\rm d}{\bm{\sigma}}_{0}), for an arbitrary node , is given by

We rewrite the above equations from another perspective. We designate node as the root of the tree and denote its neighbors by {1,2,…,k}\{1,2,\dotsc,k\}. Let TiT_{i} be the subtree rooted at node ii and induced by its descendants. We call νi(dσi)\nu_{i}({\rm d}{\bm{\sigma}}_{i}) the marginal for σi{\bm{\sigma}}_{i} w.r.t the graphical model in the subtree TiT_{i}. Replica symmetric cavity equations relate the marginal ν0(dσ0)\nu_{0}({\rm d}{\bm{\sigma}}_{0}) to the marginals at the descendant subtrees, i.e., νi(dσi)\nu_{i}({\rm d}{\bm{\sigma}}_{i}). Note that, in the above notation, νi(dσi)≡νi→0(dσi)\nu_{i}({\rm d}{\bm{\sigma}}_{i})\equiv\nu_{i\to 0}({\rm d}{\bm{\sigma}}_{i}) and therefore we obtain

(The measures νi(dσi)\nu_{i}({\rm d}{\bm{\sigma}}_{i}) are probability measures over Sm−1S^{m-1} and the right-hand side should be interpreted as a density with respect to the uniform measure on Sm−1S^{m-1}.)

We will use the notation of Eq. (196) but both interpretations are useful.

We will carry out our calculations within a simple ‘vectorial’ ansatz, whereby νi(dσi)\nu_{i}({\rm d}{\bm{\sigma}}_{i}) depends in a log-linear way on a one-dimensional projection of σi{\bm{\sigma}}_{i}. While this ansatz is not exact, it turns out to yield very accurate results. Also, it can be systematically improved upon, a direction that we leave for future work.

For small (a−b)(a-b), we expect the solution to the cavity equation to be symmetric (in distribution) under rotations in O(m){\mathcal{O}}(m). By this we mean that, for any rotation R∈O(m)R\in{\mathcal{O}}(m), νiR( ⋅ )\nu_{i}^{R}(\,\cdot\,) is distributed as νi( ⋅ )\nu_{i}(\,\cdot\,). (νiR( ⋅ )\nu_{i}^{R}(\,\cdot\,) is defined as the measure induced by action σ↦Rσ{\bm{\sigma}}\mapsto R{\bm{\sigma}} on Sm−1S^{m-1}, cf. Section 7).

In the symmetric phase, assuming the ‘vectorial’ ansatz, cf. Remark 9.1, we look for an approximate solution of the form

where zi∼N(0,Im){\bm{z}}_{i}\sim{\sf N}(0,{\rm I}_{m}), and Om(1)O_{m}(1) represents a term of order one as m→∞m\to\infty.

Using the Fourier representation of the δ\delta function (with associated parameter ρ\rho), and performing the Gaussian integral over σ{\bm{\sigma}}, we get

Here the indegral over ρ\rho runs along the imaginary axis in the complex plane, from −i∞-i\infty and +i∞+i\infty.

Note, for σ0{\bm{\sigma}}_{0} uniformly random on the unit sphere, the term (2βm/ρ)⟨zi,σ0⟩(2\beta m/\rho)\langle{\bm{z}}_{i},{\bm{\sigma}}_{0}\rangle is of order m\sqrt{m}, i.e. of lower order with respect to the term including S( ⋅ )S(\,\cdot\,). Also, the term (βmci/ρ)(∥zi∥22−1)(\beta m{\sf c}_{i}/\rho)(\|{\bm{z}}_{i}\|_{2}^{2}-1) is of order m\sqrt{m} and does not depend on σ0{\bm{\sigma}}_{0}. Hence, up to an additional Om(1)O_{m}(1) term, we can reabsorb this in the normalization constant. We therefore get

We next perform integration over ρ\rho by the saddle point method. Since ⟨zi,σ0⟩=O(m−1/2)\langle{\bm{z}}_{i},{\bm{\sigma}}_{0}\rangle=O(m^{-1/2}) and Si(ρ)=O(1)S_{i}(\rho)=O(1), the saddle point is given by the stationary equation Si′(ρ)=0S_{i}^{\prime}(\rho)=0. The saddle point ρi,∗\rho_{i,*} lies on the real axis and is a minimum along the real axis but a maximum with respect to the imaginary direction, i.e.,

By Cauchy’s theorem, we can deform the contour of integral to pass the saddle point along the imaginary direction. This in fact corresponds to the path that descents most steeply from the saddle point. The integral is dominated by ρ=ρi,∗+O(m−1/2)\rho=\rho_{i,*}+O(m^{-1/2}) and hence,

While this expression for ν^i(σ0)\widehat{\nu}_{i}({\bm{\sigma}}_{0}) is accurate when ⟨zi,σ0⟩\langle{\bm{z}}_{i},{\bm{\sigma}}_{0}\rangle is small, it breaks down for large ⟨zi,σ0⟩\langle{\bm{z}}_{i},{\bm{\sigma}}_{0}\rangle. In Section 9.5 we will discuss the regimes of validity of this approximation. Namely, we expect it to be accurate for dd large and for dd close to one.

Substituting in Eq. (196), we get the recursion

In particular, as β→∞\beta\to\infty, we get the simple equation

Note that c0,c1,…,ck{\sf c}_{0},{\sf c}_{1},\dots,{\sf c}_{k} are random variables, because of the randomness in the underlying limiting tree, which is Galton-Watson tree with Poisson offspring distribution. We get

c∗⪯L{\sf c}_{*}\preceq L, L∼Poisson(d)L\sim{\rm Poisson}(d).

For d≤1d\leq 1, c∗=c0=0{\sf c}_{*}={\sf c}_{0}=0 identically. Hence the distributional equation (210) has a unique solution.

For d>1d>1, c∗>0{\sf c}_{*}>0 with positive probability and further equation (210) admits no other solution than c0{\sf c}_{0}, c∗{\sf c}_{*}.

Let P{\mathfrak{P}} denote the space of probability measures over [0,∞][0,\infty], and Td:P→P{\sf T}_{d}:{\mathfrak{P}}\to{\mathfrak{P}} the map defined by the right-hand side of Eq. (210). Namely Td(μ){\sf T}_{d}(\mu) is the probability distribution of the right-hand side of Eq. (210) when ci∼i.i.d.μ{\sf c}_{i}\sim_{i.i.d.}\mu. Notice that this is well defined on the extended real line because the summands are non-negative. It is immediate to see that this map is monotone, i.e.

For point 3, note that by Jensen inequality

Point 4 is just Theorem 4.1 in [LPP97]. ∎

The next proposition establishes an appealing interpretation of the random variable c∗{\sf c}_{*}. Again, this puts together results of [Lyo90] and [LPP97]. We give here a proof of this connection for the readers’ convenience. We refer to [LP13] for further background on discrete potential theory (electrical networks) and trees.

In particular, if d>1d>1, then c∗>0{\sf c}_{*}>0 with positive probability.

Now since the conductance of several resistances in parallel is equal to the sum of the conductances of the components, we get

It follows from Theorem [Lyo90, Theorem 4.3] and [Lyo90, Proposition 6.4] that c∗>0{\sf c}_{*}>0 with positive probability whenever d>1d>1. ∎

We will hereafter consider the case d>1d>1 and focus on the maximal solution c∗{\sf c}_{*}.

where Z1∼N(0,1)Z_{1}\sim{\sf N}(0,1) is independent of L∼Poisson(d)L\sim{\rm Poisson}(d). Note that we used central limit theorem and law of large numbers in obtaining (217).

On the other hand, taking the variance, we obtain

Using equation (221) in equation (219), we get

2 Linear stability of the symmetric phase and critical point

We next study the stability of the symmetric solution (198). We break the O(m){\mathcal{O}}(m) symmetry by letting

where σi=(si,τi){\bm{\sigma}}_{i}=(s_{i},{\bm{\tau}}_{i}) and zi∼N(0,Im−1){\bm{z}}_{i}\sim{\sf N}(0,{\rm I}_{m-1}) is (m−1)(m-1)-dimensional. Note that each coordinate of zi{\bm{z}}_{i} is of order 11, and is multiplied by a factor m\sqrt{m} in the above expression. We will consider hi⋘1h_{i}\lll 1, and expand all expressions to linear order in hih_{i}.

Proceeding as in the symmetric phase, we get

where Si(ρ)S_{i}(\rho) is defined as in the symmetric phase, namely

Substituting in Eq. (196), we obtain the equations

Recall that the graph GnG_{n} converges locally to a two-types Galton-Watson tree, whereby each vertex has Poisson(a/2){\rm Poisson}(a/2) vertices of the same type, and Poisson(b/2){\rm Poisson}(b/2) vertices of the opposite type. We look for solutions that break the symmetry +1↔−1+1\leftrightarrow-1. If (ci,hi)({\sf c}_{i},h_{i}) is the pair of random variables introduced above, for vertex ii, we therefore assume (ci(+),hi(+))=d(ci(−),−hi(−))({\sf c}_{i(+)},h_{i(+)})\stackrel{{\scriptstyle{\rm d}}}{{=}}({\sf c}_{i(-)},-h_{i(-)}) for i(+)∈V+i(+)\in V_{+}, i(−)∈V−i(-)\in V_{-}. This leads to the following distributional recursion for the sequence of random vectors {(ct,ht)}t≥0\{({\sf c}^{t},h^{t})\}_{t\geq 0}:

where L+∼Poisson(a/2)L_{+}\sim{\rm Poisson}(a/2), L−∼Poisson(b/2)L_{-}\sim{\rm Poisson}(b/2), s1,…,sL+=+1s_{1},\dots,s_{L_{+}}=+1, sL++1,…,sL++L−=−1s_{L_{+}+1},\dots,s_{L_{+}+L_{-}}=-1, and {(cit,hit)}\{({\sf c}_{i}^{t},h^{t}_{i})\} are i.i.d. copies of (ct,ht)({\sf c}^{t},h^{t})

Therefore, in order to investigate stability, we initialize the above recursion in a way that breaks the symmetry, (c0,h0)=(∞,1)({\sf c}^{0},h^{0})=(\infty,1). Note that by monotonicity property (211), starting with c0=∞{\sf c}^{0}=\infty, we have ct⇒dc∗{\sf c}^{t}\stackrel{{\scriptstyle{\rm d}}}{{\Rightarrow}}{\sf c}_{*}. We ask whether this perturbation grows, by computing the exponential growth rate

where d=(a+b)/2d=(a+b)/2, and λ=(a−b)/2(a+b)\lambda=(a-b)/\sqrt{2(a+b)} parametrize the model. We define the critical point as the smallest λ\lambda such that the growth rate is strictly positive:

Notice that in the definition we used the second moment, i.e. set α=2\alpha=2. However, the result appear to be insensitive to the choice of α\alpha. In the next section we will discuss the numerical solution of the above distributional equations and our analytical prediction for λc\mboxSDP(d)\lambda_{c}^{\mbox{\tiny{SDP}}}(d).

We start by taking expectation of Eq. (230).

By taking the covariance of hth^{t} and ct{\sf c}^{t}, we obtain

where ρsp( ⋅ )\rho_{{\rm sp}}(\,\cdot\,) denotes the spectral radius of a matrix. A simple calculation yields

3 Numerical solution of the distributional recursions

We solved numerically the distributional recursions (210), (230) through a sampling algorithm that is known as ‘population dynamics’ within spin glass theory [MP01]. The algorithm updates a sample that, at iteration tt, is meant to be an approximately iid samples with the same law as the one defined by the distributional equation, at iteration tt. For concreteness, we define the algorithm here in the case of the iteration corresponding to Eq. (210):

The distribution of ct{\sf c}^{t} will be approximated by a sample c‾t≡(c1t,c2t,…,cNt)\underline{\sf c}^{t}\equiv({\sf c}_{1}^{t},{\sf c}_{2}^{t},\dots,{\sf c}_{N}^{t}) (we represent this by a vector but ordering is irrelevant).

The notation [a∣b][a|b] in the step 8 of the algorithm denotes appending element bb to vector aa. Note that with initial point c0=∞c_{0}=\infty, we have c1=L∼Poisson(d)c_{1}=L\sim{\rm Poisson}(d). In the population dynamic algorithm we start from c1c^{1}.

As an illustration, Figure 4 presents the results of some small-scale calculations using this algorithm.

We used the obvious modification of this algorithm to implement the recursion (230), whereby a population is now formed of pairs (c1t,h1t)({\sf c}^{t}_{1},h^{t}_{1}), …(cNt,hNt)({\sf c}^{t}_{N},h^{t}_{N}). An important difference is that the overall scaling of the hith^{t}_{i} is immaterial. We hence normalize them at each iteration as follows

The normalization constant MtM_{t} also allow us to estimate G2(d,λ)G_{2}(d,\lambda), namely

Figure 5 presents the typical results of this calculation, using N=107N=10^{7}, tmin⁡=100t_{\min}=100, tmax⁡=400t_{\max}=400, at average degree d=6d=6.

This is also the curve reported in the main text.

4 The recovery phase (broken 𝒪​(m)𝒪𝑚{\mathcal{O}}(m) symmetry)

where we will assume zi∼N(0,Im−1){\bm{z}}_{i}\sim{\sf N}(0,{\rm I}_{m-1}). In the following, we let P1=e1e1T{\sf P}_{1}={\bm{e}}_{1}{\bm{e}}_{1}^{{\sf T}} be the projector along the first direction and P1⊥=I−P1{\sf P}^{\perp}_{1}={\rm I}-{\sf P}_{1} denote the orthogonal projector.

Recalling the cavity equations (196), and using the Fourier representation of the delta function, we get

where we approximated ∥zi∥22/m≈1\|{\bm{z}}_{i}\|_{2}^{2}/m\approx 1, and used the identity ∥τ0∥22=1−s02\|{\bm{\tau}}_{0}\|_{2}^{2}=1-s_{0}^{2}. In the m→∞m\to\infty limit, we approximate the integral over ρ\rho by its saddle point. In order to obtain a set of equations for the parameters of the ansatz (253), we will expand the exponent to second order in s0s_{0}. The saddle point location is given by

Here ρi\rho_{i} solves the equation Si,0′(ρi)=0S^{\prime}_{i,0}(\rho_{i})=0. Henceforth we shall focus on the β→∞\beta\to\infty limit, in which the equation Si,0′(ρi)=0S^{\prime}_{i,0}(\rho_{i})=0 reduces to

The first order correction is given by ρi,1=−Si,1′(ρi)/Si,0′′(ρi)\rho_{i,1}=-S^{\prime}_{i,1}(\rho_{i})/S_{i,0}^{\prime\prime}(\rho_{i}). Substituting in Eq. (257), we get the saddle point value of Si(ρi;s0)S_{i}(\rho_{i};s_{0}):

where in the last expression we used Eq. (262). Substituting in Eq. (196), we get a recursion for the triple hih_{i}, ci{\sf c}_{i}, rir_{i}:

If GnG_{n} is distributed according to the two-groups stochastic block model, the distributions of this triples on different type vertices are related by symmetry (ci(+),hi(+),ri(+))=d(ci(−),−hi(−),ri(−))({\sf c}_{i(+)},h_{i(+)},r_{i(+)})\stackrel{{\scriptstyle{\rm d}}}{{=}}({\sf c}_{i(-)},-h_{i(-)},r_{i(-)}) for i(+)∈V+i(+)\in V_{+}, i(−)∈V−i(-)\in V_{-}. This leads to the following distributional recursion for the sequence of random vectors {(ct,ht,rt)}t≥0\{({\sf c}^{t},h^{t},r^{t})\}_{t\geq 0}:

where L+∼Poisson(a/2)L_{+}\sim{\rm Poisson}(a/2), L−∼Poisson(b/2)L_{-}\sim{\rm Poisson}(b/2), s1,…,sL+=+1s_{1},\dots,s_{L_{+}}=+1, sL++1,…,sL++L−=−1s_{L_{+}+1},\dots,s_{L_{+}+L_{-}}=-1, and {(cit,hit,rit)}\{({\sf c}_{i}^{t},h^{t}_{i},r^{t}_{i})\} are i.i.d. copies of (ct,ht,rt)({\sf c}^{t},h^{t},r^{t}). Finally, ρi\rho_{i} is a function of (cit,hit,rit)({\sf c}_{i}^{t},h^{t}_{i},r^{t}_{i}) implicitly defined as the solution of

where μc\mu_{{\sf c}}, μh\mu_{h}, σh\sigma_{h}, μr\mu_{r} are deterministic parameters to be determined. Equation (273) thus implies ρi=dρ\rho_{i}=\sqrt{d}\rho, with ρ\rho solution of

Equations (270) to (272) then yield the following. From Eq. (270) we get

Substituting the values of various parameters in Eq. (281), we obtain

We claim that this is equivalent to Eq. (127). To see this, notice that differentiating Eq. (277) with respect to ZZ we get

where the second equality follows again from Eq. (277). Using this identity, we can rewrite Eq. (282) as

Using Gaussian integration by parts in the second term we finally obtain Eq. (127). This concludes our verification for the case of d→∞d\to\infty.

5 Limitations of the vectorial ansatz

The origin of this approximation can be gleaned from the calculation in Section 9.1. As we have seen Eq. (206) is only accurate when ⟨σ0,zi⟩\langle{\bm{\sigma}}_{0},{\bm{z}}_{i}\rangle is small. However, according to the same ansatz, σ0{\bm{\sigma}}_{0} will be aligned to z0{\bm{z}}_{0}, which –in turn– can be aligned with zi{\bm{z}}_{i}.

We expect this approximation to be accurate in the following regimes:

For large average degree dd. Indeed, in this case, z0{\bm{z}}_{0} is weakly correlated with zi{\bm{z}}_{i}.

For dd close to 11. In this case c0{\sf c}_{0} is small and hence, under ν0\nu_{0}, σ0{\bm{\sigma}}_{0} is approximately uniformly distributed, and hence has a small scalar product ⟨zi,σ0⟩\langle{\bm{z}}_{i},{\bm{\sigma}}_{0}\rangle.

Let us also notice that the vectorial ansatz can be systematically improved upon by considering quadratic terms tepending in two-dimensional projections, and so on. We leave this direction for future work.

Numerical experiments for community detection

In this section we provide details about our numerical simulations with the SDP estimator for the community detection problem. For the reader’s convenience we begin by recalling some definitions.

We denote by Gn=(Vn,En)G_{n}=(V_{n},E_{n}) the random graph over vertex set Vn=[n]V_{n}=[n], generated according the hidden partition model, and by x0∈{+1,−1}n\bm{x_{0}}\in\{+1,-1\}^{n} the vertex labels. Conditional on x0\bm{x_{0}}, edges are independent with distribution

We denote by d=(a+b)/2d=(a+b)/2 the average degree, and by λ=(a−b)/2(a+b)\lambda=(a-b)/\sqrt{2(a+b)} the ‘signal strength.’

Throughout this section, ∂i{\partial i} indicates the set of neighbors of vertex ii, i.e. ∂i≡{j∈[n]:(i,j)∈E}{\partial i}\equiv\{j\in[n]:(i,j)\in E\}.

We next recall the SDP relaxation for estimating community memberships:

Denote by X\mboxopt=X\mboxopt(G)\bm{X}_{\mbox{\tiny{opt}}}=\bm{X}_{\mbox{\tiny{opt}}}(G) an optimizer of the above problem. The estimated membership vector is then obtained by ‘rounding’ the principal eigenvector of X\mboxopt\bm{X}_{\mbox{\tiny{opt}}} as follows. Letting v1=v1(X\mboxopt){\bm{v}}_{1}={\bm{v}}_{1}(\bm{X}_{\mbox{\tiny{opt}}}) be the principle eigenvector of X\mboxopt\bm{X}_{\mbox{\tiny{opt}}}, the SDP estimate is given by

We measure the performance of such an estimator via the overlap:

where x0∈{−1,+1}n\bm{x_{0}}\in\{-1,+1\}^{n} encodes the ground truth memberships with x0,i=+1x_{0,i}=+1 if i∈V+i\in V_{+} and x0,i=−1x_{0,i}=-1 if i∈V−i\in V_{-}. Note that Overlapn(x^\mboxSDP)∈{\rm Overlap}_{n}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}})\in and a random guessing estimator yields overlap of order O(1/n)O(1/\sqrt{n}).

The majority of our calculations were run on a cluster with 160160 cores (Intel Xeon), taking roughly a month (hence total CPU time was roughly 10 years).

where the manifold M(n,m){\cal M}(n,m) is defined as below:

We will omit the dimensions when they are clear from the context.

As discussed in the main text, the two optimization problems (288) and (291) have a value that differ by a relative error of O(1/m)O(1/m), uniformly in the size nn. In particular, the asymptotic value of the SDP is the same, if we let m→∞m\to\infty after n→∞n\to\infty.

In fact the following empirical findings (further discussed below) point at a much stronger connection:

With high probability, the optimizer appears to be essentially independent of mm already for moderate values of mm (in practice, already for m=40∼100m=40\sim 100, when n≲104n\lesssim 10^{4}).

Again, for moderate values of mm, optimization methods do not appear to be stuck in local minima. Roughly speaking, while the problem is non-convex from a worst case perspective, typical instances are nearly convex.

Motivated by these findings, we solve optimization problem (291) in lieu of SDP problem (288), using the two algorithms described below: (i)(i) Projected gradient ascent; (ii)(ii) Block-coordinate ascent.

The rank-constrained formulation also allows to accelerate the rounding step to compute x^\mboxSDP(G)\bm{\hat{x}}^{\mbox{\tiny{SDP}}}(G), which can be obtained in time O(nm2+m3)O(nm^{2}+m^{3}), instead of the naive O(n3)O(n^{3}). Namely, given an optimizer σ\mboxopt{\bm{\sigma}}^{\mbox{\tiny{opt}}}, we compute the m×mm\times m empirical covariance matrix

Denoting by φ{\bm{\varphi}} the principal eigenvector of Σ^{\bf\widehat{\Sigma}}, we obtain the estimator x^\mboxSDP(G)∈{1,−1}n\bm{\hat{x}}^{\mbox{\tiny{SDP}}}(G)\in\{1,-1\}^{n} via

This approach allows us to carry out high-precision simulations for large instances, namely up to n=64,000n=64,000. By comparison, standard SDP solvers are based on interior-point methods and cannot scale beyond nn of the order of a few hundreds.

The tangent space at σ∈M{\bm{\sigma}}\in{\cal M} is given by

By identification (295), the manifold gradient of FF reads

We next define the convex envelope of M{\cal M}:

and the corresponding orthogonal projector

The projected gradient method alternates between a step in the direction of ∇F(σ)\nabla F({\bm{\sigma}}) and a projection onto conv(M){\rm conv}({\cal M}). Pseudocode is given as Algorithm 2.

The projected gradient method requires a subroutine for computing the projection PM{\sf P}_{{\cal M}} onto conv(M){\rm conv}({\cal M}). In order to compute this projection, we write the Lagrangian corresponding to problem (300):

with μ≥0\mu\geq 0 for 1≤i≤n1\leq i\leq n. Setting ∇ziL=0\nabla_{{\bm{z}}_{i}}\mathcal{L}=0, we obtain

Further, the constraint ∑i=1nzi=0\sum_{i=1}^{n}{\bm{z}}_{i}=0 implies

Due to constraint ∥zi∥≤1\|{\bm{z}}_{i}\|\leq 1, we have μi≥∥yi−w∥−1\mu_{i}\geq\|{\bm{y}}_{i}-{\bm{w}}\|-1. Also, by the KKT conditions, if the inequality is strict we have μi=0\mu_{i}=0. Therefore,

Substituting for μi\mu_{i} from Eq. (306) into (305) we arrive at

We compute the Lagrange multiplier w{\bm{w}} in an iterative manner as described in Algorithm 3.

1.2 Block coordinate ascent

We present here a second algorithm to solve problem (291), that uses block-coordinate descent. This provides independent check of numerical results. Further, this second method appears to be faster than projected gradient ascent.

We start by considering an unconstrained version of the optimization problem (with AG\bm{A}_{G} the adjacency matrix of the graph GG):

Equivalently, this objective function can be written as F(σ‾)−η∥M(σ)∥22/2F({\underline{{\bm{\sigma}}}})-\eta\|{\bm{M}}({\bm{\sigma}})\|^{2}_{2}/2, where M(σ)≡∑i=1nσi{\bm{M}}({\bm{\sigma}})\equiv\sum_{i=1}^{n}{\bm{\sigma}}_{i}. As η→∞\eta\to\infty, this is of course equivalent to problem (291).

We maximize the objective by iteratively maximizing over each of the vectors σi{\bm{\sigma}}_{i}. The latter optimization has a close form expression. More precisely, at each step of this dynamics, we sort the variables in a random order and we update them sequentially, by maximizing the objective function. This is easily done by aligning σi{\bm{\sigma}}_{i} along the ‘local field’

We check the convergence by measuring the largest variation in a spin variable during the last iteration. Namely we define

and we use as convergence criterion Δmax<tol3\Delta_{\text{max}}<{\tt tol}_{3}. The corresponding pseudocode is presented as Algorithm 4.

The resulting algorithm is very simple and depends on two parameters (η\eta and tol3{\tt tol}_{3}) that will be discussed in the Section 10.3, together with dependence on the number mm of spin components.

2 Numerical experiments with the projected gradient ascent

In this section we report our results with the projected gradient algorithm. As mentioned above, we found that the block coordinate ascent method was somewhat faster, and therefore we used the latter for large-statistics simulations, and high-precision determinations of the critical point λc\mboxSDP(d)\lambda_{c}^{\mbox{\tiny{SDP}}}(d). We defer to the next section for further discussion.

We use the projected gradient ascent discussed in Section 10.1.1, with tol1=tol2=10−6{\tt tol}_{1}={\tt tol}_{2}=10^{-6}. For each value of d∈{5,10,15,20,25,30}d\in\{5,10,15,20,25,30\} and n∈{2000n\in\{2000, 40004000, 80008000, 16000}16000\}, we generate 500500 realizations of graph GG from the stochastic block model defined in Eq. (287). In these experiments, we observed that the estimated membership vector does not change for m≥40m\geq 40, cf. Section 10.2.1. The results reported here correspond to m=40m=40.

Figure 7 reports the estimated overlap Overlapn(x^\mboxSDP){\rm Overlap}_{n}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}}) (across realizations) achieved by the SDP estimator, for different values of dd and nn. The solid curve corresponds to the cavity prediction, cf. equation (130), for large dd. As we see the empirical results are in good agreement with the analytical curve even for small average degrees d=5,10d=5,10.

In particular, the phase transition location seems indistinguishable, on this scale, from (a−b)/2(a+b)=1(a-b)/\sqrt{2(a+b)}=1.

𝑎𝑏2d=(a+b)/2. Dots corresponds to the performance of the SDP reconstruction method (averaged over 500500 realizations). The continuous curve is the asymptotic analytical prediction for the Gaussian model (which captures the large-degree behavior). 10.2.1 Dependence on mm As we explained before, optimization problem (291) and SDP (288) are equivalent provided m≥nm\geq n. In principle, one can solve (291) applying Algorithm 2 with m=nm=n. However, this choice leads to a computationally expensive procedure. On the other hand, we expect the solution to be essentially independent of mm already for moderate values of mm. Several theoretical arguments point to this (in particular, the Grothendieck-type inequality of [MS15]). We provide numerical evidence in this section (supporting in particular the choice m=40m=40).

In the first experiment, we set the average degree d=(a+b)/2=5d=(a+b)/2=5, n=4000n=4000 and vary λ=(a−b)/2(a+b)∈{0.9,1,1.1,1.2}\lambda=(a-b)/\sqrt{2(a+b)}\in\{0.9,1,1.1,1.2\}. For each λ\lambda, we solve for aa and bb and generate 100100 realizations of the graph as per model (287) with parameters a,ba,b. For several values of mm, we solve optimization (291) and report the average overlap and its standard deviation. The results are summarized in Table 2. As we see, for m≥40m\geq 40 the changes in average overlaps are comparable with the corresponding standard deviations. An interesting observation is that error bars for smaller mm are larger, indicating more variations of overlaps across different realizations.

Table 3 demonstrates the results for an analogous experiment with d=10d=10.

We observe a similar trend for other several values of a,b,na,b,n. Based on these observations, we use m=40m=40 in our numerical experiments throughout this section.

2.2 Robustness and comparison with spectral methods

Spectral methods are among the most popular nonparametric approaches to clustering. These methods classify nodes according to a the eigenvectors of a matrix associated with the graph, for instance its adjacency matrix or Laplacian. While standard spectral clustering works well when the graph is sufficiently dense or is regular, it is significantly suboptimal for sparse graphs. The reason is that the leading eigenvector of the adjacency matrix is localized around the high degree nodes.Note that for sparse stochastic block models as in (287), node degrees do not concentrate and we observe highly heterogeneous degrees.

Recently, [KMM+13] proposed a class of very interesting spectral methods based on the non-backtracking walk on the directed edges of the graph GG. The spectrum of non-backtracking matrix is more robust to high-degree nodes because a walk starting at a node cannot return to it immediately. Later, [SKZ14] proposed another spectral method, based on the Bethe Hessian operator, that is computationally more efficient than the non-backtracking operator. Further, the (determinant of the) Bethe Hessian is closely related to the spectrum of the non-backtracking operator and exhibits the same convenient properties for the aim of clustering. Rigorous analysis of spectral methods under the model (287) was carried out in [Mas14, MNS13, BLM15]. The main result of these papers is that spectral methods allow to estimate the hidden partition significantly better than random guessing immediately above the ideal threshold λ=(a−b)/2(a+b)=1\lambda=(a-b)/\sqrt{2(a+b)}=1.

For perturbation levels α∈{0,0.025,0.05}\alpha\in\{0,0.025,0.05\}, we compare the performance of SDP and Bethe Hessian algorithms in terms of Overlap, defined by (290). Figure 8 summarizes the results for n=16,000n=16,000 and average degree d=(a+b)/2=10d=(a+b)/2=10. The reported overlaps are averaged over 100100 realizations of the model.

In absence of any perturbation (curves α=0\alpha=0), the two algorithms have nearly equivalent performances. However, already for α=0.025\alpha=0.025, SDP is substantially superior. While SDP appears to be rather insensitive to the perturbation, the performance of the Bethe Hessian algorithm is severely degraded by it. This is because the added triangles perturb the spectrum of the non-backtracking operator (and similarly of the Bethe Hessian operator) significantly, resulting in poor classification of the nodes.

3 Numerical experiments with block coordinate ascent

In this section we present our simulations with the block coordinate ascent algorithm, cf. Algorithm 4. We first discuss the choice of the algorithm parameters η\eta and tol3{\tt tol}_{3}. cf. Section 10.3.2. In Section 10.3.2 we analyze the dependence on the number of dimensions mm and the behavior of the convergence time. We conclude by determining the phase transition point in Section 10.3.3, and comparing this location with our analytical predictions.

Algorithm 4 requires specifying the parameters η\eta (that penalizes M(σ)≠0{\bm{M}}({\bm{\sigma}})\neq 0) and tol3{\tt tol}_{3} (for the convergence criterion). In order to investigate the dependance on these parameters, we set m=100m=100 which, as we will see, is large enough to approximate the behavior at m=nm=n.

In Figure 9 we plot the evolution of the norm of the ‘global magnetization,’ ∥M(σt)∥2\|{\bm{M}}({\bm{\sigma}}^{t})\|_{2}, as a function of the number of iterations tt. Notice that each iteration corresponds to nn updates, one update of each vector σi{\bm{\sigma}}_{i}, i∈[n]i\in[n]. We used d=5d=5 and λ=1.1\lambda=1.1, and we averaged over a number of samples ranging from 100100 (for n=8000n=8000) to 400400 (for n=2000n=2000).

Initially the magnetization decays exponentially, ∥M(σt)∥2≈∥M(σ0)∥2 2−t\|{\bm{M}}({\bm{\sigma}}^{t})\|_{2}\approx\|{\bm{M}}({\bm{\sigma}}^{0})\|_{2}\>2^{-t}. Further, it increases slowly with nn. Indeed from central limit theorem, we have ∥M(σ0)∥2=Θ(n)\|{\bm{M}}({\bm{\sigma}}^{0})\|_{2}=\Theta(\sqrt{n}). The same behavior ∥M(σt)∥2=Θ(n)\|{\bm{M}}({\bm{\sigma}}^{t})\|_{2}=\Theta(\sqrt{n}) is found empirically at small tt.

In an intermediate interval of times, we have a power law decay ∥M(σt)∥2∝t−a\|{\bm{M}}({\bm{\sigma}}^{t})\|_{2}\propto t^{-a}, with exponent a≈1.1a\approx 1.1. This intermediate regime is present only for η\eta large enough.

For large tt, ∥M(σt)∥2\|{\bm{M}}({\bm{\sigma}}^{t})\|_{2} reaches a plateau whose value scales like ∥M(σt)∥2=Θ(1/n)\|{\bm{M}}({\bm{\sigma}}^{t})\|_{2}=\Theta(1/\sqrt{n}) with the system size and is proportional to 1/η1/\eta.

Already for η=1\eta=1, the value of the plateau is very small, namely

Further, this value is decreasing with nn. Given that ∥σi∥2=1\|{\bm{\sigma}}_{i}\|_{2}=1, we interpret the above as evidence that the constraint X1=0\bm{X}{\mathbf{1}}=0 is satisfied with good approximation. We will therefore use η=1\eta=1 in our simulations.

As an additional remark, notice that there is no special reason to enforce the constraint X1=0\bm{X}{\mathbf{1}}=0 strictly. Indeed the SDP (191) can be replaced by

with an arbitrary value of η\eta. Of course this is useful provided η\eta is large enough to rule out the solution X=11T\bm{X}={\mathbf{1}}{\mathbf{1}}^{{\sf T}}. As mentioned above, η≥d/n\eta\geq d/n should be already large enough [MS15].

In Figure 10 we show how Δmax(t)\Delta_{\text{max}}(t) decreases with time in Algorithm 4, again with d=5d=5 and λ=1.1\lambda=1.1.

In the left panel we fix n=8000n=8000 and study the dependence on the Lagrange parameter η\eta. We observe two regimes. While for η≲1\eta\lesssim 1, the convergence rate is roughly independent of η\eta, for η≳1\eta\gtrsim 1, it becomes somewhat slower with η\eta. This supports the choice η=1\eta=1.

In the right we fix η=1\eta=1 and study the dependence of the convergence time on the graph size nn. The number of iterations appears to increase slowly with nn (see also Figure 12). Both datasets are consistent with a power law convergence

with b≈1.75b\approx 1.75 (dotted line), and C(n)C(n) polynomially increasing with nn (see below for a discussion of the overall scaling of computational complexity with nn).

In order to select the tolerance parameter for convergence, tol3{\tt tol}_{3}, we study the evolution of estimation error. Define the overlap achieved after tt iteration as follows. First estimate the vertex labels by computing the top-left singular vector of σt{\bm{\sigma}}^{t}, namely

Of course, the accuracy of the SDP estimator is given by

3.2 Selection of m𝑚m and scaling of convergence times

The last important choice is the value of the dimension (rank) parameter mm. We know from [MS15] that the optimal value of the rank constrained problem (291) is within a relative error of order O(1/m)O(1/m) of the value of the SDP (288). Also, a result by Burer and Monteiro [BM03] implies that, for m≥2nm\geq 2\sqrt{n}, the objective function (291) has no local maxima that are not also global maxima (barring accidental degeneracies).

We empirically found that mm of the order of 1010 or larger is sufficient to obtain accurate results. Through most of our simulations, we fixed however m=100m=100, and we want to provide evidence that this is a safe choice

For each realization of the problem we compute the convergence time tconvt_{\text{conv}} as the first time such that the condition Δmax⁡(t)≤tol3=10−3\Delta_{\max}(t)\leq{\tt tol}_{3}=10^{-3} is met. In Figure 12 we plot histograms of log⁡(tconv)\log(t_{\text{conv}}) for n∈{2000,4000,8000,16000,24000}n\in\{2000,4000,8000,16000,24000\} and m∈{20,40,100}m\in\{20,40,100\}. Here d=10d=10 and λ=1\lambda=1, but tconvt_{\text{conv}} does not seems to depend strongly on λ\lambda, dd in the range we are interested in.

We observe that, for mm large enough (in particular m=100m=100, see also data in Figure 13), the histogram of log⁡(tconv)\log(t_{\text{conv}}) concentrates around its median. We interpret this as evidence of convergence towards a well defined global minimum, whose properties concentrate for nn large. On the other hand, for mm small, e.g. m=20m=20, the histogram broadens as nn increases. This is a typical signature of convergence towards local minima, whose properties fluctuate from one graph realization to the other.

Intermediate values of mm display a mixed behavior, with the histogram of convergence times concentrating for small nn and broadening for larger nn. This crossover behavior is consistent with the analytical results of [BA06]. Extrapolating this crossover suggests that m=100m=100 is sufficient for obtaining very accurate results for the range n≲105n\lesssim 10^{5} of interest to us (and most likely, well above).

Focusing on m=100m=100 (data in Figure 13), we computed the mean and variance of log⁡(tconv)\log(t_{\text{conv}}), for each value of nn. These appear to be well fitted by the following expressions

In other words the typical time complexity of our block coordinate ascent algorithm is –empirically– O(m n1.22)O(m\,n^{1.22}) (recall that each iteration comprises nn updates).

3.3 Determination of the phase transition location

As already shown in Section 10.2, the overlap Overlapn(x^\mboxSDP){\rm Overlap}_{n}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}}) undergoes a phase transition at a critical point λc\mboxSDP(d)\lambda_{c}^{\mbox{\tiny{SDP}}}(d) close to 11. Namely lim⁡n→∞Overlapn(x^\mboxSDP)=0\lim_{n\to\infty}{\rm Overlap}_{n}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}})=0 for λ≤λc\mboxSDP(d)\lambda\leq\lambda_{c}^{\mbox{\tiny{SDP}}}(d), while lim⁡n→∞Overlapn(x^\mboxSDP)>0\lim_{n\to\infty}{\rm Overlap}_{n}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}})>0 strictly for λ>λc\mboxSDP(d)\lambda>\lambda_{c}^{\mbox{\tiny{SDP}}}(d). In order to determine more precisely the phase transition location, we use the Binder’s cumulant method, which is standard in statistical physics [Bin81, LB14]. We summarize the main ideas of this method for the readers that might not be familiar with this type of analysis.

For a given graph realization GG, we define Q(G)Q(G) to be the overlap achieved by the SDP estimator on that realization, i.e.

For λ>λc\mboxSDP(d)\lambda>\lambda_{c}^{\mbox{\tiny{SDP}}}(d), we expect ∣Q(G)∣|Q(G)| to concentrate around its expectation Overlapn(x^\mboxSDP){\rm Overlap}_{n}(\bm{\hat{x}}^{\mbox{\tiny{SDP}}}), which converges to a non-zero limit. Hence lim⁡n→∞Bind(n,λ,d)=1\lim_{n\to\infty}{\sf Bind}(n,\lambda,d)=1. On the other hand, for λ>λc\mboxSDP(d)\lambda>\lambda_{c}^{\mbox{\tiny{SDP}}}(d), Q(G)Q(G) concentrates around , and we expect it to obey a central limit theorem asymptotics, namely Q(G)≈N(0,σQ2(n))Q(G)\approx{\sf N}(0,\sigma^{2}_{Q}(n)), with σQ2(n)≈σQ,∗2/n\sigma^{2}_{Q}(n)\approx\sigma_{Q,*}^{2}/n. This implies lim⁡n→∞Bind(n,λ,d)=3\lim_{n\to\infty}{\sf Bind}(n,\lambda,d)=3. Summarizing

We carried out extensive simulations with the block coordinate ascent, in order to evaluate the Binder cumulant, and will present our data in the next plots. In order to approximate the expectation over the random graph GG, we computed empirical averages over NsampleN_{\text{sample}} random graph samples, with NsampleN_{\text{sample}} chosen so that Nsample×n=6.4  108N_{\text{sample}}\times n=6.4\;10^{8}. (The rationale for using less samples for larger graph sizes is that we expect statistical uncertainties to decrease with nn.)

Figure 14 reports a first evaluation of Bind(n,λ,d){\sf Bind}(n,\lambda,d) for d=5d=5 and a grid of values of λ\lambda. The results are consistent with the prediction of Eq. (326). The approach to the n→∞n\to\infty limit is expected to be described by a finite-size scaling ansatz [Car12, LB14]

for a certain scaling function F{\mathcal{F}}, and exponent ν\nu. Formally, the above approximation is meant to be asymptotically exact in the sense that, for any zz fixed, letting λ(z,n)=λc\mboxSDP(p)+n−1/νz\lambda(z,n)=\lambda_{c}^{\mbox{\tiny{SDP}}}(p)+n^{-1/\nu}z, we have lim⁡n→∞Bind(n,λ(z,n),d)=F(z)\lim_{n\to\infty}{\sf Bind}(n,\lambda(z,n),d)={\mathcal{F}}(z). We refer to [BBC+01, DM08] for recent examples of rigorous finite-size scaling results in random graph problems.

In particular, finite size scaling suggests to estimate λc\mboxSDP\lambda_{c}^{\mbox{\tiny{SDP}}} by the value of λ\lambda at which the curves λ↦Bind(n,λ,d)\lambda\mapsto{\sf Bind}(n,\lambda,d), corresponding to different values of nn, intersect. In Figure 15 we report our data for d=2d=2, 55, 1010, focusing on a small window around the crossing point. Continuous lines are linear fit to the data, and vertical lines correspond to the analytical estimates of Section 9.3.

We observe that, for large nn, the crossing point is roughly independent of the the value of nn, in agreement with the finite-size scaling ansatz. As a nominal estimate for the critical point, we use the crossing point λ#(d)\lambda_{\#}(d) of the two Binder cumulant curves corresponding to the two largest values of nn, see Fig. 15. These are n=32,000n=32,000 and 64,00064,000 for d=2d=2, and n=16,000n=16,000 and 32,00032,000 for d=5d=5, 1010. We obtain

4 Improving numerical results by restricting to the 2-core

In order to accelerate our numerical experiments presented in Section 10.2 and 10.3, we preprocessed the graph GG by reducing it to its 22-core. Recall that the kk-core of a graph GG is the largest subgraph of GG, with minimum degree at least kk. It can be constructed in linear time by recursively removing vertices with degree at most (k−1)(k-1).

In numerical experiments we first generated G0G_{0} according to the model (287), then reduced G0G_{0} to its 22-core GG, and finally solved the SDP (288) on GG. If G0G_{0} has size nn, and d>1d>1, the size of GG is still of order nn albeit somewhat smaller [PSW96].

The pruned graph G∖G0G\setminus G_{0} is formed with high probability by a collection of trees with size of order 11. It is not hard to see that the SDP estimator can achieve strictly positive overlap on G0G_{0} (as n→∞n\to\infty) if and only if it does on GG. Hence, this reduction does not change the phase transition location. We confirmed numerically this argument as well.