Unifying gradient regularization for Heterogeneous Graph Neural Networks

Xiao Yang, Xuejiao Zhao, Zhiqi ShenarXiv 2023 · DOI

Introduction

Heterogeneous Graph Neural Networks (HGNNs) are essential for modeling complex data structures where nodes and edges possess diverse types, such as bibliographic networks or movie databases. Despite their power, HGNNs are plagued by two primary issues: over-smoothing, where node representations become indistinguishable in deeper layers, and non-robustness, where minor structural perturbations lead to significant performance degradation. While heuristic "dropping" techniques like Dropout or DropEdge offer some relief, they often lack a unified theoretical foundation and fail to address both node features and graph topology simultaneously.

The Grug Framework

To address these limitations, the Grug (Gradient Regularization for Unifying Graphs) framework is introduced. Grug unifies existing regularization methods through a gradient-based approach. Unlike traditional methods that randomly remove data—a process equivalent to non-convex 0-norm regularization—Grug applies iterative perturbations to the gradients of both the feature matrix and the message matrix during the message-passing process.

Overview of the Grug framework applying gradient regularization to feature and message matrices.

By shifting from discrete "dropping" to continuous "perturbation," Grug ensures the optimization objective remains convex, facilitating more stable training and convergence. Mathematically, Grug generalizes common techniques like Dropout, DropNode, and DropMessage as restricted special cases. It leverages trained noise ($\delta$ and $\gamma$) derived from previous gradients to effectively smooth the loss landscape.

Experimental Results

Grug was evaluated across five real-world datasets: ACM, DBLP, and IMDB for node classification, and Amazon and LastFM for link prediction. The framework was tested against various backbone architectures, including RGCN and RGAT.

Performance comparison on node classification tasks across ACM, DBLP, and IMDB datasets.

As shown in the results, Grug consistently achieves state-of-the-art performance, outperforming baselines in nearly all experimental settings. Specifically, Grug achieved the highest accuracy in 71 out of 72 node classification tests and 23 out of 24 link prediction settings. Beyond raw accuracy, Grug demonstrates remarkable resilience to over-smoothing; while standard HGNNs often fail beyond 3-4 layers, Grug maintains high performance even at a depth of 7 layers. Furthermore, Grug exhibits superior robustness against adversarial attacks, maintaining stability even when significant noise is introduced into the graph structure.

Key Insights

The success of Grug stems from its ability to regularize multiple dimensions—features and messages—simultaneously. This "real-time" multi-dimensional regularization is more efficient than the indirect transfer of regularization effects seen in single-dimension methods. Additionally, by controlling sample variance through tuned hyperparameters, Grug provides a more stable training process and generates a higher diversity of unique sample distributions, preventing overfitting to specific graph structures.

Conclusion

Grug offers a theoretically grounded and practically superior approach to regularizing HGNNs. By unifying various dropping strategies into a single gradient perturbation framework, it effectively mitigates over-smoothing and enhances model robustness. Future work will focus on optimizing the computational efficiency of edge-level regularization and extending the framework to dynamic graph environments.

Summary updated

BibTeX
@misc{yang2023unifying,
  author = {Xiao Yang and Xuejiao Zhao and Zhiqi Shen},
  title = {{Unifying gradient regularization for Heterogeneous Graph Neural Networks}},
  year = {2023},
  eprint = {2305.15811},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.15811},
}
Figure