Introduction
Homophily—the tendency of connected nodes in a network to share similar attributes—is a fundamental property in network science and graph machine learning. Whether a graph is homophilous (similar nodes connect) or heterophilous (dissimilar nodes connect) significantly influences the design and performance of Graph Neural Networks (GNNs). For instance, standard GNN architectures often rely on the assumption of homophily to smooth features across edges, whereas heterophilous graphs require specialized architectures to prevent performance degradation.
Measuring homophily typically involves calculating metrics such as the Dirichlet energy, which sums the squared differences of features across all edges in a graph. However, calculating these metrics exactly requires full access to the network's topology and node features. In practice, networks are often too massive to store, dynamic, or restricted by privacy concerns, leaving researchers with only a sampled subset of the graph. Naively calculating homophily on these subgraphs (the "plug-in" approach) often leads to significant bias, particularly when the sampling method is non-uniform. This paper introduces a robust framework that leverages the Horvitz-Thompson estimator to recover global homophily metrics from sampled data with near-zero bias.
Methodology
The authors address the estimation problem through a combination of graph limit theory and survey statistics.
Theoretical Foundation: Graphons and Testability
To establish the feasibility of sampling-based estimation, the authors utilize the theory of graphons (graph limits). They prove that Dirichlet energy is a "testable" graph parameter under induced subgraph sampling. This theoretical guarantee ensures that as the sample size increases, the Dirichlet energy of a uniformly sampled subgraph converges to the energy of the underlying global graph. This provides a rigorous justification for using small samples to infer global properties.
The Horvitz-Thompson (HT) Estimator
While uniform sampling is theoretically sound, real-world sampling is often biased. To correct for this, the authors adapt the Horvitz-Thompson estimator from the field of survey statistics. The core idea is to weight each observed edge by the inverse of its inclusion probability ($\pi_{ij}^{-1}$). By accounting for the likelihood of an edge being selected, the HT estimator mathematically compensates for the skewness of the sampling design.
Sampling Designs
The framework was evaluated across three distinct sampling regimes:
- Bernoulli Sampling (BS): Nodes are selected independently with a fixed probability $p$.
- Simple Random Sampling (SRS): A fixed number of nodes are selected uniformly at random.
- Traceroute Sampling: Edges are discovered via shortest paths between random source and target nodes. This design is particularly challenging because "central" edges have a much higher inclusion probability than peripheral ones.
Experimental Evaluation
The framework was tested on a suite of standard benchmark datasets, including citation networks (Citeseer, Cora, Pubmed), web graphs (Cornell, Wisconsin), co-purchase networks (Amazon), and Wikipedia networks (Squirrel, Chameleon). These datasets represent a wide spectrum of homophily levels.
Key Results
- Unbiased Estimation: Under Simple Random Sampling (observing only 30% of nodes), the HT estimator recovered ground-truth Dirichlet energy and homophily metrics with negligible bias (typically $\le 10^{-3}$) across all datasets.
- Robustness to Sampling Rates: Using Bernoulli sampling, the estimator remained unbiased even at low sampling rates ($p=0.1$). While the variance increased at lower rates, the mean estimate remained centered on the true value.
- Success on Complex Designs: In the highly skewed Traceroute sampling on the Karate Club network, the HT estimator successfully compensated for unequal inclusion probabilities, providing stable estimates where naive methods failed.
Discussion and Limitations
While the HT estimator provides a powerful tool for unbiased estimation, it is not without trade-offs. The primary challenge is variance at low sampling rates. Because the estimator scales observed values by the inverse square of the sampling probability ($p^{-2}$), small samples can lead to high volatility in the results. Additionally, the framework requires knowledge of the inclusion probabilities. For complex or "black-box" network crawling algorithms, calculating these probabilities can be computationally demanding.
In conclusion, this work bridges the gap between graph signal processing and survey statistics. By proving the testability of Dirichlet energy and providing a practical estimation framework via the Horvitz-Thompson estimator, the authors enable accurate homophily analysis in large-scale, partially observed networks. Future research may focus on variance-reduction techniques and extending these principles to dynamic, time-evolving graphs.
Summary updated