LSGNN: Towards General Graph Neural Network in Node Classification by Local Similarity

Yuhan Chen, Yihong Luo, Jing Tang, Liang Yang, Siya Qiu, Chuan Wang, Xiaochun Cao

Introduction

Graph Neural Networks (GNNs) have traditionally relied on the homophily assumption, which posits that connected nodes are likely to share the same labels or features. Under this assumption, standard GNNs act as low-pass filters, smoothing features across neighborhoods to improve classification. However, many real-world graphs exhibit heterophily, where edges frequently connect nodes of different classes (e.g., dating networks or chemical structures). On such graphs, global smoothing often leads to poor performance, sometimes falling below the accuracy of a simple Multi-Layer Perceptron (MLP) that ignores graph structure entirely.

LSGNN (Local Similarity Graph Neural Network) addresses this "heterophily problem" by moving beyond one-size-fits-all global assumptions. The authors argue that homophily is not a uniform graph-level property but varies significantly at the node level. LSGNN introduces a novel metric to adaptively weight neighbor information and an efficient architecture to prevent the common pitfall of over-smoothing.

Methodology

LSGNN introduces two primary architectural innovations designed to handle local variations in graph topology while maintaining high computational efficiency.

Local Similarity (LocalSim)

Instead of assuming a global level of homophily, LSGNN calculates how similar each node is to its immediate neighbors based on their features. This LocalSim score acts as a guide, determining whether the model should trust neighbor information (high similarity) or rely more on the node's own features and high-pass filters (low similarity). This is implemented via a small, 2-layer MLP that learns node-specific weights for fusing different information channels.

Initial Residual Difference Connection (IRDC)

To combat "over-smoothing"—where nodes become indistinguishable after multiple rounds of message passing—the authors propose IRDC. Unlike standard residual connections that add the previous layer's output, IRDC feeds the unprocessed initial features into each subsequent layer. This ensures the model retains access to the "raw" signal, allowing for deeper architectures without losing informative detail.

The LSGNN architecture, highlighting the LocalSim module for adaptive weighting and the IRDC framework for deep feature propagation.

Crucially, LSGNN follows a design philosophy where expensive graph propagation steps are pre-computed. This makes the training phase extremely fast and memory-efficient, comparable to the simplest linear GNNs.

Key Insights: Local Topology and Feature Similarity

A core contribution of this work is the demonstration that node-level heterophily varies significantly within a single dataset. A global parameter for smoothing is inherently suboptimal because a graph can contain both "cliquey" (homophilic) and "diverse" (heterophilic) regions simultaneously.

Distribution of node homophily in Cornell and Citeseer datasets, and the correlation between the learned LocalSim metric and actual node homophily.

As shown in the analysis above, the authors empirically prove that local feature similarity (LocalSim) is a reliable indicator of label similarity, even when labels are unknown during inference. This allows the model to adapt its filtering strategy node-by-node. Furthermore, the LocalSim module is "plug-and-play," meaning it can be integrated into other models like H2GCN or GPRGNN to boost their performance on heterophilic tasks.

Experimental Results

LSGNN was evaluated across a diverse set of benchmarks, including homophilic citation networks (Cora, Citeseer) and heterophilic networks (Wikipedia pages, actor networks, and webpages).

  • Superior Accuracy: LSGNN outperformed 13 baseline methods on heterophilic datasets, notably achieving an 11% accuracy improvement over the previous state-of-the-art (LINKX) on the Squirrel dataset.
  • Generalization: Unlike many heterophily-specific models, LSGNN maintains SOTA or near-SOTA results on homophilic graphs like Cora and Pubmed.
  • Efficiency: The model is approximately 2x faster than standard GCN and GAT models. By avoiding repeated non-linear transformations during propagation, its training time remains nearly as low as SGC.
  • Depth Resilience: While vanilla GCN performance typically degrades after 3-4 layers, LSGNN remains stable even at 10 layers due to the IRDC mechanism.

Conclusion

LSGNN represents a significant step toward a general-purpose GNN capable of handling both homophilic and heterophilic structures through local adaptation. By leveraging feature similarity as a proxy for local topology and utilizing efficient pre-computation, it offers a high-performance, scalable solution for node classification. Future work may explore extending this local-aware fusion to dynamic graphs and other tasks such as link prediction.

Summary updated

BibTeX
@inproceedings{chen2023lsgnn,
  author = {Yuhan Chen and Yihong Luo and Jing Tang and Liang Yang and Siya Qiu and Chuan Wang and Xiaochun Cao},
  title = {{LSGNN: Towards General Graph Neural Network in Node Classification by Local Similarity}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/395},
}
Figure