Testing Community Structures for Hypergraphs

Mingao Yuan, Ruiqi Liu, Yang Feng, Zuofeng ShangarXiv 2018 · DOI

Abstract

Many complex networks in real world can be formulated as hypergraphs where community detection has been widely used. However, the fundamental question of whether communities exist or not in an observed hypergraph still remains unresolved. The aim of the present paper is to tackle this important problem. Specifically, we study when a hypergraph with community structure can be successfully distinguished from its Erdös-Renyi counterpart, and propose concrete test statistics based on hypergraph cycles when the models are distinguishable. Our contributions are summarized as follows. For uniform hypergraphs, we show that successful testing is always impossible when average degree tends to zero, might be possible when average degree is bounded, and is possible when average degree is growing. We obtain asymptotic distributions of the proposed test statistics and analyze their power. Our results for growing degree case are further extended to nonuniform hypergraphs in which a new test involving both edge and hyperedge information is proposed. The novel aspect of our new test is that it is provably more powerful than the classic test involving only edge information. Simulation and real data analysis support our theoretical findings. The proofs rely on Janson's contiguity theory (\cite{J95}) and a high-moments driven asymptotic normality result by Gao and Wormald (\cite{GWALD}).

Introduction: The Problem of Community Existence

In network science, the assumption of "community structure"—where nodes form groups with denser internal connections than external ones—is ubiquitous. While researchers have spent decades developing algorithms to identify these communities in standard graphs, a more fundamental question often goes unasked: Do communities actually exist in the observed data, or are we merely seeing patterns in random noise?

Real-world data is rarely as simple as a standard graph. For instance, in a coauthorship network, a single paper might have five authors. Representing this as a series of pairs loses the group context. This is where hypergraphs come in, using "hyperedges" to connect any number of vertices. This paper tackles the challenge of hypothesis testing for hypergraphs: distinguishing a structured Hypergraph Stochastic Block Model (HSBM) from a purely random Erdős-Rényi hypergraph.

Figure 1: A 3-uniform hypergraph example where each hyperedge connects three vertices.

Methodology across Sparsity Regimes

The authors analyze the problem across three different "sparsity regimes" based on the probability of hyperedges existing:

  1. Extremely Sparse Regime: Using Janson’s contiguity theory, the authors prove that if the average node degree tends to zero, it is mathematically impossible for any test to distinguish between a random hypergraph and one with communities.
  2. Bounded Degree Regime: Here, the average degree is constant. The authors derive a sharp Signal-to-Noise Ratio (SNR) threshold. If the SNR is above this threshold, the models are distinguishable; below it, they are indistinguishable.
  3. Dense Regime: For hypergraphs with growing degrees, the authors propose a computationally feasible test based on counting sub-hypergraph structures like loose cycles, l-hypervees, and l-hypertriangles.

A standout methodological contribution is the extension to non-uniform hypergraphs, where the network contains hyperedges of different sizes. They propose a combined test statistic that aggregates information across these different scales.

Key Insights: The SNR Gap and Hyperedge Power

A central finding is the "phase transition" in detectability. Much like physical phase transitions, there is a distinct mathematical boundary for detectability depending on the order of the hyperedge probability. For 3-uniform hypergraphs, the authors identified a sharp decision boundary defined by the relationship between connection probabilities $a$ (within communities) and $b$ (between communities).

Figure 2: Phase diagram for 3-uniform hypergraphs (m=3) showing the detectability boundary (a-b)^2 = 4(a+3b). The green region indicates where communities are statistically detectable.

One of the most important theoretical insights is the proof that a test using hyperedge information (3+ nodes) is provably more powerful than a classic test using only standard edge information (2 nodes). By looking at group interactions, researchers can "see" structure that remains invisible at the pairwise level.

Results and Real-World Validation

The authors proved that in the dense regime, their proposed test statistics follow an asymptotic normal distribution, allowing for the calculation of p-values. In simulations, the "combined" test consistently achieved higher power than tests that ignored hyperedge data.

When applied to the Aminer coauthorship data, the test strongly rejected the null hypothesis for the global network, confirming the existence of structure. Interestingly, when the network was partitioned into four subnetworks, the test failed to reject the null for those sub-groups, suggesting the communities were "pure" and lacked further internal sub-structure.

Conclusion and Future Directions

While the sub-hypergraph counting method is polynomial time, counting complex structures in massive hypergraphs remains a significant computational lift. Future work will likely focus on extending these tests to degree-corrected hypergraph models to account for node heterogeneity and developing more robust estimators for connection probabilities to create "plug-and-play" versions of the test for practitioners.

Summary updated

BibTeX
@misc{yuan2018testing,
  author = {Mingao Yuan and Ruiqi Liu and Yang Feng and Zuofeng Shang},
  title = {{Testing Community Structures for Hypergraphs}},
  year = {2018},
  eprint = {1810.04617},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.04617},
}
Figure