Not All Neighbors Are Worth Attending to: Graph Selective Attention Networks for Semi-supervised Learning

Tiantian He, Haicang Zhou, Yew-Soon Ong, Gao CongarXiv 2022

Graph Neural Networks (GNNs), particularly Graph Attention Networks (GATs), have become the standard for learning on graph-structured data. However, a fundamental assumption in these models is that every neighbor in a node's receptive field contributes useful information. This paper challenges that assumption, introducing Graph Selective Attention Networks (SATs) to adaptively prune irrelevant neighbors and improve representation learning.

The Challenge: Noise in the Neighborhood

In many real-world graphs—such as citation networks, social media, or web pages—nodes are often connected to "irrelevant" neighbors. These neighbors may have vastly different features or belong to different classes. When a standard GAT aggregates information, it attends to all neighbors. While it can assign lower weights to less relevant nodes, it rarely excludes them entirely.

The authors' preliminary research reveals a startling statistic: in common datasets like Cora and CiteSeer, over 70% of a node's neighbors can be considered "noisy" or highly dissimilar. Including this noise during aggregation leads to over-smoothing, where node representations become indistinguishable, ultimately degrading performance in downstream tasks like classification.

Selective Attention (SA)

To address this, the authors propose Selective Attention (SA). Inspired by the human "apprehension span"—the cognitive limit on how many stimuli we can process simultaneously—SA allows the network to learn a node-specific scope of attention.

How SAT Works

The SAT framework employs a multi-step process to refine neighbor aggregation:

  1. Dissimilarity Learning: The model calculates node-node dissimilarity by combining raw input features with structural information learned through matrix factorization.
  2. Pruning Strategies: Two primary methods are used to define the attention scope:
  3. Contractive Span: Exponentially decays the influence of dissimilar neighbors.
  4. Subtractive Span: Applies a hard penalty based on dissimilarity, capable of pushing attention scores for irrelevant neighbors exactly to zero.
  5. Expressive Power: The authors theoretically prove that SATs maintain the expressive power of the 1-WL (Weisfeiler-Lehman) test, ensuring they are as capable as standard message-passing GNNs while being more selective.
Figure 1: Comparison of neighbor aggregation in GAT vs. SAT. (a) GAT attends to all neighbors. (b) SAT prunes irrelevant neighbors. (c) Case study showing SAT concentrating attention on a few relevant nodes while GAT spreads it thinly across many.

Key Results and Insights

The effectiveness of SAT was tested across six diverse datasets, ranging from sparse citation networks to dense web graphs.

  • Superior Performance: SAT consistently outperformed 12 state-of-the-art baselines, including GCN, GATv2, and GIN. The most significant gains were observed in denser graphs like the Uai dataset (9.35% improvement) and Wiki (3.11% improvement), where the density of connections typically introduces more noise.
  • Sparsity is Strength: As shown in the case study in Figure 1(c), SAT successfully identifies a small subset of highly relevant neighbors. By zeroing out the "long tail" of irrelevant connections, the model produces cleaner, more discriminative node embeddings.
  • Robustness to Density: Traditional GNNs often struggle as graph density increases due to the accumulation of irrelevant information. SAT’s selective nature makes it uniquely robust for large-scale, highly connected real-world networks.

Conclusion

The core takeaway of this research is that less is often more in graph representation learning. By explicitly modeling node dissimilarity and pruning the attention scope, Graph Selective Attention Networks (SATs) provide a more robust and accurate alternative to standard GATs. While calculating dissimilarity adds a minor computational layer, the resulting performance gains—especially on noisy, dense datasets—make SAT a powerful tool for modern graph analysis.

Summary updated

BibTeX
@misc{he2022not,
  author = {Tiantian He and Haicang Zhou and Yew-Soon Ong and Gao Cong},
  title = {{Not All Neighbors Are Worth Attending to: Graph Selective Attention Networks for Semi-supervised Learning}},
  year = {2022},
  eprint = {2210.07715},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.07715},
}
Figure