Skip to main content
QUICK REVIEW

[Paper Review] DwarvesGraph: A High-Performance Graph Mining System with Pattern Decomposition

Jingji Chen, Xuehai Qian|arXiv (Cornell University)|Aug 21, 2020
Graph Theory and AlgorithmsComputer Science51 references9 citations
TL;DR

DwarvesGraph is a high-performance graph mining system that integrates pattern decomposition with a novel compilation pipeline and partial-embedding API to achieve sub-hour execution times on large graphs, reducing GPM workloads from days to hours with minimal user effort. It automates optimal decomposition selection via an accurate cost model and enables efficient UDF execution without full embedding materialization.

ABSTRACT

Graph pattern mining (GPM) is an important application that identifies structures from graphs. Despite the recent progress, the performance gap between the state-of-the-art GPM systems and an efficient algorithm--pattern decomposition--is still at least an order of magnitude. This paper clears the fundamental obstacles of adopting pattern decomposition to a GPM system. First, the performance of pattern decomposition algorithms depends on how to decompose the whole pattern into subpatterns. The original method performs complexity analysis of algorithms for different choices, and selects the one with the lowest complexity upper bound. Clearly, this approach is not feasible for average or even expert users. To solve this problem, we develop a GPM compiler with conventional and GPM-specific optimizations to generate algorithms for different decomposition choices, which are evaluated based on an accurate cost model. The executable of the GPM task is obtained from the algorithm with the best performance. Second, we propose a novel partial-embedding API that is sufficient to construct advanced GPM applications while preserving pattern decomposition algorithm advantages. Compared to state-of-the-art systems, our new GPM system, DwarvesGraph, developed based on the ideas, reduces the execution time of GPM on large graphs and patterns from days to a few hours with low programming effort.

Motivation & Objective

  • To close the performance gap between state-of-the-art GPM systems and the highly efficient pattern decomposition algorithm, which remains underutilized due to implementation barriers.
  • To address the incompatibility of traditional UDF-based APIs with pattern decomposition, which requires full embedding materialization and undermines performance gains.
  • To automate the selection of optimal vertex cutting sets for pattern decomposition, avoiding manual complexity analysis and enabling scalable performance.
  • To design a cost model that accurately predicts performance across decomposition choices, ensuring the system selects the fastest algorithmic variant.
  • To enable low-programming-effort deployment of advanced GPM applications while preserving the efficiency of pattern decomposition.

Proposed method

  • The system employs a GPM-specific compiler that generates optimized algorithms for multiple decomposition choices, using conventional and graph pattern mining-specific optimizations.
  • It introduces a partial-embedding API that allows UDFs to access only required parts of embeddings, avoiding full materialization and preserving decomposition efficiency.
  • An accurate cost model evaluates candidate decomposition strategies (defined by vertex cutting sets) to select the fastest algorithmic implementation.
  • The system supports multi-threaded execution with near-linear scalability, enabling efficient processing of large graphs.
  • The compilation phase is highly efficient, with overheads orders of magnitude smaller than execution times, even for complex patterns.
  • The framework integrates label constraints and complex query semantics by resolving constraints on partially materialized embeddings.

Experimental results

Research questions

  • RQ1Can pattern decomposition be effectively integrated into a general-purpose GPM system without sacrificing usability or expressiveness?
  • RQ2How can the performance of pattern decomposition be automated across diverse graph patterns and structures?
  • RQ3What cost model is accurate and efficient enough to guide the selection of optimal decomposition strategies in practice?
  • RQ4To what extent can a partial-embedding API maintain correctness and expressiveness while avoiding full embedding materialization?
  • RQ5How does the system scale with increasing graph size and pattern complexity compared to existing GPM systems?

Key findings

  • DwarvesGraph reduces the execution time for mining all size-5 patterns on the WikiVote graph from over a week (Peregrine) to under five hours.
  • On the 5-Motif pattern in the Patents graph, DwarvesGraph achieves a 15.11× speedup with 16 threads, demonstrating near-linear scalability.
  • For frequent subgraph mining with a support threshold of 10K on the MiCo graph, DwarvesGraph achieves a peak speedup of 70× over AutomineInHouse.
  • With complex label constraints, DwarvesGraph outperforms Peregrine by up to 12× on large graphs, with execution times dropping from over 12 hours to under 5 minutes.
  • Compilation overhead is negligible—under 300ms even for 112 size-6 patterns—making it practical for interactive workloads.
  • An inaccurate cost model can lead to worse performance than non-decomposed systems, confirming the critical role of precise cost estimation in decomposition selection.

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.