Introduction: The Homophily Challenge
Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data. However, their success is largely predicated on the homophily assumption: the principle that connected nodes likely share the same labels. In many real-world scenarios—such as fraud detection, biological networks, or specific social structures—graphs exhibit heterophily, where neighbors frequently belong to different classes.
In heterophilic environments, the standard GNN message-passing mechanism acts as a signal "blender," mixing features from disparate classes. This leads to over-smoothing, where node representations become indistinguishable, severely degrading classification performance. While previous research has focused on designing complex, heterophily-aware architectures, this paper introduces REFine (REference-based homophily enhancement), a framework that addresses the problem at its source: the graph structure itself.
The REFine Framework: Reference-Based Rewiring
REFine is a graph rewiring framework designed to systematically increase a graph's homophily by aligning its topology with a high-quality "reference graph." The process follows three core stages:
- Constructing the Reference Graph ($G_r$): Since ground-truth labels are only partially available, the authors employ a label-driven diffusion approach. They combine a data affinity kernel (derived from node features) with a label affinity kernel (derived from training labels) to propagate information across the feature manifold. This results in a homophilic reference graph that serves as a blueprint for the ideal structure.
- Rewiring Strategy: The original graph is modified based on the reference graph through two primary operations:
- Edge Addition: New edges are introduced between nodes that the reference graph identifies as belonging to the same class.
- Edge Deletion: Existing edges are removed if the reference graph suggests the connected nodes belong to different classes.
- Scalable Implementation: To ensure the method remains practical for large-scale applications, REFine utilizes the METIS algorithm to partition the graph into clusters. Rewiring is performed independently within these clusters, allowing for efficient parallelization.
Theoretical Foundations: Resolving the Smoothness Conflict
The authors provide a rigorous theoretical basis for REFine. Theorem 1 demonstrates that in heterophilic graphs, accurate classification requires node embeddings that are not smooth across the graph. This creates a fundamental conflict with the inherent smoothing nature of GNNs. By rewiring the graph to be more homophilic, REFine resolves this conflict, aligning the structural inductive bias of the GNN with the task requirements.
Furthermore, the paper proves that if the reference graph is more homophilic than the original, the proposed edge modifications are mathematically guaranteed to increase the expected homophily of the resulting rewired graph. As shown in the figure above, the entropy ($H$) of the reference graph—a proxy for its homophily—directly dictates the performance ceiling of the rewired model.
Experimental Evaluation: Accuracy and Efficiency
REFine was evaluated across 11 diverse real-world datasets, ranging from small heterophilic webpage links (Cornell, Wisconsin) to large-scale transaction networks (EllipticBitcoin).
Key Performance Metrics
- Accuracy Gains: REFine-rewired graphs consistently outperformed state-of-the-art rewiring baselines like SDRF and BORF. Notably, on the Wisconsin dataset, applying REFine to a standard GCN resulted in a 13.9% accuracy improvement. In many cases, a simple GCN equipped with REFine outperformed specialized architectures like H2GCN.
- Computational Efficiency: The clustering-based approach makes REFine significantly faster than competing methods. On the Roman-empire dataset (approx. 22k nodes), REFine completed the rewiring process in 4.2 seconds, compared to 380 seconds for the BORF baseline.
The figure above illustrates how test accuracy evolves as a function of the number of rewired edges ($|k|$). It also highlights the benefit of sparsifying the reference graph to focus on the most confident homophilic connections, which often leads to more stable performance gains.
Conclusion
REFine shifts the focus from model architecture to data structure. By treating graph rewiring as a pre-processing step, it allows standard GNNs to excel on heterophilic datasets where they previously failed. While the method currently focuses on node classification and relies on informative node features, it opens new avenues for optimizing graph topology for a wide range of downstream tasks.
Summary updated