A Sampling-based Framework for Hypothesis Testing on Large Attributed Graphs
Yun Wang, Chrysanthi Kosyfaki, Sihem Amer-Yahia, Reynold Cheng
TL;DR
This work addresses hypothesis testing on large attributed graphs by formalizing node, edge, and path hypotheses and introducing a sampling-based framework. It introduces PHASE, a Path-Hypothesis-Aware SamplEr, which biases sampling toward elements specified by the hypothesis, and PHASE_{opt}, which uses non-backtracking walks and neighbor-limiting tricks to reduce runtime while preserving accuracy. The authors prove convergence properties for hypothesis estimators and demonstrate through experiments on MovieLens, DBLP, and Yelp that PHASE_{opt} can be at least 43x faster than PHASE with <=4% accuracy loss, while delivering tighter p-values and confidence intervals. The approach significantly improves practical hypothesis testing on large graphs and supports longer-path and more complex hypotheses, offering a path toward scalable, hypothesis-aware graph analytics.
Abstract
Hypothesis testing is a statistical method used to draw conclusions about populations from sample data, typically represented in tables. With the prevalence of graph representations in real-life applications, hypothesis testing in graphs is gaining importance. In this work, we formalize node, edge, and path hypotheses in attributed graphs. We develop a sampling-based hypothesis testing framework, which can accommodate existing hypothesis-agnostic graph sampling methods. To achieve accurate and efficient sampling, we then propose a Path-Hypothesis-Aware SamplEr, PHASE, an m- dimensional random walk that accounts for the paths specified in a hypothesis. We further optimize its time efficiency and propose PHASEopt. Experiments on real datasets demonstrate the ability of our framework to leverage common graph sampling methods for hypothesis testing, and the superiority of hypothesis-aware sampling in terms of accuracy and time efficiency.
