How does Heterophily Impact the Robustness of Graph Neural Networks?: Theoretical Connections and Practical Implications

Jiong Zhu, Junchen Jin, Donald Loveland, Michael T. Schaub, Danai Koutra

Abstract

This paper establishes a fundamental link between graph heterophily and adversarial robustness. The authors demonstrate that effective structural attacks on homophilous graphs primarily function by injecting heterophily. Consequently, GNN architectures designed for heterophilous data—specifically those employing separate aggregators for ego- and neighbor-embeddings—exhibit inherent robustness. These designs can be synergistically combined with existing defense mechanisms to achieve state-of-the-art protection against adversarial perturbations.

Introduction

Graph Neural Networks (GNNs) are increasingly used in sensitive domains but face two significant challenges: poor performance on heterophilous data (where connected nodes often belong to different classes) and vulnerability to adversarial structural attacks. While these issues have been studied independently, this work explores their theoretical and practical intersection. The central hypothesis is that adversarial attacks succeed by artificially inducing heterophily, making heterophily-resistant architectures a natural defense.

Theoretical Connection: Attacks as Heterophily Injection

The authors provide mathematical proofs (Theorems 1 & 2) showing that on homophilous graphs, impactful structural attacks necessarily reduce the homophily level. In these settings, an attacker's most effective strategy is to connect a target node to "gambit" nodes—typically low-degree nodes of a different class.

Figure 3: Target vs. Gambit degree across five datasets. The dashed red line indicates the degree threshold for gambit nodes.

As shown in Figure 3, across various benchmarks (Cora, Pubmed, Citeseer, FB100, and Snap), the majority of successful attacks utilize low-degree gambit nodes to perturb the target's local structure. This confirms that the reliance of standard GNNs on homophily is a primary vulnerability.

Architectural Robustness

A key design principle in heterophily-adjusted GNNs (e.g., H2GCN, GraphSAGE) is the use of separate aggregators for ego- and neighbor-embeddings. Unlike standard models like GCN that mix these features, separate aggregation preserves the node's own "ego" features independently of the potentially corrupted graph structure. This architectural choice provides a layer of implicit robustness even without explicit defense training.

Experimental Evaluation

The study evaluates robustness across five benchmarks:

  • Homophilous: Cora, Citeseer, Pubmed ($h > 0.7$)
  • Weakly Heterophilous: FB100 ($h \approx 0.5$)
  • Strongly Heterophilous: Snap Patents ($h < 0.2$)

Robustness is measured through both empirical accuracy under attack (e.g., Nettack, Metattack) and certifiable robustness via randomized smoothing.

Results and Discussion

Heterophily-adjusted models significantly outperform standard GNNs under attack. For instance, models like APPNP and H2GCN, which were not originally designed for security, show remarkable resilience.

Figure 5: Poison vs. Clean Accuracy for various GNN models on Citeseer (homophilous) and FB100 (weakly heterophilous).

As illustrated in Figure 5, heterophily-aware models (represented by various colored markers) maintain higher poison accuracy compared to standard baselines. When combined with explicit defenses like SVD-based low-rank approximation, these models achieve state-of-the-art results, improving accuracy by up to 18.33% over existing "vaccinated" models. Furthermore, these architectural improvements are computationally efficient, offering 3-4x faster training times than complex defense-specific models like ProGNN.

Conclusion

This research highlights that robustness and heterophily-handling are two sides of the same coin in graph learning. By adopting architectures that separate ego- and neighbor-information, practitioners can build GNNs that are naturally more resilient to structural attacks. Future work will explore the impact of these findings on feature-based attacks and the role of local heterophily pockets in adversarial settings.

Summary updated

BibTeX
@inproceedings{zhu2022how,
  author = {Jiong Zhu and Junchen Jin and Donald Loveland and Michael T. Schaub and Danai Koutra},
  title = {{How does Heterophily Impact the Robustness of Graph Neural Networks?: Theoretical Connections and Practical Implications}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
  doi = {10.1145/3534678.3539418},
}
Figure