Hypergraph Attacks via Injecting Homogeneous Nodes into Elite Hyperedges

Meixia He, Peican Zhu, Keke Tang, Yangming Guo

Abstract

Hypergraph Neural Networks (HGNNs) are increasingly used to model complex, higher-order interactions in various domains. However, their vulnerability to adversarial attacks remains a significant concern. This paper introduces IE-Attack, a novel injection-based adversarial framework that targets influential "elite" hyperedges. By generating "homogeneous" fake nodes that mimic the local feature distribution of target groups, IE-Attack achieves high misclassification rates while remaining stealthy against standard anomaly detectors. Our evaluation across five real-world datasets demonstrates that IE-Attack consistently outperforms state-of-the-art modification and injection attacks.

Introduction

While standard Graph Neural Networks (GNNs) excel at modeling pairwise relationships, many real-world systems involve higher-order interactions. Hypergraph Neural Networks (HGNNs) address this by allowing edges (hyperedges) to connect any number of nodes. Despite their representational power, HGNNs inherit the adversarial vulnerabilities of their graph-based predecessors.

Most existing hypergraph attacks rely on "modification," which involves deleting or altering existing nodes and edges. Such attacks are often impractical in real-world scenarios, as they require administrative permissions that attackers rarely possess. In contrast, "injection attacks"—where an attacker adds a new, malicious node—are more feasible but have historically struggled to exploit the unique structural properties of hypergraphs.

The Hypergraph Injection Problem

Effective hypergraph injection must account for two key properties:

  1. Node Spanning: Influential nodes often belong to multiple hyperedges, acting as bridges for information flow.
  2. Group Identity: Nodes within a hyperedge typically share similar characteristics.

Previous injection methods ignored these properties, leading to attacks that were either ineffective or easily detected as outliers. IE-Attack bridges this gap by targeting influential "elite" hyperedges and ensuring that injected nodes blend seamlessly into their local environments.

The IE-Attack Framework

The IE-Attack framework operates in three distinct stages:

  1. Elite Hyperedges Sampler: The framework identifies "elite nodes"—users or items that act as central hubs across many hyperedges—using a "cycle ratio" metric derived from the incidence matrix. The groups these nodes belong to are designated as "elite hyperedges." Targeting these high-traffic intersections allows a single injected node to maximize the spread of malicious information.
  2. Homogeneous Node Generator: To ensure stealth, the injected node ($v_{mal}$) must not appear as an outlier. The system uses Kernel Density Estimation (KDE) to model the feature distribution of the target elite node. It then fuses these features with the characteristics of other nodes in the hyperedge to generate a "homogeneous" feature set.
  3. Injection and Optimization: The fake node is injected into the elite hyperedges. The attack is then iteratively optimized using a loss function that balances maximizing the misclassification rate of the victim HGNN with maintaining the "homogeneous" nature of the fake node's features.
The three-stage framework of IE-Attack: Sampling, Generation, and Injection.

Experimental Evaluation

We evaluated IE-Attack on five diverse datasets: Cora, Citeseer, and Pubmed (citation networks), Chameleon (Wikipedia pages), and Lastfm (music social network). These were tested across three hypergraph construction methods: Hyper-KNN, Hyper-L1, and Hyper-HOR.

Key Results

IE-Attack consistently outperformed state-of-the-art baselines. On the Citeseer dataset (Hyper-KNN), the clean misclassification rate was approximately 42%. While advanced attacks like G-NIA reached 53%, IE-Attack surged to 72%.

The visual impact of the attack is striking. As shown in the t-SNE visualizations below, while other attacks leave the node clusters mostly intact, IE-Attack significantly disrupts the model's ability to separate different classes of data, effectively "shattering" the learned representations.

Visualization of node classification results. IE-Attack (bottom right) shows the most significant disruption of clusters compared to the "Clean" state.

Stealth and Robustness

A core strength of IE-Attack is its imperceptibility. When tested against common anomaly detection methods like PCA and HBOS, the "homogeneous" nodes generated by the framework were difficult to distinguish from legitimate data. This proves that by mimicking local group identity, attackers can bypass security monitors that look for statistical outliers.

Conclusion

IE-Attack demonstrates that hypergraphs are highly vulnerable to injection attacks that leverage structural influence and feature homogeneity. By targeting elite hyperedges, attackers can achieve widespread disruption with minimal risk of detection. This work underscores the need for more robust HGNN architectures and defense mechanisms capable of identifying sophisticated, homogeneous adversarial noise.

Summary updated

BibTeX
@inproceedings{he2025hypergraph,
  author = {Meixia He and Peican Zhu and Keke Tang and Yangming Guo},
  title = {{Hypergraph Attacks via Injecting Homogeneous Nodes into Elite Hyperedges}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i1.32005},
}
Figure