English

Graph Quasirandomness for Hypothesis Testing of Stochastic Block Models

Statistics Theory 2025-04-25 v1 Combinatorics Probability Statistics Theory

Abstract

The celebrated theorem of Chung, Graham, and Wilson on quasirandom graphs implies that if the 4-cycle and edge counts in a graph GG are both close to their typical number in G(n,1/2),\mathbb{G}(n,1/2), then this also holds for the counts of subgraphs isomorphic to HH for any HH of constant size. We aim to prove a similar statement where the notion of close is whether the given (signed) subgraph count can be used as a test between G(n,1/2)\mathbb{G}(n,1/2) and a stochastic block model SBM.\mathbb{SBM}. Quantitatively, this is related to approximately maximizing HΦ(H)1V(H),H \longrightarrow |\Phi(H)|^{\frac{1}{|\mathsf{V}(H)|}}, where Φ(H)\Phi(H) is the Fourier coefficient of SBM\mathbb{SBM}, indexed by subgraph H.H. This formulation turns out to be equivalent to approximately maximizing the partition function of a spin model over alphabet equal to the community labels in SBM.\mathbb{SBM}. We resolve the approximate maximization when SBM\mathbb{SBM} satisfies one of four conditions: 1) the probability of an edge between any two vertices in different communities is exactly 1/21/2; 2) the probability of an edge between two vertices from any two communities is at least 1/21/2 (this case is also covered in a recent work of Yu, Zadik, and Zhang); 3) the probability of belonging to any given community is at least cc for some universal constant c>0c>0; 4) SBM\mathbb{SBM} has two communities. In each of these cases, we show that there is an approximate maximizer of Φ(H)1V(H)|\Phi(H)|^{\frac{1}{|\mathsf{V}(H)|}} in the set A={stars, 4-cycle}.\mathsf{A} = \{\text{stars, 4-cycle}\}. This implies that if there exists a constant-degree polynomial test distinguishing G(n,1/2)\mathbb{G}(n,1/2) and SBM,\mathbb{SBM}, then the two distributions can also be distinguished via the signed count of some graph in A.\mathsf{A}. We conjecture that the same holds true for distinguishing G(n,1/2)\mathbb{G}(n,1/2) and any graphon if we also add triangles to A.\mathsf{A}.

Keywords

Cite

@article{arxiv.2504.17202,
  title  = {Graph Quasirandomness for Hypothesis Testing of Stochastic Block Models},
  author = {Kiril Bangachev and Guy Bresler},
  journal= {arXiv preprint arXiv:2504.17202},
  year   = {2025}
}
R2 v1 2026-06-28T23:09:18.146Z