AGS-GNN: Attribute-guided Sampling for Graph Neural Networks

Siddhartha Shankar Das, S. M. Ferdous, Mahantesh M. Halappanavar, Edoardo Serra, Alex Pothen

Introduction

Graph Neural Networks (GNNs) have traditionally relied on the homophily assumption, where connected nodes are expected to share similar features and labels. While this holds for citation networks, many real-world graphs—such as fraud detection or dating networks—exhibit heterophily, where connected nodes are often dissimilar. Existing high-performance models for heterophilic graphs typically require transductive learning on the full graph, which fails to scale to industrial-sized datasets. Standard neighborhood sampling methods like GraphSAGE are optimized for homophily and struggle to capture the complex neighborhood structures of heterophilic graphs.

Local node homophily distributions for homophilic (Reddit) vs. heterophilic (Penn94) datasets.

Methodology: Attribute-Guided Sampling

AGS-GNN (Attribute-guided Sampling GNN) addresses these challenges by replacing uniform random sampling with a biased, feature-guided approach. The core innovation is a Dual-Channel Sampling strategy:

  1. Similarity-based Channel: This channel samples neighbors with high feature similarity to the target node, reinforcing local homophily. It utilizes a "low-pass" filter to smooth information across similar nodes.
  2. Diversity-based Channel: To handle heterophily, this channel samples a diverse set of neighbors using submodular function maximization (specifically the Facility Location function). This ensures the sampled neighborhood covers a broad range of attributes, which is then processed through a "high-pass" filter to capture critical differences.

To maintain efficiency, sampling distributions are pre-computed based on neighbor rankings. An MLP-based adaptive integration layer then learns to weight information from both channels based on the specific task requirements.

Experimental Evaluation

The authors evaluated AGS-GNN across 35 benchmark datasets, ranging from small heterophilic graphs (e.g., Cornell, Chameleon) to large-scale networks (e.g., Penn94, Pokec) and traditional homophilic benchmarks (e.g., Cora, Reddit). Synthetic graphs were also employed to test the model's robustness across a continuous spectrum of homophily levels.

Key Results and Discussion

AGS-GNN demonstrates significant performance gains, particularly on large heterophilic graphs where it outperforms scalable baselines like LINKX and GraphSAGE. Notably, the model often exceeds the performance of transductive models that utilize the entire graph structure.

F1 Score performance of AGS-GNN variants vs. GraphSAGE across varying levels of node homophily on synthetic Squirrel and Chameleon graphs.

Beyond accuracy, AGS-GNN achieves up to 50% faster convergence than random sampling, indicating that attribute-guided samples are more informative for the learning process. The framework is also highly versatile, acting as a "plug-and-play" sampler that can enhance various GNN backends like GCN or GAT.

Conclusion and Future Directions

AGS-GNN bridges the gap between homophily and heterophily through intelligent, scalable sampling. By explicitly controlling the homophily of sampled subgraphs via submodular optimization, it provides a robust solution for large-scale graph learning. Future work will focus on reducing the computational overhead of the pre-computation step and exploring end-to-end "supervised sampling" where the strategy is learned directly during training.

Summary updated

BibTeX
@inproceedings{das2024ags,
  author = {Siddhartha Shankar Das and S. M. Ferdous and Mahantesh M. Halappanavar and Edoardo Serra and Alex Pothen},
  title = {{AGS-GNN: Attribute-guided Sampling for Graph Neural Networks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671940},
}
Figure