Mining Patterns in Networks using Homomorphism

Anton Dries, Siegfried NijssenarXiv 2011

TL;DR

Frequent pattern mining in graphs typically relies on subgraph isomorphism, an NP-complete problem that severely limits scalability. This paper introduces a novel algorithm that uses subgraph homomorphism to mine tree patterns in arbitrary networks in incremental polynomial time. By relaxing the strict one-to-one mapping requirement, the authors bypass exponential complexity bottlenecks while discovering patterns that are practically identical and often more interpretable.

What Problem Does This Paper Address?

Finding frequent patterns in large networks (like social networks or citation webs) is crucial for classification, clustering, and anomaly detection. However, standard graph mining tools rely on subgraph isomorphism to calculate how often a pattern appears. Isomorphism requires an injective (one-to-one) mapping: each node in the pattern must correspond to a unique node in the data. This constraint makes the problem NP-complete, causing algorithms to hit a wall on large datasets.

Furthermore, injectivity can miss intuitive relationships. For example, if you want to find authors who have published papers in both "Data mining" and "Databases," an isomorphism-based approach might fail to find a single unified pattern if it forces different pattern nodes to map to distinct real-world entities in restrictive ways.

An example of a pattern missed by subgraph isomorphism due to injectivity constraints.

Switching to subgraph homomorphism drops the injectivity requirement, allowing multiple pattern nodes to map to the same data node. While this makes support evaluation solvable in polynomial time, it introduces two major technical hurdles:

  1. Infinite Redundancy: An infinite number of distinct trees can be homomorphic to one another, leading to redundant results.
  2. Unbounded Patterns: In networks with cycles, patterns of infinite size can technically be considered "frequent."

Methods

The authors design a depth-first tree enumeration algorithm that reaps the performance benefits of homomorphism while neutralizing its structural challenges:

  • Core Trees: To eliminate redundancy, the algorithm restricts its output to "core trees"—the minimal structural representatives of a homomorphism equivalence class. If a tree contains a subtree that is homomorphic to another part of itself, it is reduced to its core.
  • Canonical Codes: The algorithm utilizes a depth-first canonical string representation to ensure that each unique tree shape is evaluated exactly once, eliminating the need for expensive, explicit isomorphism checks during traversal.
  • Path-Based Constraints: To prevent the algorithm from chasing infinite patterns in cyclic data, the authors introduce anti-monotonic constraints (such as Depth Constraints, Label Constraints, or Additional Cover Constraints) that guarantee the search space remains finite.
  • Incremental Support Evaluation: Instead of calculating pattern frequency from scratch, the algorithm dynamically maintains and updates "image lists" for nodes along the right-most path of the tree pattern, keeping the computational cost strictly polynomial.
Example of a core tree ($T_1$) and a reducible non-core tree ($T_2$).

Datasets

The algorithm was evaluated on three real-world network datasets:

  • ILPNet: An authorship network mapping papers, authors, institutes, and keywords (2,998 nodes, 7,906 edges, 186 labels).
  • WebKB: A web link network representing computer science department webpages from four universities (81,068 nodes, 160,368 edges, 781 labels).
  • Wikipedia Schools: A curated network of Wikipedia pages and their associated categories (11,700 nodes, 109,216 edges, 16 labels).

Key Insights and Ideas

  • Injectivity is an Expensive Luxury: Forcing a strict one-to-one mapping is the primary source of exponential slowdowns in graph mining. Dropping it yields massive computational savings without sacrificing the practical utility of the discovered patterns.
  • Cleaner Patterns without Implicit Clutter: Isomorphism-based mining often generates a massive volume of candidate patterns that merely encode implicit degree constraints (e.g., a node having multiple distinct neighbors). Homomorphism naturally filters out this structural noise, yielding more interpretable, condensed representations.
  • Finiteness via Paths: Even in highly cyclic networks, ensuring the finiteness of individual paths from the root node is sufficient to guarantee that the entire tree-pattern mining space remains finite.

Key Results

  • Significant Speedups: The homomorphism-based approach (h-mine) scales smoothly as the maximum pattern size increases. In contrast, isomorphism-based baselines (i-mine) suffer from exponential runtime explosions due to the cost of calculating injective support.
  • Highly Correlated Support Counts: In practice, the support counts obtained via homomorphism are remarkably close to those obtained via isomorphism. This proves that the computational relaxation does not degrade the quality or relevance of the discovered frequent patterns.
  • Fewer Closed Patterns: Homomorphism drastically reduces the number of closed patterns on datasets like ILPNet because it avoids generating redundant variations that differ only by implicit degree constraints.

Limitations and Future Work

  • Restricted to Trees: The proposed framework is specifically tailored for mining tree patterns within arbitrary networks, rather than arbitrary graph patterns (which remain challenging due to potential cyclic homomorphic complexities).
  • Theoretical Delay Bounds: While the algorithm runs in incremental polynomial time (the time to find the next pattern is polynomial relative to the input and all previously discovered patterns), achieving polynomial delay (where the time between any two consecutive outputs is strictly bounded) remains an open theoretical question.
  • Explicit Degree Constraints: The authors suggest that future work could focus on extending the homomorphism framework to explicitly incorporate degree constraints when users specifically want to capture node-branching characteristics.

Summary updated

BibTeX
@misc{dries2011mining,
  author = {Anton Dries and Siegfried Nijssen},
  title = {{Mining Patterns in Networks using Homomorphism}},
  year = {2011},
  eprint = {1110.3225},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1110.3225},
}
Figure