Graph neural networks improve by flexibly choosing relevant nodes

Degraded but Not Entirely Ineffective: PE-Based Deformable Graph Neural Networks

Artificial Intelligence

Summary

Graphs are ways to connect data points, but standard graph neural networks (GNNs) often struggle when they only look at direct neighbors. Problems include information becoming too smooth or compressed as networks get deeper and nearby nodes sometimes adding noise. The authors created a method that lets a GNN choose important nodes beyond immediate neighbors, helping it work better on tricky graphs where connected nodes are very different. They found some surprises about how this selection works and simplified their method for broader use. Their solution works well with several popular GNN designs on various types of graph data.

What this means in practice

  • For data scientists: Improve node classification on graphs where neighbors differ by integrating flexible node selection into existing GNN models.
  • For software engineers: Enhance scalability and flexibility of graph-based recommendation systems by using the PEBSAM-Speed module to process large datasets efficiently.

Authors

Jinhua Wu, Xinliang Zhang

Abstract

Many real-world scenarios can be represented using graph-structured data. However, traditional GNNs that transmit messages based on first-order neighbors have long faced several fundamental contradictions: increasing depth leads to over-smoothing, long-range dependencies cause over-compression, fixed neighborhoods restrict the receptive field, and on heterophilous graphs, topological neighbors become a source of noise. Although many works have addressed these issues individually, few mechanisms can simultaneously alleviate all of these challenges. To address the aforementioned problems, we propose a Position Encoding-Based Deformable Spatial Aggregation Module (PEBDSAM) that solves them all in one step. Specifically, we utilize a deformable mechanism in the position space to identify relevant nodes to supplement the original first-order neighbor information of GNNs, allowing traditional GNNs to adapt to heterophilous scenarios. Through diagnostic experiments, we obtained several major findings: current offsets fail to have any effect; subsequently, we analyzed the causes of offset failure and why model performance still improves even after offset failure, pointing out future research directions. Based on these diagnostic experiments, we streamlined the original PEBDSAM, resulting in a simplified version, which we call the Position Encoding-Based Spatial Aggregation Module (PEBSAM). In addition, we propose a PEBSAM-Speed to adapt to large datasets. Finally, we designed the module to be plug-and-play and applied it to GCN, GAT, GIN, and GraphSAGE, achieving desirable results on three homophilous datasets and six heterophilous graph datasets.