Testing Correlation in Graphs by Counting Bounded Degree Motifs

Dong Huang, Pengkun YangarXiv 2025 · DOI

Abstract

Detecting correlation between two unlabeled graphs is a fundamental problem in network science and statistics. While brute-force approaches are computationally intractable, existing efficient methods based on tree counting are limited by "Otter’s constant," failing when correlations are weak. This paper introduces a novel polynomial-time algorithm that utilizes bounded degree motifs to detect correlation in graphs. By aggregating signals from a rich family of motifs, the proposed method breaks the Otter barrier, providing theoretical guarantees for detection in relatively dense graphs ($p \ge n^{-2/3}$) for any constant correlation $\rho > 0$.

Introduction

The graph correlation detection problem involves determining if two large graphs, such as social networks from different platforms, share a hidden structural mapping. Formally, given two graphs $G_1$ and $G_2$, we wish to distinguish between the null hypothesis (they are independent) and the alternative hypothesis (they are correlated Erdős-Rényi graphs $G(n, p, ho)$).

Historically, this problem has faced a significant computational-statistical gap. Efficient algorithms based on counting trees were restricted to regimes where the correlation $\rho$ exceeded Otter’s constant ($\approx 0.58$). This paper overcomes this limitation by shifting the focus from trees to a broader class of subgraphs: bounded degree motifs.

Methodology: Bounded Degree Motifs

The core of the proposed approach is a test statistic derived from counting small, specific subgraphs, or "motifs," such as triangles, squares, or more complex cross-edged paths. The algorithm follows several key steps:

  1. Motif Selection: The algorithm focuses on motifs where the maximum degree of any vertex is bounded by a constant $d$.
  2. Injective Homomorphisms: It calculates the number of ways these motifs can be embedded into the target graphs.
  3. Centering and Weighting: To isolate the correlation signal from random noise, motif counts are centered (subtracting the expected count under independence) and assigned specific weights.
  4. Aggregation: These weighted counts are summed into a final test statistic.

The innovation lies in the proof that for sufficiently dense graphs, the signal from these motifs accumulates faster than the noise, even for very small $\rho$.

Theoretical Framework

The paper's technical contribution is structured around the concept of "admissibility." A family of motifs is considered admissible if it provides a sufficient signal-to-noise ratio for detection.

Logical flow of the theoretical framework connecting motif admissibility to detection results.

As shown in the figure above, the "Toolbox" (Section 3) establishes that $C$-admissibility implies successful detection (Theorem 1). The authors then provide admissibility proofs for specific motif families in Sections 4.1 and 4.2, leading to the primary detection results (Theorems 2 and 3).

Results and Discussion

The method was validated through both theoretical analysis and empirical testing:

  • Theoretical Guarantees: The authors prove that the test succeeds (low Type I and Type II errors) for any constant $\rho$ when the edge probability $p \ge n^{-2/3}$.
  • Synthetic Simulations: The motif-based statistic consistently outperformed tree-counting and cycle-counting baselines, particularly in regimes with moderate correlation.
  • Real-World Application: When applied to a co-citation network of 3,000 authors, the algorithm achieved an AUC of up to 0.90, demonstrating that real-world collaboration patterns possess identifiable "motif signatures."

Conclusion

By leveraging bounded degree motifs, this work provides a path forward for detecting weak correlations in dense graphs, effectively breaking the Otter barrier. While the current density requirement ($p \ge n^{-2/3}$) remains a constraint, this approach offers a robust framework for future research into graph recovery and the identification of optimal motifs for specific network types.

Summary updated

BibTeX
@misc{huang2025testing,
  author = {Dong Huang and Pengkun Yang},
  title = {{Testing Correlation in Graphs by Counting Bounded Degree Motifs}},
  year = {2025},
  eprint = {2510.25289},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.25289},
}
Figure