Efficient and Scalable Graph Similarity Joins in MapReduce

Yifan Chen, Xiang Zhao, Chuan Xiao, Weiming Zhang, Jiuyang TangThe Scientific World JOURNAL 2014 · DOI

TL;DR

This paper introduces MGSJoin, a novel MapReduce-based algorithm for efficiently finding similar graphs within massive datasets. By combining spectral Bloom filters for faster filtering and a multiway join strategy for optimized verification, MGSJoin significantly outperforms existing methods in terms of speed and scalability for graph similarity joins with edit distance constraints.

What Problem Does This Paper Address?

Graphs are increasingly used to model complex data in fields like bioinformatics and social networking. A crucial operation for analyzing these graphs is "graph similarity join," which identifies pairs of graphs that are similar within a given distance threshold. A common measure of graph similarity is the Graph Edit Distance (GED), which quantifies the minimum number of operations (like adding/deleting vertices or edges) to transform one graph into another. However, calculating GED is computationally expensive (NP-hard), and existing similarity join algorithms are often in-memory based, limiting their scalability to massive datasets. This paper addresses the challenge of performing efficient and scalable graph similarity joins on large-scale graph data using the MapReduce framework.

Methods

The proposed MGSJoin algorithm follows a standard filtering-verification framework adapted for MapReduce.

  • Filtering Phase:
    • Path-based q-grams: Graphs are represented by their path-based q-gram signatures. The core idea is that similar graphs are likely to share common q-gram signatures.
  • Count Filtering: A lower bound (LB) is established based on the number of common signatures. Pairs with fewer common signatures than LB are discarded.
  • Spectral Bloom Filters (SBFs): To reduce the massive number of intermediate key-value pairs generated during signature generation and matching, SBFs are employed. SBFs are a generalization of Bloom filters that can also estimate element frequencies, allowing for a more nuanced filtering process while saving significant communication costs. This technique consolidates two MapReduce jobs into one for the filtering phase.
  • Verification Phase:
    • MapReduce-based GED Calculation: For candidate pairs identified by the filtering phase, their GED is computed. The paper proposes a MapReduce-based method for GED calculation, which is crucial for handling large graphs where in-memory computation is infeasible.
  • Multiway Join: To optimize the process of retrieving the actual graph data needed for GED calculation, a multiway join strategy is integrated. This consolidates multiple join operations into a single MapReduce round, further improving efficiency.

Datasets

The experiments were conducted on a large-scale public dataset:

  • Pubchem: A dataset of 1,000,000 graphs sampled from Pubchem. The paper notes that experiments were also performed on other public datasets but only Pubchem results are presented due to space constraints.

Key Insights and Ideas

  • The Power of Signatures for Filtering: Using path-based q-grams as signatures is an effective way to quickly prune dissimilar graph pairs, significantly reducing the number of pairs that need expensive GED computation.
  • SBFs as a Communication Bottleneck Solver: The sheer volume of intermediate data in distributed graph processing is a major challenge. Spectral Bloom Filters offer a clever way to compress graph signatures, drastically reducing network traffic and I/O costs during the filtering stage.
  • Multiway Join for Efficient Verification: Consolidating multiple join operations into a single MapReduce round for retrieving graph data before GED calculation is a key optimization that avoids redundant data shuffling and processing.
  • MapReduce is Essential for Big Graph Data: The paper strongly advocates for MapReduce as the go-to framework for handling massive graph datasets, demonstrating that traditional in-memory algorithms simply cannot scale.

Key Results

  • Efficiency and Scalability: MGSJoin demonstrated superior efficiency and scalability compared to existing methods.
  • Filtering Improvement: The "+SBF" version of the algorithm showed significant improvements in efficiency, reserving thousands of seconds while only generating a small increase in candidate pairs.
  • Verification Improvement: The "+MJ" (multiway join) approach in verification was about 6,000 seconds faster than ordinary joins for a threshold of τ=5.
  • GED Calculation Performance: The MapReduce-based GED calculation (+MRGED) showed advantages over the basic A*-based algorithm for larger GED thresholds (τ=2 and above), where the basic method struggled or ran out of memory.
  • Comparison with GSimJoin: MGSJoin was significantly faster than the state-of-the-art GSimJoin, with runtimes being 10x to 100x shorter for larger datasets. GSimJoin also failed due to memory limitations when processing 100,000 graphs.
  • Speedup and Scale-up: Experiments showed that MGSJoin's performance improved significantly with an increasing number of instances (workers) and scaled well with larger datasets.

Limitations and Future Work

  • False Positives with SBFs: While SBFs reduce intermediate data, they introduce a small probability of false positives, meaning some dissimilar pairs might pass the filter. The authors note that careful selection of hash functions and counter sizes can mitigate this.
  • GED Calculation Complexity: The exact GED calculation remains computationally intensive, especially for very large graphs. While the MapReduce approach helps, the runtime still grows exponentially with the GED threshold.
  • Future Work: The authors plan to explore optimizing verification using multithreaded programming and testing the algorithms on even larger and denser graphs. They also suggest investigating workload balancing for graph processing in cloud environments.

Summary updated

Abstract

Along with the emergence of massive graph-modeled data, it is of great importance to investigate graph similarity joins due to their wide applications for multiple purposes, including data cleaning, and near duplicate detection. This paper considers graph similarity joins with edit distance constraints, which return pairs of graphs such that their edit distances are no larger than a given threshold. Leveraging the MapReduce programming model, we propose MGSJoin, a scalable algorithm following the filtering-verification framework for efficient graph similarity joins. It relies on counting overlapping graph signatures for filtering out nonpromising candidates. With the potential issue of too many key-value pairs in the filtering phase, spectral Bloom filters are introduced to reduce the number of key-value pairs. Furthermore, we integrate the multiway join strategy to boost the verification, where a MapReduce-based method is proposed for GED calculation. The superior efficiency and scalability of the proposed algorithms are demonstrated by extensive experimental results.
BibTeX
@article{chen2014efficient,
  author = {Yifan Chen and Xiang Zhao and Chuan Xiao and Weiming Zhang and Jiuyang Tang},
  title = {{Efficient and Scalable Graph Similarity Joins in MapReduce}},
  journal = {The Scientific World JOURNAL},
  year = {2014},
  doi = {10.1155/2014/749028},
}
Figure