Abstract
Heterogeneous Graph Neural Networks (HGNNs) are widely used in complex systems like e-commerce and social networks due to their ability to model diverse node and relation types. However, their robustness against adversarial attacks remains under-explored. We present HGAttack, the first dedicated gray-box evasion attack for HGNNs. By utilizing a novel surrogate model that mimics the semantic-aware aggregation of HGNNs, HGAttack generates highly transferable perturbations. Our method prioritizes semantically significant relations and operates on meta-path-induced subgraphs, achieving state-of-the-art attack performance while maintaining high memory efficiency.
Introduction
Heterogeneous Graphs (HGs) contain multiple types of nodes and relations, providing a rich structural and semantic framework for data representation. While adversarial attacks on homogeneous graphs are well-studied, HGNNs present unique challenges. Existing attack methods often fail because they ignore the semantic complexity of different relation types. Furthermore, standard gray-box attacks typically rely on simple GCN surrogates that cannot capture the "meta-path" logic central to HGNN architectures.
Methodology: The HGAttack Framework
HGAttack addresses these limitations through a two-pronged approach: a specialized surrogate model and a semantics-aware perturbation mechanism.
1. Heterogeneous Surrogate Model
Instead of a standard GCN, HGAttack employs a surrogate designed to mirror the internal logic of HGNNs. It decomposes the global heterogeneous graph into multiple homogeneous subgraphs based on meta-paths (predefined sequences of relations, such as Author-Paper-Author). Separate Graph Convolutional Networks (GCNs) process these subgraphs, and an inter-meta-path attention mechanism fuses the resulting embeddings. This architecture ensures that the gradients used to generate perturbations are highly relevant to the target HGNN's decision-making process.
2. Semantics-Aware Perturbation Generation
Unlike standard attacks that treat all edges equally, HGAttack weights gradients based on the semantic significance of relation types. It identifies which relations (e.g., "Director" vs. "Actor" in a movie graph) contribute most to a prediction and prioritizes perturbing these vulnerable edges. By operating on subgraphs, the model also avoids the memory explosion typical of global adjacency matrix calculations.
Experimental Evaluation
We evaluated HGAttack on three standard benchmarks: ACM (scholarly data), DBLP (bibliographic data), and IMDB (movie data). The attack was tested against several popular HGNN architectures, including HAN, HGT, SimpleHGN, and the robust model RoHe.
Key Insights
- Transferability through Mimicry: The success of HGAttack in gray-box settings stems from its surrogate model's ability to match the victim's "thinking process." By targeting meta-path-based subgraphs, the attack effectively confuses the victim's attention mechanisms.
- The Hub Node Myth: In homogeneous graphs, "hub" nodes (highly connected nodes) are primary targets. However, in HGs, effectiveness as an adversarial target does not always correlate with node degree. As shown in our analysis, adversarial nodes are distributed across various degrees depending on the dataset.
- Label Inconsistency: HGAttack works by "scrambling" the label distribution of a node's neighborhood. By selectively adding or removing edges, it forces the model to perceive a node's semantic neighbors as belonging to a different class.
Results and Performance
HGAttack consistently outperforms baseline methods. On the ACM dataset using the HAN model, the Macro F1 score dropped from a clean 91.37% to just 16.12% with only a single perturbation per target node.
Furthermore, HGAttack demonstrated superior transferability, even against robust models like RoHe. Beyond effectiveness, the framework is remarkably efficient; by processing subgraphs rather than the full global matrix, it reduced memory consumption by approximately 40% on the ACM and IMDB datasets compared to traditional methods.
Conclusion and Future Work
HGAttack reveals significant vulnerabilities in current HGNNs. While highly effective, we observed that increasing the perturbation budget beyond a certain point can lead to overfitting on the surrogate model, reducing transferability. Future research will focus on automated meta-path discovery and extending these techniques to black-box scenarios where training labels are unavailable.
Summary updated