NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HeterGCL: Graph Contrastive Learning Framework on Heterophilic Graph

Chenhao Wang, Yong Liu, Yan Yang, Wei LiIJCAI 2024

Abstract

HeterGCL is a novel graph contrastive learning (GCL) framework designed specifically for heterophilic graphs—networks where connected nodes often have different labels or features (e.g., "opposites attract"). By replacing destructive random augmentations with an adaptive neighbor aggregation strategy and a dual-branch semantic learning module, HeterGCL achieves state-of-the-art performance on both heterophilic and homophilic benchmarks.

What Problem Does This Paper Address?

Most Graph Neural Networks (GNNs) and GCL methods rely on the homophily assumption: the idea that linked nodes are likely to be similar. In homophilic graphs (like citation networks), this works effectively. However, many real-world networks are heterophilic (e.g., predator-prey networks or chemical interactions), where linked nodes are often different.

Traditional GCL methods struggle in these settings for two primary reasons:

  1. Destructive Augmentation: Standard GCL creates "views" by randomly dropping edges or nodes. In heterophilic graphs, this can destroy the complex structural signals needed to distinguish node classes.
  2. Implicit Smoothing: Most GCL encoders use standard GNNs that iteratively aggregate neighbor features. In heterophilic settings, this "smooths" different features together, leading to noisy, indistinguishable representations.
Standard random augmentation can be destructive in heterophilic graphs, removing critical structural information.

Methods

The authors propose HeterGCL, which moves away from the traditional "augmentation-encoding-contrast" paradigm toward a more nuanced structural and semantic exploration:

  • Adaptive Neighbor Aggregation (ANA): Instead of random edge dropping, ANA explicitly groups neighbors based on their shortest path distance (layers). This "untangles" the signals from different hops, preventing information from different layers from interfering with each other. It uses an Adaptive Neighbor Contrastive Loss (ANCLoss) to learn local-to-global structural patterns.
  • MLP-based Encoding: To avoid the over-smoothing effect of GNNs, HeterGCL uses a Simple Multi-Layer Perceptron (MLP) as the primary encoder. This allows the model to process features and structure independently.
  • Original Feature Analysis (OFA): This branch focuses on preserving the raw semantic information of nodes. It uses a feature-level self-supervised approach (invariant regularization) to maximize mutual information between node embeddings and original features without needing negative samples.
  • Latent Feature Graphs (LFLoss): Since nodes in heterophilic graphs might share features even if they aren't directly connected, this module uses a Gaussian Mixture Model (GMM) to perform soft clustering in the feature space. It encourages nodes that are "semantically similar" (in the same cluster) to have similar representations.

Key Insights and Ideas

  • The "Layer" Matters: The authors found that in heterophilic graphs, the "homophily level" varies wildly across different neighbor hops. ANA's ability to isolate these hops allows the model to pick up useful signals from distant nodes that a standard GNN would wash out.
Homophily levels across different layers for Cora (homophilic) and Texas (heterophilic) datasets.
  • Structure vs. Semantics: By separating the learning into a structural branch (ANA) and a semantic branch (OFA/LFLoss), the model can handle cases where the graph topology is misleading but the node features are informative, or vice versa.
  • Abandoning Randomness: The paper argues that for complex graphs, "principled" augmentation (like ANA) is superior to "random" augmentation (dropping edges), as the latter often removes the very "high-frequency" structural information that defines heterophilic relationships.

Key Results

  • Node Classification: HeterGCL significantly outperformed both self-supervised (e.g., GRACE, BGRL) and supervised baselines (e.g., GCN, GAT) on heterophilic datasets. For example, on the Cornell dataset, it achieved 75.5% accuracy, compared to the next best self-supervised model at 56.7%.
  • Node Clustering: The framework showed a massive lead in clustering metrics (ACC, NMI, ARI). On Texas, HeterGCL achieved an NMI of 39.0, while most baselines struggled below 25.0.
  • Generalization: While designed for heterophily, HeterGCL remained highly competitive on homophilic graphs like Cora and Citeseer, proving it is a robust general-purpose framework.

Limitations and Future Work

  • Hyperparameter Sensitivity: The model introduces several hyperparameters, such as the maximum path length ($L$) and the weight factor ($\alpha$) for balancing losses. The optimal $L$ varies by dataset (e.g., $L=2$ for Cornell vs. $L=4$ for Citeseer).
  • Computational Complexity: The use of GMM-based soft clustering and multi-hop matrix powers ($A^l$) could become computationally expensive on extremely large-scale graphs with millions of nodes.
  • Future Directions: The authors suggest further exploring how to automatically tune the "scope" of neighbor aggregation without manual hyperparameter search.

Summary updated

BibTeX
@inproceedings{wang2024hetergcl,
  author = {Chenhao Wang and Yong Liu and Yan Yang and Wei Li},
  title = {{HeterGCL: Graph Contrastive Learning Framework on Heterophilic Graph}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure