Skip to main content
QUICK REVIEW

[Paper Review] DIMSpan - Transactional Frequent Subgraph Mining with Distributed In-Memory Dataflow Systems

André Petermann, Martin Junghanns|arXiv (Cornell University)|Mar 6, 2017
Data Mining Algorithms and ApplicationsComputer Science29 references5 citations
TL;DR

DIMSpan is a distributed, in-memory frequent subgraph mining framework built for Apache Spark and Flink that enables scalable, efficient mining of frequent subgraphs from large-scale directed multigraphs—such as knowledge graphs or social networks—by leveraging advanced pruning, compression, and optimization techniques. It achieves high scalability and reduced network traffic, outperforming MapReduce-based approaches in runtime and resource efficiency.

ABSTRACT

Transactional frequent subgraph mining identifies frequent subgraphs in a collection of graphs. This research problem has wide applicability and increasingly requires higher scalability over single machine solutions to address the needs of Big Data use cases. We introduce DIMSpan, an advanced approach to frequent subgraph mining that utilizes the features provided by distributed in-memory dataflow systems such as Apache Spark or Apache Flink. It determines the complete set of frequent subgraphs from arbitrary string-labeled directed multigraphs as they occur in social, business and knowledge networks. DIMSpan is optimized to runtime and minimal network traffic but memory-aware. An extensive performance evaluation on large graph collections shows the scalability of DIMSpan and the effectiveness of its pruning and optimization techniques.

Motivation & Objective

  • To address the scalability limitations of single-machine frequent subgraph mining (FSM) for big data workloads involving large, complex graph collections.
  • To support mining of frequent subgraphs in directed multigraphs—common in knowledge graphs, social networks, and business process logs—where edge direction and multiplicity carry semantic meaning.
  • To leverage distributed in-memory dataflow systems (e.g., Spark, Flink) to minimize disk I/O and network shuffling, improving performance over traditional MapReduce-based FSM approaches.
  • To optimize the mining process through memory-aware data structures, pattern compression, and pruning techniques inspired by gSpan, while maintaining correctness and completeness.
  • To demonstrate scalability and efficiency on real and synthetic datasets, showing significant performance gains over existing approaches.

Proposed method

  • Adapts the gSpan algorithm’s pruning mechanisms—such as minimum DFS code and branch constraints—to the distributed in-memory dataflow model, enabling efficient search space reduction.
  • Employs a pattern-embedding map (μ) to track subgraph occurrences and uses a k-edge variant of the pattern frequency (ϕ) to guide iterative pattern growth.
  • Applies multi-level compression: pattern compression (1,2), embedding compression (3), and graph compression (4) to reduce memory footprint and network transfer overhead.
  • Introduces a post-counting verification step to minimize false positives, reducing expensive isomorphism checks by deferring full validation until later stages.
  • Uses a preprocessing phase to filter infrequent edge labels and apply branch pruning, reducing the number of candidate patterns early in the pipeline.
  • Leverages Flink’s in-memory computation model to minimize disk I/O and supports iterative processing with efficient serialization via optimized integer array representations.

Experimental results

Research questions

  • RQ1Can a distributed in-memory dataflow system effectively scale frequent subgraph mining beyond single-machine limitations for large, complex graph collections?
  • RQ2How does DIMSpan’s integration of gSpan-style pruning and compression techniques perform in practice compared to MapReduce-based FSM frameworks?
  • RQ3To what extent do data compression and optimized data structures reduce network traffic and memory usage in distributed FSM?
  • RQ4How does the placement of isomorphism verification (before or after filtering) affect overall runtime and correctness?
  • RQ5What is the impact of adaptive partitioning and preprocessing on load balancing and performance in large-scale graph mining?

Key findings

  • DIMSpan achieves sublinear but meaningful speedup with increasing cluster size, demonstrating strong scalability on both synthetic and real-world molecular datasets.
  • For the synthetic dataset, runtime grows nearly linearly with input size, while for the molecular dataset, runtime increases non-linearly at low support thresholds (e.g., 3% vs. 5%) due to exponential growth in result size.
  • Pattern compression (1,2) is the most effective optimization, reducing runtime significantly by enabling faster counting and reducing data transfer, even though it adds some compression overhead.
  • Post-counting verification reduces the number of expensive isomorphism checks and improves scalability, especially at low support thresholds.
  • Disabling branch pruning leads to improved performance on the synthetic dataset due to reduced preprocessing overhead, but is beneficial on the molecular dataset due to fewer distinct minimum 1-edge DFS codes.
  • Preprocessing based on infrequent edge labels significantly improves performance on datasets with high label diversity, showing strong dataset-dependent gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.