Abstract
Heterophily has been considered as an issue that hurts the performance of Graph Neural Networks (GNNs). To address this issue, some existing work uses a graph-level weighted fusion of the information of multi-hop neighbors to include more nodes with homophily. However, the heterophily might differ among nodes, which requires to consider the local topology. Motivated by it, we propose to use the local similarity (LocalSim) to learn node-level weighted fusion, which can also serve as a plug-and-play module. For better fusion, we propose a novel and efficient Initial Residual Difference Connection (IRDC) to extract more informative multi-hop information. Moreover, we provide theoretical analysis on the effectiveness of LocalSim representing node homophily on synthetic graphs. Extensive evaluations over real benchmark datasets show that our proposed method, namely Local Similarity Graph Neural Network (LSGNN), can offer comparable or superior state-of-the-art performance on both homophilic and heterophilic graphs. Meanwhile, the plug-and-play model can significantly boost the performance of existing GNNs.
Introduction
Standard Graph Neural Networks (GNNs) typically rely on the homophily assumption, which posits that connected nodes share similar features and labels. In such scenarios, GNNs effectively act as low-pass filters, smoothing features across neighborhoods. However, many real-world graphs exhibit heterophily, where connected nodes are often dissimilar (e.g., dating networks or protein interaction webs). In these cases, standard smoothing operations can obscure the distinctive features necessary for accurate classification.
While recent research has attempted to mitigate this using graph-level weighting schemes, these approaches often overlook local variations. Even within a predominantly heterophilic graph, certain neighborhoods may be homophilic, and vice versa. LSGNN addresses this by introducing a node-level adaptive mechanism that treats each neighborhood uniquely based on its local topology.
Methodology: The LSGNN Framework
The Local Similarity Graph Neural Network (LSGNN) is built upon two core innovations designed to handle varying levels of homophily adaptively and efficiently.
1. Local Similarity (LocalSim)
Instead of applying a global homophily estimate, LSGNN calculates a similarity score for every node relative to its immediate neighbors. Using metrics such as Cosine or Euclidean similarity, this score guides the fusion process. High similarity encourages "low-pass" smoothing, while low similarity prompts the model to utilize "high-pass" filters to preserve critical distinctions between dissimilar neighbors.
2. Initial Residual Difference Connection (IRDC)
To prevent the common issue of "over-smoothing"—where node features become indistinguishable after multiple layers—the authors developed IRDC. This mechanism ensures that each layer retains access to the "unprocessed" components of the original input features that were missed by previous layers, allowing for deeper, more robust architectures.
Crucially, by removing non-linearities between propagation steps, the graph convolutions in LSGNN can be pre-computed. This architectural choice makes the training phase significantly faster than traditional GNNs.
Empirical Evidence: LocalSim as a Homophily Proxy
A key insight of this work is that feature similarity is a reliable indicator of label homophily. Empirical analysis across diverse datasets, such as the heterophilic Cornell and homophilic Citeseer, demonstrates a clear positive correlation between the calculated LocalSim values and actual node homophily. This validates the use of LocalSim as a proxy for local graph topology, allowing the model to generalize across different graph types without manual tuning.
Experimental Results
LSGNN was evaluated against 13 state-of-the-art methods across nine benchmark datasets, including citation networks (Cora, Citeseer), Wikipedia pages (Chameleon, Squirrel), and large-scale graphs (ogbn-arXiv).
- Superior Accuracy: LSGNN achieved the highest average accuracy (79.21%) across all benchmarks. Notably, on the heterophilic "Squirrel" dataset, it outperformed the previous best model by 11%.
- Efficiency and Scalability: Due to its pre-computable propagation, LSGNN is nearly 2x faster to train than standard GCN or GAT models.
- Depth Robustness: Unlike standard GCNs, which degrade rapidly after a few layers, LSGNN maintains stable performance even at depths of 10 layers or more.
- Versatility: The LocalSim module is "plug-and-play," significantly boosting the performance of other models like H2GCN and GPRGNN when integrated.
Conclusion
LSGNN represents a significant step toward general-purpose GNNs by shifting the focus from global graph statistics to local node-level similarity. By combining the adaptive LocalSim module with the over-smoothing resistant IRDC, the model achieves state-of-the-art performance on both homophilic and heterophilic graphs with remarkable computational efficiency. Future work may involve automating the choice of similarity metrics and extending theoretical analyses beyond standard stochastic block models.
Summary updated