Is Heterophily A Real Nightmare For Graph Neural Networks on Performing Node Classification?

Sitao Luan, Chenqing Hua, Qincheng Lu, Jiaqi Zhu, Harry Zhao, Shuyuan Zhang, Xiao-Wen Chang, Doina PrecupICLR 2022

TL;DR

This paper challenges the notion that heterophily (connected nodes having different attributes) is universally detrimental to Graph Neural Networks (GNNs). They introduce new metrics to better understand heterophily's impact and propose an Adaptive Channel Mixing (ACM) framework that leverages aggregation, diversification, and identity channels to significantly boost GNN performance on heterophilous graphs, often achieving state-of-the-art results.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for learning from graph-structured data, largely due to their "homophily assumption" – the idea that connected nodes tend to be similar. However, real-world graphs often exhibit "heterophily," where connected nodes are dissimilar. This heterophily has been blamed for GNN performance degradation, leading to a surge of research trying to mitigate its effects. This paper questions whether all forms of heterophily are indeed harmful and proposes a more nuanced approach to understanding and addressing it. They highlight that existing homophily metrics might be insufficient to predict GNN performance in heterophilous settings.

Methods

The authors introduce novel metrics for evaluating homophily and heterophily that go beyond simple edge or node label consistency. These metrics are derived from a similarity matrix that considers both graph structure and node features, offering a more comprehensive view of how GNNs process information.

The core technical contribution is the Adaptive Channel Mixing (ACM) framework. This framework treats GNN layers as a "filterbank," adaptively combining information from three channels:

  1. Aggregation (Low-Pass Filter): Standard GNN message passing, which tends to smooth features.
  2. Diversification (High-Pass Filter): A complementary operation that emphasizes differences, helping to distinguish nodes that might become indistinguishable after aggregation.
  3. Identity Channel: Direct passage of node features.

ACM learns to weigh these channels differently for each node, allowing the network to tailor its information processing based on local graph structure and feature characteristics. This is implemented by extracting features from each channel, learning node-specific weights for these channels using a softmax function, and then mixing them.

Datasets

The paper uses a combination of synthetic and real-world datasets:

  • Synthetic Graphs: Generated with varying levels of edge homophily to test the proposed metrics and the ACM framework's ability to handle different heterophily scenarios.
  • Real-World Datasets: The authors evaluate their ACM-augmented GNNs on 10 standard node classification benchmarks, including: Cora, CiteSeer, PubMed, Chameleon, Squirrel, Wisconsin, Texas, Film, Cornell, and Deezer-Europe.

Key Insights and Ideas

  • Not all heterophily is bad: The paper demonstrates that some heterophilous structures, particularly when combined with appropriate aggregation, can still allow nodes to remain distinguishable. This challenges the blanket assumption that heterophily is always a "nightmare."
  • Existing homophily metrics are insufficient: The proposed similarity-based metrics better capture the relationship between graph structure and GNN performance than traditional metrics like edge or node homophily, especially on synthetic graphs.
  • Diversification is key: The authors show that a "diversification" operation (akin to a high-pass filter) can effectively address certain types of harmful heterophily that aggregation alone cannot.
  • Adaptive channel mixing is powerful: By adaptively combining aggregation, diversification, and identity channels, the ACM framework allows GNNs to leverage graph information more effectively, leading to significant performance gains. The node-wise weighting is crucial, as different nodes benefit from different channel combinations.

Key Results

  • The proposed metrics demonstrate better correlation with GNN performance on synthetic graphs compared to existing homophily metrics.
  • The ACM framework, when applied to baseline GNNs (like SGC and GCN), consistently achieves significant performance improvements on 10 real-world node classification tasks.
  • ACM-augmented models often exceed state-of-the-art GNNs on these heterophilous datasets, with improvements reported as high as 12.89% in some cases (Table 1).
  • The ACM framework does not incur significant computational burden, with running times approximately doubling compared to baselines, which is considered acceptable for the performance gains.

Limitations and Future Work

  • Limitations of Diversification: The authors acknowledge that diversification might not work well in all harmful heterophily cases, particularly in imbalanced datasets with multiple small clusters connected to a large one. In such scenarios, the surrounding differences might be too similar for diversification to effectively discriminate nodes.
  • Future Work: The paper suggests that the ACM framework can be applied to a wider range of GNN architectures. Further exploration into the theoretical underpinnings of adaptive channel mixing and its application to other graph learning tasks (e.g., graph classification, link prediction) would be valuable. The authors also plan to release their code and generated data for reproducibility.

Summary updated

BibTeX
@inproceedings{luan2022is,
  author = {Sitao Luan and Chenqing Hua and Qincheng Lu and Jiaqi Zhu and Harry Zhao and Shuyuan Zhang and Xiao-Wen Chang and Doina Precup},
  title = {{Is Heterophily A Real Nightmare For Graph Neural Networks on Performing Node Classification?}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=LBv-JtAmm4P},
}
Figure