TL;DR
This paper introduces 4-Prof-Dist, a novel distributed algorithm designed to efficiently count and estimate 4-node induced subgraphs (4-profiles) both globally and locally across massive networks. By leveraging a compressed "two-hop histogram" communication scheme and a new graph sparsification analysis based on read-$k$ functions, the algorithm achieves up to a 12x speedup over existing state-of-the-art centralized methods while scaling seamlessly up to 640 cores.
What Problem Does This Paper Address?
Analyzing the structural properties of large-scale graphs often relies on counting small subgraphs, a technique known as graphlet or $k$-profile counting. While counting triangles (3-profiles) is a standard task in graph analytics, moving to 4-node subgraphs (4-profiles) introduces severe computational challenges due to combinatorial explosion—a naive approach requires checking $\binom{n}{4}$ subgraphs.
Furthermore, calculating local 4-profiles (the distribution of 4-node subgraphs centered around each individual vertex) is even more difficult. Because several 4-node subgraphs are disconnected (such as four isolated nodes or a node alongside a separate triangle), traditional distributed frameworks usually require expensive global communication across non-adjacent vertices. This paper tackles the challenge of computing these local and global 4-profiles efficiently in a distributed, message-passing framework without incurring massive communication overhead.
Methods
The authors present 4-Prof-Dist, implemented within GraphLab PowerGraph's Gather-Apply-Scatter (GAS) framework. The method relies on two primary innovations:
- Two-Hop Histograms: Instead of requiring full 3-hop neighborhood connectivity information to resolve complex 4-node subgraphs, the authors mathematically prove that a vertex only needs its local 3-profile, a triangle list, and a "two-hop histogram." This histogram simply tracks the number of distinct paths connecting a vertex to its 2-hop neighbors, compressing network communication by 3x to 5x compared to sending full neighborhood IDs.
- Profile Sparsification via Read-$k$ Functions: To handle massive graphs, the algorithm randomly subsamples edges with a probability $p$. Standard approaches use Kim-Vu polynomial concentration bounds to ensure the sparsified graph accurately reflects the original, but these bounds are often too loose to be useful for practical graph sizes. The authors introduce a sharper concentration bound using read-$k$ functions, providing mathematically rigorous guarantees for realistic graph sizes.
Datasets
The algorithm was evaluated using two real-world datasets from the Stanford Large Network Dataset Collection (SNAP):
- LiveJournal: A social network graph containing 4,846,609 vertices and 42,851,237 edges.
- WEB-NOTRE: A web graph of Notre Dame containing 325,729 vertices and 1,090,108 edges.
Note: Both graphs were converted to undirected graphs by removing duplicate/bi-directional edges and ignoring directionality.
Key Insights and Ideas
- Superlinear Sparsification Gains: Removing half the edges of a graph ($p=0.5$) doesn't just double the speed—it accelerates the running time by a factor of nearly 8x due to the combinatorial nature of subgraph counting.
- Local Information is Sufficient: Surprisingly, global communication isn't necessary to count disconnected 4-node subgraphs locally. Highly compressed path counts from two hops away provide enough algebraic constraints to solve the entire system of equations.
- Rethinking Concentration Bounds: The shift from classic Kim-Vu concentration to read-$k$ functions bridges the gap between theory and practice, yielding error bounds that actually align with empirical observations on real-world graph sizes.
Key Results
- Massive Speedups: For the LiveJournal graph (40M+ edges), 4-Prof-Dist computed the global 4-profile in under 10 seconds. It computed all local 4-profiles in less than 100 seconds, compared to 1,200 seconds required by Orca, the previous state-of-the-art centralized algorithm.
- Scalability: The distributed implementation scales effectively up to 640 cores across a 20-node AWS EC2 cluster, showing significant reductions in both runtime and network traffic when using the two-hop histogram compression.
- High Accuracy with Sampling: Edge sampling with $p=0.1$ maintained an approximation error within $\pm 2.5\%$ for even the rarest subgraphs ($F_7 - F_{10}$), while drastically reducing computational overhead.
Limitations and Future Work
The authors note that while their read-$k$ concentration bounds are significantly tighter than previous methods, they still contain conservative theoretical constants. Additionally, the current implementation focuses specifically on 4-profiles; extending this distributed, system-of-equations approach to larger subgraphs ($k \ge 5$) remains an open challenge due to the exponential growth in the number of isomorphic subgraphs and required equations.
Summary updated