MIRAGE: An Iterative MapReduce based FrequentSubgraph Mining Algorithm

Mansurul Bhuiyan, Mohammad Al HasanarXiv 2013

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-code based 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 Graphgen tool, 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

Abstract

Frequent subgraph mining (FSM) is an important task for exploratory data analysis on graph data. Over the years, many algorithms have been proposed to solve this task. These algorithms assume that the data structure of the mining task is small enough to fit in the main memory of a computer. However, as the real-world graph data grows, both in size and quantity, such an assumption does not hold any longer. To overcome this, some graph database-centric methods have been proposed in recent years for solving FSM; however, a distributed solution using MapReduce paradigm has not been explored extensively. Since, MapReduce is becoming the de- facto paradigm for computation on massive data, an efficient FSM algorithm on this paradigm is of huge demand. In this work, we propose a frequent subgraph mining algorithm called MIRAGE which uses an iterative MapReduce based framework. MIRAGE is complete as it returns all the frequent subgraphs for a given user-defined support, and it is efficient as it applies all the optimizations that the latest FSM algorithms adopt. Our experiments with real life and large synthetic datasets validate the effectiveness of MIRAGE for mining frequent subgraphs from large graph datasets. The source code of MIRAGE is available from www.cs.iupui.edu/alhasan/software/
BibTeX
@misc{bhuiyan2013mirage,
  author = {Mansurul Bhuiyan and Mohammad Al Hasan},
  title = {{MIRAGE: An Iterative MapReduce based FrequentSubgraph Mining Algorithm}},
  year = {2013},
  eprint = {1307.5894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1307.5894},
}
Figure