Counting stars is constant-degree optimal for detecting any planted subgraph
Xifan Yu
Yale University, New Haven, USAIlias Zadik
Yale University, New Haven, USAPeiyuan Zhang
Yale University, New Haven, USA

Abstract
We study the computational limits of the following general hypothesis testing problem. Let be an arbitrary undirected graph. We study the detection task between a “null” Erdős–Rényi random graph and a “planted” random graph which is the union of together with a random copy of . Our notion of planted model is a generalization of a plethora of recently studied models initiated with the study of the planted clique model (Jerrum, 1992), which corresponds to the special case where is a -clique and .
Over the last decade, several papers have studied the power of low-degree polynomials for limited choices of ’s in the above task. In this work, we adopt a unifying perspective and characterize the power of constant degree polynomials for the detection task, when is any arbitrary graph and for any . Perhaps surprisingly, we prove that an optimal constant degree polynomial is always given by simply counting stars in the input random graph. As a direct corollary, we conclude that the class of constant-degree polynomials is only able to “sense” the degree distribution of the planted graph , and no other graph theoretic property of it.
Cite this article
Xifan Yu, Ilias Zadik, Peiyuan Zhang, Counting stars is constant-degree optimal for detecting any planted subgraph. Math. Stat. Learn. 8 (2025), no. 1/2, pp. 105–164
DOI 10.4171/MSL/51