<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Attack-Model-Agnostic Defense Against Model Poisonings in Distributed Learning</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>12/01/2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10454906</idno>
					<idno type="doi">10.1109/SmartWorld-UIC-ATC-ScalCom-DigitalTwin-PriComp-Metaverse56740.2022.00354</idno>
					<title level='j'>Proceedings of the 19th IEEE International Conference on Ubiquitous Intelligence and Computing (UIC 2022)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Hairuo Xu</author><author>Tao Shu</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The distributed nature of distributed learning renders the learning process susceptible to model poisoning attacks. Most existing countermeasures are designed based on a presumed attack model, and can only perform under the presumed attack model. However, in reality a distributed learning system typically does not have the luxury of knowing the attack model it is going to be actually facing in its operation when the learning system is deployed, thus constituting a zero-day vulnerability of the system that has been largely overlooked so far. In this paper, we study the attack-model-agnostic defense mechanisms for distributed learning, which are capable of countering a wide-spectrum of model poisoning attacks without relying on assumptions of the specific attack model, and hence alleviating the zero-day vulnerability of the system. Extensive experiments are performed to verify the effectiveness of the proposed defense.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>In recent years we have witnessed the initial success of machine-learning-based AI (artificial intelligence) in many application domains, such as image processing, natural language processing, autonomous driving, robotics, gaming, medical science, and public safety. Encouraged by this initial success, the size of learning is being scaled up, so as to make a trained model more generalizable and applicable to wider scopes. This is achieved by increasing not only the total volume of data used to train the model, but also the number of independent sources that collect the data under different spatial and temporal scenarios and contribute them for model training. For example, the medical imaging records from multiple independent medical institutions can be garnered to train a disease diagnosis model that is more accurate than what can be achieved by using data from any one institution alone <ref type="bibr">[1]</ref>. In line with this momentum, distributed machine learning technology has received a lot of interests recently. A distributed machine learning algorithm allows each source to first train an individual model (a.k.a. child model) just based on its own dataset, and then utilize the training result from all child models to construct a generalized model. As such, distributed machine learning enjoys the highly desirable benefit of data privacy, because it only requires the sharing of child model's training outcome (i.e., training parameters or gradients), rather than a direct disclosure of data across different sources. In addition, the training over different data sources can be paralleled and crowd-sourced to a cluster of machines, and therefore parallelism and high-speed is another benefit provided by distributed machine learning.</p><p>While distributed machine learning provides many nice features, researchers are concerned about its security problems, especially its vulnerability to model poisoning attacks. In particular, because the validity of the final learning outcome depends on the correctness of every child model and as the learning has a distributed structure, an attacker may simply compromise a subset of the data sources and tamper the training of their child models to compromise the final generalized model. Similar damage may also be caused when some data sources are malicious, injecting false child model parameters (or gradients) into the distributed learning process. Even worse, the iterative structure of many distributed machine learning algorithms allow the injected false model parameters to propagate among both global and child models, eventually affecting the validity of both the generalized model and all child models. In light of these threats, the countermeasures that allow the model server to check the validity (or the likelihood of being valid) of the shared local training outcome, and to eliminate the suspicious workers is extremely important, as it provides the guarantee for the convergence and the quality of the final global model in the distributed learning process.</p><p>Most existing countermeasures in distributed learning are designed based on a presumed attack model, and present their defense capabilities under that presumed attack model. However, they achieve limited defense effectiveness when facing different attack models other than the one that it was designed against. For example, the defense methods described in <ref type="bibr">[2]</ref> and <ref type="bibr">[3]</ref> are focusing on the targeted attack models, and their common goal is to prevent the mis-classification of a certain label. However, when facing the untargeted attack which aims to distort the global convergence, such targeted attack defense methods very often achieve poor performance.</p><p>In reality, however, when a distributed learning system is being deployed, it typically does not have the luxury of knowing the attack models that will actually be launched against it in its operation, thus constituting a zero-day vulnerability for the distributed learning system. Pre-stacking up a variety of countermeasures during the deployment of the learning system, each of which is designed specifically for a particular attack model that is anticipated to occur to the underlying system -a method commonly adopted by the software engineering industry to counter viruses, is not a feasible solution for learning systems because the countermeasures against different attack models are typically not compatible with each other. Therefore, when a new distributed learning system is being deployed, it is critical to embed in the system a wide-spectrum counter-attack defense mechanism, whose operation relies on little assumptions of the attack model (i.e., being attack model agnostic), and thus is able to counter a wide range of possible attacks. Such a defense mechanism will give the learning system an effective first line of defense when the system is born, alleviating the zero-day vulnerability of the system.</p><p>In this paper, focusing on the general category of model poisoning attacks, we study the attack-model-agnostic defense mechanisms in distributed machine learning by exploring several main-stream untrageted attack countermeasures such as Krum <ref type="bibr">[4]</ref> and AFA <ref type="bibr">[5]</ref>. We also propose two new attackmodel-agnostic countermeasures to defend against general model poisoning attacks in distributed learning: the Drop-one, and Structural Similarity (SSIM) detection. We evaluate these detection methods against several main stream untargeted attack models, and compare their effectiveness under different attack settings. Our contributions include the following three folds: To the best of our knowledge, our work is the first to systematically study the attack-model-agnostic countermeasures against model poisonings in distributed learning systems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. RELATED WORK</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Poisoning Attacks</head><p>Distributed learning is vulnerable to poisoning attacks. According to the goal of the attackers, the poisoning attacks can be divided into two categories, the targeted attacks that aims to reduce the accuracy on a given class, as described in <ref type="bibr">[6]</ref> and <ref type="bibr">[7]</ref>, and the untargeted attack, whose goal is to prevent the distributed learning system from converging to its optimal solution as described in <ref type="bibr">[8]</ref> [9] [10] <ref type="bibr">[11]</ref>. We believe that the untargeted attacks that threat the entire learning system has severe consequences than targeted attacks, therefore, we focus on the defense mechanisms against the untargeted attacks in this paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Defense Methods</head><p>Based on the potential attack models, the defense method could also be divided into two categories. The targeted defense proposed in <ref type="bibr">[2]</ref> and <ref type="bibr">[3]</ref> were based on the prior knowledge of the attack models. And more generally, Krum and Multi-Krum <ref type="bibr">[4]</ref>, AFA <ref type="bibr">[5]</ref>, Trimmed-Mean <ref type="bibr">[10]</ref>, Median <ref type="bibr">[12]</ref> and Bulyan <ref type="bibr">[13]</ref> are proposed to counter the untargeted attacks in distributed learning systems. These countermeasures utilize the statistical information such as gaussian similarity, cosine similarity, mean and median along each dimensions of the uploaded gradients, and draw the decision boundary to eliminate the outlying votes which are regarded as the attack vectors. It is worth noting that most of these methods compute the decision boundary based on the snapshot of the gradients in the current iteration, the SSIM proposed in this paper utilize the current and the historical gradients to differentiate the suspicious collaborators from the honest ones. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. MODEL DESCRIPTION AND PROBLEM FORMULATION</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Overview</head><p>Figure <ref type="figure">1</ref> illustrates the high-level architecture of our distributed learning system. It is an abstract example of the parameter server <ref type="bibr">[14]</ref> system. The system contains one server, which is responsible for maintaining the global parameters, and N collaborators (also referred to as peers in the following text). There exists the communication protocol that allows the collaborators to share the training information through local gradients upload and global parameters download. In the following, we describe the role and tasks of each components: the parameter server and the collaborators in details.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Local training</head><p>Assume that there are N peers, all of which have agreed in advance upon the same learning objective and training model architecture. For simplicity, but without loss of the generality, we choose the classification task as our objective, and neural network as our training architecture in this paper. Each peer maintains their own private dataset. These dataset should not be shared as they may contain sensitive information.</p><p>Each peer i maintains a local set of neural network parameters, denotes to w i k . The peer starts training by downloading, and replacing all local parameters with the global parameters from the server. After that, the peer trains locally for one epoch with Stochastic Gradient Descent optimization <ref type="bibr">[15]</ref>. In this epoch, the peer should train on all the local data, instead of certain mini-batches. This single-epoch training produces a set of gradients, denotes to g i k as</p><p>where</p><p>&#8226; g i k denotes to peer i's true local gradients trained with SGD at epoch k.</p><p>&#8226; w i k denotes to the local weights(parameters) of peer i at epoch k after the local training. The peers will then upload the gradients g i k to the parameter server, and wait until the next iteration.</p><p>The next peer will perform the same process of downloading and replacing the local parameters by the parameters from the server, which now contains the information uploaded by the previous peer, train locally for one epoch, stop and upload the gradients to the server. The iteration continues until all the peers have trained locally for one epoch and then the next iteration starts, where each peers will train for the second epoch.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Parameter server</head><p>The parameter server maintains a set of global parameters, denotes to w global k . Each time the server receives a gradient vector from a peer, it updates the set of global parameters by the following formula:</p><p>where</p><p>&#8226; &#951; is a constant that characterizes the percentage of uploaded gradient to be aggregated into the global parameters (or learning rate in conventional machine learning). &#8226; k -1 and k denote the epoch number, and &#8226; g i k is the local gradients upload by peer i at epoch k. As shown in Figure <ref type="figure">1</ref>, each upload is followed by an update, and an iteration is finished after each peer has trained itself for one epoch and has uploaded its local gradients.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. THREAT MODELS</head><p>Our proposed defense mechanisms seek to counter a full range of model-poisoning attacks in distributed learning without requiring pre-knowledge of the specific attack model. Several representative model-poisoning attacks are presented below. Note that our proposed defense mechanisms do not depend on any of these specific attack models. Instead, as will be clear shortly in Section VI, we will make observation on some common behavior presented by these attack models, which justifies our proposed model-agnostic defense mechanisms.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Single Attacker</head><p>Similar to the honest peers, the attacker has access to its own private data, and the communication channel with the server. In order to take advantage of other collaborators' training efforts, the attacker download the global parameters once. That's the only time that the attacker will perform parameters downloading, and that particular set of global parameters downloaded will be the last set of "pure" global parameters, as it contains the training information from the honest peers and has not been polluted yet.</p><p>After the initial download of global parameters, the attacker solely trains on its own data. When it's the attacker's turn to upload, the attacker fabricates a vector resembling the features of the true gradients, and uploads it to the server. We consider the following two model poisoning attack models, and explain their strategies to fabricate the poisoning vector with the maximum attacking effects.</p><p>1) Random Noise Attack: The random noise attack fabricates the poisoning vector by uniformly generating a set of random scalars within the range (also referred to as magnitude in the following text) of [ r1 , r2 ] as</p><p>where is uploaded to the parameter server as the true gradients. In experiments, we create several groups of [ r1 , r2 ] in order to observe the correlation between the poisoning magnitude and the attack strength. At the same time, the attacker takes the advantage of the global parameters downloaded, and trains itself for one epoch.</p><p>2) Gradient Ascent Attack: Gradient ascent attack fabricates the poisoning vector by first creating a temporary model. Then, the attacker downloads the global parameters into the temporary model, and perform gradient ascent optimization for one epoch. The resulting gradients, serving as the poisoning vector, will be uploaded to the server. Similar to Equation 1, the gradients is computed by subtracting the parameters downloaded from the parameters after gradient ascent training in current epoch as</p><p>where w i k-1 is equivalent to the global parameters w global k-1</p><p>which was downloaded to the temporary model. It is worth noting is that the ascending algorithms is based on the global parameters, not the attacker's local parameters, as the local parameters only contain the converging information of the attacker's data, and at the server-point-of-view, it may not be the steepest ascending direction. The global parameters, instead, contain the converging information from all the honest peers, and the ascending gradients computed from these parameters should yield to a better attacking performance.</p><p>In order to compare the attacking impacts with the random noise attack, we also take the magnitude of the ascent vector into consideration. After the computation of using gradient ascent, it is normalized into different scale ranges. And in general, the gradient ascent attack can be considered as a more optimized case of the random noise attack, which the injected random attack vector is the carefully computed ascending gradients.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Multiple Attackers</head><p>In this subsection, we inject the distributed attacking flavor into the previously-described single-attacker models. It is assumed that all the attackers know the identity of other attackers and can share information with others under the condition of not revealing their own data.</p><p>1) Collaborative Random Noise Attack: Compared to the random noise attack in the single-attacker scenario, collaborative random noise attack can be seen as multiple attackers working together towards the same attacking goal. With a set overall magnitude (or range) of the attack vectors, the group of attackers will collaborate to produce multiple attack vectors, pretending to be the true gradients.</p><p>Denote the magnitude (range) of the overall attack vector as [ r1 , r2 ], and denote the number of attackers as N a , The attack vector that each attacker will generate is:</p><p>Such collaborative attack strategy ensures the consistency of the overall attack magnitude, while assigning the task of computing a sub-attack vector to individual attackers.</p><p>2) Collaborative Gradient Ascent Attack: In Collaborative Gradient Ascent Attack, one attacker computes the global ascending gradients, upload part of the ascending gradients to the server, and send the rest to the next attacker. The next attacker will perform the same process of uploading another part of the remaining gradients and send the rest to the next attacker. Denote N a to the number of attackers, and a 1 , a 2 ,...,a n to the attacker's IDs, respectively. The first attacker, a 1 , computes the ascending gradients according to Equation 4. The poisoning vectors that will be uploaded by each attacker is:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Heritage Factor</head><p>With plenty of threat models explained, in this section, the essence of the attack models is described. We propose a new concept, the Heritage Factor, under this particular architecture of distributed learning system.</p><p>As already explained in Eq.( <ref type="formula">2</ref>), each collaborator is responsible for uploading its local training gradients, denotes to g i k . For honest peers, g i k is the true gradients that is produced from local training at epoch k, however, for adversaries, the gradients that they upload contain poisoning vectors with different magnitudes.</p><p>It is worth noting that if there exists no attacker, the distributed learning system should help each of the collaborators to learn a more generalized model and converge faster <ref type="bibr">[16]</ref>, <ref type="bibr">[17]</ref>. From a human's understandable perspective, we can regard such learning procedure as a inheritance behavior. The later peers "inherit" all the legacies from the previous collaborators. The "legacy" is contained in the true gradients that are aggregated by the update function on the parameter server.</p><p>From an attacker's perspective, the vectors uploaded can be seen as a weighted sum of the attackers' true gradients and the attack vector. Denote the uploaded vector from an attacker as g i k , we can formulate g i k as:</p><p>where</p><p>&#8226; g i k describes the vector to be uploaded by attacker i, &#8226; g i k represents the true gradients produced by local training,</p><p>&#8226; denotes the attack vector, and &#8226; we define 0 &#8804; &#961; &#8804; 1 to be the heritage factor, which is a coefficient that specifies the percentage of the true gradients information that will be inherited.</p><p>When &#961; is 1, no attack vector is added to the true local gradients, and the so-called attacker is not performing any attacking activities. On the other extreme, when &#961; is 0, the entire uploaded vector would be the attack vector, and it will contain no learned information (or legacy) from the local model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. DEFENSE METHODS</head><p>In this section, we first describe the two proposed attackmodel-agnostic defense models, and then summarize the main-stream untargeted detection mechanisms. All the defense methods are developed to be applied before the aggregation of the local updates on the server to eliminate the suspicious collaborators (or attackers).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Drop One Detection</head><p>As the name suggest, the Drop One Detection method is applicable when there's only one attacker. We put the uploaded gradients into groups. Denote the set of collaborators as C, where |C| = N . We generate N groups, and each group contains N -1 uploaded gradients, that is, each group contains all but the gradients from the peer who has the same ID as the group ID. More specifically, group j contains the set of uploaded gradients {g i k | &#8704;i &#8712; C, i = j}. After the grouping, the standard deviation of each group is calculated, and compared with other groups'. The group, in which the standard deviation is the smallest, is regarded as the group in which the attacker's gradients vector is dropped.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Series Structural Similarity</head><p>The Structural Similarity (SSIM) was first proposed in <ref type="bibr">[18]</ref> aiming to find the images that contain the best human perceptual information after the same amount of Mean Squared Error (MSE) distortion. From the perspective of computer vision, the Structural Similarity measures the luminance, contrast, and the temporal and spatial correlations of pixels in an image. In our scenario, comparing images is out of our scope, instead, our goal is to find out the outliers from a set of uploaded gradients vectors.</p><p>As the collaborators had all agreed on the local training architecture and the training objectives, if there exists no attacks, the gradients uploaded from each of the collaborators will contain the common converging information that points towards the global optimal solution. Therefore, by considering the uploaded gradients at each epoch as the structural information of the overall distributed learning system, we present the SSIM defense mechanism. Denote the series of uploaded vectors of peer i by T i = {g i 1 , g i 2 , ..., g i k }, where the 1, 2, ..., k represents the epochs number. The SSIM mechanism computes the structural similarity score <ref type="bibr">[18]</ref> to analyzes the trace of each peer and predicts the potential attackers. The intuition is that the attackers would leave a different trace in comparison with other honest collaborators.</p><p>A subtle change is made because of the fact that the ground truth (or the "original reference image" in computer vision) does not exist in the case of distributed learning, and therefore multiple references are randomly chosen and the SSIM scores are computed according to each reference. The majority vote is taken from all references and the suspicious collaborator(s) are eliminated.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Gaussian Detection (Krum)</head><p>The Krum detection method is proposed in <ref type="bibr">[4]</ref> based on the assumption that all gradients should follow the Gaussian distribution, and that attackers/outliers should reside far away from honest collaborators. As previously denoted, the collection of all the uploaded vectors at epoch k is</p><p>. The gradients mean &#956; k and the standard deviation &#963; k are computed first. Then, for each uploaded vector, its distances to the mean is calculated, and is represented by the multiples of standard deviation &#963; k as</p><p>A larger &#952; i k indicates a larger distance from the mean, and the corresponding uploader is more suspicious. Define the outlier threshold &#948; Gaussian in epoch k to be the (1 -&#945;) percentile of the Gaussian distribution of zero mean and &#963; 2 k variance, where &#945; is a small and given probability that defines the outliers. Then if &#952; i k &gt; &#948; Gaussian , its uploader i is regarded as an attacker.</p><p>The Gaussian Detection method focuses more on the gradients vectors' magnitude, as the calculation of mean and standard deviation ignores the high-dimension direction of gradient vectors. The threshold used is observed from the experiments to obtain the best accuracy.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Cosine Similarity Detection (AFA)</head><p>AFA <ref type="bibr">[5]</ref> considers the Cosine Similarity between the uploaded vectors. Instead of considering the magnitude of uploaded gradients like Krum, AFA is developed under the intuition that the attackers/outliers' high dimensional gradient direction are different from those from honest peers, which instead may be pointing towards the global convergence point. AFA starts by computing the mean &#956; of all the uploaded vectors. Then, the cosine similarity score between each uploaded vector and the mean are computed as</p><p>A smaller cosine similarity score indicates the less similarity from the mean, and the corresponding collaborator who obtain a small score is more suspicious.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VI. EVALUATION A. Dataset and setup</head><p>We evaluate our threat and detection models using the MNIST dataset <ref type="bibr">[19]</ref> which contains 60, 000 images as the training set, and 10, 000 in the testing set. We implement a distributed learning system which includes one parameter server and multiple collaborators, each maintain the same neural networks architecture. The training data are shuffled and separated randomly into each peer.</p><p>We use PyTorch <ref type="bibr">[20]</ref>, version 0.4.1, with the help of Numpy and Torchvison packages, to implement our algorithms. We set the global and local learning rate &#951; to 0.01, and batch size to 64. Cross Entropy is implemented as the loss function and Stochastic Gradient Descent is adopted as the optimizer. We conduct our experiments on Tesla P100 GPUs, and all of our test results shown below are the averages of 50 runs. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Attacking Results</head><p>1) Single Random Noise Attack: Experiments are conducted simulating the scenario where among all the collaborators, only one of them is an attacker, and that attacker is launching the random noise attack against the distributed learning system. Figure <ref type="figure">2</ref> demonstrates the relationship between the magnitude of attack vectors versus the final classification accuracy.</p><p>The attacker-free and control curves correspond to the scenarios where there is no attacker, and when one peer does not participate in the distributed learning. From this figure, it is clear that the larger the magnitude of the attack vectors are, the bigger disturbance is injected into the learning system, therefore, the worse the classification performances are for the honest peers.</p><p>Another observation is that when the attack magnitudes are large (the first three subplots), the more epochs of training conducted, the more disturbance the system has. Our guess is that from the first several training epochs, the local training has not converged yet, so its uploaded gradients vectors do not contain enough converging information, causing the global parameters to be polluted by the non-converging attack vectors. The injected poisoning is then propagated to other collaborators by global parameters downloading, and spread throughout the entire distributed learning system, affecting both the global server and all collaborators. Although each honest collaborator is trying to minimize the loss, they are not able to get to the final near-convergence stage since they are only allowed to train for one epoch, which is not enough to correct the poisoned parameters. This vicious process goes on and on, and will not be reverted back. As a result, the more training the system performs, the further away it is from the optimal convergence point.</p><p>Another experiment is conducted to verify our guess. We implemented the defense methods described in section V to find out the potential attacker(s) after several epochs of training. Once a collaborator is classified as an attacker, the server will stop using its upload for the global parameters updating purposes. It turns out that at first, the distributed learning system is not converging at all, but when the server depicts and eliminates the uploaded vectors from the attacker, the system starts to converge, and the performance results of the honest collaborators starts to increase. Due to the space limitation, the resulting figure is not present in this paper.</p><p>Such observation also correlates with our definition of the Heritage Factor. The smaller the Heritage Factor is, the less percentage of true gradients is inherited, causing the overall performance to be degraded. The detailed experimental results for Heritage Factor is demonstrated later this section.</p><p>2) Single Gradient Ascent Attack: The experiments for single gradient ascent attack are launched under the same settings as the single random noise attack. Figure <ref type="figure">3</ref> demonstrates the performance results of among 10 collaborators, there exists one attacker and the Gradient Ascent Attack is launched. Similar to the ones in the single random noise attack, the following observations can be extracted:</p><p>&#8226; the bigger the magnitude of the attack vector is, the worse the performance of the honest collaborators are.</p><p>&#8226; the "diverging" information propagates within the system, degrading the performance with the increase number of training epochs. Comparing the subplots from Figures <ref type="figure">2</ref> and<ref type="figure">3</ref>, it is suggested that when the magnitude of the attack vector is set, the gradient ascent attack has better attacking effectiveness, as it drags the global parameters to the steepest ascending direction, whereas in the random noise attack, the global parameters are dragged to random directions. And again, in such perspective, the gradient ascent attack can be seen as a special case of the random noise attack.</p><p>3) Multiple Attackers: Figures <ref type="figure">4</ref> and<ref type="figure">5</ref> demonstrates the experiment results when there are 10 collaborators and 2, 4 of them are attackers, respectively. The attackers share the overall attack magnitude, and in this case, let the overall  attack magnitude be [r1, r2], then the magnitude that each attacker leverages is [ 1 2 r1, 1 2 r2], and [ 1 4 r1, 1  4 r2], respectively. Comparing Figure <ref type="figure">2, 4</ref> and<ref type="figure">5</ref>, where the only changing variable is the number of attackers (or the attack magnitude of each attacker), the performance of honest peers in Figure <ref type="figure">2</ref> is the lowest, followed by 4. This suggests that injecting a single large attack vector has a stronger attack strength on the distributed learning system than injecting small attack vectors multiple times. The experiment results for multiple Gradient Ascent Attack also suggest the same insights, the results are omitted due to the limited space of the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Defense Results</head><p>From Figures <ref type="figure">2</ref><ref type="figure">3</ref><ref type="figure">4</ref><ref type="figure">5</ref>, it can be observed that the magnitude of the injected attack vector is the dominant factor in deciding the ultimate attack effectiveness, regardless of the attack models. Therefore, in this subsection, we will focus on this dominant factor and perform our defense over a wide range of attack magnitudes. Ideally, we prefer to show our defense results against all attack models presented in Section IV. However, due to the space limit, here we can only present the performance of our proposed defense mechanisms under the random noise attack. This is because the random noise attack can be seen as the most general case of the untargeted attack, and other attack models can be regarded as special cases of the random noise attack. Therefore, the performance of the proposed defense mechanisms under the random noise attack would be representative.</p><p>1) Single Attacker Defense: Figure <ref type="figure">6</ref> a) -c) demonstrates the performance of our single detection models. It can be seen that the larger the attack magnitude is, the better the defense results is. When the attack magnitude is 0, where there exists no attacker, all defense models result in random guess accuracy.</p><p>Furthermore, when the attack magnitude is small, some defense models do not perform as well. This is innocuous in the distributed learning scenarios, as when the attack magnitudes are too small to fool the detection models, they do not achieve visible attacking impact on the overall distributed learning system either. And if an uploaded vector is only a little different from others, we can't tell if it really is an attack vector, or it is from an honest collaborators whose dataset is different.</p><p>2) Multiple Attacker Defense: Figure <ref type="figure">7</ref> shows the performance of our defense models on multiple attackers. The results are achieved under the scenario where there are 10 peers, and 2 of them are attackers. We test 500 runs on each defense model, and this figure demonstrates the number of times 0, 1, or 2 attackers among all attackers are caught, respectively. Comparing with Figure <ref type="figure">6</ref>, the accuracy of the defense models decrease when there are multiple attackers. This is intuitive, as more than one attackers leverage the entire attack vector for single attacker, the uploaded vector would differ less from the honest peers'.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Heritage Factor</head><p>As the definition states, the Heritage Factor is the metric that characterizes the percentage of the "legacy", Figure <ref type="figure">6d</ref>) demonstrates the correlation between the Heritage Factor and the classification accuracy of honest peers. It suggests that the performance of the honest peers are in the positive relation with the Heritage Factor. Some other interesting experimental scenarios, including different number of total peers, different number of attackers..,etc, are also conducted, but due to the space limitation, those are not shown in this paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VII. CONCLUSION</head><p>In this paper, we study the attack-model-agnostic countermeasures in distributed learning system based on the fact that it's unrealistic to gain knowledge on the attack models that would be launched prior to the deployment of the distributed learning system. We explore existing threat and detect models, and propose the Drop-one and Structural Similarity (SSIM) defenses that analyze both the current and historic gradients to depict the attackers for poisoning attacks in distributed learning. A new concept, the Heritage Factor is presented that characterizes the false parameter propagation among the entire distributed learning system. Such definition also enables us to measure how "helpful" that one collaborator is to other collaborators and to the system. We verify through extensive experiments the effectiveness of the proposed attackmodel-agnostic countermeasures over a wide range of attack magnitudes. To the best of our knowledge, our work is the first to systematically study the attack-model-agnostic countermeasures in distributed machine learning system.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Authorized licensed use limited to: Auburn University. Downloaded on September 04,2023 at 22:22:51 UTC from IEEE Xplore. Restrictions apply.</p></note>
		</body>
		</text>
</TEI>
