Manuscript Offprint
arXiv:2610.09303Tightness and Error Exponents of SDP with Logarithmically Many Communities
ABSTRACT
We study a semidefinite programming (SDP) relaxation for community recovery when the number of communities grows logarithmically. In the balanced stochastic block model with vertices, we consider the regime , with edge probabilities within communities and across them, for fixed . We derive the sharp asymptotic tightness boundary away from critical cases. When rare vertices cause tightness to fail while the bulk remains spectrally stable, the normalized matrix error of every near-optimal solution still vanishes. We prove matching high-probability exponents for this error and the normalized optimal objective gain, governed by the same local correction that determines tightness. Throughout this spectrally stable region, a single SDP solve followed by explicit rounding and refinement achieves exact community recovery above the information-theoretic threshold. This guarantee holds even when the planted community matrix is not an optimal solution to the SDP.
1 INTRODUCTION
Semidefinite relaxations provide a principled approach to community recovery by optimizing over matrices that represent pairwise community membership. When a relaxation is tight, its unique optimal solution recovers the planted community matrix, and the labels follow immediately. Once tightness fails, however, the statistical consequences are less clear. How far does the optimizer move from the planted matrix, and can its remaining structure still support exact recovery? We study these questions for the balanced cluster-matrix semidefinite program (SDP) in the stochastic block model (SBM), a canonical model for graph clustering (Abbe, 2018).
The regime of logarithmically many communities brings these questions into focus. For fixed or sublogarithmically many balanced communities, this SDP attains the information-theoretic exact-recovery threshold (Hajek et al., 2016b; Agarwal et al., 2015). However, at the logarithmic scale, local degree fluctuations and collective spectral noise become comparable, and the sharp behavior of the relaxation is unresolved by those guarantees. Specifically, we consider vertices partitioned into communities of size . Let , and assume , with within- and between-community edge probabilities and , respectively, for fixed . In this regime, the number of communities grows logarithmically, while the expected degree of each vertex is of order . This setting addresses the SDP tightness question raised by Bandeira (2015, Open Problem 9.2).
Our results characterize both the loss of tightness and the information retained beyond it. Let and . A vertex's degree margin against a competing community is the difference between its degrees into its own community and that competing community. In the spectrally stable region , the surrounding noise reduces the effective margin by a correction , where . Let denote the lower-tail rate for a degree margin of size , as defined in Section 2. We prove that the SDP is tight with high probability when , whereas the planted matrix is not optimal with high probability when . In this local failure region, both the normalized matrix error and the normalized optimal objective gain over the planted matrix have
*Department of Biostatistics & Bioinformatics, Duke University, Durham, NC 27710, USA. Email: ethan.fang@duke.edu.
Department of Biostatistics, Harvard T.H. Chan School of Public Health, Boston, MA 02115, USA. Email: junweilu@hsph.harvard.edu.
(a) Matrix behavior at

(b) Fixed signal: ,

Figure 1: Tightness, matrix error, and the bulk transition. (a) Fixed- regions from Theorems 2.1–2.2 and Proposition 2.3; the dotted information boundary is prior work (Zhang & Zhou, 2016). (b) Along the fixed-signal cut in (a), crosses one at . On the orange interval, matrix error and objective gain have exponent . On the green interval, the SDP is tight with high probability; the dotted curve continues the rate function, not the optimizer's error. The bulk boundary lies at , beyond which is not real. The colored regions describe strict asymptotic regimes. Zero-error annotations refer to exact SDP optimizers. Both panels are evaluations of theoretical formulas.
size . The matrix-error guarantee holds uniformly over all feasible solutions whose objective value is at most 1 below the optimum.
Even when the planted matrix is not an optimal solution to the SDP, the SDP output can still retain enough information for exact label recovery. Throughout the region , we show that a single SDP solve followed by explicit row clustering and refinement recovers all labels with high probability whenever , the information-theoretic exact-recovery condition. This guarantee includes the entire information-recoverable part of the local failure region, where the planted matrix is not optimal. In the bulk regime , near-optimal matrices instead have asymptotically zero normalized overlap with the planted matrix, although this alone does not rule out label recovery. Figure 1 summarizes the matrix regimes; Section 2 states the precise guarantees and excluded critical cases.
Our proof identifies a common mechanism behind the tightness boundary and the local error exponent. First, we use a Schur complement to account for the surrounding graph, yielding the correction . Controlling this correction requires an operator-norm resolvent estimate on a set of low-margin vertices selected from the same graph, so independence cannot be assumed. We then increase selected diagonal entries of the dual certificate to restore positive semidefiniteness. Controlling the total size of these adjustments yields upper bounds on both matrix error and objective gain. For the matching lower bound, we build forests rooted at many low-margin vertices, balancing their structure across communities. We use these forests to construct a Gram matrix that satisfies all SDP constraints and improves on the planted objective by the required order. The upper and lower bounds have the same exponent because both depend on how many vertices have degree margins near .
For exact label recovery, a weaker matrix-error bound suffices to obtain an initial labeling with few misclassified vertices. We then show that refinement reduces the number of errors whenever the set of misclassified vertices is sufficiently small. Because this guarantee holds for all such sets simultaneously, it remains valid when the initial labeling and each refinement step use the same graph.
Relation to prior work. We use the relaxation and dual certificate of Agarwal et al. (2015). Their sufficient condition covers logarithmically many communities but does not determine the sharp constants in this regime. Hajek et al. (2016a, Section 6, Theorem 17 and Remark 18) show that the SDP can fail to be tight above the information-theoretic exact-recovery threshold when the logarithmic ratio is sufficiently large. Theorem 2.1 determines the sharp tightness boundary for every fixed
, apart from the stated critical cases, addressing the balanced-model SDP question raised by Bandeira (2015, Open Problem 9.2). Theorem 2.2 further quantifies the matrix error and objective gain in the local failure region. Chen & Xu (2016) study broader statistical-computational trade-offs with a growing number of clusters. Their results characterize recovery regimes up to constant factors, whereas our analysis identifies the sharp constants for the balanced SDP considered here.
Beyond tightness, Fei & Chen (2019a) derive exponential bounds on SDP matrix error and show how to obtain community labels by clustering the rows of the SDP output. Their analysis also allows the row constraints used here, but does not determine the sharp error exponent in our regime. Fei & Chen (2019b) obtain sharp Bayes exponents for the binary symmetric SBM and use a planted dual certificate to bound errors even when tightness fails. We build on this approach to obtain matching upper and lower bounds with exponent for logarithmically many communities. To translate matrix-error bounds into label-recovery guarantees, we combine row clustering with local refinement, an approach with established precedents (Fei & Chen, 2019a; Gao et al., 2017). Here we show that the non-tight SDP output provides a sufficiently accurate initialization for exact recovery under the stated conditions, and justify reusing the same graph for initialization and refinement. Appendix I provides detailed comparisons of the models, feasible sets, and parameter ranges.
2.1 MODEL, SDP, AND ERROR MEASURES
Consider vertices partitioned into fixed communities , each of size . Let denote the community label of vertex . Under the regime
the adjacency matrix A is generated independently for by
with and . Throughout, remain fixed as .
Let be the planted community matrix, with entries . Assuming that the community size is known, we consider the semidefinite relaxation
(SDP)
Here is the space of real symmetric matrices, denotes entrywise nonnegativity, and . The vector has all entries equal to one, and . Write for the feasible set. We call the SDP tight when is its unique optimizer. In each failure region identified below, we show that is not optimal by constructing a feasible matrix with strictly larger objective.
We measure the SDP’s behavior through the normalized matrix error, optimal objective gain, and planted overlap:
Here denotes the sum of the absolute values of all matrix entries. Positive semidefiniteness and the unit diagonal, together with entrywise nonnegativity, imply for every . The row constraints then ensure that the total missing mass within communities equals the total mass between communities, giving . Thus measures error in the SDP matrix before labels are extracted. Unless specified otherwise, matrix norms are operator norms, and “with high probability” means with probability tending to one as at fixed .
To describe the local fluctuations that govern tightness, let the degree of vertex into community , its margin against a competing community, and its smallest such margin be
Let
The typical degree margin is , while the centered spectral noise has scale . For , define the degree-margin lower-tail rate as
Lemma A.1 shows that, for each fixed ,
The rate function is strictly decreasing for , with and . We abbreviate it as when the parameters are clear.
Finally, for , let the local correction be
This correction accounts for the effect of the surrounding spectral noise on a vertex’s degree margin and determines the boundary and error exponent stated below.
2.2 TIGHTNESS AND THE LOCAL ERROR EXPONENT
Our first result gives sharp conditions for the planted matrix to be the unique SDP solution. Away from the stated critical cases, tightness requires both sufficient signal relative to spectral noise and sufficiently large degree margins, expressed by and , respectively. The theorem leaves the specified critical cases unresolved.
Theorem 2.1 (Sharp tightness boundary). Under (2.1)–(2.2), is the unique SDP optimizer with high probability if
It is not optimal with high probability if either
or
No assertion is made in either of the remaining critical cases: with , or with .
When but , the planted matrix is not optimal, yet near-optimal SDP matrices remain close to it. The next theorem determines the rate at which their normalized error vanishes, together with the rate of the normalized objective gain. The bounds hold simultaneously for all feasible solutions within an additive one of the optimum, including every optimal solution.
Theorem 2.2 (Matching local error exponent). Assume (2.1)–(2.2), , and . For every fixed , with high probability,
and simultaneously, for every satisfying , we have
Thus both matrix error and objective gain have exponent : their logarithms, divided by , converge in probability to , uniformly over the stated class of matrices for the error guarantee. This exponent reflects the rarity of vertices whose degree margins fall below the correction . The result determines the decay rate up to subpolynomial factors; it does not specify a multiplicative prefactor, an expected risk, or behavior within a critical window.
The tightness boundary differs from the threshold for exact label recovery. Information-theoretically, exact label recovery is possible when and impossible when under the uniform balanced prior (Zhang & Zhou, 2016; Abbe et al., 2016). Appendix G gives the precise normalization and converse. Whenever the local correction is defined, , so the local condition for tightness is more restrictive than the information-theoretic condition. Together with the spectral failure condition, this implies that every fixed admits an interval immediately above the information threshold in which is not optimal (Corollary G.3).
2.3 OPTIMAL VALUE AND PLANTED OVERLAP
The preceding theorem describes the error caused by local fluctuations when . We now characterize the leading optimal value and the overlap with the planted matrix on both sides of the spectral boundary .
Proposition 2.3 (Optimal value and planted overlap). Under (2.1)–(2.2),
For any deterministic with , the following limits hold in probability, uniformly over all satisfying :
When , both objectives have leading term , so the gain in Theorem 2.2 is of smaller order. When , and in probability for the near-optimal solutions above. Vanishing normalized overlap alone does not rule out label recovery. At , the proposition gives the limiting value but does not provide an overlap guarantee.
3 ESTABLISHING THE SHARP ERROR EXPONENT
We outline the proof of Theorem 2.2. For the upper bounds, we adjust the dual certificate to control both matrix error and objective gain. For the matching lower bounds, we construct a feasible matrix whose objective improvement forces every near-optimal solution to have matrix error with the same exponent. Both arguments depend on the number of vertices with degree margins near , yielding the common exponent . Figure 2 summarizes the argument, and we provide detailed proofs in Appendices A–D.

Figure 2: The upper and lower bounds in Theorem 2.2. To leading order, eliminating the surrounding graph reduces a vertex's effective margin by . Repairing the corresponding small diagonals bounds the error from above. Many low-margin roots, organized into balanced forests and used in a finite-step Gram construction, give a feasible objective improvement. The cost and gain have the same exponent because both are controlled by the number of vertices with margin near .
3.1 THE CORRECTION TO THE DEGREE MARGIN
Let and . The sharp sparse-matrix bound of Benaych-Georges et al. (2020) gives (Lemma A.3). For , let
Note that when , we take , and it gives .
To explain the correction, consider a coordinate with margin , coupled to the remaining coordinates through a vector . If the quadratic form on those remaining coordinates is represented by a positive definite matrix , then . Thus optimizing over the remaining coordinates reduces the effective margin by . When the background diagonal is , this reduction is to leading order. Estimating this quantity directly gives a sharper correction than the global norm bound .
To estimate this reduction at vertices with small degree margins, fix and let
and let be the coordinate projection onto S. The following proposition shows that the resolvent, restricted to these vertices, is asymptotically a scalar multiple of the identity.
Proposition 3.1 (Resolvent on marked vertices). For every fixed and , the inverse exists with high probability, and
Here the main challenge is that depends on and can grow with . The estimate must therefore account for this dependence and control the restricted matrix in operator norm, beyond convergence of individual entries. We begin with degree-margin estimates conditional on finitely many edges. For a connected configuration with vertices, required edges, and marked vertices, the expected number of embeddings is at most . For any fixed radius, we adopt these estimates to show that, with high probability, neighborhoods of marked vertices contain no cycles. Taking also bounds the number of marked vertices in every neighborhood of that radius.
On these tree neighborhoods, we count closed walks to recover the moments of the semicircle law. We also show that walks between distinct marked vertices make vanishing contributions. Because only boundedly many marked vertices lie within any fixed distance of a given vertex, the sum of the absolute off-diagonal contributions in each row vanishes uniformly. After accounting for the centering of A, we obtain operator-norm convergence for each fixed power of X restricted to the marked set. We then use the norm bound on X to control the remaining terms in the resolvent series and conclude (3.3).
3.2 UPPER BOUNDS FROM THE DUAL CERTIFICATE
Let
Here the projection averages coordinates within each planted community, while subtracts these averages. The dual certificate of Agarwal et al. (2015) has slack matrix , where is diagonal with entries and . Its multiplier is entrywise nonnegative, and every feasible satisfies
This identity remains valid when S is not positive semidefinite. We can therefore use it to bound the error even when is not optimal, following the arguments in Fei & Chen (2019b, Section 1.1).
We restore positive semidefiniteness by increasing the small diagonal entries. Fix sufficiently close to , write , and define a diagonal matrix by . Thus for every vertex. Choose such that . The marked resolvent estimate gives a lower bound on the eigenvalues of the Schur complement. The background block has eigenvalues at least . Because the linear map used to eliminate the background has bounded norm, these two bounds imply for some fixed , with high probability.
For any feasible , we have and by the SDP constraints. Combining these relations with (3.5) yields
The degree-margin tail estimates bound the total diagonal adjustment by with high probability, provided is sufficiently close to .
Dropping the nonpositive term in (3.6) gives the upper bound on the objective gain. For any feasible with , feasibility of also gives . Hence
Since , this gives the matrix-error upper bound uniformly over all such .
3.3 A GRAM CONSTRUCTION FOR THE LOWER BOUND
To obtain a lower bound on the objective gain, we construct a feasible matrix that improves on . Writing the matrix as the Gram matrix of unit vectors ensures positive semidefiniteness and unit diagonal. We preserve the row sums by arranging the perturbation to have the same coordinate multiset in each community involved in the construction. A second Gram matrix then corrects any negative entries. This construction allows a fixed positive step, so the objective gain retains the order of the leading term.
Choose an even number of communities, which we call active, and index them by . Pair these communities through a perfect matching . For a vector centered within each community, let . The following lemma converts a positive value of into a feasible objective improvement.
Lemma 3.2 (Finite-step Gram improvement). Suppose vanishes on inactive communities and has identical coordinate multisets on the active communities. Each coordinate in an active community is either or positive and at least . Assume is centered in every community, , , and . If for fixed , then there are constants , independent of , such that, for all sufficiently large , a feasible matrix of rank satisfies
To construct , take orthonormal vectors , . For vertices in active communities, set
For vertices in inactive communities, set . These vectors have unit norm. Because is centered within each community and has identical coordinate multisets across active communities, we have . Their Gram matrix therefore has unit diagonal and row sums . Its potentially negative entries are between active communities that are not paired by .
To correct these entries, define and form a second Gram matrix using
on the active communities, keeping the inactive vectors unchanged. The matrix also has unit diagonal and row sums . The mixture , where , has nonnegative entries and hence satisfies all SDP constraints. Moreover,
Choosing a sufficiently small fixed controls the quadratic remainder, while makes the remaining term negligible. This proves the claimed gain.
Appendix C verifies the constraints and bounds the remainder. Local Gram constructions for SDP values also appear in Montanari & Sen (2016); Fan & Montanari (2017); here we additionally enforce the row sums and entrywise nonnegativity required by (SDP).
3.4 MATCHING LOWER BOUNDS FROM LOW-MARGIN VERTICES
We now construct a vector that satisfies Lemma 3.2 and yields the required objective gain. Take active communities and pair them as above. Fix with and . With high probability, each active community contains at least vertices whose margins against its matched community are at most . We use these vertices as roots. Conditioning on all edges within communities and between matched communities fixes the roots while leaving edges between unmatched active communities independent.
We explore the graph from these roots in groups, with one root from each active community. Reserve all roots before exploration, and restrict nonroot vertices to satisfy , as in Lemma D.1. For each group, we grow trees to a fixed depth , selecting fresh neighbors in each active community other than the current vertex's own community and its matched community. If an exploration fails, we discard the group and exclude all vertices it has used from later explorations. The total number of reserved or previously used vertices in each community is at most . Consequently, each group has conditional failure probability , uniformly over the preceding explorations. The expected fraction of failed groups is therefore , so Markov's inequality shows that at least groups succeed with high probability.
Let be the number of retained groups and the branching factor. The construction gives exactly vertices at depth in every active community. Assign weight to each such vertex, set all other coordinates to zero, and then subtract the mean within each community. The resulting vector satisfies the structural conditions of Lemma 3.2, with . Its quadratic form satisfies
Set and optimize over the remaining weights. The maximum of the leading expression in (3.8) is , where , , and . Since , this value is positive for a sufficiently large fixed . Thus the trees reproduce, to any fixed accuracy, the same correction that appears in the upper bound. Lemma 3.2 then gives a feasible objective gain of at least , or after normalization. Taking sufficiently close to and then sufficiently small proves the objective-gain lower bound in Theorem 2.2.
To obtain the matrix-error lower bound, we return to (3.5). Since and , every feasible satisfies . Every solution with objective at least achieves the optimal gain up to an additive one. The objective-gain lower bound therefore yields a matrix-error lower bound with the same exponent.
The proof of Proposition 2.3 uses a separate construction. For the upper bound, nonnegativity and the row constraints bound the noise terms involving Q by block-degree deviations whose total contribution is . For the lower bound, we start from a nonnegative polynomial Gram matrix, center and rescale it, and add together with a positive semidefinite correction that restores the unit diagonal. Appendix E shows that the resulting feasible matrix has noise value approaching .
4 LABEL RECOVERY BEYOND TIGHTNESS
Even when the planted matrix is not optimal, the SDP output can provide an initial labeling accurate enough for exact recovery. We use the following procedure, which requires only A and the known community size m as input. First, obtain a feasible solution to (SDP) with objective at least . Then cluster its rows: among the remaining rows, choose one whose -ball of radius contains the most remaining rows. Retain this row as a center and remove all remaining rows within distance m of it. Repeat until k centers have been selected, then assign every row to its nearest center. If no rows remain before k centers have been selected, return arbitrary labels. Finally, perform refinement steps. At each step, simultaneously assign every vertex to the label class containing the largest number of its neighbors, using the labels from the preceding step. Break all ties deterministically.
Corollary 4.1 (Exact labels beyond matrix tightness). Under (2.1)–(2.2), if and , this procedure recovers all labels up to permutation with high probability. The conclusion holds simultaneously for every feasible input SDP matrix with objective at least .
The proof has two steps. First, row clustering yields mislabeled vertices in total, so the fraction of errors within every community vanishes. Second, refinement reduces the number of errors at each iteration. Under , all true degree margins exceed with high probability for some fixed . A vertex mislabeled after an update must therefore have at least neighbors in the preceding error set. We show that, with high probability, every sufficiently small vertex set spans too few edges to sustain a large number of such vertices. This forces the error count to contract until no errors remain.
The bound holds simultaneously over all sufficiently small vertex sets, including the error sets produced by initialization and refinement on the same graph. Thus the argument requires no independence between these steps. Appendix F gives the full proof and an additional upper bound on label error with exponent .
Row clustering and local refinement are established methods (Fei & Chen, 2019a; Gao et al., 2017). For exact recovery here, a coarser matrix-error bound suffices: increasing the dual diagonal entries to a level above and applying the global norm bound already yields errors after row clustering. The marked-resolvent estimate is needed to sharpen the matrix-error bound to the matching exponent .
5 NUMERICAL ILLUSTRATIONS OF THE ASYMPTOTIC FORMULAS
Figure 1 illustrates the theoretical regimes by evaluating their defining formulas. Along the cut , , so exact label recovery is information-theoretically possible for every fixed . The tightness boundary occurs at , and the bulk boundary at . The table shows representative values in the three regimes.
| γ | I(τ) | Limit of Vm/(nL) | SDP matrix behavior |
|---|---|---|---|
| 0.3 | 1.0592 | 4.2500 | Tight |
| 1.0 | 0.8923 | 4.2500 | Nonoptimal Z*, vanishing error |
| 2.4 | 0.4613 | 4.2500 | Nonoptimal Z*, vanishing error |
| 3.0 | — | 4.4641 | Overlap tends to zero |
At , both the matrix error and the normalized objective gain have exponent approximately 0.8923, yet the postprocessing procedure in Corollary 4.1 recovers all labels. At , the normalized objective gain instead converges to approximately 0.2141, and the planted overlap tends to zero. Here is not real, so the local error exponent does not apply.
The accompanying code evaluates these formulas and locates the boundaries by scalar root finding, with residual checks. These are illustrations of the asymptotic results; we do not report finite-sample SDP experiments. Such experiments would require measuring matrix error, objective gain, and label error on the same graphs, with optimization and feasibility errors controlled below the scales being measured.
6 DISCUSSION
Our results distinguish the loss of matrix tightness from the loss of information needed for label recovery. At the local tightness boundary, vertices with small degree margins begin to change the SDP optimum. Their frequency determines the matrix-error exponent, yet postprocessing still recovers all labels whenever and . In the bulk regime , the unnormalized objective gain is of order , and the normalized planted overlap tends to zero.
The analysis applies to the balanced SDP in (SDP) at fixed . The remaining critical cases, multiplicative error prefactors, and finite-sample behavior remain open. Whether the SDP output permits label recovery in the bulk regime is also unresolved by our overlap result. The bulk boundary describes this particular relaxation and does not establish a computational lower bound for community recovery. The growing-community KS results of Chin et al. (2026) concern different priors and recovery criteria; Appendix I details the comparison.
AI USE STATEMENT
The Odin Automatic AI Research Agent was used to aid or polish the writing and to assist with proving mathematical claims. The manuscript has undergone AI-assisted proof and consistency checks. The authors reviewed the AI-assisted work and take responsibility for the final content.
REFERENCES
Emmanuel Abbe. Community detection and stochastic block models: Recent developments. Journal of Machine Learning Research, 18(177):1–86, 2018. URL https://jmlr.org/papers/v18/16-480.html.
Emmanuel Abbe, Afonso S. Bandeira, and Georgina Hall. Exact recovery in the stochastic block model. IEEE Transactions on Information Theory, 62(1):471–487, 2016. doi: 10.1109/TIT.2015.2490670. URL https://arxiv.org/abs/1405.3267v4.
Naman Agarwal, Afonso S. Bandeira, Konstantinos Koiliaris, and Alexandra Kolla. Multisection in the stochastic block model using semidefinite programming. arXiv:1507.02323v1, 2015. URL https://arxiv.org/abs/1507.02323v1.
Afonso S. Bandeira. Ten lectures and forty-two open problems in the mathematics of data science. MIT OpenCourseWare, 18.S096, 2015. Open Problem 9.2.
Florent Benaych-Georges, Charles Bordenave, and Antti Knowles. Spectral radii of sparse random matrices. Annales de l'Institut Henri Poincaré, Probabilités et Statistiques, 56(3):2141–2161, 2020. doi: 10.1214/19-AIHP1033. URL https://arxiv.org/abs/1704.02945v5. Author version cited: arXiv:1704.02945v5.
Yudong Chen and Jiaming Xu. Statistical-computational tradeoffs in planted problems and submatrix localization with a growing number of clusters and submatrices. Journal of Machine Learning Research, 17(27):1–57, 2016. URL https://jmlr.org/papers/v17/14-330.html.
Byron Chin, Elchanan Mossel, Youngtak Sohn, and Alexander S. Wein. Stochastic block models with many communities and the Kesten–Stigum bound. arXiv:2503.03047v3, 2026. URL https://arxiv.org/abs/2503.03047v3. Extended abstract appeared at COLT 2025.
Zhou Fan and Andrea Montanari. How well do local algorithms solve semidefinite programs? In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pp. 604–614, 2017. doi: 10.1145/3055399.3055451. URL https://arxiv.org/abs/1610.05350v1. Long version cited: arXiv:1610.05350v1.
Yingjie Fei and Yudong Chen. Exponential error rates of SDP for block models: Beyond Grothendieck's inequality. IEEE Transactions on Information Theory, 65(1):551–571, 2019a. doi: 10.1109/TIT.2018.2839677. URL https://arxiv.org/abs/1705.08391v1.
Yingjie Fei and Yudong Chen. Achieving the Bayes error rate in stochastic block model by SDP, robustly. In Proceedings of the 32nd Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pp. 1235–1269, 2019b. URL https://proceedings.mlr.press/v99/fei19a.html.
Chao Gao, Zongming Ma, Anderson Y. Zhang, and Harrison H. Zhou. Achieving optimal misclassification proportion in stochastic block models. Journal of Machine Learning Research, 18(60):1–45, 2017. URL https://jmlr.org/papers/v18/16-245.html.
Julia Gaudio and Phawin Prongpaophan. Semidefinite programming for the asymmetric stochastic block model. arXiv:2506.18754v1, 2025. URL https://arxiv.org/abs/2506.18754v1.
Bruce Hajek, Yihong Wu, and Jiaming Xu. Semidefinite programs for exact recovery of a hidden community. In Proceedings of the 29th Annual Conference on Learning Theory, volume 49 of Proceedings of Machine Learning Research, pp. 1051–1095, 2016a. URL https://proceedings.mlr.press/v49/hajek16.html.
Bruce Hajek, Yihong Wu, and Jiaming Xu. Achieving exact cluster recovery threshold via semidefinite programming: Extensions. IEEE Transactions on Information Theory, 62(10):5918–5937, 2016b. doi: 10.1109/TIT.2016.2594812. URL https://arxiv.org/abs/1502.07738v3.
Andrea Montanari and Subhabrata Sen. Semidefinite programs on sparse random graphs and their application to community detection. In Proceedings of the 48th Annual ACM Symposium on Theory of Computing, pp. 814–827, 2016. doi: 10.1145/2897518.2897548. URL https://arxiv.org/abs/1504.05910v3. Long version cited: arXiv:1504.05910v3.
Amelia Perry and Alexander S. Wein. A semidefinite program for unbalanced multisection in the stochastic block model. arXiv:1507.05605v2, 2016. URL https://arxiv.org/abs/1507.05605v2.
Anderson Y. Zhang and Harrison H. Zhou. Minimax rates of community detection in stochastic block models. The Annals of Statistics, 44(5):2252–2280, 2016. doi: 10.1214/15-AOS1428. URL https://arxiv.org/abs/1507.05313v2. Author version cited: arXiv:1507.05313v2.
Matthew Zurek and Yudong Chen. Gap-free clustering: Sensitivity and robustness of SDP. arXiv:2308.15642v2, 2024. URL https://arxiv.org/abs/2308.15642v2. Presented at COLT 2024.
A PROBABILITY AND RANDOM-MATRIX INPUTS
We begin with lower-tail estimates for the degree margins. We use these estimates to count low-margin vertices for the lower bound and to control their joint occurrence in the resolvent proof. The estimates remain valid after conditioning on a fixed number of edges. We then give the spectral norm and degree bounds used in both arguments.
Lemma A.1 (Degree-margin deviations). For every fixed , uniformly over and ,
For each fixed positive integer j, uniformly over distinct vertices ,
Both estimates hold uniformly conditional on any fixed number of specified edge values.
Proof. For a fixed vertex and competing community, has the law of , with independent terms. For fixed ,
The optimizing parameter for the lower tail is
Chernoff’s bound gives the upper bound in (A.1). For the lower bound, consider the exponentially tilted distribution with parameter . Under this law, the mean is and the variance is . The central limit theorem for the bounded independent summands gives a positive limiting probability to the interval for fixed . Changing back to the original law gives a lower bound of the form , as required.
Conditioning on a bounded number of edge values removes only random summands and shifts the threshold by . The preceding estimates are uniform under these changes. For the joint bound, first fix the competing community for each vertex, and then condition on all edges among . The remaining incident edges are independent across these vertices, so the conditional probability is bounded by the product of the individual bounds. A union over the competing communities adds a factor of at most .
Lemma A.2 (Low-margin counts). For fixed with , let
Then
In particular, uniformly over the ordered block pairs, .
Proof. For distinct , the two margin events share only the within-block edge . Conditional on that edge, the events are independent. Let be their common conditional probabilities when the edge is absent or present, respectively. Since ,
Consequently,
By Lemma A.1, the right-hand side is . Chebyshev's inequality and a union bound over ordered pairs prove (A.3).
We next bound the norm of the centered adjacency matrix. Set
Lemma A.3 (Centered norm and degree bounds). Under (2.1)–(2.2),
Moreover, with probability tending to one, uniformly over vertices,
and uniformly over vertex–community pairs and block pairs,
Proof. The common row-variance sum is
Apply Benaych-Georges et al. (2020, Assumption 2.4 and Theorem 2.7) to . Its row-variance sums equal one, its entry variances are at most for a fixed , and its entries have magnitude at most , where . The required inequality holds for large , and . The theorem therefore gives . The concentration inequality in Benaych-Georges et al. (2020, equation (2.4)) gives, for every ,
Taking and using proves (A.6).
The total degree has mean . A Chernoff bound with relative error , followed by a union bound over vertices, proves (A.7). A Chernoff bound for each , followed by a union over the vertex–community pairs, bounds all such degrees by a sufficiently large fixed multiple of . Averaging within each community gives the block-pair bound.
B DUAL ANALYSIS AND UPPER BOUNDS
The dual certificate reduces unique optimality to positivity on the space of vectors centered within each community. When , most of the diagonal entries exceed the noise norm. We isolate the smaller entries and use the marked resolvent to account for their interaction with the rest of the graph.
We use the candidate dual diagonal from Agarwal et al. (2015, Section 3). Write , and set
Define the block corrections and the candidate diagonal by
The minimum defining includes diagonal block pairs. Lemma B.2 shows that it is attained across distinct blocks with high probability.
Lemma B.1 (Dual reduction). If for every nonzero , then is the unique optimal solution of (SDP).
Proof. We display the certificate of Agarwal et al. (2015, Section 3 and Appendix A.6) in our notation. Set and
The numerator is a sum of nonnegative terms. For and , its block row sum is
Together with (B.2), this shows that the symmetric slack
annihilates every planted community indicator. Each cross block of is a sum of a row term and a column term, so . Consequently,
Under the hypothesis, and . For any feasible , the affine constraints and give
If equality holds, positivity forces range , so is block-constant. Its unit diagonal makes every diagonal block all ones, using the entire row mass . Entrywise nonnegativity then makes all cross blocks zero. Thus .
To apply the certificate, we must estimate . The next lemma shows that the block corrections are ; the degree margins therefore give the leading diagonal values.
Lemma B.2 (Block correction). The corrections satisfy
Proof. For a fixed vertex, is the maximum of independent variables, each with mean . Bernstein's inequality and a union bound give
In particular, at , the probability is at most , for a sufficiently large fixed . Integrating this tail gives
The lower bound in the first line follows because the maximum dominates each individual variable. We use the second moment to average within blocks.
For distinct vertices in the same planted block, the collections of cross-block edges are disjoint and hence independent, even when two edges share an endpoint outside that block. Therefore . For every fixed , Chebyshev's inequality gives
For , has law ; for , it has law . Thus , and their means after division by are respectively and . A union bound over the block pairs yields
Since , and its minimum is attained across blocks with high probability. Combining this with (B.7) proves (B.5).
B.1 THE MARKED-RESOLVENT ESTIMATE
Recall the marked set , the matrix , and the semicircle transform in (3.1).
Proof of Proposition 3.1. Fix and . All neighborhood radii and moment orders in the proof are fixed before letting . The main step is to show that fixed moments, compressed to the marked set, approach scalar semicircle moments in operator norm. A norm bound then allows us to sum the resolvent series.
Sparsity of marked neighborhoods. Lemma A.1, together with a union over the wrong communities and the lower bound from a single comparison, gives
Since , Markov's inequality gives some fixed such that, with high probability,
The size bound alone does not control how marks cluster near one another. A fixed connected graph configuration with v vertices, e required present edges, and j distinct marked vertices has expected number of embeddings at most
Indeed, condition on its required edges and apply the finite-edge conditional version of Lemma A.1. The bound is uniform over the embeddings and community assignments.
Write for the induced graph on vertices at distance at most from . If it contains a cycle, two breadth-first paths from , together with an extra edge, contain a connected unicyclic configuration with at most edges. Such a configuration has . Summing the preceding bound over its finitely many shapes, with marked, gives
If a radius-R ball contains j distinct marked vertices, join its center to them by paths of length at most R. Their union is connected, has , and satisfies . The expected number of these witnesses is at most
Choose a fixed integer . The bound (B.12) tends to zero with . Consequently, with high probability, every marked radius-R ball is a tree and every radius-R ball contains fewer than marks.
Walk moments. Set , and write for the semicircle moments:
Let . On the acyclic-neighborhood event, the leading length-2r closed walks from a marked vertex traverse distinct edges twice. Their outward and return steps have Catalan patterns. Each outward choice has possibilities. Walks reusing a previously chosen outward edge have at most free edge choices and lose a factor of order . Uniform degree concentration therefore gives, uniformly over marked ,
This uses a fixed neighborhood radius large enough for the specified moment order.
For distinct marked vertices at distance , the unique path between them accounts for steps of a length- walk. The remaining steps permit at most free backtracking choices, each with possibilities. Hence
the entry is zero if the distance exceeds . There are fewer than marked vertices within distance . The maximum absolute row-sum bound for the norm of a symmetric matrix now yields
Removing the mean matrix. The walk count above uses , whose entries are nonnegative. We now transfer it to X by showing that mean-matrix terms vanish after compression to the sparse marked set. Let U have the normalized community indicators as columns. If M has diagonal and off-diagonal entries , then
The maximum-degree event gives . Moreover, each entry of is bounded by for a constant depending only on the fixed order : sum the nonnegative walk weights in that row. Thus
Expand as a sum of noncommutative words. In a word containing , cut at its first and last such factors. The endpoint factors are of the form bounded in (B.18); every intermediate factor has norm at most a fixed power of . Its marked compression consequently has norm at most
with enlarged if necessary. A word containing but no has norm at most . There are only finitely many words at fixed . Combining these bounds with (B.16) gives
Summing the resolvent series. Fix with . By Lemma A.3, with high probability. On that event,
The corresponding scalar moment tail obeys the same bound because the semicircle law is supported on . First fix and let , using (B.20); then let . Since , this proves (3.3).
B.2 UNIQUE OPTIMALITY ABOVE THE TIGHTNESS BOUNDARY
Proof of the success assertion in Theorem 2.1. The smallest dual diagonal. Assume and . Choose so that
Lemma A.1 and a union bound over comparisons imply, with high probability,
Lemma B.2 then gives
Choose sufficiently close to that
The Schur complement. Define the shifted diagonal and the small-diagonal set by
The shift by accounts for the zero diagonal of . For any fixed , (B.2) and (B.5) imply, with high probability,
Since , it suffices to prove positive definiteness of
Lemma A.3 makes the comparison matrix positive definite with high probability. Its Schur complement onto is
If is empty, and we are done. Otherwise, use Proposition 3.1 and (B.26). For any matrix , the deterministic inequality
holds on this containment event, so no further independence is needed. The inverse of a Schur complement is the corresponding principal block of the inverse. Applying this identity gives
Since and ,
All matrix error terms here are in operator norm.
Positivity of the dual form. The principal block of satisfies
Inverse monotonicity therefore bounds the Schur complement by
Using (B.23), (B.24), and (B.30),
with high probability. The T-block is positive definite as well, so .
Finally, . For every nonzero , the first two terms vanish in the quadratic form, and consequently
Lemma B.1 proves unique SDP recovery.
B.3 MATRIX-ERROR BOUNDS FROM THE DUAL CERTIFICATE
When some margins fall below , the slack matrix need not be positive semidefinite. We increase the small entries of the dual diagonal and use the total adjustment to bound both matrix error and objective gain. This use of a planted dual certificate beyond tightness follows Fei & Chen (2019b, Section 1.1). The marked-resolvent estimate in Proposition 3.1 allows us to make the adjustment only below a threshold arbitrarily close to .
Lemma B.3 (Deterministic repair inequality). For every ,
If a nonnegative diagonal matrix satisfies , with , then
In particular, if for , then
Proof. Positive semidefiniteness and unit diagonal imply . Entrywise nonnegativity gives . The row constraints give total entry mass nm. Thus the missing within-community mass equals the mass between communities, say . Consequently, , while . For ,
The diagonal entry is nonnegative because . The middle sum is nonnegative and the final sum is at most , which gives the upper bound of two.
The construction in Appendix B gives , , and the identity (3.5), without a positivity assumption on S. Taking the matrix inner product of with gives
Rearranging proves (B.35). The objective assumption then gives (B.36).
Lemma B.4 (Sharp diagonal repair). Assume . For every fixed , the diagonal matrix defined by
satisfies with high probability for some fixed . For every fixed and , it also satisfies
with high probability.
Proof. Choose a fixed sufficiently close to that , and write . Let and . For fixed , the bound gives with high probability. As in (B.30), the Schur complement of onto is
in operator norm. For , the -block has minimum eigenvalue at least . The inverse comparison used in (B.31) bounds the Schur complement of onto by
If is empty, the lower bound on follows directly from the background block. Otherwise, the two bounds above give a lower bound on the full matrix as follows. Write in this decomposition. Here and . By Lemma A.3, with high probability, . The identity
expresses the quadratic form as a sum of two nonnegative terms. The map and its inverse have norms bounded by fixed constants with high probability. Hence for a fixed . Restricting this inequality to proves the first assertion, since .
For the total adjustment, the uniform block-degree bounds and (B.5) give with high probability. Since , (B.5) also ensures that implies with high probability. The expected number of vertices with is at most . Markov's inequality bounds this count by with high probability. Multiplying by CL and using for large proves (B.37).
For later use, the uniform degree bounds also give
Combining this norm bound with (3.5) and gives, simultaneously for every feasible Z,
on a high-probability event.
Upper bounds in Theorem 2.2. Fix . By continuity, choose sufficiently close to that , then take . Lemmas B.3–B.4 bound the optimal objective gain by 2 Tr F. Every feasible matrix with objective at least has error at most . The constants in these bounds are at most for all sufficiently large . Since , . This proves both uniform upper bounds in (2.11)–(2.12).
A coarser bound for initialization. If , then
follows directly from Lemma A.3. Choose any , so that . Bounding the total diagonal adjustment as above gives, for some fixed ,
with high probability. Thus the global norm bound suffices for this initialization guarantee.
Figure 3 compares the three relevant levels of the rate function. At , we have and . The information condition holds, while , so the planted matrix is not optimal. The coarse argument still gives a positive error exponent, but its limiting rate is much smaller than .

Figure 3: Degree-margin rates at the information, local, and coarse spectral thresholds. For , , , and . The dashed line marks rate one. The local error law uses ; the coarser initialization bound can approach as its clipping threshold decreases to . All points are evaluations of (2.6).
C FINITE-STEP GRAM CONSTRUCTION
We prove Lemma 3.2 by constructing a feasible matrix with a step size that does not shrink as m grows. The identical coordinate multisets in the active communities preserve the row sums. We then mix two Gram matrices to make all entries nonnegative and bound the effect of this adjustment on the objective.
Proof of Lemma 3.2. Index the active communities by . All margins below are extended by zero on inactive vertices. Let , , and choose a fixed with for all vertex–community pairs. The assumptions bound and independently of . Write
For large , . Use the vectors , defined on active communities in Section 3, and set on inactive communities, with these extra unit vectors orthogonal to the active coordinates and to . Let and .
Positive semidefiniteness, unit diagonal, and row sums. Both matrices are positive semidefinite because they are Gram matrices. The identities
give unit diagonal. Since the active communities have identical coordinate multisets, the sums of and of agree across these communities. The coordinates of sum to zero in each community, so the total coefficient along is zero. For the vectors defining , the total coefficient along is
For the vectors defining , the equal block sums of and the identity give the same conclusion. Thus the vectors in each construction sum to . The coefficients of each individual vector along sum to one. Taking its inner product with the total vector sum therefore gives .
Set . It is the Gram matrix of the direct-sum vectors , so its rank is at most . At , .
Entrywise nonnegativity. Within an active community,
For , . Both entries are therefore at least . For distinct active communities,
The final term is nonnegative. The arithmetic-geometric mean inequality gives
For equal signs, every term in (C.1) is nonnegative. When and ,
Entries involving inactive blocks are unchanged from . Thus .
The objective of the paired construction. Let equal within active communities, across matched active communities, and zero elsewhere. Its active row sums are . Write , with on inactive vertices. Since , direct expansion yields
(C.2)
Here and below, the edge sums count both orientations. The absolute row sums of are at most 2DL, and
These bounds show that the remainder in (C.2) has absolute value at most .
The effect of the second Gram matrix. Let be the adjacency matrix restricted to edges within active communities, the full adjacency restricted to active vertices, and . Define
The identity gives
The absolute row sums of are at most ; , and . When we subtract (C.2), the term cancels. Bounding the margin difference and both remainders gives
Therefore
Choose fixed with and , then take sufficiently large that . The gain is at least , proving the lemma.
The step size depends on , B, and D. It is fixed as , but may decrease when the energy margin approaches zero.
D MULTI-ROOT FORESTS AND MATCHING LOWER BOUNDS
The Gram construction requires a vector with identical coordinate multisets in the active communities. We obtain such a vector from forests rooted at low-margin vertices. We explore the roots in groups, with one root from each active community, and keep a group only if every exploration succeeds. Each retained group then has the same number of vertices at each depth in every active community. We show that the discarded groups form a vanishing fraction, leaving enough roots for the objective-gain lower bound.
Let , take the first communities as active, and fix a perfect matching before the graph is sampled. Write on active vertices and elsewhere. For active, write . Let be the sigma-algebra generated by all edges within active communities and between matched active communities. It determines every matched margin . Conditional on , edges between unmatched active communities remain independent. Set
Both integers are positive for large m.
Lemma D.1 (Balanced forests from many roots). Fix and . Let be an integer, and choose distinct roots in each active block by an -measurable rule. With high probability, there are groups of roots with pairwise disjoint depth-R forests such that every parent has children in each active community other than its own and its matched community. In their union, each active block contains exactly vertices at depth . Every nonroot vertex satisfies
Proof. Set and
A Bernstein bound gives . Markov's inequality followed by a union over the blocks gives the -measurable event
with high probability.
Condition on any realization of satisfying (D.2). List the roots in each block in a deterministic order. Group j consists of the j-th root in every active block. Reserve all roots before starting the exploration, so that no root can be selected as a child. Process the groups successively and the vertices within each group in breadth-first order. For a parent , visit the communities in in label order. Query all edges to the currently unused pool , select the first neighbors, and mark them as used. If there are too few neighbors, discard the entire group. All vertices already used by that group remain unavailable to later explorations.
None of the edges queried in a given step has been exposed earlier. The candidate vertices have not yet been processed as parents, and any earlier queries from the current parent went to other communities. Queries from previous parents concern different edges. Moreover, these edges lie outside . They are therefore conditionally independent Bernoulli variables with parameter q.
Even counting all reserved roots and all discarded partial groups, the total number of used vertices is at most . Uniformly over all earlier exploration histories,
The second relation uses . It follows that each request fails with conditional probability at most . A group has only requests, so its conditional failure probability is bounded by .
If is the number of failed groups, iterated conditioning gives . Thus . No independence between groups is required.
Every selected child is unused, so the selected edges form disjoint forests. The graph may contain additional edges between their vertices. For one retained group, let count the depth- vertices in community . Then
Each target community receives children from communities. Induction gives . Summing over the retained groups proves the stated count. Every nonroot vertex belongs to a good pool, which gives its margin bound.
D.1 THE CENTERED FOREST VECTOR AND ITS QUADRATIC FORM
Fix positive weights . Define by assigning weight to every retained depth- vertex and zero to all other vertices. Let
Subtract from each coordinate in the active communities to obtain y, keeping the inactive coordinates at zero. In each active community,
The number and weight of the coordinates at each depth are the same in every active community, so the coordinate multisets agree. Since , the positive coordinates of are precisely the forest vertices for large . Their minimum is at least , and
Together with the uniform degree bound, these estimates verify the structural assumptions of Lemma 3.2.
We next estimate . First, we bound the effect of subtracting the block means on each of its two terms. Let . The maximum degree is , so
For the first bound, each term is at most a constant times .
Suppose every root has matched margin at most , for a fixed . There are selected edges between depths and . Every additional edge contributes nonnegatively to the uncentered quadratic form. The root and nonroot margin bounds therefore give
All error bounds are uniform over .
D.2 CHOOSING THE WEIGHTS
When , set
These quantities arise from successively eliminating coordinates in the quadratic form below, and they increase to . At , . Let be the tridiagonal matrix with diagonal and adjacent entries . Its least eigenvalue is . Fixing , the maximum of the leading expression in (D.6) is
with . Indeed, eliminating the last path coordinate successively gives . The inverse has strictly positive entries, by the nonnegative Neumann series and connectivity of the path, so all weights are positive. For a fixed , choose a fixed with . Equations (D.3)–(D.6) then give for fixed . Figure 4 shows how the forest depth changes the correction.

Figure 4: The correction produced by a finite-depth forest. Each curve evaluates (D.7) at integer depths for the indicated value of , with . The dotted horizontal line marks the limiting value one. At , the normalized correction is . For any fixed , the proof chooses a depth with before taking the graph limit.
D.3 NONOPTIMALITY IN THEOREM 2.1
Proof of the failure assertions. If and , choose fixed with . Lemma A.2 gives a vertex with in every active block with high probability. Choose the eligible vertex with the smallest index as the root; if none exists, choose the vertex with the smallest index in the community. This selection is -measurable. Apply Lemma D.1 with . Using the weights above, Lemma 3.2 gives a feasible matrix with strictly larger objective than .
If , take and select the vertex with the smallest index in each good pool , using the vertex with the smallest index in the community if the pool is empty. By (D.2), every pool is nonempty with high probability. All selected vertices then have matched margins at most . Choose a fixed R with
and . The analogue of (D.6) has leading value
Lemma 3.2 again gives a feasible matrix with a strictly larger objective than . Together with the success proof in Appendix B, this completes Theorem 2.1.
D.4 LOWER BOUNDS ON THE OBJECTIVE GAIN AND MATRIX ERROR
Completion of Theorem 2.2. The upper bounds were established in Appendix B.3. Fix , write , and choose fixed close enough to that
Choose fixed , and set . The uniform margin-count bound gives at least eligible roots in every active community with high probability. Choose them by a fixed -measurable rule. If a community has fewer eligible vertices, choose any distinct vertices by a fixed rule.
Lemma D.1 applies with and gives successful groups. Choose and the positive path weights so that . The energy calculation and Lemma 3.2 give
Here . Since , dividing by gives for large .
The gain in (D.8) diverges. Every feasible with objective at least therefore has for large . The bound (B.39) holds simultaneously for all feasible matrices, so it implies . The two bounds hold simultaneously for all such matrices on an event whose probability tends to one.
E MACROSCOPIC OPTIMAL VALUE AND OVERLAP
We prove Proposition 2.3 by matching an upper bound valid for every feasible matrix with a feasible construction. For the upper bound, we separate the planted subspace from its orthogonal complement. For the lower bound, we construct a polynomial Gram matrix and adjust it to satisfy the unit-diagonal, row-sum, and nonnegativity constraints. Local constructions for SDP values also appear in Montanari & Sen (2016) and Fan & Montanari (2017). Here we must additionally enforce the row sums and entrywise nonnegativity.
E.1 AN OBJECTIVE BOUND UNIFORM OVER THE FEASIBLE SET
Let . Bernstein's inequality, a union bound over communities, and integration of the resulting tail give
The tail integration is the same as in (B.7). Markov's inequality then gives . For every feasible , entrywise nonnegativity and row sums imply
Indeed, . Since each column of is nonnegative and sums to , summing over its entries gives the first bound. Symmetry gives the second. A further block average bounds by , yielding the third.
Since , , and , the norm bound yields
uniformly in Z. Also , where . Consequently,
with an error term uniform over Z. The zero diagonal contributes . Since , this proves the required upper bound for .
E.2 FIXED-DEGREE POLYNOMIAL MOMENTS
Set . For every fixed radius , the expected number of vertices whose radius- ball contains a cycle is . This follows from the connected unicyclic configurations counted in the marked-resolvent proof, without requiring any vertex to be marked. With high probability there are at most such vertices. At all other vertices, the uniform total-degree bound gives the same closed-walk counts as (B.14). Thus, for each fixed ,
uniformly outside the exceptional set, where and . The norm bound shows that these exceptional vertices contribute a vanishing amount to the normalized traces. Hence every fixed polynomial satisfies
where is the centered semicircle law of variance , with density on . The radii and polynomial degrees remain fixed as .
E.3 EXACT CONSTRAINTS FOR THE POLYNOMIAL GRAM MATRIX
We use a power of a shifted adjacency matrix to give greater weight to eigenvalues near the upper spectral edge. Fix an integer and set
The polynomial has nonnegative coefficients, so entrywise, and . Thus , , and . Its maximum row sum is on the uniform degree event, since .
To impose the row constraint, first project out the all-ones direction. Let and . Then , , and, writing ,
Therefore and uniformly. Adding will give row sums . To recover unit diagonal while preserving positive semidefiniteness, first shrink by a fixed factor , where , and define
For large , uniformly, so and . Summing (E.4) gives , and hence
It follows that
is positive semidefinite, has unit diagonal, and has row sums . Its off-diagonal entries are at least , because . Thus .
E.4 THE OBJECTIVE VALUE AND OVERLAP
Let
Outside the exceptional set defined above, uniformly. We first show that the diagonal normalization has only a small effect:
where denotes the nuclear norm. For the Gram factors, we have
Outside the exceptional set, uniformly. The contribution from these rows tends to zero because this convergence is uniform and by (E.3). On the exceptional rows, use and the polynomial bound . There are at most such rows, so their contribution after division by also tends to zero. Factoring , we can now apply
with and . This proves (E.6).
The difference has rank at most two and norm , so its nuclear norm is . Also , where contains normalized block indicators, has diagonal and off-diagonal , and . The contribution of the rank- term to the normalized inner product with is at most ; the diagonal term is negligible as well. Equations (E.3)–(E.6) and therefore imply
For the last equality, substitute . The weighted density is proportional to on , whose mean is . In particular, .
Figure 5 illustrates the effect of the polynomial weight. As R increases, the normalized spectral density places more mass near the upper edge. Its mean is , which is the limiting noise value in (E.7).
The positive semidefinite diagonal correction has trace . Together with the norm bound on , this bounds its contribution to the noise objective below by . The contribution of is , since its trace is . Finally, and feasibility give . Thus
For any fixed accuracy, choose sufficiently large and sufficiently small, and then let with both fixed. The planted feasible value satisfies ; this follows also from the bound on . Together with (E.2), these lower bounds prove (2.13), including .
To obtain the overlap limits, consider any matrix with objective at least , where . If , (E.2) and the limiting optimal value bound its normalized objective deficit below by . The deficit tends to zero, so uniformly over these matrices. If , the corresponding lower bound is , which gives with the same uniformity. This proves Proposition 2.3.
(a) Polynomial spectral weights

(b) Value approaching the edge

Figure 5: Polynomial weighting toward the upper spectral edge. (a) Normalized densities proportional to on , with . The unweighted semicircle density is included as . (b) Their normalized means, , with circles at the degrees shown in panel (a). The dotted line marks the spectral edge. For each fixed , this is the limiting noise value of the centered Gram matrix . The diagonal adjustment is accounted for separately in the proof.
F ROW CLUSTERING AND SAME-GRAPH REFINEMENT
We first show that row clustering produces an initial labeling with errors. We then prove that refinement reduces the error count on an event that holds for every sufficiently small vertex set. Because this event also applies to sets selected from the graph, the same graph can be used for initialization and every refinement step. The procedure requires only A and the known community size m.
F.1 A DETERMINISTIC ROW-CLUSTERING GUARANTEE
For an input matrix Z, compute all distances between its rows. Initialize the remaining set to . For , choose a remaining row whose radius-m/2 ball contains the largest number of remaining rows, retain its index, and remove the remaining rows within distance m of it. Break ties by smallest vertex index. After k stages, assign each of the original rows to its nearest retained center, with ties broken by center order. If the remaining set becomes empty before stage k, output arbitrary labels. Under the condition in the next lemma, all k stages are completed. The distances and ball counts can be computed in operations.
Clustering SDP rows is analyzed by Fei & Chen (2019a, Section 2.3), and ball-based rounding appears in Gao et al. (2017, Algorithm 2). The following deterministic bound applies to the version just specified.
Lemma F.1 (Row rounding). If satisfies , the procedure performs all k stages and, after a permutation of labels, makes at most errors.
Proof. Let denote row of , and let be the common row of for vertices in community . Call row good if . There are at most bad rows. Good rows in one block have pairwise distance at most ; good rows in distinct blocks have distance at least .
Suppose the earlier stages have each removed the good rows of one block and no good rows from other blocks. Every unprocessed block then has at least remaining good rows. This is also true before the first stage. The radius- ball of any one of them contains all good rows of that block. The selected ball therefore contains a good row. It cannot contain good rows from two communities, because its diameter is at most . Its center is within of a good row of one block. The radius- removal therefore includes all good rows of that block and none from any other block: the distances are respectively at most 3m/4 and at least 5m/4. Induction proves there are k centers, one associated with each block.
Each center is within 5m/8 of the true row for its associated community. Every good row is therefore within 3m/4 of its own center and at least 5m/4 from the other centers. The final nearest-center assignment labels all good rows correctly.
By (B.40), when , every feasible input with objective at least gives
initial errors, simultaneously for all such inputs, with high probability. Here , and makes the last bound .
F.2 UNIFORM SPARSITY OF SMALL VERTEX SETS
Let count undirected edges with both endpoints in U.
Lemma F.2 (Uniform small-set sparsity). For each fixed , there is a fixed such that, with probability tending to one,
Proof. Write and . If , no set of size violates the claimed bound. Otherwise, a union bound over the vertex sets and the required edges gives
provided the base of the second factor is less than one. Let , and choose so small that for . The logarithm of the last expression is
for all large m, uniformly in u, because and . Since , summing this bound over the possible values of u gives .
F.3 SYNCHRONOUS REFINEMENT
Given labels , assign each vertex at the next step to a label that maximizes
using the same current labels for all vertices and breaking ties by the smallest label. Perform updates. Fix the permutation aligning the initialization to the true labels; the analysis uses this same alignment at every iteration.
For fixed , put
If the current error set is , then each difference between two neighbor counts differs from its value under the true labels by at most . Thus any vertex outside that is incorrect after the update must have .
We now use the event in Lemma F.2, with . If and at least vertices outside are incorrect after the update, let consist of exactly that many of these vertices. For , the set satisfies and . Therefore
a contradiction. If , all vertices outside retain their correct labels. In both cases,
In particular, if and , every iterate stays below . The small-set bound holds simultaneously for every possible error set, so it applies at each iteration even though the labels depend on the graph. Iterating the recurrence gives . Since and is an integer, .
To illustrate this bound, define and . On the same small-set event, induction gives . Figure 6 plots this deterministic comparison for a few fixed values of . When , the bound reaches zero; when , the guarantee allows up to errors after the stated number of rounds.

Figure 6: The deterministic refinement bound from (F.1), initialized at . Each curve iterates for the indicated number of low-margin vertices. The curve reaches zero after eight rounds; the other two curves settle at . The vertical axis is logarithmic above one and linear near zero. These sequences illustrate the proof’s upper bound on errors under its small-set hypotheses.
Proof of Corollary 4.1. When , choose fixed small enough that . A union bound over comparisons gives . The coarse matrix-error bound and Lemma F.1 give simultaneously for every feasible input with objective at least . When these bounds and the small-set sparsity bound hold, (F.1) reduces the error count to zero. All true margins are positive, so subsequent updates preserve the correct labels. These events hold jointly with probability tending to one.
Proposition F.3 (A high-probability label-error bound). Assume . For every fixed , the same procedure satisfies
with high probability, simultaneously for every feasible input with objective at least .
Proof. It suffices to prove the bound for . Choose fixed such that . The margin tail gives . Markov's inequality implies
with high probability. This is , since and . The initial error count is also , so the recurrence gives for large .
The proposition gives a high-probability upper bound on label error with exponent . It does not provide a matching lower bound or an expected-risk guarantee. For the SDP matrix itself, Theorem 2.2 gives matching upper and lower bounds with exponent .
G INFORMATION BENCHMARK AND THRESHOLD CONSEQUENCES
For fixed edge-probability parameters, the tightness theorem gives a critical value of the community ratio . We derive this ratio and compare the resulting boundary with the information-theoretic threshold. We then describe its limit as the background parameter grows.
G.1 EXTREME MARGINS AND THE CRITICAL COMMUNITY RATIO
The rate function is continuous and strictly decreasing on , with
Its derivative is
When , the smallest margin divided by converges to a positive constant. Define by
The degree-margin tail and count bounds give
To prove this, fix . A union bound over comparisons and Lemma A.1 exclude margins below with high probability. Lemma A.2 also shows that, with high probability, every ordered pair of distinct communities has vertices whose margin is at most . Together these bounds prove (G.3).
Since is decreasing, the local success condition is . Combining it with the bulk condition gives the following expression for the critical ratio.
Corollary G.1 (Critical community ratio). If , define
Set when . For fixed , is the unique SDP optimizer with high probability. For fixed , it is not optimal with high probability.
In the first branch, the correction reaches the smallest margin before the bulk spectral gap closes. In the second branch, the bulk gap closes first. The branches meet at .
Proof of Corollary G.1. If , then whenever , since ; the remaining case is the bulk failure condition. Assume now that . For , the map increases from zero to , and is equivalent to . If , equality occurs at . If , the bulk edge is reached first. Theorem 2.1 gives the stated conclusions. When , the case satisfies , so the theorem also gives nonoptimality there.
G.2 THE INFORMATION THRESHOLD AND THE SDP GAP
The achievability part of the information-theoretic benchmark follows from the growing-community minimax bound of Zhang & Zhou (2016). We give the parameter conversion below. For the converse, we show that swapping two vertices between communities increases the likelihood.
Proposition G.2 (Information-theoretic benchmark). Exact recovery of the partition up to community relabeling is possible with high probability if
If and the partition is uniform over balanced partitions, every estimator has exact-recovery probability tending to zero.
Proof of Proposition G.2. For achievability, apply Zhang & Zhou (2016, Theorem 1.1). Their community count K is our k, their balance parameter is one, and their edge-probability parameters are np, nq, respectively. Write for the Bernoulli Rényi divergence used there, to distinguish it from our margin rate function. Then
Their assumption holds because . Their upper bound gives an estimator whose expected misclassification fraction, minimized over label permutations, is at most , uniformly over balanced partitions. Any incorrectly recovered partition has loss at least . Thus Markov's inequality bounds its probability by when .
For the converse, we use the local-swap argument of Abbe et al. (2016, Section 5) inside two fixed planted communities. Choose with . Lemma A.2 implies that, with high probability, both sets
are nonempty. Choose one vertex from each. Swapping their communities increases the number of within-community edges, counted once, by
The swap preserves the community sizes, so it does not change the number of possible within-community pairs. The log-likelihood gain equals this edge-count gain multiplied by
Edges to all other communities retain their likelihood factors. Thus the planted partition is not a maximum likelihood partition with high probability. Under the uniform balanced prior, maximum likelihood is also maximum a posteriori estimation and maximizes the probability of exact recovery. This proves the converse.
For , the strict decrease of I gives
The next corollary shows that every fixed positive community ratio admits a gap between information-theoretic recovery and SDP tightness.
Corollary G.3 (A recovery gap at every positive ratio). For every fixed , there is such that every fixed satisfying
permits information-theoretic exact recovery with high probability, while is not optimal for (SDP) with high probability.
Proof of Corollary G.3. Fix , write , and let . For , , and the root of tends to zero. To see this, fix any . At , strict monotonicity gives . By continuity, this inequality still holds for sufficiently close to one. Since the rate is decreasing, .
On the other hand, . Thus near one, and Corollary G.1 gives
For any fixed , this critical ratio is less than throughout a sufficiently short interval . Proposition G.2 gives information-theoretic recovery, and Corollary G.1 gives nonoptimality of .
The critical-ratio formula is continuous where . For fixed , the strict gap conditions therefore continue to hold in an open neighborhood of each such pair .
(a) Fixed : full theorem

(b) Then : simplified limit
Local boundary (this work) Bulk boundary (this work) Information boundary (prior work)
Figure 7: The fixed-background and large-background boundaries. The left panel uses ; the right panel takes the graph limit first and then . The two curves have different local–bulk junctions. Recovery claims concern the strict regions on either side of the curves. The square marks , where the SDP is tight although .
G.3 THE LARGE-BACKGROUND LIMIT
In the coordinate , the boundary simplifies as . Define
Proposition G.4 (Sequential-limit phase diagram). Fix with . There exists such that for every fixed , with , as and , is the unique SDP optimizer with high probability if , and is not optimal with high probability if .
The proposition first takes at fixed , and then takes . It does not cover . Figure 7 compares this limiting curve with the fixed- boundary. The junction is the junction in the sequential limit; for finite , the junction can be different.
Proof of Proposition G.4. For fixed and uniformly over in compact subsets of , the explicit optimizer in Lemma A.1 satisfies
For bounded v, the cumulant expression has the expansion
Substituting the optimizer therefore gives
uniformly on those compact sets.
We have . If , then for all sufficiently large , and the bulk failure assertion applies. For , for every , and
This limit lies strictly below , so (G.8) gives
The limiting rate is strictly increasing in , starting at . It equals one when . This equation requires . Squaring and solving gives , which belongs to this branch precisely when . For , the bulk boundary is . This proves the formula (G.7). For every strict comparison , the same success or failure condition holds for all sufficiently large fixed . Theorem 2.1 then gives the stated conclusion as .
H FIXED-PARAMETER GEOMETRY AND FIGURE EVALUATION
We derive the boundaries and expansions used in the numerical illustrations. Write and let denote the boundary in this coordinate. The limits below describe this boundary after taking the graph limit at fixed parameters. The model parameters do not vary with m.
H.1 MONOTONICITY AND THE LOCAL-BULK JUNCTION
For , write
Differentiating the optimized expression for the rate gives
At fixed , decreases with for . Thus is strictly increasing with throughout this region. It tends to infinity as : , while , and the change from zero to is . Consequently, the tightness boundary is the bulk value when the rate there is at least one; otherwise it is the unique larger for which the local rate equals one. Thus, for fixed , there is a unique tightness boundary as increases.
For a fixed , consider , . If , the optimizing equation reads . For , this implies . Differentiating gives
The last inequality follows because the right-hand side vanishes at and has negative derivative on . Also and as . There is therefore a unique solution of . The local and bulk branches meet at
H.2 THE SMALL-RATIO EXPANSION
For each fixed , as , the local boundary has the expansion
Fix , set , and define near
In the formula for , with , the quantity under the square root remains positive for near zero. Thus and are smooth near . At , and . Hence and . Moreover,
(a) Background dependence

(b) Gap near

Figure 8: Dependence of the tightness boundary on the background parameter. (a) Boundaries for , together with the sequential limit from (G.7). Circles mark the local–bulk junctions; the horizontal line is the information boundary . (b) The initial slope from (H.2). Colored circles identify the same three values of as in panel (a), and the dotted line marks the limit 1/4. Both panels evaluate asymptotic formulas after the graph limit at fixed parameters. Recovery at the critical boundaries is not asserted.
The implicit function theorem gives a smooth local boundary with
For small positive , the bulk inequality is strict near , and the monotonicity just proved identifies this implicit curve with the SDP recovery boundary. Taylor's theorem proves (H.2). The coefficient is positive; its limit follows from as .
Figure 8 compares the boundaries at three fixed values of . Its right panel plots , the coefficient of in (H.2), and shows how the initial slope of the gap approaches 1/4.
H.3 EVALUATION OF THE THEORETICAL CURVES
The numerical figures evaluate formulas stated in the paper. The source README.md lists the plotting commands, and the accompanying scripts and curve tables specify the parameters and grids. Numerical checks compare boundary roots with their defining equations, the rate function with its cumulant expression, forest corrections with tridiagonal inverses, spectral densities with their exact mass and mean, and refinement recurrences with their geometric upper bound. The boundary at is plotted by continuity. These evaluations illustrate the analytic results; they use no sampled graphs or numerical SDP solutions.
I COMPARISON OF MODELS AND FEASIBLE SETS
To compare recovery guarantees, we must account for differences in the parameter scaling and the feasible sets. For example, if a paper uses , its parameter in our scaling is , which grows with . Applying a theorem stated for fixed therefore requires checking that its bounds remain valid for these growing parameters.
The same balanced relaxation. Theorem 1.1 and SDP (4) of Agarwal et al. (2015) use the same scaling and feasible set as (SDP). Their theorem allows : it is sharp for , whereas its sufficient condition at includes a universal constant. Their Section 3 and Appendix A.6 give the certificate displayed in Appendix B. Proposition 3.1 sharpens the sufficient condition obtained from this certificate.
Section 6 of Hajek et al. (2016a) uses the signed matrix formulation with , , , and . The transformation
maps its feasible set bijectively to (SDP). On , it rescales positive semidefiniteness by a positive factor; the row constraints determine the action on 1. The objective also changes by a positive factor and an additive constant. Their Theorem 17 and Remark 18 establish a gap for this same SDP when the logarithmic ratio is sufficiently large. They do not determine the boundary for every fixed positive ratio. Their Section 7 also discusses local and global perturbations. The present analysis determines the boundary produced by these mechanisms at each fixed positive ratio.
A larger trace-norm relaxation. In Chen & Xu (2016, Algorithm 2, Theorems 6 and 8), specialize the cluster count and size to , , with no unclustered vertices. Their convex program requires , , and , where is the nuclear norm. Every feasible point of (SDP) satisfies these constraints: positive semidefiniteness and unit diagonal give and , and the row sums give total mass nm. Their feasible set is therefore larger. If their relaxation uniquely recovers the planted matrix, then ours does as well. Nonoptimality does not transfer in the same direction: a better matrix in their feasible set need not belong to ours. Remark 7 and Section 2.3.1 of their paper explicitly distinguish these directions. Their sufficient condition has the leading form , with an unspecified universal constant .
Other mechanisms and recovery objectives. Theorems 4–5 of Hajek et al. (2016b) and Section 1.2.3 of Perry & Wein (2016) keep the community count fixed; the latter allows unequal fixed proportions. Theorem 1 of Gaudio & Prongpaophan (2025) shows nonoptimality of a binary symmetric SDP for some unequal within-community edge probabilities; their Section 2 explicitly distinguishes this from failure after rounding. Our model keeps the within-community probabilities equal and varies the community count.
Montanari & Sen (2016) and Fan & Montanari (2017) study SDP values and detection at bounded average degree. Our average degree diverges as , and our feasible set additionally imposes the entrywise and row-sum constraints in (SDP). Our Gram constructions explicitly enforce these additional constraints.
Error exponents and refinement. Section 2.2 of Fei & Chen (2019a) explicitly permits replacing a total-mass constraint by the row constraints in (SDP); their upper-entry bound is already implied by positive semidefiniteness and unit diagonal. Their results therefore apply to the same relaxation. Theorems 1–2 give exponential matrix-error bounds and a rounding guarantee using approximate k-medians. The constants in those exponents are not optimized; our Theorem 2.2 determines the matching exponent in the present scaling. Fei & Chen (2019b, Section 3.2 and Theorem 2) give a sharp Bayes exponent for the binary symmetric SBM. Their Section 1.1 also uses a planted dual certificate to bound errors without assuming tightness. Our diagonal-adjustment argument builds on this approach.
Gao et al. (2017) separate initialization and local refinement. Their Condition 1 requires a suitable error bound and failure probability for each leave-one-out initialization; Theorem 4 then controls the refined error. Their concrete spectral initialization in Theorems 6 and 13 does not directly cover our scaling: with and ,
Here a coarse SDP error bound gives a sufficiently accurate initial labeling. We analyze refinement on an event that holds for all small error sets. This allows the same graph to be used at every step despite the dependence of the initial labels on its edges.
Nonintegral SDP solutions can also reveal clusters in other settings. Zurek & Chen (2024) recover large clusters in the presence of smaller and critically sized clusters and analyze noninteger solution blocks. Their heterogeneous-size setting differs from the fixed-balanced error law studied here.
Growing-community KS results. The v3 formulation of Chin et al. (2026) assigns labels independently and uniformly. Its normalized signal-to-noise ratio has the formal limit under our edge scaling. However, its main algorithmic regime assumes , whereas here
Its Theorem 1.3 allows broader densities for low-degree hardness, but remains an independent-label recovery result. Transferring these results to fixed balanced partitions would require control under conditioning on exact balance, as well as a change from weak to exact recovery. This signal-to-noise comparison therefore does not identify as a computational threshold for our model.