Abstract
Estimating the frequency of small network patterns, or motifs, is a fundamental task in network science. However, researchers often only have access to sampled portions of a graph. This paper establishes the fundamental statistical limits for counting motifs under two non-adaptive sampling models: subgraph sampling and neighborhood sampling. We prove that while the standard Horvitz-Thompson estimator is optimal for subgraph sampling, neighborhood sampling requires a novel class of linear estimators that utilize negative weights to mitigate correlations introduced by high-degree nodes. Our results provide the first rigorous minimax bounds for these problems and demonstrate the significant "neighborhood bonus" in sampling efficiency.
Introduction
In diverse fields such as sociology, biology, and genetics, networks are often too large to observe in their entirety. Instead, researchers work with samples—subsets of nodes and their associated edges. A critical challenge is to estimate the total count of specific motifs (e.g., triangles, cliques, or wedges) in the original graph based on these partial observations.
The difficulty of this task is governed by sample complexity (the number of nodes required for a reliable estimate) and the choice of estimation strategy. Previous research has often focused on adaptive sampling, which may not be feasible in practice. This work focuses on non-adaptive, random sampling, providing absolute performance bounds (minimax limits) for any possible algorithm.
Sampling Models
We analyze two primary models of graph sampling:
- Subgraph Sampling: Nodes are sampled independently with probability $p$. The observer sees all edges between the sampled nodes.
- Neighborhood Sampling: Nodes are sampled with probability $p$. The observer sees edges between sampled nodes and all edges connecting sampled nodes to their immediate neighbors, regardless of whether those neighbors were sampled.
As shown in the figure, neighborhood sampling provides significantly more structural information than subgraph sampling for the same set of sampled nodes (black vertices).
Estimation Strategies and Optimality
For subgraph sampling, we show that the classic Horvitz-Thompson (HT) estimator is optimal. This estimator weights each observed motif by the inverse of its inclusion probability. Interestingly, the difficulty of counting a motif in this model depends primarily on its size (number of vertices) rather than its specific topology.
In contrast, the HT estimator is suboptimal for neighborhood sampling in graphs with high-degree nodes. High-degree "hubs" act as super-observers, creating massive correlations that increase the variance of standard estimators—a phenomenon we term the "Correlation Curse." To achieve optimality, we propose a new family of linear estimators. These estimators distinguish between sampled vertices and those observed only as neighbors. Crucially, they employ negative weights for certain configurations to "cancel out" redundant information from overlapping neighborhoods, leading to a more stable total count.
Key Results
Our theoretical analysis establishes matching upper and lower bounds for the sampling ratio $p$:
- Subgraph Sampling: The optimal ratio scales with $d^{k-1}$, where $d$ is the maximum degree and $k$ is the motif size.
- Neighborhood Sampling: This model achieves a superior scaling of $d^{k-2}$, quantifying the "neighborhood bonus."
Empirical validation on both synthetic Erdős-Rényi graphs and the real-world Jazz Musicians Collaboration Network confirms these findings. In the Jazz network, our proposed neighborhood estimators exhibited significantly lower variability than subgraph sampling, particularly at low sampling rates. Furthermore, we demonstrate that structural properties of the parent graph (e.g., being a tree or planar) can further simplify the estimation task.
Conclusion
This work provides a rigorous framework for motif counting from graph samples. By identifying the optimal estimators and their statistical limits, we highlight the counter-intuitive necessity of negative weights in neighborhood sampling. Future work will explore higher-order "r-hop" sampling and the extension of these results to more general, larger motifs.
Summary updated