Abstract
Graph Pattern Mining (GPM) is essential for discovering structural insights in massive networks but is often computationally prohibitive. Approximate GPM (A-GPM) uses sampling to provide estimates within user-defined error bounds. However, current A-GPM systems suffer from unstable runtimes due to offline profiling and low efficiency in sparse graphs. We present ScaleGPM, a system that achieves a 565x average speedup over state-of-the-art tools. ScaleGPM introduces online convergence detection to eliminate circular dependencies in sample estimation and "eager" pruning to improve sampling hit rates. Our evaluation on billion-scale graphs demonstrates that ScaleGPM provides high accuracy and stability where previous systems fail.
Introduction
Graph Pattern Mining (GPM)—the task of finding specific subgraphs like cliques or motifs—is a cornerstone of data science. As datasets grow to the billion-node scale, exact counting becomes infeasible. Approximate GPM (A-GPM) offers a solution by providing statistical estimates. Yet, existing systems like ASAP and Arya face significant challenges: they often rely on "offline profiling" to guess sample sizes, leading to unpredictable performance, and they struggle with the "needle-in-the-hay" problem in sparse graphs where target patterns are rare.
ScaleGPM: Core Innovations
ScaleGPM addresses these limitations through three primary architectural advancements.
1. Online Convergence Detection
Traditional A-GPM systems guess the required number of samples before execution begins. ScaleGPM breaks this circular dependency by monitoring the statistical variance of samples in real-time. By leveraging the Central Limit Theorem, the system calculates confidence intervals during execution and terminates the moment the user's error bound is mathematically met. This ensures that the system does exactly as much work as needed, providing both theoretical guarantees and runtime stability.
2. Eager-Verify Pruning
Standard sampling methods are "lazy," verifying patterns only after a full set of nodes is sampled. In contrast, ScaleGPM’s "Eager-Verify" approach checks constraints at every step of the sampling process. If a partial sample cannot possibly satisfy the target pattern's requirements, it is pruned immediately. This drastically increases the "hit rate," allowing the system to find rare patterns in sparse graphs much more efficiently.
3. Hybrid Sampling Engine
The optimal sampling strategy often depends on the graph's density and the pattern's rarity. ScaleGPM employs a hybrid engine that automatically switches between Neighbor Sampling (NS) and Graph Sparsification (GS) based on a cost model. While NS is lightweight for dense regions, GS is more effective for extremely sparse scenarios where matches are hard to find.
Experimental Results
ScaleGPM was evaluated against state-of-the-art systems on massive datasets, including twitter40 (42M nodes) and the 75-billion-edge clueweb12 graph.
- Performance: ScaleGPM achieved a geomean speedup of 565x over Arya. In extreme cases, such as finding 4-cliques in the
friendstergraph, speedups exceeded 610,000x. - Scalability: Unlike previous systems that often run out of memory on billion-scale instances, ScaleGPM handled the
clueweb12graph in seconds due to its efficient internal representation and pruning. - Stability and Accuracy: The online detection mechanism was empirically shown to strictly bound the actual error, providing the high confidence required for sensitive data mining tasks.
Conclusion
ScaleGPM represents a paradigm shift in approximate graph pattern mining. By replacing heuristic-based offline predictions with rigorous online statistical detection and integrating eager pruning with a hybrid sampling engine, it enables the analysis of the world's largest graphs with unprecedented speed and reliability.
Summary updated