Abstract
Graph neural networks (GNNs) have garnered significant attention due to their ability to represent graph data. Among various GNN variants, graph attention network (GAT) stands out since it is able to dynamically learn the importance of different nodes. However, present GATs heavily rely on the smoothed node features to obtain the attention coefficients rather than graph structural information, which fails to provide crucial contextual cues for node representations. To address this issue, this study proposes a neighbor overlay-induced graph attention network (NO-GAT) with the following two-fold ideas: a) learning favorable structural information, i.e., overlaid neighbors, outside the node feature propagation process from an adjacency matrix; b) injecting the information of overlaid neighbors into the node feature propagation process to compute the attention coefficient jointly. Empirical studies on graph benchmark datasets indicate that the proposed NO-GAT consistently outperforms state-of-the-art models.
Introduction
Graph Attention Networks (GATs) are a cornerstone of modern graph machine learning, valued for their ability to dynamically weight neighbor importance. However, standard GATs possess a significant limitation: they rely almost exclusively on node features to calculate attention weights. When these features are noisy, sparse, or overly smoothed, the attention mechanism fails to capture meaningful representations, ignoring the "external" structural cues—the graph's actual topology—that often contain vital contextual information.
While some approaches attempt to incorporate structural information using manual heuristics (e.g., common neighbor counts), these methods are often too rigid to capture the complexity of real-world graphs. To bridge this gap, we introduce the Neighbor Overlay-Induced Graph Attention Network (NO-GAT), which explicitly integrates learned structural information into the attention mechanism.
Methodology: The NO-GAT Framework
NO-GAT treats graph structure as a primary information source alongside node features. The framework consists of three core components:
- Structural Feature Generator: Instead of manual formulas, NO-GAT employs a dedicated generator using two Multi-Layer Perceptrons (MLPs)—a node operator ($f_{\text{node}}$) and an edge operator ($f_{\text{edge}}$). These learn high-dimensional structural features ($h^{\text{struct}}$) directly from a normalized adjacency matrix.
- Overlied Neighbor Correlation: The model constructs a matrix $Z$ representing multi-hop structural properties. By computing the inner product of rows in $Z$, the model derives a structural correlation score ($n_{ij}$) between nodes, representing their structural similarity independent of their features.
- Combined Attention Layer: The final attention coefficient $\alpha_{ij}$ is a fusion of two components: standard feature-based attention ($m_{ij}$) and the novel structure-based attention ($n_{ij}$) derived from overlaid neighbor correlations.
These components are merged using learnable parameters ($p_m$ and $q_n$), allowing the network to adaptively balance feature and structural information based on the specific dataset.
Experimental Evaluation
The performance of NO-GAT was evaluated across seven diverse benchmark datasets: Citation networks (Cora, Citeseer), Webpage networks (Texas, Cornell, Wisconsin), Wikipedia networks (Squirrel), and Social/Actor networks (Actor). These datasets vary significantly in scale, ranging from small graphs like Texas (183 nodes) to larger ones like Actor (7,600 nodes).
Key Results
NO-GAT consistently outperformed state-of-the-art models, including GCN, GAT, and GeomGCN. Notable improvements include:
- Squirrel Dataset: A 3% accuracy gain over the best baseline, reaching 41.59%.
- Small Datasets: On Texas and Wisconsin, NO-GAT improved upon the best baselines by 1.1% and 1.9%, respectively.
- Resilience to Over-smoothing: The explicit structural cues help prevent node representations from becoming indistinguishable, a common issue in GNNs on smaller graphs.
Ablation Study: Learning vs. Heuristics
A critical insight from this research is that learned structural features are superior to hard-coded heuristics. As shown in Figure 2, while adding simple metrics like Common Neighbors (CN) or Jaccard Similarity improves standard GAT performance, NO-GAT's learned approach consistently achieves the highest accuracy across all tested datasets. This suggests that optimal structural representations are task-dependent and benefit from end-to-end training rather than fixed formulas.
Conclusion and Future Work
NO-GAT demonstrates that topology is not merely a constraint on message passing but a rich source of information. By "overlaying" learned structural properties onto the original graph, the model captures more comprehensive contextual details. Future research will explore enhancing the underlying graph structure itself through techniques like graph rewiring or advanced augmentation to further empower the attention mechanism.
Summary updated