Graph Pointer Neural Networks

Tianmeng Yang, Yujing Wang, Zhihan Yue, Yaming Yang, Yunhai Tong, Jing Bai

Abstract

Most Graph Neural Networks (GNNs) rely on the assumption of homophily—the idea that connected nodes share similar features or labels. However, many real-world networks exhibit heterophily, where a node's immediate neighbors are often "noise." This paper introduces Graph Pointer Neural Networks (GPNN), a novel framework that uses a differentiable pointer network to intelligently select and rank the most relevant nodes from a multi-hop neighborhood. By filtering out irrelevant local neighbors and capturing long-range dependencies, GPNN achieves state-of-the-art performance on heterophilic benchmarks while remaining resilient to over-smoothing.

Introduction

Traditional GNNs like GCN and GAT typically aggregate information from a node's direct neighbors. While effective for homophilic graphs, this "local aggregation" strategy fails on heterophilic graphs (e.g., web-link networks or chemical bonds), where immediate neighbors may belong to different classes. In such cases, the signal is washed out by noise, and the truly informative nodes might be several hops away.

Existing solutions often attempt to look further into the graph (multi-hop) or rank neighbors by relevance. However, multi-hop methods frequently suffer from over-smoothing, where node representations become indistinguishable as more layers are added. Furthermore, many ranking mechanisms are non-differentiable, preventing the model from learning the optimal selection strategy for the task at hand.

The GPNN Architecture

GPNN addresses these challenges through a three-stage pipeline designed to extract high-quality signals from complex neighborhoods.

Overview of the GPNN architecture, showing node sequence sampling, the pointer generator, and 1D convolutional aggregation.
  1. Multi-hop Node Sequence Sampling: The model performs a Breadth-First Search (BFS) to sample a sequence of neighbors up to $k$ hops away, ensuring distant but relevant nodes are considered.
  2. Graph Pointer Generator: This core component uses a Pointer Network (LSTM-based encoder-decoder) with an attention mechanism. It learns to select and rank the top-$m$ most relevant nodes from the sampled sequence. Critically, this process is end-to-end differentiable, allowing the ranker to be optimized specifically for the classification task.
  3. Non-local Aggregation: The ranked neighbors are treated as a sequence and processed via a 1D Convolutional layer. This allows the model to capture specific relational patterns before final pooling and prediction.

Experimental Evaluation

The authors evaluated GPNN on six public benchmarks characterized by high heterophily, including Wikipedia subgraphs (Chameleon, Squirrel), social networks (Actor), and university web page networks (Cornell, Texas, Wisconsin).

Key Results and Depth Resilience

GPNN consistently outperformed standard GNNs and specialized heterophily models, achieving an average performance lift of 6.3% over previous state-of-the-art methods. A significant advantage of GPNN is its resilience to depth.

Comparison of test accuracy across different numbers of layers, demonstrating GPNN's resilience to over-smoothing compared to GCN and GAT.

As shown in the figure above, while the accuracy of GCN and GAT drops sharply after just a few layers due to over-smoothing, GPNN maintains stable performance even up to 10 layers. This stability stems from the pointer network's ability to act as a filter, selectively picking the signal and ignoring the noise as the neighborhood expands. Additionally, the authors found that the homophily ratio of the nodes selected by the pointer network was significantly higher than that of the raw 1-hop neighbors, confirming the model's ability to find "birds of a feather" even when they are not directly connected.

Conclusion

Graph Pointer Neural Networks provide a robust solution for learning on heterophilic graphs by replacing blind local aggregation with a learnable, differentiable selection process. By identifying "good" neighbors across multiple hops and maintaining sequence-aware representations, GPNN effectively overcomes the limitations of traditional GNNs. Future work will focus on improving the scalability of the LSTM and CNN components for massive-scale graph applications.

Summary updated

BibTeX
@inproceedings{yang2022graph,
  author = {Tianmeng Yang and Yujing Wang and Zhihan Yue and Yaming Yang and Yunhai Tong and Jing Bai},
  title = {{Graph Pointer Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20864},
}
Figure