TL;DR
This paper introduces MIRAGE, a novel iterative MapReduce algorithm designed for efficient frequent subgraph mining (FSM) on massive graph datasets that don't fit into a single machine's memory. MIRAGE addresses the scalability limitations of traditional FSM algorithms by leveraging the distributed computing power of MapReduce, offering a complete and optimized solution.
What Problem Does This Paper Address?
The core problem this paper tackles is the scalability of frequent subgraph mining (FSM) in the era of "big data." Traditional FSM algorithms are designed for in-memory processing, which becomes infeasible as real-world graph datasets (like social networks, biological data, or web graphs) grow exponentially in size and quantity. While some graph database-centric methods exist, a robust and efficient distributed solution using the MapReduce paradigm, which has become a de facto standard for large-scale data processing, was lacking. The challenge lies in distributing the computationally intensive task of finding subgraph occurrences across multiple nodes and aggregating their results without overwhelming the system.
Methods
MIRAGE employs an iterative MapReduce framework to perform FSM. The algorithm works in stages, where each iteration discovers frequent subgraphs of a specific size (number of edges).
- Iterative Approach: The output of one iteration (frequent subgraphs of size k) becomes the input for the next iteration (to find frequent subgraphs of size k+1). This allows the algorithm to progressively build up frequent patterns.
- MapReduce Integration:
- Mappers: In each iteration, mappers are responsible for generating candidate subgraphs of the next size (k+1) by extending the frequent subgraphs of size k. They also compute the local support of these candidates within their assigned data partition. Crucially, they perform isomorphism checking to ensure only valid generation paths are considered.
- Reducers: Reducers aggregate the local support counts from all mappers for each candidate subgraph. They then determine if a candidate is globally frequent based on the user-defined minimum support threshold.
- Candidate Generation: MIRAGE uses a breadth-first candidate generation strategy, similar to existing FSM algorithms, but adapted for the distributed environment.
- Isomorphism Checking: The paper utilizes the
min-dfs-codebased canonical coding scheme for efficient isomorphism checking, ensuring that isomorphic patterns are treated as the same. - Support Counting: Instead of explicit subgraph isomorphism checks for every database graph, MIRAGE leverages occurrence lists (OLs) of patterns. The OL of a child pattern can be efficiently derived from its parent's OL and the OL of the newly added edge.
Datasets
The paper evaluates MIRAGE on:
- Real-life biological datasets: NCI-H23, OVCAR-8, SN12C, P388, and Yeast. These datasets are sourced from the PubChem website and represent atomic structures of molecules.
- Synthetic datasets: Four synthetic datasets were created using the
Graphgentool, with varying numbers of graphs (100K to 1000K) and average edge densities.
Key Insights and Ideas
- MapReduce for FSM is Challenging: The paper highlights that simply distributing FSM is not straightforward. Local support counts are insufficient, and the lack of a global state in MapReduce requires careful iterative design.
- Iterative MapReduce is Key: The iterative nature of MIRAGE is crucial for managing dependencies between pattern sizes and for enabling the aggregation of distributed support counts.
- Optimizing Partitioning for Load Balancing: The authors found that partitioning graphs based on the total number of edges per partition (Scheme 2) rather than just the number of graphs (Scheme 1) significantly improves runtime performance, especially for datasets with highly variable graph sizes.
- The Importance of Partition Count: For FSM tasks, a substantially larger number of partitions than typically used in other MapReduce applications is beneficial. This allows mappers to work on smaller, more manageable chunks of data, leading to better overall performance despite potential overheads.
- Reducer Count Tuning: The optimal number of reducers is critical for balancing the creation of large output files versus numerous small/empty files, impacting network traffic and I/O performance.
Key Results
- Efficiency: MIRAGE demonstrates significant performance improvements compared to an existing MapReduce-based FSM algorithm (Hill et al. [32]), achieving up to an order of magnitude speedup on biological datasets.
- Scalability: Experiments on synthetic datasets show that MIRAGE scales well with an increasing number of database graphs.
- Speedup with Data Nodes: The runtime of MIRAGE reduces significantly with an increasing number of active data nodes, and the speedup is nearly linear.
- Optimal Partitioning: Balancing the number of edges per partition (Scheme 2) resulted in better performance than balancing the number of graphs.
- Optimal Partition Count: For the Yeast dataset, increasing the partition count improved performance significantly, leveling off around 1000 partitions.
- Optimal Reducer Count: For their cluster setup (9 data nodes), 30 reducers was found to be the optimal choice for balancing performance.
Limitations and Future Work
- Not discussed in the paper: The paper does not explicitly detail limitations or suggest future work beyond the scope of the presented algorithm and experiments. However, one could infer that further optimizations for specific graph structures or more advanced distributed data structures could be explored.
Summary updated