Learning heterophilious edge to drop: A general framework for boosting graph neural networks

Jincheng Huang, Ping Li, Rui Huang, Chen NaarXiv 2022 · DOI

Abstract

Graph representation learning aims at integrating node contents with graph structure to learn node and graph representations. Nevertheless, many existing graph learning methods struggle with data exhibiting high heterophily, where a large proportion of edges connect nodes with different class labels. This paper investigates the role of heterophily in graph representation learning and proposes an end-to-end "spotting-then-aggregating" framework. This framework learns to classify edge types (homophilous vs. heterophilous) and leverages this information to improve the expressiveness of Graph Neural Networks (GNNs). We implement this through two strategies: structure optimization via heterophilous edge deletion and aggregation optimization via hybrid message passing. Extensive experiments demonstrate remarkable performance improvements across the full spectrum of homophily levels.

Introduction

Standard Graph Neural Networks (GNNs) typically operate on the principle of homophily—the assumption that connected nodes are likely to share the same labels. These models function by smoothing features across neighbors, which is effective for homophilous graphs but detrimental for heterophilous ones (e.g., matchmaking networks or predator-prey graphs). When a standard GNN smooths features across heterophilous edges, it effectively washes out the unique characteristics of different classes, leading to poor classification performance. This research addresses whether heterophily is inherently harmful or if the issue lies in the aggregation mechanism, proposing that identifying the relationship type of an edge is the key to unlocking better performance.

The Spotting-then-Aggregating (SA) Framework

The proposed framework consists of two primary stages: edge classification ("spotting") followed by specialized feature aggregation.

  1. Edge Spotting: A binary classifier is trained to predict whether an edge is homophilous (connecting same-label nodes) or heterophilous (connecting different-label nodes). To enable end-to-end training, the authors introduce BackMax, a method inspired by Gumbel-Softmax that allows gradients to flow through discrete edge-dropping decisions.
  2. Aggregating: Two distinct strategies are implemented to utilize these edge labels:
  3. Structure Optimization: A pruning approach where identified heterophilous edges are deleted, forcing the GNN to communicate only across similar nodes.
  4. Aggregation Optimization (Hybrid Message Passing): Instead of deletion, heterophilous edges are treated as negative signals. Homophilous neighbors are aggregated normally (low-pass filtering), while heterophilous neighbors are diversified (high-pass filtering), preserving class boundaries.
The SA framework implements two strategies: (a) structure optimization by deleting heterophilous edges and (b) aggregation optimization using hybrid message passing.

Experimental Results

The framework was evaluated on nine datasets spanning high homophily (e.g., Cora, Citeseer) and low homophily (e.g., Texas, Cornell, Wisconsin). The results indicate that the SA-enhanced models significantly outperform vanilla GNN baselines, particularly on heterophilous datasets.

As shown in the figure below, the SA-SGC variant achieves massive gains on heterophilous benchmarks. For instance, on the Texas dataset (homophily ratio 0.06), the vanilla SGC model's accuracy of 58.37% was boosted to 83.52% using the SA framework.

Comparison of accuracy between vanilla SGC and the proposed SA-SGC and SGC-Homo variants across three heterophilous datasets.

Key Insights

  • Heterophily as Information: While deleting heterophilous edges improves performance, leveraging them as negative signals (Method 2) is often superior. This suggests heterophilous edges carry useful structural information if handled correctly.
  • Over-smoothing Nuance: Deeply stacking layers (up to 50) does not necessarily hurt performance if the graph is perfectly homophilous. Over-smoothing is primarily a problem when it occurs between different classes.
  • Goal-Directed Sparsification: Unlike random edge deletion (e.g., DropEdge), task-oriented sparsification based on edge types is significantly more effective for improving model robustness.

Conclusion and Future Work

The "spotting-then-aggregating" framework provides a robust solution for GNNs to handle diverse graph structures. However, limitations remain, such as the potential for "homophily bias" in the edge classifier when dealing with highly imbalanced edge types. Future research will focus on improving edge type identification through unsupervised or self-supervised methods to further enhance the framework's generalizability in scenarios with limited labeled data.

Summary updated

BibTeX
@misc{huang2022learning,
  author = {Jincheng Huang and Ping Li and Rui Huang and Chen Na},
  title = {{Learning heterophilious edge to drop: A general framework for boosting graph neural networks}},
  year = {2022},
  eprint = {2205.11322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.11322},
}
Figure