Abstract
We investigate the representation power of graph neural networks in the semi-supervised node classification task under heterophily or low homophily, i.e., in networks where connected nodes may have different class labels and dissimilar features. Many popular GNNs fail to generalize to this setting, and are even outperformed by models that ignore the graph structure (e.g., multilayer perceptrons). Motivated by this limitation, we identify a set of key designs—ego- and neighbor-embedding separation, higher-order neighborhoods, and combination of intermediate representations—that boost learning from the graph structure under heterophily. We combine them into a graph neural network, $H_2GCN$, which we use as the base method to empirically evaluate the effectiveness of the identified designs. Our empirical analysis shows that the identified designs increase the accuracy of GNNs by up to 40% and 27% over models without them on synthetic and real networks with heterophily, respectively, and yield competitive performance under homophily.
Introduction
Most Graph Neural Networks (GNNs) are built on the assumption of homophily: the principle that connected nodes are likely to share similar attributes or labels. Standard architectures like GCN and GAT exploit this by "smoothing" or averaging features across neighborhoods. However, many real-world networks—such as dating networks, fraud networks, or protein-protein interactions—are heterophilous, meaning "opposites attract." In these scenarios, standard GNNs often perform poorly, sometimes even worse than a simple Multilayer Perceptron (MLP) that ignores the graph structure entirely. This paper identifies why GNNs fail under heterophily and proposes architectural fixes to overcome these limitations.
Effective Design Principles for Heterophily
Through systematic investigation, we identify three "Effective Designs" (D1-D3) that enable GNNs to handle heterophily:
- D1: Ego- and Neighbor-Embedding Separation: Instead of averaging a node's features with its neighbors (which "washes out" the signal if they are different), we maintain the node's own representation (ego) separate from its neighbors' representations via concatenation.
- D2: Higher-Order Neighborhoods: We explicitly aggregate information from both 1-hop and 2-hop neighbors. The intuition is that even if 1-hop neighbors are different, "neighbors of neighbors" (2-hop) are more likely to be similar to the ego node.
- D3: Combination of Intermediate Representations: The final classification layer uses representations from all previous rounds of aggregation, allowing the model to capture both local and global structural patterns adaptively.
The $H_2GCN$ Model
We combine these designs into a new architecture, $H_2GCN$. The model is intentionally streamlined: it performs a graph-agnostic feature embedding, followed by rounds of neighborhood aggregation (using D1 and D2) without non-linearities between layers, and finishes with a final combination step (D3). This design ensures the model preserves essential ego-features while effectively mining the graph structure for relevant signals.
Key Results and Empirical Evaluation
We evaluated $H_2GCN$ against standard GNNs on both synthetic and real-world datasets. Synthetic benchmarks allowed us to vary the homophily ratio ($h$) from 0 (perfect heterophily) to 1 (perfect homophily).
Our empirical analysis yielded several key insights:
- Massive Gains on Heterophily: On synthetic datasets with low homophily, $H_2GCN$ outperformed models like GCN and GAT by up to 40%.
- Real-World Superiority: On real-world heterophilous datasets (like university webpage graphs), $H_2GCN$ variants achieved the best results, outperforming standard GNNs by up to 27%.
- No Trade-offs: Unlike some specialized models, $H_2GCN$ does not sacrifice performance on traditional homophilous benchmarks like Cora or PubMed, where it remains highly competitive.
Conclusion
By identifying and implementing key design principles—embedding separation, higher-order neighborhoods, and intermediate representation combination—we demonstrate that GNNs can be made robust to heterophily. $H_2GCN$ serves as a strong baseline for future research into graph learning beyond the homophily assumption.
Summary updated