Introduction
Graph Neural Networks (GNNs) have traditionally operated under the homophily assumption—the idea that "birds of a feather flock together." While this inductive bias has proven successful for node classification, its impact on link prediction (LP) remains less understood. Link prediction, the task of determining the likelihood of an edge between two nodes, is central to recommendation systems and social network analysis. This paper formalizes the concept of feature heterophily in the context of link prediction and investigates how standard GNN architectures handle scenarios where "opposites attract."
Formalizing Feature Heterophily
The authors move beyond simple label-based homophily to define link prediction tasks based on the distribution of feature similarity scores ($K_{pos}$ for edges and $K_{neg}$ for non-edges). They categorize tasks into three primary types:
- Homophilic: Edges typically connect nodes with high feature similarity, while non-edges connect dissimilar nodes.
- Heterophilic: Edges connect nodes with low feature similarity, making them distinct from non-edges.
- Gated: The similarity distributions for edges and non-edges overlap significantly or require multiple thresholds for separation, presenting a much higher degree of difficulty for standard models.
Methodology
To understand the performance drivers in these diverse settings, the study evaluates two critical components of GNN for link prediction (GNN4LP):
Encoder Design
The research compares "Vanilla" GNNs (e.g., GCN), which aggregate ego-features and neighbor-features into a single representation, against architectures that maintain their separation (e.g., GraphSAGE or SIGN). Theoretical proofs suggest that mixing these features can hinder a model's ability to generalize, particularly across varying node degrees in heterophilic graphs.
Decoder Design
The choice of decoder—the function that maps node embeddings to a link probability—is equally vital. The authors contrast the standard Dot Product (DOT) with learnable linear (DistMult) and non-linear (MLP) decoders. They demonstrate that linear decoders like DOT are mathematically incapable of solving complex "Gated" tasks.
Key Insights and Results
The empirical evaluation, conducted across synthetic and real-world datasets (including ogbl-collab and heterophilic biological graphs), yielded several transformative insights:
The U-Shaped Performance Curve
Performance does not degrade linearly as tasks move from homophilic to heterophilic. Instead, it follows a U-shaped curve. Models excel at the extremes where the signal (either high similarity or high dissimilarity) is clear. The "valley of death" occurs in the middle—the Gated tasks—where edges and non-edges are feature-identical.
Architectural Advantages
- Ego-Neighbor Separation: In heterophilic environments, a node's own features are often more predictive than its neighbors'. Encoders that separate these signals (like SIGN) can outperform standard GCN-based aggregation by up to 44%.
- Non-Linear Decoders: For heterophilic and gated tasks, the standard dot-product decoder acts as a bottleneck. Switching to an MLP decoder resulted in a 50% performance boost on heterophilic synthetic tasks.
- Real-World Robustness: On non-homophilic datasets like
e-comm, robust architectures like SAGE+MLP maintained high performance where simpler models failed.
Conclusion
This work highlights that the "homophily assumption" is not a universal requirement for GNN success in link prediction. By employing encoders that preserve ego-neighbor distinctions and decoders capable of modeling non-linear relationships, GNNs can effectively navigate the complexities of feature heterophily. Future research will likely explore structural heterophily and the development of more scalable non-linear decoders for large-scale applications.
Summary updated