HeTa: Relation-wise Heterogeneous Graph Foundation Attack Model

Yuling Wang, Zihui Chen, Pengfei Jiao, Xiao Wang

Abstract

Heterogeneous Graph Neural Networks (HGNNs) are increasingly used in complex systems but remain vulnerable to adversarial attacks. Existing attack methods typically lack generalization, requiring retraining for specific architectures or datasets. We present HeTa, a first-of-its-kind foundation attack model that identifies and exploits universal vulnerability patterns across diverse HGNN architectures. By utilizing a lightweight surrogate model and a relation-wise attack strategy, HeTa generates adversarial perturbations that generalize across models and transfer between graph domains with minimal fine-tuning.

Introduction

Heterogeneous Graphs (HGs), characterized by multiple node and edge types, underpin critical applications in recommendation systems and knowledge graphs. While HGNNs excel at modeling these complex relationships, their security remains a significant concern. Current adversarial attacks on HGNNs suffer from a "generalization gap"—they are often bespoke, requiring significant computational effort to adapt to new target models or datasets.

HeTa (Relation-wise Heterogeneous Graph Foundation Attack) addresses this gap by asking whether universal vulnerability patterns exist within HGs. By learning these patterns, HeTa functions as a foundation model for adversarial research, capable of attacking diverse HGNNs and adapting rapidly to novel graph domains.

Methodology: The HeTa Framework

HeTa operates through a three-phase pipeline designed for efficiency and transferability.

The HeTa architecture: from a lightweight surrogate model to relation-wise perturbation generation.
  1. Lightweight Foundation Surrogate Model: To avoid the overhead of complex target models, HeTa employs a simplified surrogate. This model aligns heterogeneous node features into a unified latent space and utilizes a multi-relational message-passing mechanism. It learns relation weights ($\mu$) that identify the most influential edge types within the graph.
  2. Relation-wise Attack Principle: HeTa exploits the discovery that different HGNN architectures share common "vulnerability units." The attack is conducted relation-by-relation in a serialized manner, prioritizing relations with the highest learned weights.
  3. Adversarial Node Injection: The model performs node injection by generating fake nodes and strategically connecting them to existing nodes. It optimizes a combination of Carlini-Wagner (CW) loss and KL divergence to maximize prediction disruption while maintaining a gradient-based approximation for edge selection.

Universal Vulnerability Patterns

A core insight of this work is that HGNNs, despite architectural differences, often rely on the same critical relations for prediction.

Macro F1 performance drops across different HGNNs when specific relations are removed, demonstrating shared vulnerability patterns.

As shown in Figure 1, removing specific relations (e.g., "Drop R1") consistently leads to significant performance degradation across models like RGCN and HGT, while other relations have minimal impact. HeTa leverages these shared sensitivities to create "attack units" that are effective regardless of the specific target backbone.

Experimental Results and Generalization

The effectiveness of HeTa was evaluated on the DBLP, ACM, and IMDB datasets against four prominent HGNN backbones: HAN, HGT, RGCN, and SimpleHGN.

  • State-of-the-Art Performance: HeTa consistently outperformed baselines such as RoHe and G2A2C. On the ACM dataset, a 1% node injection rate resulted in a Macro F1 drop of nearly 35% for certain models, significantly higher than competing methods.
  • Cross-Model Generalization: Perturbations generated by the HeTa surrogate successfully compromised all four target architectures in a "black-box" setting, where the attacker has no knowledge of the target's internal parameters.
  • Cross-Graph Transferability: HeTa demonstrates remarkable adaptability. An attacker trained on one domain (e.g., academic networks) can be transferred to another (e.g., movie networks) with minimal fine-tuning, proving it learns fundamental graph-disruption strategies rather than dataset-specific noise.

Conclusion and Future Directions

HeTa establishes a new paradigm for evaluating HGNN robustness by demonstrating that adversarial vulnerabilities can be generalized. While the current work focuses on node injection, future research could extend these foundation principles to edge-level perturbations or feature-based attacks. Furthermore, the existence of a foundation attack model necessitates the development of "foundation defenses"—robust HGNN architectures capable of resisting generalized adversarial threats across diverse domains.

Summary updated

BibTeX
@inproceedings{wang2025heta,
  author = {Yuling Wang and Zihui Chen and Pengfei Jiao and Xiao Wang},
  title = {{HeTa: Relation-wise Heterogeneous Graph Foundation Attack Model}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/384},
}
Figure