Isomorphic Graph Embedding for Progressive Maximal Frequent Subgraph Mining

Thanh Toan Nguyen, Hongzhi Yin, Thanh Thi Nguyen 0001, Jun Hyung Jo, Quoc Viet Hung Nguyen

Overview

The paper introduces pmMine, a novel framework that transforms the computationally intensive task of mining maximal frequent subgraphs into a significantly faster search problem within a continuous vector space. By employing an isomorphism-preserving graph neural network (GNN), the authors replace expensive, NP-complete discrete tests with efficient numerical similarity estimations. This approach allows for the discovery of large patterns in a progressive, "results-as-they-are-found" manner, addressing long-standing bottlenecks in graph data mining.

The Computational Nightmare of MFSM

Frequent Subgraph Mining (FSM) is essential for identifying recurring patterns in complex data structures like social networks, chemical compounds, or protein interactions. However, traditional FSM often produces an overwhelming number of redundant results. Maximal Frequent Subgraph Mining (MFSM) aims to find only the "largest" patterns—those that are not contained within any other frequent pattern.

The vast search space involved in identifying a target pattern within a complex graph structure.

The challenge is three-fold:

  1. Search Space Explosion: Searching from small to large patterns (bottom-up) leads to an exponential number of candidates.
  2. Redundancy: Most algorithms find every small frequent subgraph before reaching the maximal ones.
  3. The Isomorphism Test: Determining if two subgraphs are structurally identical is an NP-complete problem, making it prohibitively expensive as pattern size increases.

The pmMine Framework: From Discrete to Continuous

The authors propose pmMine, which breaks the mining process into three main stages:

  • Isomorphic Graph Embedding (iGE): Instead of comparing graphs directly, pmMine uses a GNN to map every node to a high-dimensional vector. This embedding is specifically designed to be "isomorphism-preserving," meaning nodes with identical local structures (neighborhoods) will have nearly identical vectors. This is theoretically grounded in the Weisfeiler-Lehman (WL) test, a classic algorithm for graph isomorphism.
  • Non-parametric Partitioning: To find frequent patterns, the system looks for clusters of similar node embeddings. They use an adaptive version of DBSCAN that doesn't require users to pre-define the number of clusters. If a cluster of embeddings exceeds a certain size threshold, it likely represents a frequent pattern.
  • Progressive Pattern Construction: Once a cluster is identified, the algorithm works top-down to reconstruct the actual graph pattern from the embedding space. Because it processes clusters independently, it can return the first discovered patterns to the user almost immediately (progressively) rather than waiting for the entire search to conclude.

Key Innovation: Rooted Subgraphs and Hit-Time

A core insight of the paper is the shift from general subgraphs to "rooted subgraphs"—patterns centered around a specific node. This simplifies the search because finding the "roots" (the centers of the patterns) in the embedding space allows the rest of the pattern to be reconstructed efficiently.

Comparison between standard subgraph frequency (left) and rooted subgraph frequency (right).

By moving the problem into a continuous embedding space, the framework uses "cheap" numerical operations (like cosine similarity) to find potential matches. Furthermore, pmMine prioritizes "hit-time"—the time it takes to find the first valid pattern. This is crucial for interactive data exploration where researchers require immediate feedback rather than waiting hours for a complete result set.

Performance and Scalability

The framework was evaluated on real-world datasets (Citeseer, Facebook, Enron, Mico) and synthetic datasets with varying densities. Key results include:

  • Speed: pmMine achieved speedups of up to an order of magnitude compared to state-of-the-art baselines like mGraMi and pGrowth. For instance, on the Facebook dataset, pmMine found the first pattern in ~43 seconds, while mGraMi took over 3,300 seconds.
  • Scalability: While baselines often crashed when patterns exceeded 10 nodes, pmMine successfully identified patterns with up to 37 nodes.
  • Memory Efficiency: By processing data in mini-batches and using low-dimensional vectors, memory usage grows linearly with pattern size, avoiding the exponential growth seen in traditional methods.

Conclusion and Future Work

While pmMine offers a significant leap in efficiency, it is an approximate method due to the stochastic nature of GNN optimization. It lacks the absolute theoretical guarantees of brute-force discrete searches but provides a practical solution for massive datasets. Future work includes extending the framework to dynamic graphs where edges change over time and tailoring the embedding process for specific domains like community detection or social media diffusion patterns.

Summary updated

BibTeX
@article{nguyen2024isomorphic,
  author = {Thanh Toan Nguyen and Thanh Tam Nguyen and Thanh Hung Nguyen and Hongzhi Yin and Thanh Thi Nguyen and Jun Hyung Jo and Quoc Viet Hung Nguyen},
  title = {{Isomorphic Graph Embedding for Progressive Maximal Frequent Subgraph Mining}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2024},
  doi = {10.1145/3630635},
}
Figure