Introduction
Graph mining is a cornerstone of modern data science, essential for analyzing everything from social networks to protein-protein interaction maps. However, mining within a single massive network presents a significant challenge: as patterns grow, the number of possible embeddings can explode combinatorially. Traditional tools like SUBDUE or gSpan often rely on a "crawling" approach—growing structures one edge at a time. This method is not only computationally expensive but also tends to favor small, high-frequency patterns, often missing the large, complex structural "backbones" that define a network's architecture.
This paper introduces SpiderMine, a probabilistic algorithm designed to efficiently discover the top-$K$ largest frequent patterns in massive networks. By shifting the paradigm from edge-by-edge growth to the assembly of small, bounded-diameter building blocks called "spiders," SpiderMine achieves order-of-magnitude speedups while maintaining theoretical guarantees of success.
The SpiderMine Approach
The core innovation of the framework is the r-spider: a frequent subgraph where every vertex is reachable from a central "head" vertex within a distance $r$. This definition allows the algorithm to treat large patterns as collections of these smaller, manageable units.
SpiderMine operates in three distinct stages:
- Mining Spiders: The algorithm first identifies all frequent patterns with a diameter up to $2r$. These small subgraphs serve as the "spiders" or building blocks for larger structures.
- Large Pattern Identification: Rather than an exhaustive search, SpiderMine utilizes a probabilistic framework. It selects $M$ random "seed" spiders and iteratively expands them using a procedure called
SpiderGrow. When the embeddings of two growing seeds overlap, they are merged. This allows the algorithm to "leap" through the search space by assembling large structures from smaller components. - Large Pattern Recovery: Once promising large candidates are identified, the algorithm fully expands them until no further frequent growth is possible, ultimately returning the top-$K$ results.
To mitigate the computational cost of graph isomorphism tests, the authors use a spider-set representation. By characterizing a large pattern as a multi-set of its constituent spiders, the algorithm can quickly prune candidates; patterns with different spider-sets cannot be isomorphic.
Key Insights: Patterns as Assemblies
The fundamental breakthrough of SpiderMine is the realization that large frequent patterns are almost always composed of smaller, overlapping frequent subgraphs.
By mining these small spiders first, the algorithm can reconstruct large patterns much faster than adding one edge at a time. Furthermore, the probabilistic approach ensures efficiency; by selecting a sufficient number of random seeds, the probability of "hitting" components of a large pattern becomes statistically certain, allowing the algorithm to ignore vast, unpromising regions of the network.
Experimental Performance
The authors evaluated SpiderMine against synthetic and real-world datasets, including the DBLP co-authorship network and the Jeti software call graph.
- Scalability: SpiderMine significantly outperformed existing algorithms like SUBDUE and MoSS. In tests on graphs with 40,000 nodes, it identified patterns of size 230 in under two minutes—a task where competing tools either timed out or failed to find large patterns.
- Pattern Quality: In synthetic tests, SpiderMine consistently recovered the largest injected patterns, whereas other tools often returned a mix of smaller, less informative subgraphs.
- Real-World Utility: On the DBLP dataset, the algorithm identified discriminative collaborative patterns that distinguished research communities (e.g., Database vs. Theory). In the Jeti dataset, it uncovered complex calling relationships between core Java classes, providing insights into software architecture.
Conclusion and Future Work
SpiderMine demonstrates that large-scale pattern mining can be made tractable through probabilistic assembly. While the algorithm currently relies on a user-specified diameter bound ($D_{max}$), it represents a significant leap forward in processing massive networks. Future research may focus on lifting the diameter constraint to find "stringy" patterns and providing more rigorous theoretical complexity analyses for the spider-assembly framework.
Summary updated