Approximate Network Motif Mining Via Graph Learning

Carlos G. Oliver, Dexiong Chen, Vincent Mallet, Pericles Philippopoulos, Karsten M. BorgwardtarXiv 2022 · DOI

Introduction

Network motifs—small, recurring subgraphs—are fundamental building blocks for understanding complex systems, from biological pathways to social networks. However, traditional motif mining faces two primary challenges: NP-hard computational complexity and a rigid requirement for exact structural isomorphisms. In real-world scenarios, data is often noisy, causing exact-match algorithms to overlook "almost" identical patterns that carry significant functional meaning.

To address these limitations, we introduce MotiFiesta, a framework that shifts the paradigm from exhaustive search to approximate motif discovery through graph learning. By treating motif discovery as a node-labeling task, MotiFiesta allows for the rapid identification of over-represented patterns in seconds rather than hours.

The MotiFiesta Framework

MotiFiesta redefines motif discovery as a node-labeling task, bypassing the need for expensive subgraph isomorphism tests. The architecture is built upon three core components:

  1. Learnable Edge Contraction: Utilizing EdgePool layers, the model iteratively collapses adjacent nodes into single "pooled" nodes. This process hierarchically constructs larger subgraphs while ensuring connectivity.
  2. Dual-Loss Objective:
    • Representation Loss: This ensures that nodes with similar local topologies are mapped to similar vector embeddings. It leverages the Wasserstein Weisfeiler Leman (WWL) graph kernel as a ground-truth similarity metric.
  3. Concentration Loss: This component acts as a density estimator. Using k-Nearest Neighbors, it identifies embeddings that are over-represented in the target graph compared to randomized "null" models, effectively highlighting potential motifs.
  4. Decoding via Hashing: Continuous embeddings are converted back into discrete motif labels using Locality Sensitive Hashing (LSH). This groups similar subgraphs into "buckets," which are then ranked by their statistical significance.
MotiFiesta architecture: transforming a graph into node-level motif embeddings.

The edge-level representations are critical for capturing the structural nuances required for the representation loss, mapping local connectivity to a latent space.

Edge-level latent representation z_uv used for structural encoding.

Experimental Setup

The framework was evaluated using both synthetic and real-world datasets:

  • Synthetic Benchmarks: 1,000-graph datasets generated via Erdös-Reyni models, injected with specific motifs (cliques, barbells, stars). Noise was introduced through edge deletions and additions to test robustness.
  • Real-World Validation: Datasets including PROTEINS, COX2, and IMDB-BINARY were used to assess MotiFiesta's utility in unsupervised pre-training for graph classification tasks.

Results and Key Insights

MotiFiesta demonstrates significant improvements in both speed and robustness over traditional methods like Mfinder.

  • Efficiency and Scalability: While exact methods often crash on motifs larger than 5 nodes or take hours to compute, MotiFiesta’s decoding phase completes in approximately 10 seconds. It successfully processed motifs of size 20 without performance degradation.
  • Robustness to Noise: MotiFiesta maintains high recovery accuracy even with up to 5% edge distortion—a threshold where exact-match tools typically fail. It was particularly effective at identifying barbells (M-Jaccard ~0.68) and cliques (M-Jaccard ~0.58).
  • Unsupervised Feature Extraction: Motifs discovered by MotiFiesta served as powerful features for graph classification. The model achieved 73.1% accuracy on PROTEINS and 80.7% on COX2, matching the performance of fully supervised Graph Neural Networks (GNNs) like GCN and GIN.

Conclusion and Future Work

MotiFiesta offers a scalable, noise-tolerant alternative to traditional network motif mining. By leveraging differentiable graph learning, it enables the discovery of statistically significant patterns in large-scale, noisy datasets.

Future research will focus on reducing the quadratic complexity of the WWL kernel for massive datasets and refining the LSH decoding phase to improve sensitivity for sparse motifs. Additionally, exploring more sophisticated graph partition models could further enhance the precision of approximate discovery.

Summary updated

BibTeX
@misc{oliver2022approximate,
  author = {Carlos G. Oliver and Dexiong Chen and Vincent Mallet and Pericles Philippopoulos and Karsten M. Borgwardt},
  title = {{Approximate Network Motif Mining Via Graph Learning}},
  year = {2022},
  eprint = {2206.01008},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.01008},
}
Figure