Abstract
The study of networks often involves high-dimensional inference problems where data is scarce. In many practical applications, researchers must draw conclusions from one or a few large, sparse networks. This paper investigates the hypothesis testing of graphs in this high-dimensional regime, specifically testing whether two populations of inhomogeneous random graphs, defined on the same set of $n$ vertices, are identical ($P=Q$). We explore cases where the population size $m$ is much smaller than $n$, potentially as small as $m=1$. Using a minimax testing perspective, we derive separation rates and demonstrate that while some popular distances (like total variation) make the problem unsolvable for small $m$, the Frobenius and operator norms provide a path forward. We present near-optimal, adaptive tests that distinguish between graph populations even in data-starved environments.
Introduction
In classical statistical frameworks, the power of a test typically scales with the number of samples ($m$). However, modern network science frequently presents a different challenge: we possess massive individual networks (where the number of vertices $n$ is very large), but we have very few independent samples of those networks. For example, when comparing the functional connectivity of brain networks or the structural integrity of social networks, we may only have one or two graphs per group.
This paper addresses the fundamental question: Is it possible to statistically distinguish between two underlying probability distributions of graphs when the number of samples is extremely small? We focus on inhomogeneous random graphs, where each pair of vertices $(i, j)$ has an independent probability of forming an edge, represented by the adjacency matrices $P$ and $Q$.
The Challenge of Sparsity and Small Samples
The difficulty in testing $P=Q$ against a distance-based alternative $d(P,Q) > \rho$ lies in the "noise" inherent in random graphs. Each observed graph is a realization of Bernoulli trials (coin flips) based on the underlying probabilities in $P$ or $Q$. When the graphs are sparse and $m$ is small, the variance of these trials can easily overwhelm the signal—the actual difference between $P$ and $Q$.
Our research utilizes minimax testing theory to identify the mathematical limits of any possible test. We find that for certain distance metrics, such as total variation distance, the "minimax separation" is too large when $m$ is small. This means that even if two models are significantly different in that metric, no test can reliably tell them apart with only a few samples.
Proposed Methodology
We propose two primary testing strategies based on different matrix norms, each offering unique advantages depending on the available sample size.
1. The Frobenius Norm Test ($T_1$)
The Frobenius norm measures the sum of squared differences between corresponding entries in the adjacency matrices. To apply this to random data without introducing bias, we employ a sample splitting technique. By dividing the $m$ available graphs into two groups and calculating the product of differences across these groups, we create an unbiased estimator of the distance. This effectively cancels out the noise of the individual Bernoulli trials.
Result: This test is uniformly consistent for $m \geq 2$. The required separation between models to achieve statistical power scales as $1/\sqrt{m}$.
2. The Operator (Spectral) Norm Test ($T_2$)
The operator norm treats the adjacency matrix as a linear operator, focusing on its largest singular value. Unlike the Frobenius norm, which looks at edges individually, the operator norm captures the "global structure" of the graph.
Result: Remarkably, the operator norm test remains effective even for $m=1$. Because it aggregates structural information across the entire matrix, it can "see" through the noise that masks entry-wise comparisons in single-sample scenarios.
Key Insights
- The $m=1$ Impossibility: We prove that for $m=1$, it is mathematically impossible to distinguish models using the Frobenius norm unless the difference between $P$ and $Q$ is extreme. The noise of a single graph's edges simply contains too much variance.
- Spectral Advantage: The operator norm bypasses the $m=1$ limitation, providing a near-optimal solution for the most data-constrained regimes.
- Sparsity Adaptation: Real-world graphs vary in density. Our proposed tests are adaptive, meaning they do not require prior knowledge of the graph's sparsity level (the average degree of vertices) to maintain their validity and power.
- Minimax Optimality: We demonstrate that $T_1$ and $T_2$ are near-optimal. No other statistical test can significantly outperform them in terms of the minimum detectable difference ($\rho$) between two graph populations.
Limitations and Future Directions
While these tests provide a robust theoretical foundation for network inference, two significant challenges remain for practical application:
- Vertex Correspondence: Our current models assume that vertices are "matched" (e.g., vertex $i$ in Graph A represents the same entity as vertex $i$ in Graph B). In many applications, such as comparing different social networks, this mapping is unknown, significantly increasing the complexity of the problem.
- Edge Independence: The inhomogeneous random graph model assumes edges are independent. However, real-world networks often exhibit dependencies, such as transitivity (if A knows B and B knows C, A is likely to know C). Extending these minimax results to models with edge dependencies is a vital area for future research.
For practical implementation, while our theoretical thresholds are rigorous, we recommend using permutation tests or bootstrapping to determine decision boundaries that are better suited to the specific constants of a given dataset.
Summary updated