Beyond Frequencies: Graph Pattern Mining in Multi-weighted Graphs

Giulia Preti, Matteo Lissandrini, Davide Mottin, Yannis Velegrakis

Abstract

Traditional graph pattern mining relies on frequency to determine importance, often ignoring edge weights such as user ratings or interaction strengths. This paper introduces ReSuM (Relevant Subgraph Miner), a framework designed to efficiently mine patterns in large graphs where edges have weights. Crucially, it scales to "multi-weighted" graphs where thousands of different users might weight the same graph differently. By clustering similar weighting functions based on edge labels, the authors achieve massive speedups while retaining high precision and 100% recall.

Introduction: The Challenge of Weighted Graphs

Graph pattern mining aims to find recurring structural patterns in large networks, which is essential for applications like fraud detection and product recommendation. Historically, algorithms have relied on the apriori property: a pattern cannot appear more frequently than its sub-patterns. This anti-monotonicity allows for efficient pruning of the search space.

However, real-world edges often carry weights (e.g., transaction amounts). A rare pattern might be highly significant due to its weight. Simply incorporating weights into scoring functions usually breaks the apriori property, making efficient mining difficult. The problem is compounded in personalized contexts where a single graph may have thousands of different weighting functions—one for each user.

Example of a multi-weighted graph where edges carry distinct weight vectors for different users.

Methodology: The ReSuM Framework

To address these challenges, the authors propose ReSuM (Relevant Subgraph Miner). ReSuM evaluates pattern relevance using scoring functions based on Minimum Image-based (MNI) support, which naturally preserves the apriori property.

The framework includes two primary algorithms:

  1. Exact Algorithm (ReSuM): This algorithm traverses the graph once and evaluates patterns against all weighting functions simultaneously using compact binary arrays.
  2. Approximate Algorithm (ReSuM approximate): To handle extreme scales (e.g., 50,000 users), this version clusters similar weighting functions. To avoid the curse of dimensionality, clustering is performed on edge labels (e.g., general preference for "Action Movies") rather than individual edges. A "representative" weighting function is created for each cluster using the maximum weight, ensuring 100% recall.

Experimental Setup and Datasets

The authors evaluated ReSuM on four diverse real-world datasets, ranging from citation networks to product review graphs.

Detailed statistics of the CiteSeer, Freebase, and Amazon datasets used for evaluation.

For the Amazon dataset, real user review scores were used as weights. For CiteSeer and Freebase, the authors conducted a Crowdflower user study to generate realistic synthetic weight distributions based on human preferences.

Key Insights and Results

  • Relevance vs. Frequency: The study found that standard frequency-based mining often returns "junk." Over 50% of the most frequent patterns had low weights and were irrelevant to users.
  • Scalability and Speed: While the exact algorithm is memory-intensive, the approximate version scales easily to 50,000 weighting functions, running up to two orders of magnitude faster than exact baselines.
  • High Quality: The approximate results maintain high structural integrity, with a very low edit distance compared to exact mining results.
  • Pruning Efficiency: By using strict scoring functions like ALL, ReSuM filters out more than half of the patterns returned by standard miners, focusing only on high-value structures.

Conclusion and Future Work

The exact algorithm's memory footprint scales linearly with the number of weighting functions, necessitating the approximate approach for very large scales. Future work will focus on automatic parameter selection for clustering and establishing formal theoretical bounds on approximation quality.

Summary updated

BibTeX
@inproceedings{preti2018beyond,
  author = {Giulia Preti and Matteo Lissandrini and Davide Mottin and Yannis Velegrakis},
  title = {{Beyond Frequencies: Graph Pattern Mining in Multi-weighted Graphs}},
  booktitle = {EDBT},
  year = {2018},
  doi = {10.5441/002/edbt.2018.16},
}
Figure