Introduction
Graph Neural Networks (GNNs) are increasingly used for modeling complex relational data but remain vulnerable to adversarial attacks. In gray-box settings, where the victim model's parameters are unknown, attackers rely on surrogate models to generate gradients for perturbations. However, standard surrogate training often collapses the graph's topological structure into class-based clusters, reducing the transferability of attacks. This paper presents SRLIM (Surrogate Representation Learning with Isometric Mapping), which employs isometric mapping to preserve the original graph's topology in the surrogate's embedding space, thereby producing more reliable and transferable adversarial gradients.
Adversarial attacks on GNNs typically involve making imperceptible changes to edges or node features to induce misclassification. In a gray-box scenario, the attacker lacks knowledge of the victim model's internal architecture. The standard approach is to train a surrogate model to mimic the victim and use its gradients to identify optimal perturbations.
A significant hurdle is that standard surrogates are optimized solely for classification. This process often forces nodes into tight clusters based on labels, discarding the underlying geometric and topological relationships inherent in the graph. Consequently, the resulting gradients reflect the surrogate's specific classification boundaries rather than the data's true structure, leading to poor attack transferability.
Methodology: The SRLIM Framework
To address the loss of topological information, the authors propose SRLIM, which introduces a structural constraint during surrogate training. The model is incentivized to maintain the relative "distances" between nodes from the input layer through to the final embedding.
Non-Euclidean Similarity Estimation
Graphs are inherently non-Euclidean. To accurately capture their topology, SRLIM utilizes geodesic distances—the shortest path between nodes—to construct a similarity matrix. This matrix serves as a ground-truth representation of the graph's global structure.
Isometric Mapping Loss ($L_{im}$)
The core of SRLIM is the Isometric Mapping Loss, calculated using Bergman divergence. This loss term penalizes the surrogate model when the pairwise similarity of nodes in the embedding space deviates from their similarity in the input graph.
Integrated Training Objective
The surrogate is trained using a composite loss function that combines standard cross-entropy loss for node classification and the isometric mapping loss. This dual objective ensures the surrogate is both an accurate classifier and a faithful representation of the graph's topology.
Experimental Evaluation
The effectiveness of SRLIM was evaluated on three benchmark citation networks: Citeseer, Cora, and Cora-ML. In these datasets, nodes represent scientific papers, and edges represent citations. The objective was to maximize the misclassification rate by adding a limited number of "poison" edges.
Key Results
SRLIM consistently outperformed state-of-the-art gray-box attack methods, including EpoAtk and Meta-Self.
- Attack Performance: On Citeseer with a 5% perturbation rate, SRLIM achieved a misclassification rate of 40.1%, surpassing EpoAtk (39.4%) and the DICE baseline (32.7%).
- Transferability: SRLIM demonstrated superior performance in "Network Architecture Agnostic" scenarios. For instance, on Cora-ML, gradients from an SRLIM-trained GCN surrogate effectively attacked diverse victim architectures like ChebNet.
- Embedding Visualization: PCA analysis confirmed that SRLIM embeddings are more structured and topologically representative compared to standard GCN embeddings, which tend to collapse nodes into less informative clusters.
Discussion and Conclusion
The success of SRLIM highlights that topology acts as a vital prior. When a surrogate model ignores the graph's structure, it generates "noisy" gradients that fail to generalize to other models. By preserving the "reliability gap"—the distance between nodes that are topologically distant but share a class—SRLIM produces more stable and universal adversarial gradients. This suggests that preserving topology captures fundamental data characteristics that transcend specific neural architectures.
While SRLIM significantly improves gray-box attacks, it faces challenges regarding computational complexity. Calculating the $O(N^2)$ similarity matrix is demanding for very large graphs. Future research will focus on more efficient global topology estimation and extending isometric constraints to node injection and feature perturbation attacks.
Summary updated