Heterogeneous Graph Neural Networks using Self-supervised Reciprocally Contrastive Learning

Di Jin, Cuiying Huo, Jianwu Dang, Peican Zhu, Weixiong Zhang, Witold Pedrycz, Lingfei Wu

TL;DR

This paper introduces HGCL, a novel self-supervised learning method for heterogeneous graphs. HGCL addresses the challenge of noisy data and complex structures by employing two complementary "views" – one focusing on node attributes and the other on graph topology – and a reciprocal contrastive mechanism to learn robust node representations.

What Problem Does This Paper Address?

Heterogeneous graphs, which represent complex systems with diverse node and edge types (e.g., transportation networks, the World Wide Web), are powerful but challenging to model. Traditional methods, like Heterogeneous Graph Neural Networks (HGNNs), often require labeled data, which is expensive and time-consuming to obtain. While self-supervised learning, particularly contrastive learning, has emerged as a solution, existing methods struggle with the inherent complexity and noise in heterogeneous graphs. They often rely on simple data perturbations or pre-defined structural properties (like meta-paths) that can be unreliable. This paper tackles the problem of learning effective and robust node representations from noisy and complex heterogeneous graphs without relying on explicit labels.

Methods

The core of HGCL lies in its reciprocal contrastive optimization framework, which leverages two distinct "views" of the graph:

  • Attribute-guided view: This view reconstructs graph structures (both homogeneous and heterogeneous edges) by leveraging node attribute similarities. It then uses a graph neural network (GNN) to aggregate information from these reconstructed edges, aiming to capture rich attribute-based representations.
  • Topology-guided view: This view utilizes pre-defined meta-paths as structural priors. It employs a hierarchical message aggregation process, first within individual meta-paths and then across different meta-paths, to learn topology-aware representations.

The key innovation is the reciprocal contrastive mechanism that integrates and enhances these two views. It achieves this by:

  1. High-quality sample selection: Positive and negative sample pairs are selected based on both attribute similarity and topological correlation. This ensures that only genuinely related nodes are considered positive, and dissimilar ones are negative, making the learning process more robust to noise.
  2. Mutual supervision: The two views are trained to mutually supervise each other, leading to a more comprehensive understanding of the graph's structure and attributes.

Datasets

The authors evaluated HGCL on four widely-used heterogeneous graph datasets:

  • ACM: A citation network dataset.
  • Yelp: A dataset of businesses, users, and services.
  • DBLP: A co-authorship and publication dataset.
  • AMiner: Another academic publication and author dataset.

Key Insights and Ideas

  • Dual-view learning is crucial for heterogeneous graphs: Simply relying on attribute perturbations or meta-paths is insufficient. Combining attribute and topology information through distinct views is essential for robust representation learning.
  • High-quality sample selection is key to contrastive learning on noisy graphs: By requiring both attribute similarity and topological correlation for positive samples, HGCL effectively filters out noisy connections and focuses on genuinely informative relationships.
  • Reciprocal enhancement between views boosts performance: The interaction and mutual supervision between the attribute-guided and topology-guided views allow the model to compensate for weaknesses in one view with the strengths of the other, leading to more robust embeddings.
  • Robustness to noise is a significant advantage: HGCL demonstrates superior performance and stability compared to methods relying solely on pre-defined structural properties, especially when faced with edge deletions or attribute masking.

Key Results

  • State-of-the-art performance: HGCL consistently outperformed thirteen baseline methods (including six semi-supervised and seven unsupervised approaches) on node classification tasks across all four datasets, achieving up to an 11.96% improvement in Macro-F1 over the best baseline.
  • Strong node clustering results: HGCL also demonstrated superior performance in node clustering tasks, outperforming baselines by up to 3.06% in NMI and 2.97% in ARI.
  • Robustness: HGCL showed significantly better and more stable performance than the baseline HeCo under scenarios with random edge deletion and attribute masking, highlighting its resilience to noisy data.
  • Effective parameter tuning: The study showed that HGCL's performance is relatively stable within certain ranges for key hyperparameters like attribute similarity threshold ($\epsilon_a$) and meta-path weight coefficient ($\delta$).

Limitations and Future Work

  • Topology-guided view limitations: The authors acknowledge that in the topology-guided view, they currently only use the attributes of the target node type for message passing, indirectly utilizing information from other node types via meta-paths. They plan to explore new message propagation mechanisms to more comprehensively encode information within meta-paths.
  • Sample selection mechanism: The current positive/negative sample pair selection is a two-stage process. Future work aims to design a more effective, end-to-end adaptive mechanism for sample selection.
  • Classic contrastive learning paradigm: HGCL adheres to the classic graph contrastive learning paradigm. The authors intend to explore and apply other self-supervised techniques to heterogeneous graph analysis.

Summary updated

BibTeX
@article{jin2022heterogeneous,
  author = {Di Jin and Cuiying Huo and Jianwu Dang and Peican Zhu and Weixiong Zhang and Witold Pedrycz and Lingfei Wu},
  title = {{Heterogeneous Graph Neural Networks using Self-supervised Reciprocally Contrastive Learning}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2022},
  url = {https://openreview.net/forum?id=i2Y1o31YJvB},
}
Figure