Abstract
Deep learning is effective in graph analysis, finding wide application in link prediction, node classification, and community detection. Graph embedding, which learns low-dimensional representations for vertices or edges, usually employs deep models to derive embedding vectors. However, these models are vulnerable to adversarial examples. We propose Graphfool, a novel targeted label adversarial attack on graph embedding that generates adversarial graphs by leveraging classification boundaries and gradient information in Graph Convolutional Networks (GCNs). Specifically, we: 1) estimate classification boundaries, 2) calculate a minimal perturbation matrix to misclassify the attacked vertex toward a target boundary, and 3) modify the adjacency matrix based on the maximal absolute values of the disturbance matrix iteratively. To our knowledge, this is the first targeted label attack technique for graph embeddings. Experiments on real-world networks demonstrate that Graphfool outperforms state-of-the-art techniques, achieving an average improvement of 11.44% in attack success rate over the second-best algorithm.
Introduction
Graph embeddings are fundamental to modern social network analysis, recommendation engines, and biological modeling. By mapping complex graph structures into low-dimensional vectors, these embeddings enable efficient downstream tasks. While deep learning models are known to be vulnerable to adversarial noise, research in the graph domain has predominantly focused on untargeted attacks—simply inducing misclassification. However, real-world adversaries often have specific objectives, such as making a fraudulent account appear as a "trusted user." This paper introduces Graphfool, the first framework specifically designed for targeted label attacks on graph embeddings, forcing nodes into specific incorrect classes with minimal structural modifications.
Methods
Graphfool treats the graph's adjacency matrix as a set of learnable hyperparameters to identify the minimal structural changes (adding or deleting edges) required for a successful attack. The process follows three primary stages:
- Boundary Estimation: A surrogate GCN model is trained on the original graph to estimate the classification boundaries between different labels in the embedding space.
- Iterative Linearization: Due to the non-linearity of GCNs, a first-order Taylor expansion approximates the classification surface. A "minimal perturbation matrix" is calculated, representing the smallest mathematical adjustment needed to push a node across the boundary into the target class.
- Adjacency Modification: Since graph structures are discrete, Graphfool identifies entries in the perturbation matrix with the highest absolute values and converts them into discrete structural changes—either adding a new edge or deleting an existing one.
Crucially, the attack is transferable. Although designed using a GCN surrogate, the resulting adversarial graphs successfully fool other popular embedding techniques such as DeepWalk, Node2vec, and LINE.
Experimental Setup
The researchers evaluated Graphfool on three standard benchmarks:
- Cora: A citation network of 2,708 scientific papers categorized into seven classes.
- Citeseer: A citation network of 3,312 papers across six classes.
- Pol.blogs: A dense network of 1,490 political blogs divided into two classes (liberal vs. conservative).
Key Results
Graphfool consistently outperformed state-of-the-art (SOTA) attack methods, including NETTACK, FGA, and RL-S2V, across various metrics.
On the Cora and Citeseer datasets, Graphfool achieved a 100% success rate for untargeted attacks in "unlimited" scenarios. Compared to the second-best performing algorithm, Graphfool showed an average 11.44% improvement in attack success rate. Furthermore, Graphfool demonstrated high efficiency, requiring a lower Average Number of Modified Edges (AME) to achieve its goals. For instance, on Cora, it often required fewer than two edge changes to flip a GCN classification, enhancing the stealthiness of the attack.
Discussion and Insights
The study highlights several critical aspects of graph adversarial attacks. Direct attacks (modifying edges connected directly to the target node) are significantly more efficient than indirect attacks. Additionally, targeted attacks are inherently more difficult than untargeted ones, requiring more precise edge modifications because the "mathematical path" to a specific wrong class is much narrower. Graph density also plays a role; Graphfool is highly effective on sparse graphs like Cora but faces more challenges on dense networks like Pol.blogs, where local structures are more robust.
Conclusion
Graphfool demonstrates that the very feature making GCNs powerful—neighborhood information aggregation—is also a primary vulnerability. While this work focuses on the attack, it underscores the urgent need for robust embedding training methods capable of resisting targeted gradient-based manipulations. Future research should address maintaining high attack success rates in dense networks and refining the optimization jump from continuous perturbation matrices to discrete edge changes.
Summary updated