Authors

Abstract

Recent work has shown that graph neural networks (GNNs) are vulnerable to adversarial attacks on graph data. Common attack approaches are typically informed, i.e. they have access to information about node attributes such as labels and feature vectors. In this work, we study adversarial attacks that are uninformed, where an attacker only has access to the graph structure, but no information about node attributes. Here the attacker aims to exploit structural knowledge and assumptions, which GNN models make about graph data. In particular, literature has shown that structural node centrality and similarity have a strong influence on learning with GNNs. Therefore, we study the impact of centrality and similarity on adversarial attacks on GNNs. We demonstrate that attackers can exploit this information to decrease the performance of GNNs by focusing on injecting links between nodes of low similarity and, surprisingly, low centrality. We show that structure-based uninformed attacks can approach the performance of informed attacks, while being computationally more efficient. With our paper, we present a new attack strategy on GNNs that we refer to as Structack. Structack can successfully manipulate the performance of GNNs with very limited information while operating under tight computational constraints. Our work contributes towards building more robust machine learning approaches on graphs.

CCS Concepts: Computing methodologies → Machine learning; Adversarial learning; Neural networks.

Keywords: Graph neural networks; adversarial attacks; network centrality; network similarity.

1. Introduction

Graph neural networks (GNNs) are state-of-the-art models for tasks on graphs such as node classification [13], link prediction [31] and graph classification [9]. Recent work has shown that GNNs are vulnerable to adversarial attacks, which can cause GNNs to fail by carefully manipulating node attributes [16], graph structure [17, 34] or both [33]. For example, adversarial attacks on social networks can add links via fake accounts, or change the personal data of a controlled account. Most existing attacks [6, 16, 17, 30, 33, 34] assume that information about node attributes (e.g., demographics of users) are available to the attacker. In practice however, attackers have limited access to such attribute information. We thus differentiate between two cases: the informed case where both graph structure and node attributes are available to the attacker, and the uninformed case where only information about the structure is available (see Figure 1).

Objectives. In this work, we investigate uninformed adversarial attacks that aim to reduce the overall accuracy of node classification with GNNs by manipulating the graph structure. Our aim is to study (i) potential strategies for uninformed attacks and (ii) how effective they are in practical settings.

Approach. Insights in [12, 16, 34] have shown a considerable influence of node degree and shortest paths on GNN robustness.

Figure 1: Illustration of Structack on GNN classification. In (a) we show a standard GNN classification with all node features and labels available to the algorithm. In (b) we depict an informed attack, which has access to the same information that the GNN classification task itself has. Based on this information, adversarial edges are added to attack GNN performance. In (c), we show an uninformed attack strategy, i.e. an attack that has no access to information about node attributes (labels, features), but only to the structure of the graph. A naive strategy could add edges based on topological graph features, for example add edges between pairs of nodes with high centrality or high similarity. In (d), we show a Structack attack which also has no access to information about node attributes, but attacks more successfully by adding edges between nodes with low centrality and low similarity. Structack approaches the performance of informed attacks such as Metattack [34] with less available information.

However, these insights are not well investigated. Therefore, we further inspect the effect of degree centrality and shortest path lengths on GNN adversarial attacks. First, we theoretically show that with standard degree normalization, low-degree neighbors surprisingly have more influence on a node’s representation than higher-degree neighbors. Second, we discuss the results showing the dependency of GNNs on links within graph communities [10, 14], which are ubiquitous in real-world graphs. Based on that, we argue that adversarial edges should link nodes with longer paths between them. Experimentally, we verify these insights on degrees and distance through simulating attacks on empirical datasets. We then introduce our uninformed structure-based adversarial attack (Structack), which generalizes these findings, and injects links between nodes of low structural centrality and similarity. Finally, we evaluate Structack compared to state-of-the-art attacks in terms of (i) reducing GNN accuracy, (ii) computational efficiency, and (iii) the ability to remain undetected.

Contribution and Impact. We introduce Structack[^1], a novel structure-based uninformed adversarial attack on GNNs. In experiments on empirical datasets, Structack performs on a level that is comparable to more informed state-of-the-art attacks [30, 34], while using less information about the graph and significantly lower computational requirements. We give insights on the detection of attacks, such as Structack, by analyzing their ability to be undetected. With our work, we introduce a new unstudied category of attacks that could be applied to real-world networks. Our findings

Equation 1: GNN propagation rule H-prime at layer k plus 1 equals sigma of D-tilde to minus one-half, A-tilde, D-tilde to minus one-half, H-prime at layer k, and W at layer k.

highlight the vulnerability of GNNs to uninformed attacks that have no knowledge about node attributes or the attacked model. Hence, our work contributes toward building more robust predictive and defensive models for graph data.

2. Background

Preliminaries. Let 𝐺= (𝐴,𝑋,𝑌) be an attributed undirected graph with an unweighted adjacency matrix 𝐴∈{0, 1}𝑛×𝑛, a feature matrix 𝑋∈IR𝑛×𝑓, and a label matrix 𝑌∈{0, 1}𝑛×|𝐿|, where 𝐿 is the set of labels. We refer to the set of nodes as 𝑉= {1,...,𝑛}, and the set of edges as 𝐸, where |𝐸| = 𝑚and (𝑖, 𝑗) ∈𝐸iff 𝐴𝑖,𝑗= 1. Each node 𝑢∈𝑉has a feature vector 𝑥𝑢∈IR𝑓, where 𝑓is the feature vector dimension, and a label 𝑦𝑢∈𝐿. The feature vectors are encoded in 𝑋, where 𝑢’s feature vector 𝑥𝑇𝑢is the row 𝑢of matrix 𝑋. The labels of all the nodes are accordingly encoded in 𝑌as well, with one-hot encoding in each row. We use the notation 𝐷to refer to the degree matrix, a diagonal matrix where 𝐷𝑖,𝑖= 𝑑𝑖is the degree of node 𝑖.

Figure 2: Impact of degree and distance on adversarial attacks on GNN classification. Top: GNN accuracy when we link nodes of varying degrees to other nodes of varying degrees as well, i.e., low-to-low degrees (top-left corner) up to high-to-high (bottom-right corner). Linking nodes with lower node degrees appears to result in more effective attacks. Bottom: GNN accuracy when adding edges between pairs of nodes with the lowest distance up to the highest distance. Linking nodes with higher distance (lower similarity) results in a more effective attack. Degrees and distances are grouped into 10-quantiles. The presented accuracy comes from training a GNN model (namely GCN [13]) on the perturbed graphs of 5 empirical datasets.

is an activation function, which is typically non-linear, e.g., ReLU. This formula is usually written as 𝐻′(𝑘+1) = 𝜎( ˆ𝐴𝐻′(𝑘)𝑊(𝑘)) with ˆ𝐴= ˜𝐷−1

2 ˜𝐴˜𝐷−1

2.

Node classification with GNNs. For node classification, we set the activation function of the last layer of the GNN to softmax

𝑍= 𝑓(Θ;𝐴,𝑋) = softmax( ˆ𝐴𝐻′(𝐾−1)𝑊(𝐾−1)), (2)

where Θ = {𝑊(0),...,𝑊(𝐾−1)} is the set of model parameters which we aim to optimize, and 𝑍𝑢,𝑐represents the model confidence that a node 𝑢belongs to label 𝑐. Given the labels of a subset of nodes 𝑉′ ⊆𝑉, the goal of node classification is to find the labels of the unlabeled nodes 𝑉 𝑉′. To achieve this with GNNs, a common choice is to minimize the cross entropy error in 𝑉′

L(𝑌,𝑍) = − Õ

𝑢∈𝑉′ ln𝑍𝑢,𝑦𝑢, (3)

where 𝑍𝑢,𝑦𝑢represents the model confidence that node 𝑢belongs to its ground-truth class 𝑦𝑢.

Adversarial attacks on GNNs. GNNs are prone to global adversarial attacks on the graph structure (i.e., the adjacency matrix 𝐴) [11]. These attacks aim to reduce the overall (i.e., global) node classification accuracy of a GNN model. To that end, these attacks follow different strategies to perturb the graph structure by adding or removing up to a budget of 𝑘edges.

3. Impact Of The Structure On Attacks

This section presents examples of graph structural properties and analyzes their effect on adversarial attacks on graph structure. Findings from related work show that node degrees have an impact on graph controllability [15] and on the selection of targeted nodes in adversarial attacks on node attributes [16]. Besides, an analysis of Metattack (a state-of-the-art attack) in [34] shows a slight tendency of the attack to link pairs of nodes with longer shortest paths (i.e., longer distances2). However, these works do not particularly focus on the impact of node degrees and distances on adversarial attacks or the reasoning behind it. Therefore, in the following analysis, we study the impact of node degrees and distances on GNNs from a theoretical perspective, and consequently verify this impact empirically.

3.1 Impact of Degree and Distance

Node degree impact. We aim to theoretically assess the role of node degree on the propagation in GNNs (Equation 1). For this study, we investigate the common degree normalization form as in Equation 1, i.e., normalization by the degree square root of two adjacent nodes. Using other less common forms of degree normalization or no degree normalization can be investigated in future work. We first simplify the update rule given in Equation 1 by ignoring the non-linearity in the intermediate layers, i.e., linearizing

Table 1: Dataset statistics. Complete visual table crop from the source PDF.

the equation (inspired by [33] and [28])

𝐻′(𝐾):= softmax(𝐻(𝐾)𝑊) = softmax( ˆ𝐴𝐾𝑋𝑊), (4)

where weight matrices 𝑊(𝑘) for 𝑘∈{0, 1,.., 𝐾−1} are absorbed by 𝑊= 𝑊(0)𝑊(1)...𝑊(𝐾−1) ∈IR𝑓×|𝐿|. We use 𝐻(𝑘) = ˆ𝐴𝑘𝑋∈IR𝑛×𝑓

to represent node intermediate representations at layer 𝑘in the linearized model. Each row 𝑢of matrix 𝐻(𝑘), denoted as (ℎ(𝑘) 𝑢 )𝑇∈IR𝑓, is the intermediate representation of node 𝑢at layer 𝑘. As 𝐻(𝑘) = ˆ𝐴𝐻(𝑘−1), we can write the representation in layer 𝑘of node 𝑢(i.e., ℎ(𝑘) 𝑢 ) in terms of the representations of its neighboring nodes N (𝑢) in the previous layer 𝑘−1 as follows

1 √𝑑𝑢𝑑𝑣 ℎ(𝑘−1) 𝑣. (5)

ℎ(𝑘) 𝑢 = Õ

𝑣∈N(𝑢)

To show the impact of the degree of a specific neighbor 𝑤∈N (𝑢) on the node 𝑢, we compute the derivative of 𝑢’s final representation ℎ(𝐾) 𝑢 with respect to 𝑤’s initial representation ℎ(0) 𝑤 (i.e., the input features for node 𝑤), that is, the Jacobian matrix J𝑢,𝑤∈IR𝑓×𝑓

with 𝐽𝑢,𝑤 𝑖,𝑗 = 𝜕ℎ(𝐾) 𝑢,𝑖/𝜕ℎ(0) 𝑤,𝑗. Equation 5 shows that the 𝑖-th vector

component of ℎ(𝑘) 𝑢: 𝑘> 0 (i.e., ℎ(𝑘) 𝑢,𝑖) only depends on the vector

component ℎ(𝑘−1) 𝑤,𝑖 of the neighbor 𝑤, and not on any other com-

ponent ℎ(𝑘−1) 𝑤,𝑗 with 𝑖≠𝑗3. By induction, we can show that, for

𝑤∈N (𝑢), the 𝑖-th vector component of ℎ(𝑘) 𝑢 only depends on the 𝑖-th vector component of ℎ(0) 𝑤. This fact leads to the Jacobian matrix being diagonal. Therefore, it is sufficient to compute the partial of an arbitrary component 𝑖

𝜕ℎ(0) 𝑤,𝑖 = 𝜕(Í 𝑣∈N(𝑢) 1 √𝑑𝑢𝑑𝑣ℎ(𝑘−1) 𝑣 )

𝐽𝑢,𝑤 𝑖,𝑖 = 𝜕ℎ(𝐾) 𝑢,𝑖

𝜕ℎ(0) 𝑤,𝑖. (6)

By applying the chain rule, we get

𝜕ℎ(𝐾−1) 𝑣1,𝑖

1 p

𝐽𝑢,𝑤 𝑖,𝑖 = Õ

𝜕ℎ(0) 𝑤,𝑖 (7)

𝑑𝑢𝑑𝑣1

𝑣1∈N(𝑢)

By repeatedly applying the chain rule 𝐾times, we end up at the partial of a node’s initial representation ℎ(0) 𝑣𝐾,𝑖in terms of 𝑤’s initial

representation ℎ(0) 𝑤,𝑖, that is

𝜕ℎ(0) 𝑣𝐾,𝑖

( 1: 𝑣𝐾= 𝑤 0: 𝑣𝐾≠𝑤. (8)

𝜕ℎ(0) 𝑤,𝑖 =

When we propagate this back to Equation 7, we arrive at

1 p

𝐽𝑢,𝑤 𝑖,𝑖 = Õ

𝑑𝑢𝑑𝑣1 (...( Õ

𝑑𝑣𝐾−1𝑑𝑣𝐾 )...) (9)

𝑣1∈N(𝑢)

𝑣𝐾∈{𝑤}

We can rewrite Equation 9 for each (not necessarily simple) path of length 𝐾between 𝑢and 𝑤, that is, with 𝐾−1 intermediate nodes [𝑣1, 𝑣2,..., 𝑣𝐾−1] ∈Paths(𝑢,𝑤, 𝐾), as follows

𝐾−1 Ö

𝐽𝑢,𝑤 𝑖,𝑖 = 1 √𝑑𝑢𝑑𝑤

1

Õ

𝑑𝑣𝑖 (10)

𝑖=1

[𝑣1,𝑣2,...,𝑣𝐾−1]∈Paths(𝑢,𝑤,𝐾)

Next, we empirically verify the hypotheses from the previous analysis on the datasets, summarized in Table 1. We perform perturbation by adding edges to the graph following different strategies. Then we observe the accuracy of training a GNN model on the perturbed graph. We choose the well-known non-linear GCN [13] model4 to empirically show that our theoretical analysis of a linearized GNN model extends to a non-linear one. In the next experiments, we have a budget of 𝑘= ⌊𝑟× 𝑚⌋edges to add to the graph, where 𝑟is the perturbation rate which we set to 0.05.

Node degree. The first experiment aims to compare linking lowdegree nodes to linking high-degree nodes. We group the nodes into 10 equal-sized subsets based on their degrees. For each pair of subsets, we try adding 𝑘adversarial edges between random pairs of nodes in the two subsets and observe the GCN accuracy. We obtain the results in Figure 2 (top). These results support our discussion (Section 3.1) and show an increase in accuracy, i.e., a decrease in attack effectiveness, when linking pairs of high-degree nodes. As a

4As the reader might notice, the analysis in Section 3.1 does not only apply to this particular family of GNNs since feature propagation and normalization are necessary components of GNNs. Our work studies SGC models theoretically and GCN models empirically.

result, we assume that attacks are more effective when they link pairs of low-degree nodes.

Node distance. The second experiment aims to compare linking distant pairs of nodes to linking nearby pairs. We perform this experiment in 10 trials, with trial 1 linking nodes with lowest distances and trial 10 with highest distances. In each trial, we observe the GCN accuracy after adding 𝑘adversarial edges. In trial 𝑖∈{1,.., 10}, for each adversarial edge (to be added), we randomly pick one node 𝑢from the graph and attach one end of that edge to 𝑢. Then, we group all the nodes in the graph into 10 equal-sized subsets based on their distance from 𝑢. Finally, we link 𝑢to a random node in the 𝑖-th subset. Figure 2 (bottom) depicts this comparison and shows the accuracy of each trial. The figure suggests that linking distant nodes results in more effective attacks than linking nearby nodes.

4. Structack

In this section, we introduce our attack strategy Structack (Structure-based attack), built upon the findings from Section 3. We outline the attacker’s goal, capabilities and knowledge, explain the attack strategy, provide a complexity analysis, and discuss insights on the detection of the attack.

4.1 Attacker’s Capabilities and Restrictions

In our setting, the attacker aims to minimize the overall GNN accuracy on node classification. We limit the knowledge of the attacker to the adjacency matrix, as opposed to existing work [6, 16, 17, 30, 33, 34]. The attacker has no access to the features or the label of any node. They also do not have any information about the attacked GNN model or its parameters. We assume that the attacker is able to add edges between any pair of nodes5 in the graph, up to a limit 𝑘, called the budget. As a result, the attack generates a poisoned adjacency matrix 𝐴′, where ||𝐴−𝐴′||0 ≤𝑘. According to the taxonomy suggested by [11], our attack is an untargeted (global) poisoning attack on graph structure.

4.2 Attack Strategy

The findings in Section 3 show the impact of low node degrees and long node distances in the graph on adversarial attacks. Following these findings, an efficient strategy to exploit this impact is to (1) select nodes with low degrees, and (2) link pairs of nodes with high distances. Node degree is a measure of node centrality, and distance represents one form of node dissimilarity (e.g., Katz similarity [20] gives higher weights to shorter paths). We generalize node degree and distance to a diverse set of measures of centrality and similarity. Therefore, Structack consists of selecting nodes with the lowest centrality and linking these nodes so that the similarity between linked nodes is minimized. For a budget 𝑘, Structack chooses 2𝑘nodes with the lowest centrality. We then split these nodes into two sets 𝑈1 and 𝑈2, both of size 𝑘, based on their centrality, i.e., 𝑈1 has the 𝑘nodes with lowest centrality. Then Structack finds the matching between nodes in 𝑈1 and 𝑈2, which minimizes the sum of similarities between the matched nodes. To solve this minimization problem, we use

5This ability might not directly translate to real-world attacks, but it is necessary to study the extent of different attack approaches, including the baselines that we evaluate as well.

the Hungarian algorithm. Finally, Structack adds edges between matched nodes. For selection and linking steps, we investigate different choices of centrality and similarity measures (Table 2). Otherwise, we follow conventional procedures, e.g., splitting lowest-centrality nodes in order, and using the sum of similarities as a criterion for the matching problem. Please note, investigating other splitting and matching criteria can be interesting, e.g., using interleaving splitting. However, we leave this for future work as we are more interested in the impact of centrality and similarity choices.

4.3 Complexity Analysis

After computing the centrality for each node, obtaining the 2𝑘 lowest-centrality nodes for the splitting step requires O(𝑛log𝑘) time. At the final step of Structack, finding the optimal node matching is a minimum cost maximum bipartite matching problem. We solve this problem using the Hungarian algorithm, which has the complexity of O(𝑘3) time. In Table 2, we list the centrality and similarity measures we used with their corresponding time and memory complexity. These measures are well defined in the literature, along with their complexity. However, to make our paper self-contained, we explain essential details about how we compute similarity and give the resulting time complexity.

Community-based similarity: First, we perform community detection using Louvain method [4], which splits the graph into 𝐶 disjoint communities. We then build a community similarity matrix S ∈IR𝐶×𝐶encoding the original density of edges, i.e., S𝑖,𝑗represents the edge density of links between community 𝑖and community 𝑗. Then we set the similarity between two nodes𝑢and 𝑣to the similarity of their corresponding communities S𝐶𝑜𝑚𝑚(𝑢),𝐶𝑜𝑚𝑚(𝑣), where 𝐶𝑜𝑚𝑚(𝑥) is the community of node 𝑥as per Louvain method. For the community-based similarity, the time complexity of Louvain community detection is considered to be linear in the number of edges on typical and sparse data [4] O(𝑚), and the edge density computation step is also of order O(𝑚), making this similarity calculation of order O(𝑚) as well.

Distance-based similarity: We use breadth-first search (BFS) to get single-source shortest paths from each node in 𝑈1 to all nodes in𝑈2 (which, in the worst case, means to all nodes in the graph). We choose BFS because we assume that the input graph is unweighted as mentioned in Section 2. We restrict BFS sources to nodes in 𝑈1 since the distance between nodes outside𝑈1 and𝑈2 are not relevant for Structack. For the shortest path length computation, and if we do not consider parallelization, the BFS algorithm is repeated 𝑘times (once for each node in𝑈1), which gives a time complexity of 𝑂(𝑘𝑚). Please note that a higher distance indicates a lower similarity.

Katz similarity: This notion is a measure of regular equivalence of nodes [20]. It counts paths of all lengths and weighs them differently, i.e., shorter paths with higher weights. We can write Katz similarity matrix as Í∞ 𝑖=0 (𝛼𝐴)𝑖, where 𝛼is a constant which needs to be less than the inverse of the largest eigenvalue of 𝐴. We approximate the similarity matrix without matrix inversion using inverse iteration until the matrix converges after 𝑡iterations. With sparse matrix multiplication, the time complexity turns into O(𝑡𝑚).

Table 2: Description of considered centrality and similarity metrics with time and memory complexity, including abbreviations. Complete visual table crop from the source PDF.

5. Experimental Evaluation

5.1 Adversarial Attack Evaluation

The goal of the experimental evaluation is to test the efficacy of Structack perturbations on GNNs. To this end, we evaluate Structack against informed baseline attacks as well as the random (uninformed) baseline. Notice that our attacks as well as the evaluated baselines apply structural perturbations only and not feature perturbations. For a perturbation rate 𝑟, we allow each attack to perturb the graph by adding (or removing in case of some studied baselines) a budget of 𝑘= ⌊𝑟× 𝑚⌋edges. We evaluate each attack on three different criteria: (i) Effectiveness in terms of GNN misclassification rate, (ii) Efficiency in terms of computation time and memory requirements, and (iii) Unnoticeability in terms of changes of degree

and clustering coefficient distributions. With this evaluation, we aim to demonstrate a performance trade-off of these three aspects.

5.2 Experimental Setup

We evaluate 24 different combinations of (Structack) derived from combining 6 different possibilities for node selection (including random selection) with 4 different possibilities for node linking (including random linking) as listed in Table 2. We include random selection and random linking to evaluate whether the effectiveness of certain centrality or similarity choices stem from randomness. We perform the following evaluations on the 5 datasets described in Table 1.

Effectiveness. To evaluate effectiveness (misclassification), we train a GNN model on the perturbed graph and report the classification accuracy on its test set. Aiming for more robust evaluation (inspired by [25]), we use 5 different random splits (10% train, 10% validation, and 80% test) for each dataset. Our GNN model of choice is the well-known GCN [13] model, which we initialize 5 times with different random weights for each perturbed input graph. For the effectiveness evaluation, we set the perturbation rate to 0.05.

Efficiency. Another criterion for evaluating adversarial attacks is their ability to efficiently use available resources in terms of computation time and used memory. More efficient attacks have a lower runtime and use less memory. Please note that we ran all experiments on a machine running Linux Ubuntu OS version 16.04 with Intel Xeon E5-2630 Processor with 40 CPUs, 256GB RAM, and a dedicated NVIDIA Tesla P100 16GB GPU. For these efficiency experiments, we also set the perturbation rate to 0.05. If an attack did not fit into the GPU memory for a particular dataset, we ran it with CPU settings for that dataset.

Unnoticeability. To evaluate attack unnoticeability, we run each attack for different perturbation rates 𝑟∈{0.001, 0.002, 0.003, 0.004, 0.005, 0.0075, 0.01, 0.025,0.05, 0.075, 0.10, 0.15, 0.20}. We report results in terms of the critical perturbation rate 𝑟𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙, i.e., largest 𝑟for which the attack is still deemed unnoticeable. We consider the attack to be unnoticeable if the changes in the node degree and local clustering coefficient values made by the attack are not significant. A commonly used approach for comparing two node degree distributions is the Two-Sample Kolmogorov-Smirnov statistical test (KS test) [2]. Therefore, we use the KS test to determine whether two compared samples (original graph versus perturbed graph) stem from the same distribution. We apply this test to obtain the significance in change for both degree and local clustering coefficient distributions. Here the null hypothesis of the KS test is that two samples are drawn from the same continuous distribution. We set the probability of rejecting the null hypothesis 𝛼to 0.05.

Baselines. We evaluate the most effective combinations of Structack against the following baselines in terms of the three evaluation criteria. Random: A simple uninformed baseline attack that selects random node pairs and adds an edge between them. This is the only uninformed baseline against which we compare Structack. DICE [27]: A simple heuristic, which is explicitly based on disconnecting nodes with the same label and connecting nodes

Table 3: Adversarial attack effectiveness. GCN accuracy after perturbation; lower accuracy means a more effective attack. Complete visual table crop from the source PDF.

with different labels. This attack is informed as it has access to node labels. Metattack [34]: State-of-the-art optimization-based attack on graphs via meta-learning. It treats the adjacency matrix as a parameter of the optimization problem, which is minimizing the accuracy of a surrogate model. Metattack does not require access to the GNN model parameters, and uses the surrogate model instead. PGD and MinMax [30]: State-of-the-art optimization-based attacks on graphs. Both attacks apply projected gradient descent to solve the optimization problem after convex relaxation. MinMax attempts to build a more robust attack through attacking a retrainable GNN. These two attacks require access to the GNN model parameters. In addition to the graph structure, Metattack, PGD, and MinMax have access to the feature vectors of all nodes and the labels of some nodes (typically, nodes in the training set). Thus, these three attacks are informed in our definition. These attacks involve randomization, which is why we initialize each of them 5 times with different random weights for each attack setting.

6. Results And Discussion

Next we present evaluation results, discuss trade-offs, and outline the limitations of our work. In the results tables, we use the abbreviations defined in Table 2 to describe the centrality and similarity measures of Structack combinations.

Table 4: Runtime in minutes with 0.05 perturbation rate. Complete visual table crop from the source PDF.

Effectiveness. First, we apply Structack combinations to each graph dataset and obtain the GCN accuracy. Then we compute the average rank of each combination in terms of classification accuracy. We visualize the ranking in Figure 3 with a critical difference diagram. The thick horizontal bars in this figure group together the combinations with no significant difference7 in ranks between them. The six lowest-ranked combinations (which involve randomness) perform significantly worse than the rest. This confirms that the improvement of Structack does not stem from randomness. We observe that the seven most effective combinations are not significantly different. Among these combinations, we frequently see Pagerank centrality, degree centrality and Katz similarity, which implies the effectiveness of these three measures. Node centrality in Structack has a substantial impact on effectiveness, relative to the node similarity. For example, performing selection with degree or Pagerank centrality and linking at random (Degree.Random and Pagerank.Random in Figure 3) seems to perform better than some combinations that do not involve random linking. As the seven most effective combinations do not differ significantly from each other, we consequently compare them to the baselines as presented in Table 3. Structack combinations show a comparable performance to state-of-the-art methods, although they have no access to node attributes.

Efficiency. In Tables 4 and 5, we respectively show the runtime and the memory consumption of our most effective Structack combinations and existing adversarial attack methods. We notice a significant drop in runtime and memory consumption for Structack compared to the optimization-based attacks (Metattack, PGD,

7For details on the computation of significance, we refer to the documentation of the R package scmamp https://cran.r-project.org/web/packages/scmamp/scmamp.pdf.

and MinMax). These three attacks did not fit in the available GPU memory for Pubmed, and therefore we ran them with CPU settings for this dataset. For Structack combinations, the similarity measure generally has a substantial effect on runtime and memory consumption, with community-based similarity being the most efficient. An exception to this rule is the runtime of Betweenness and Closeness centralities. For example on Pubmed, Betweenness and Closeness computation takes 325 and 66 minutes respectively, while the computation of Katz similarity takes 100 minutes. The time complexity of computing these two measures (Table 2) is O(𝑛𝑚) making them impractically slow for large graphs.

Unnoticeability. We report the critical perturbation rate 𝑟𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 for which the respective attack remains unnoticeable as per our definition in Sections 5.2. We present 𝑟𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙for each approach in Table 6. For most datasets, Structack’s 𝑟𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙is on par or slightly lower than the informed approaches. We also observe that the

Figure 3: Comparison of Structack combinations’ effectiveness. This plot shows combinations from most to least effective (lowest to highest GCN classification accuracy) presented from left to right. Thick horizontal bars represent no significant difference between the combinations they mark. We find that the best seven combinations are not significantly different, while being significantly better than the rest. We also see that the stronger impact lies in the choice of centrality with the degree and Pagerank centralities with random linking outperforming half of the other combinations.
Table 5: Memory consumption in Megabytes with 0.05 perturbation rate. Complete visual table crop from the source PDF.

Performance trade-off. Structack provides competitive effectiveness and high efficiency. However, it shows to be relatively noticeable compared to baseline approaches. On the other hand, optimization-based informed attacks achieve better unnoticeability but with much lower efficiency compared to Structack. This low efficiency prevents them from running on larger graphs, with Pubmed as a toy example (this has been recently noted by Geisler et al. [8]). A deeper look into Structack shows that the selection strategy (i.e., centrality measure) has more impact on effectiveness and unnoticeability. Conversely, the linking strategy (i.e., similarity measure) has more impact on the efficiency. All in all, we assume an attack to be effective (cause high misclassification rate) if one of the 7 most effective combinations is picked. When running on big graphs, attackers would tend to choose efficient combinations such as DG×Comm. To hide their behavior, attackers would tend to choose less noticeable combinations such as BT×Katz.

Table 6: Maximum unnoticeable perturbation rate. Critical perturbation rate r-critical by dataset and adversarial attack. Complete visual table crop from the source PDF.

Limitations. Our study focuses on exploiting the structure information using centrality and similarity measures. One could study other centrality and similarity measures, and even other graph structural properties. Moreover, instead of the theoretical strategy defined in Section 4.2, one could define a more practical heuristic to exploit these structural features. Furthermore, other forms of degree normalization in the target GNN model could result in different strategies than Structack, which is an interesting direction for future work. However, the aim of our work is to illustrate the extent to which uninformed attacks are successful, and we demonstrate that through our Structack strategy, which covers a range of possibilities of uninformed attacks. Our unnoticeability measure was limited to degree and clustering coefficient distributions. Different unnoticeability tests could be investigated for this purpose. In this regard, Structack appears more noticeable than existing informed attacks due to its greediness in selecting nodes with lowest centrality. The unnoticeability results motivate us to look into approaches that intrinsically consider both effectiveness and unnoticeability. More careful selection

could improve Structack’s unnoticeability, at the possible cost of effectiveness. Additionally, comparing distributions of the clean graph and the perturbed one is not practical for dynamic networks, where edges and nodes are added and removed constantly. This comparison does not consider the natural growth of the network. This type of comparison is a common practice in works on adversarial attacks on graphs, and it should be improved. This could be alleviated by using graph growth models or dedicated datasets with edge timestamps.

7. Related Work

Information available to attackers. Many recent works have introduced attack models for GNNs with different knowledge and capabilities. These models adhere to various restrictions on the practicality of the adversarial attacks and the limitations of the attacker. However, the majority of these models assume the attacker’s knowledge of the targeted GNN model [29, 30] or their access to node attributes [16, 26, 33, 34], i.e., feature vectors and some labels. We have referred to such adversarial attacks as informed attacks. A recent survey [11] describes the level of knowledge of (i) the targeted GNN model and (ii) graph data as one characteristic of the attack. Our work differentiates between these two descriptions and focuses on the knowledge of graph data regardless of the knowledge of the targeted model.

Node centrality. Earlier findings in network science on controlling complex networks [15] show that fewer nodes are needed to control the network, if one aims to control nodes with low degrees. Another study about the stability of node embedding [23] shows that high-centrality nodes have more stable embeddings compared to low-centrality nodes. In the context of GNNs, Metattack[34] shows a slight tendency to connect nodes with low degree. Zhu et al. [32] experimentally consider attacks on nodes with higher than 10 degrees for noticeability considerations. Ma et al. [16] introduce practical adversarial attacks by targeting nodes with high importance score, e.g., PageRank, node degree, and betweenness. The authors argue that nodes with too high importance score, e.g., hubs, are hard to control, hence the attack approach avoids such nodes. Our work conversely builds theoretical grounds and experimental support to show that attacks are more effective if they focus on low degree nodes.

Node similarity. A study on the behavior of GNNs [14] shows that feature and label smoothness are the reason why GNNs work. Some works on GNN adversarial attacks [11, 12] analyze the poisoned graphs of popular attack models and show a tendency of the attackers to add edges between nodes with different labels and lowsimilarity features. Waniek et al. [27] introduce an attack that is explicitly based on disconnecting nodes with the same label and connecting nodes with different labels (Disconnect Internally, Connect Externally - DICE). More insights on structure in Metattack [34] suggest that attacks tend to link pairs of nodes with higher-thanaverage shortest path length. Finally, a preprocessing-based defense mechanism for GNNs [29] is based on reducing the weight of edges between nodes with a low Jaccard similarity score of their features. Our work builds on these findings to investigate more in

structural node similarity and build an uninformed structure-based adversarial attack strategy.

8. Conclusion

We investigated the effectiveness of uninformed adversarial attacks on GNNs, i.e. attacks that have no access to information about node labels or feature vectors in a graph. With theoretical considerations and experimental support, we demonstrated that uninformed attacks can exploit structural features of the graph, such as node centrality and similarity. We presented Structack, a novel uninformed attack strategy that selects nodes with low centrality and links pairs of nodes with low similarity. In experiments on five graph datasets Structack showed comparable performance to state-of-the-art attacks, while having less information about the graph (no access to node attributes), exhibiting higher efficiency, and reasonable unnoticeability. Our work shows that uninformed adversarial attacks are successful with only structural knowledge, sometimes outperforming informed attacks. The feasibility of Structack on real-world graphs makes it vital to develop more structure-aware defense mechanisms for more reliable GNN prediction.

ACKNOWLEDGEMENTS

The Know-Center is funded within the Austrian COMET Program ś Competence Centers for Excellent Technologies ś under the auspices of the Austrian Federal Ministry of Transport, Innovation and Technology, the Austrian Federal Ministry of Economy, Family and Youth and by the State of Styria. COMET is managed by the Austrian Research Promotion Agency FFG. This work is supported by the H2020 project TRUSTS (GA: 871481) and the łDDAIž COMET Module within the COMET Program, funded by the Austrian Federal Ministry for Transport, Innovation and Technology (bmvit), the Austrian Federal Ministry for Digital and Economic Affairs (bmdw), the Austrian Research Promotion Agency (FFG), the province of Styria (SFG) and partners from industry and academia.

References

[1] Lada A. Adamic and Natalie Glance. 2005. The Political Blogosphere and the 2004 U.S. Election: Divided They Blog. In Proceedings of the 3rd International Workshop on Link Discovery (Chicago, Illinois) (LinkKDD ’05). Association for Computing Machinery, New York, NY, USA, 36ś43. https://doi.org/10.1145/1134271.1134277 [2] Sadegh Aliakbary, Jafar Habibi, and Ali Movaghar. 2014. Quantification and comparison of degree distributions in complex networks. In 7’th International Symposium on Telecommunications (IST’2014). 464ś469. https://doi.org/10.1109/ ISTEL.2014.7000748 [3] Sharmodeep Bhattacharyya and Peter J Bickel. 2014. Community detection in networks using graph distance. arXiv preprint arXiv:1401.3915 (2014). [4] Vincent D Blondel, Jean-Loup Guillaume, Renaud Lambiotte, and Etienne Lefebvre. 2008. Fast unfolding of communities in large networks. Journal of statistical mechanics: theory and experiment 2008, 10 (2008), P10008. [5] Ulrik Brandes. 2001. A faster algorithm for betweenness centrality. Journal of mathematical sociology 25, 2 (2001), 163ś177. [6] Hanjun Dai, Hui Li, Tian Tian, Xin Huang, Lin Wang, Jun Zhu, and Le Song. 2018. Adversarial attack on graph structured data. arXiv preprint arXiv:1806.02371 (2018). [7] Linton C Freeman. 1978. Centrality in social networks conceptual clarification. Social networks 1, 3 (1978), 215ś239. [8] Simon Geisler, Daniel Zügner, Aleksandar Bojchevski, and Stephan Günnemann. 2021. Attacking Graph Neural Networks at Scale. In Deep Learning for Graphs at AAAI Conference on Artificial Intelligence 2021, AAAI workshop 2021. [9] Will Hamilton, Zhitao Ying, and Jure Leskovec. 2017. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems. 1024ś1034. [10] Hussain Hussain, Tomislav Duricic, Elisabeth Lex, Roman Kern, and Denis Helic. 2020. On the Impact of Communities on Semi-supervised Classification Using

Graph Neural Networks. In International Conference on Complex Networks and Their Applications. Springer, 15ś26. [11] Wei Jin, Yaxin Li, Han Xu, Yiqi Wang, and Jiliang Tang. 2020. Adversarial Attacks and Defenses on Graphs: A Review and Empirical Study. arXiv preprint arXiv:2003.00653 (2020). [12] Wei Jin, Yao Ma, Xiaorui Liu, Xianfeng Tang, Suhang Wang, and Jiliang Tang. 2020. Graph Structure Learning for Robust Graph Neural Networks. Association for Computing Machinery, New York, NY, USA, 66ś74. https://doi.org/10.1145/ 3394486.3403049 [13] Thomas N. Kipf and Max Welling. 2017. Semi-Supervised Classification with Graph Convolutional Networks. In International Conference on Learning Representations (ICLR). [14] Qimai Li, Zhichao Han, and Xiao Ming Wu. 2018. Deeper insights into graph convolutional networks for semi-supervised learning. In 32nd AAAI Conference on Artificial Intelligence, AAAI 2018. arXiv:1801.07606 [15] Yang-Yu Liu, Jean-Jacques Slotine, and Albert-László Barabási. 2011. Controllability of complex networks. nature 473, 7346 (2011), 167ś173. [16] Jiaqi Ma, Shuangrui Ding, and Qiaozhu Mei. 2020. Black-Box Adversarial Attacks on Graph Neural Networks with Limited Node Access. arXiv preprint arXiv:2006.05057 (2020). [17] Yao Ma, Suhang Wang, Tyler Derr, Lingfei Wu, and Jiliang Tang. 2019. Attacking graph convolutional networks via rewiring. arXiv preprint arXiv:1906.03750 (2019). [18] Andrew Kachites McCallum, Kamal Nigam, Jason Rennie, and Kristie Seymore. 2000. Automating the construction of internet portals with machine learning. Information Retrieval 3, 2 (2000), 127ś163. [19] Galileo Namata, Ben London, Lise Getoor, Bert Huang, and UMD EDU. 2012. Query-driven active surveying for collective classification. In 10th International Workshop on Mining and Learning with Graphs, Vol. 8. [20] Mark Newman. 2018. Networks. Oxford university press. [21] Mark EJ Newman. 2008. The mathematics of networks. The new palgrave encyclopedia of economics 2, 2008 (2008), 1ś12. [22] Lawrence Page, Sergey Brin, Rajeev Motwani, and Terry Winograd. 1999. The PageRank citation ranking: Bringing order to the web. Technical Report. Stanford InfoLab. [23] Tobias Schumacher, Hinrikus Wolf, Martin Ritzert, Florian Lemmerich, Jan Bachmann, Florian Frantzen, Max Klabunde, Martin Grohe, and Markus Strohmaier. 2020. The Effects of Randomness on the Stability of Node Embeddings. arXiv preprint arXiv:2005.10039 (2020).

[24] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. 2008. Collective classification in network data. AI magazine 29, 3 (2008), 93ś93. [25] Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Günnemann. 2018. Pitfalls of Graph Neural Network Evaluation. Relational Representation Learning Workshop, NeurIPS 2018 (2018). [26] Yiwei Sun, Suhang Wang, Xianfeng Tang, Tsung-Yu Hsieh, and Vasant Honavar. 2020. Adversarial Attacks on Graph Neural Networks via Node Injections: A Hierarchical Reinforcement Learning Approach. Association for Computing Machinery, New York, NY, USA, 673ś683. https://doi.org/10.1145/3366423.3380149 [27] Marcin Waniek, Tomasz P Michalak, Michael J Wooldridge, and Talal Rahwan. 2018. Hiding individuals and communities in a social network. Nature Human Behaviour 2, 2 (2018), 139ś147. [28] Felix Wu, Tianyi Zhang, Amaur Holanda de Souza, Christopher Fifty, Tao Yu, and Kilian Q Weinberger. 2019. Simplifying graph convolutional networks. Proceedings of Machine Learning Research (2019). [29] Huijun Wu, Chen Wang, Yuriy Tyshetskiy, Andrew Docherty, Kai Lu, and Liming Zhu. 2019. Adversarial examples for graph data: deep insights into attack and defense. In Proceedings of the 28th International Joint Conference on Artificial Intelligence. AAAI Press, 4816ś4823. [30] Kaidi Xu, Hongge Chen, Sijia Liu, Pin-Yu Chen, Tsui-Wei Weng, Mingyi Hong, and Xue Lin. 2019. Topology Attack and Defense for Graph Neural Networks: An Optimization Perspective. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19. International Joint Conferences on Artificial Intelligence Organization, 3961ś3967. https://doi.org/10.24963/ijcai. 2019/550 [31] Muhan Zhang and Yixin Chen. 2018. Link prediction based on graph neural networks. In Advances in Neural Information Processing Systems. 5165ś5175. [32] Dingyuan Zhu, Ziwei Zhang, Peng Cui, and Wenwu Zhu. 2019. Robust graph convolutional networks against adversarial attacks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. 1399ś1407. [33] Daniel Zügner, Amir Akbarnejad, and Stephan Günnemann. 2018. Adversarial attacks on neural networks for graph data. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. 2847ś2856. [34] Daniel Zügner and Stephan Günnemann. 2019. Adversarial Attacks on Graph Neural Networks via Meta Learning. In International Conference on Learning Representations. https://openreview.net/forum?id=Bylnx209YX

[^1]: We provide the implementation Structack and the experiments for reproducibility at https://github.com/sqrhussain/structack.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime