MECCH: Metapath Context Convolution-based Heterogeneous Graph Neural Networks

Xinyu Fu, Irwin King

TL;DR

This paper introduces MECCH, a novel Heterogeneous Graph Neural Network (HGNN) that addresses performance degradation and computational inefficiency in existing metapath-based models. By leveraging "metapath contexts" – a new graph structure that captures comprehensive information without redundancy – MECCH achieves state-of-the-art results in node classification and link prediction tasks while being more computationally efficient.

What Problem Does This Paper Address?

Heterogeneous graphs, which contain multiple types of nodes and edges (e.g., a movie network with actors, movies, and directors), are common in real-world data. Learning representations from these graphs is challenging due to their complex structure. While Graph Neural Networks (GNNs) have shown promise, existing methods for heterogeneous graphs often struggle with performance degradation when they become deep (due to issues like over-smoothing) or suffer from high computational costs and information loss. Metapath-based HGNNs aim to mitigate this by using predefined sequences of node and edge types (metapaths) to capture long-range dependencies. However, current metapath-based approaches either lose information (like HAN) or become computationally expensive due to redundant computations (like MAGNN and GTN). This paper seeks to bridge this gap by proposing a method that is both effective and efficient.

Methods

The authors propose MECCH, a novel HGNN built upon a general framework for metapath-based HGNNs, which consists of four components: feature preprocessing, local subgraph reconstruction (LSR), metapath-specific graph convolution (MGC), and metapath fusion (MF). MECCH introduces novel designs for the latter three components:

  • Metapath Context Construction: Instead of using metapath-guided neighbors (HAN) or metapath instances (MAGNN), MECCH constructs "metapath contexts." A metapath context is a local subgraph centered around a target node, capturing all nodes within a specific metapath's structure exactly once. This aims to prevent information loss and avoid redundant computations.
  • Metapath Context Encoder: This component encodes the information within each metapath context. MECCH uses a mean graph pooling strategy for this, which is efficient and effective.
  • Convolutional Metapath Fusion: To combine the representations from different metapaths, MECCH employs an efficient 1-D convolutional kernel. This allows for adaptive learning of the importance of each metapath for the downstream task, overcoming limitations of attention-based fusion methods that require full-batch training.

Datasets

The paper evaluates MECCH on five real-world heterogeneous graph datasets:

  • For Node Classification: IMDB, ACM, and DBLP. These datasets represent movie information, academic networks, and author networks, respectively.
  • For Link Prediction: LastFM and PubMed. These datasets represent music listening information and a biomedical knowledge graph.

The authors note that they reran experiments on pre-processed datasets to ensure fair comparisons, as scores from original papers are not directly comparable due to different preprocessing pipelines.

Key Insights and Ideas

  • Metapath Contexts are Key: The core innovation is the "metapath context," which effectively captures node information within a metapath's structure without redundancy. This is a novel way to represent the local neighborhood information guided by metapaths.
  • Efficiency Through Structure: By design, metapath contexts ensure each node within the receptive field is aggregated only once, leading to significant computational efficiency gains compared to methods that aggregate redundant information.
  • Simplicity Can Be Powerful: The use of mean graph pooling for context encoding and 1-D convolution for fusion demonstrates that simpler, efficient mechanisms can outperform more complex, parameter-intensive ones (like attention) in certain contexts, especially when avoiding overfitting and computational burden.
  • Metapath Length Matters: The study shows that leveraging larger metapath contexts (longer K) generally improves performance, but there's a point of diminishing returns, suggesting that the optimal metapath length is dataset-dependent.

Key Results

  • Node Classification: MECCH consistently outperforms state-of-the-art baselines (RGCN, HGT, Simple-HGN, HAN, MAGNN, GTN) on IMDB, ACM, and DBLP datasets, achieving an average performance gain of around 2.59%.
  • Link Prediction: MECCH also achieves superior results on LastFM and PubMed datasets, with improvements of 1.51% and 4.00% over the strongest baselines, respectively, and exhibits smaller ROC-AUC variances, indicating higher stability.
  • Efficiency: MECCH is significantly more efficient than MAGNN and GTN in terms of training time and memory usage. It also outperforms HAN in efficiency while achieving better performance.
  • Ablation Studies: The results confirm the effectiveness of metapath contexts, with MECCH-KHop (without contexts), MECCH-HAN, and MECCH-MAGNN showing lower performance. The study also highlights the superiority of mean graph pooling over attention for context encoding and 1-D convolution over attention-based fusion.

Limitations and Future Work

  • Scalability: The authors acknowledge that applying MECCH to web-scale datasets (like AMiner or MAG) remains a challenge due to substantial computational costs, and plan to address this in future work.
  • Further Enhancements: They also propose exploring various training paradigms, such as self-supervised learning, contrastive learning, and federated learning, by using MECCH as an encoder to further boost prediction accuracy.

Summary updated

BibTeX
@article{fu2024mecch,
  author = {Xinyu Fu and Irwin King},
  title = {{MECCH: Metapath Context Convolution-based Heterogeneous Graph Neural Networks}},
  journal = {Neural Networks},
  year = {2024},
  doi = {10.1016/j.neunet.2023.11.030},
}
Figure