HopGAT: Hop-aware Supervision Graph Attention Networks for Sparsely Labeled Graphs

Chaojie Ji, Ruxin Wang, Rongxiang Zhu, Yunpeng Cai, Hongyan Wu

Abstract

Graph Attention Networks (GATs) are powerful tools for node classification, yet their performance often degrades significantly when training labels are sparse. This paper introduces HopGAT, a novel approach that incorporates "hop-aware" supervision to guide the attention mechanism. By explicitly encoding structural distances and supervising attention coefficients based on hop proximity, HopGAT leverages the graph's inherent topology as a self-supervisory signal. Our results across multiple benchmarks show that HopGAT maintains high performance even with a fraction of the original training data, effectively bridging the gap between supervised and self-supervised learning in graph domains.

Introduction: The Challenge of Sparse Labels

In many real-world applications, such as biological network analysis or expert-curated knowledge graphs, obtaining labeled data is a bottleneck. Standard Graph Neural Networks (GNNs) like GCNs and GATs typically rely on a high density of labels to learn effective node representations. A primary reason for their failure in sparse settings is the inability of standard attention mechanisms to distinguish between immediate neighbors (1-hop) and more distant ones (2+ hops). While the "homophily" assumption suggests connected nodes are similar, this influence decays with distance—a nuance that standard models often fail to capture without sufficient supervision.

The HopGAT Architecture

HopGAT addresses these limitations through three core technical innovations designed to make the model "aware" of neighbor distances.

The HopGAT architecture featuring hop embeddings, attention supervision, and a dynamic learning strategy.
  1. Hop Encoding: Inspired by positional encodings in Transformers, HopGAT uses sine and cosine functions to embed hop distances directly into node features. This provides the model with an explicit structural context for every neighbor.
  2. Attention Supervision: Instead of relying solely on classification loss, HopGAT introduces a "ground-truth" attention target. The model is trained to assign higher attention weights to closer neighbors using a Mean Squared Error (MSE) loss, effectively teaching it the structural hierarchy of the graph.
  3. Simulated Annealing Learning Strategy: To balance the dual objectives of attention supervision and node classification, the authors employ a simulated annealing approach. Early in training, the model prioritizes learning the correct attention distribution. As training matures, the focus shifts toward the primary classification task.

Key Insights: Structural Self-Supervision

The central breakthrough of HopGAT is treating the graph's topology as a "free" label. Since hop distances are always known, they can be used to guide the model's attention even in the absence of node class labels.

Visualization of attention coefficient distributions, showing the evolution of learned weights across training.

The authors observed that while standard GATs produce unimodal attention distributions, a more effective model should exhibit multi-modal distributions that reflect the distinct influence of different hop neighborhoods. By forcing the model to acknowledge that label consistency drops as hop distance increases, HopGAT becomes significantly more robust to noise from distant nodes.

Experimental Results

The model was evaluated on standard benchmarks including Cora, Citeseer, PubMed, and the inductive PPI dataset. To simulate real-world constraints, the researchers tested the model at various label rates (20% to 80%).

  • Performance in Scarcity: HopGAT consistently outperformed baseline GCN and GAT models, with the most significant improvements observed at the lowest label rates.
  • Generalization on PPI: On the complex Protein-Protein Interaction (PPI) dataset, HopGAT achieved an F1 score of 94.6% using only 40% of the training labels—nearly matching the 98.5% score achieved with a full label set.
  • Attention Clustering: Post-training analysis confirmed that the supervision mechanism successfully taught the model to cluster attention coefficients by hop distance, validating the structural intuition behind the design.

Conclusion

HopGAT demonstrates that explicit structural supervision can compensate for a lack of semantic labels in graph tasks. By teaching GATs to respect the decay of influence over distance, the model achieves state-of-the-art results in data-constrained environments. Future work may extend this "hop-aware" philosophy to heterogeneous graphs and link prediction tasks, further exploring the potential of structural self-supervision.

Summary updated

BibTeX
@misc{ji2020hopgat,
  author = {Chaojie Ji and Ruxin Wang and Rongxiang Zhu and Yunpeng Cai and Hongyan Wu},
  title = {{HopGAT: Hop-aware Supervision Graph Attention Networks for Sparsely Labeled Graphs}},
  year = {2020},
  eprint = {2004.04333},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.04333},
}
Figure