Is Heterophily A Real Nightmare For Graph Neural Networks To Do Node Classification?

Sitao Luan, Chenqing Hua, Qincheng Lu, Jiaqi Zhu, Mingde Zhao, Shuyuan Zhang, Xiao-Wen Chang, Doina PrecuparXiv 2021

TL;DR

This paper argues that heterophily isn't always a death knell for Graph Neural Networks (GNNs) in node classification. They introduce new metrics to better understand heterophily's impact and propose an Adaptive Channel Mixing (ACM) framework that combines aggregation (low-pass) and diversification (high-pass) filters to effectively handle heterophilous graphs, achieving state-of-the-art results.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) excel at learning from graph-structured data by leveraging the "homophily assumption" – the idea that connected nodes share similar attributes. However, in many real-world scenarios, graphs exhibit "heterophily," where connected nodes are dissimilar. This heterophily often leads to GNNs underperforming simpler graph-agnostic models like Multi-Layer Perceptrons (MLPs). While previous work has focused on addressing heterophily, this paper questions whether all forms of heterophily are detrimental and proposes a more nuanced approach.

Methods

The authors introduce several key innovations:

  • New Homophily Metrics: They propose metrics based on a "similarity matrix" derived from backpropagation analysis. This matrix captures the influence of both graph structure and node features on GNNs, offering a more insightful view of homophily than traditional edge- or node-based metrics.
  • Diversification Operation: They highlight that a "diversification" (high-pass) operation, in contrast to the typical "aggregation" (low-pass) in GNNs, can actually help address certain types of harmful heterophily by emphasizing neighborhood differences.
  • Adaptive Channel Mixing (ACM) Framework: This is the core contribution. ACM combines aggregation, diversification, and an identity channel in each GNN layer. It adaptively learns to mix these channels for each node, allowing the model to leverage the most relevant information (low-frequency for homophilous parts, high-frequency for heterophilous parts) to improve performance on heterophilous graphs. They also propose ACMII, a variant with a slightly different feature extraction step.

Datasets

The paper evaluates their proposed methods on:

  • Synthetic Graphs: 280 graphs generated with varying levels of edge homophily to systematically study the impact of heterophily and validate their new metrics.
  • Real-World Datasets: 10 standard node classification datasets: Cornell, Wisconsin, Texas, Film, Chameleon, Squirrel, Cora, CiteSeer, PubMed, and Deezer-Europe.

Key Insights and Ideas

  • Not all heterophily is bad: The paper demonstrates that some heterophilous structures, even those that appear problematic according to traditional metrics, can be handled effectively by GNNs, especially when combined with appropriate operations.
  • Traditional homophily metrics are insufficient: The authors show through synthetic experiments that existing metrics like edge homophily don't always correlate well with GNN performance, particularly in identifying the "sweet spot" where heterophily becomes most detrimental.
  • Diversification is key for heterophily: The research highlights the importance of high-pass filtering (diversification) in addition to low-pass filtering (aggregation) for effectively processing heterophilous graph signals.
  • Adaptive mixing is crucial: Simply combining different filter channels isn't enough; adaptively learning how to mix them for each node is essential for maximizing performance on diverse graph structures.

Key Results

  • Improved Metrics: The proposed similarity-based metrics better characterize the relationship between graph structure and GNN performance on synthetic datasets compared to traditional homophily metrics.
  • ACM Framework Performance: ACM-augmented GNNs (SGC and GCN) consistently achieve significant performance gains on node classification tasks across 10 real-world datasets.
  • State-of-the-Art Results: ACM(II)-GCN models achieve state-of-the-art performance on 8 out of 10 datasets, outperforming existing GNNs without a substantial increase in computational cost. For example, on the Chameleon dataset, ACM-GCN achieved a 69.21% accuracy compared to GCN's 65.27%.

Limitations and Future Work

  • Diversification Limitations: The paper acknowledges that diversification operation may not work well in all heterophily cases, particularly in imbalanced datasets with small clusters connected to a large cluster, where neighborhood differences might be too similar.
  • Nonlinearity: The current similarity metrics primarily capture linear relationships. Future work could explore metrics that account for nonlinearity in node features.
  • More Challenging Heterophily: The authors suggest exploring and addressing more complex heterophilous graph scenarios beyond the scope of the current filterbank approach.

Summary updated

BibTeX
@misc{luan2021is,
  author = {Sitao Luan and Chenqing Hua and Qincheng Lu and Jiaqi Zhu and Mingde Zhao and Shuyuan Zhang and Xiao-Wen Chang and Doina Precup},
  title = {{Is Heterophily A Real Nightmare For Graph Neural Networks To Do Node Classification?}},
  year = {2021},
  eprint = {2109.05641},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.05641},
}
Figure