<?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'>DeFL: Defending against Model Poisoning Attacks in Federated Learning viaCritical Learning Periods Awareness</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>02/07/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10431773</idno>
					<idno type="doi"></idno>
					<title level='j'>Thirty-Seventh AAAI Conference on Artificial Intelligence (AAAI-23)</title>
<idno></idno>
<biblScope unit="volume">1</biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Hao Wang Gang Yan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Federated learning (FL) is known to be susceptible to modelpoisoning attacks in which malicious clients hamper the accuracyof the global model by sending manipulated model updatesto the central server during the FL training process. Existingdefenses mainly focus on Byzantine-robust FL aggregations,and largely ignore the impact of the underlying deepneural network (DNN) that is used to FL training. Inspired byrecent findings on critical learning periods (CLP) in DNNs,where small gradient errors have irrecoverable impact on thefinal model accuracy, we propose a new defense, called aCLP-aware defense against poisoning of FL (DeFL). The keyidea of DeFL is to measure fine-grained differences betweenDNN model updates via an easy-to-compute federated gradientnorm vector (FGNV) metric. Using FGNV, DeFL simultaneouslydetects malicious clients and identifies CLP, whichin turn is leveraged to guide the adaptive removal of detectedmalicious clients from aggregation. As a result, DeFL notonly mitigates model poisoning attacks on the global modelbut also is robust to detection errors. Our extensive experimentson three benchmark datasets demonstrate that DeFLproduces significant performance gain over conventional defensesagainst state-of-the-art model poisoning attacks.]]></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>Introduction</head><p>Federated learning (FL) <ref type="bibr">(McMahan et al. 2017</ref>) is an emerging distributed learning paradigm that enables many clients to collaboratively learn a deep neural network (DNN) model (called the global model) without sharing their private local training data. This is done through an iterative process where a central server repeatedly coordinates dispersed clients via collecting clients' local model updates computed on their local data, aggregating clients' updates using an aggregation rule, and finally using the aggregated updates to tune the global model, which is broadcast to a subset of clients at the beginning of each FL training round.</p><p>However, due to its distributed nature, FL is vulnerable to model poisoning attacks <ref type="bibr">(Imteaj et al. 2023)</ref>, which attempt to degrade the global model accuracy by contributing malicious model updates during the training process. Depending on the adversarial goal, model poisoning attacks can be either untargeted <ref type="bibr">(Blanchard et al. 2017;</ref><ref type="bibr">El El Mhamdi, Guer-raoui, and Rouault 2018;</ref><ref type="bibr">Mahloujifar, Mahmoody, and Mohammed 2019;</ref><ref type="bibr">Baruch, Baruch, and Goldberg 2019;</ref><ref type="bibr">Fang et al. 2020;</ref><ref type="bibr">Xie, Koyejo, and Gupta 2020;</ref><ref type="bibr">Shejwalkar and Houmansadr 2021)</ref>, where the goal is to minimize the global model accuracy on any test input, or targeted <ref type="bibr">(Bhagoji et al. 2019;</ref><ref type="bibr">Sun et al. 2019;</ref><ref type="bibr">Bagdasaryan et al. 2020)</ref>, where the goal is to minimize the accuracy on specific test inputs. To this end, untargeted model poisoning attacks can completely cripple the global model and hence pose more severe threats to FL, which is the focus of this paper.</p><p>Existing defenses against model poisoning attacks mainly rely on robust methods, where the central server leverages Byzantine-robust aggregation rules to reduce the impact of malicious model updates via either detecting and removing statistical outliers or limiting their impacts. However, these approaches suffer from several key limitations: i) only robust when there is a smaller number of malicious clients <ref type="bibr">(Blanchard et al. 2017;</ref><ref type="bibr">Yin et al. 2018)</ref>; ii) prediction based malicious client detection using historical update information is accurate when there is a larger number of malicious clients in each training round <ref type="bibr">(Zhang et al. 2022)</ref>; and iii) require the central server to have access to a clean validation dataset whose distribution does not diverge too much from the overall training data distribution <ref type="bibr">(Li et al. 2020;</ref><ref type="bibr">Cao et al. 2021</ref>). As a result, existing defenses are shown <ref type="bibr">(Bhagoji et al. 2019;</ref><ref type="bibr">Fang et al. 2020</ref>) to be still vulnerable to model poisoning attacks, especially to those with high attack impacts.</p><p>Exacerbating these limitations is the fact that existing defenses mainly focus on designing Byzantine-robust aggregation rules, and largely ignore the impact of the underlying DNN that is used to training FL models since existing defenses implicitly assume that all FL training phases are equally important. Unfortunately, this assumption is invalid due to the existence of critical learning periods (CLP), i.e., the final quality of a DNN model is determined by the first few training rounds, in which deficits such as low quality or quantity of training data will cause irreversible model degradation <ref type="bibr">(Achille, Rovere, and Soatto 2019;</ref><ref type="bibr">Jastrzebski et al. 2019;</ref><ref type="bibr">Golatkar, Achille, and Soatto 2019;</ref><ref type="bibr">Jastrzebski et al. 2021;</ref><ref type="bibr">Yan, Wang, and Li 2022)</ref>.</p><p>To address the above limitations, we propose DeFL, a novel CLP-aware defense against model poisoning attacks to FL that seamlessly analyzes the DNN that is used for FL training and leverages its structural information to de-</p><p>The Thirty-Seventh AAAI Conference on Artificial Intelligence  tect malicious model updates and identify CLP. Specifically, we propose a new easy-to-compute federated gradient norm vector (FGNV) metric to analyze the internal structure of the DNN and measure fine-grained differences between model updates. Using FGNV, we develop lightweight approaches to not only identify CLP but also reliably detect statistical outliers and consequently exclude them from aggregation in an adaptive manner. Our extensive evaluations using three realworld datasets, <ref type="bibr">CIFAR-10 (Krizhevsky and Hinton 2009)</ref>, <ref type="bibr">MNIST and Fashion-MNIST (LeCun et al. 1998)</ref>, show that DeFL dramatically mitigates the impacts of state-of-theart model poisoning attacks <ref type="bibr">(Baruch, Baruch, and Goldberg 2019;</ref><ref type="bibr">Fang et al. 2020;</ref><ref type="bibr">Shejwalkar and Houmansadr 2021)</ref>. Furthermore, DeFL can effectively detect statistical outliers and is also robust to detection errors since our proposed FGNV is able to capture the fine-grained differences in the structure of the DNN that is used for FL training.</p><p>In summary, we make the following contributions: </p><p>where </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Critical Learning Periods</head><p>The first few training epochs-known as critical learning periods (CLP)-have been revealed to determine the final quality of a DNN model in both traditional centralized learning <ref type="bibr">(Achille, Rovere, and Soatto 2019;</ref><ref type="bibr">Jastrzebski et al. 2019;</ref><ref type="bibr">Golatkar, Achille, and Soatto 2019;</ref><ref type="bibr">Frankle, Schwab, and Morcos 2020;</ref><ref type="bibr">Jastrzebski et al. 2021</ref>) and FL <ref type="bibr">(Yan, Wang, and Li 2022)</ref>. During the CLP, deficits such as low quality or quantity of training data will cause irreversible model degradation, no matter how much additional training is performed after the period. However, studying critical learning phenomena hinged on costly information metric (e.g., eigenvalues of the Hessian) that emerges after the full training, limiting their practical benefits. We differ from existing works by developing an easy-to-compute metric to identify CLP during the training process in an online manner. Importantly, our new metric measures the fine-grained differences in the structure of the DNN, which can be easily leveraged to simultaneously detect malicious clients and identify CLP, which in turn is used to guide the removal of detected malicious clients from aggregation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Byzantine-Robust Aggregation Rules</head><p>The mean aggregation rule has been widely used in nonadversarial settings <ref type="bibr">(Dean et al. 2012;</ref><ref type="bibr">Kone&#269;n&#7923; et al. 2016;</ref><ref type="bibr">McMahan et al. 2017)</ref>, which, however, is not robust and can be manipulated by even a single malicious client <ref type="bibr">(Blanchard et al. 2017;</ref><ref type="bibr">Yin et al. 2018;</ref><ref type="bibr">Bhagoji et al. 2019)</ref>. Therefore, multiple Byzantine-robust aggregation rules have been proposed to defend against poisoning attacks. In the following, we review several representative Byzantine-robust aggregation rules that will be used in this paper.</p><p>&#8226; FLDetector <ref type="bibr">(Zhang et al. 2022</ref>) defends FL via detecting and removing majority of malicious clients from the aggregation. Specifically, FLDetector detects malicious clients by measuring the consistency between the client's model update and the server's predicted model update based on historical model updates. As a result, a larger number of malicious clients is often needed to build up historical information so as to guarantee the prediction and detection accuracy.</p><p>&#8226; FLTrust <ref type="bibr">(Cao et al. 2021</ref>) leverages the validation dataset on the central server to assign a trust score to each clients. Specifically, a local model update has a lower trust score if its update direction deviates more from that of the server model update calculated based on the validation dataset. computes cosine similarities between the weighted average and each of collected gradients. Finally, AFA discards gradients with similarities out of a range, which is a simple function of mean, median and standard deviation of similarities.</p><p>&#8226; Multi-krum <ref type="bibr">(Blanchard et al. 2017)</ref>. Krum <ref type="bibr">(Blanchard et al. 2017</ref>) selects gradients from the set of its input gradients that is close to its n -m -2 neighbor gradients in squared Euclidean norm space with m being an upper bound on the number of malicious clients and n being the number of participated clients in each FL training round. Multi-krum selects a gradient using Krum from a remaining set, adds it to a selection set and removes it from the remaining set.</p><p>&#8226; Trimmed-mean <ref type="bibr">(Yin et al. 2018;</ref><ref type="bibr">Xie, Koyejo, and Gupta 2018)</ref> coordinate-wisely aggregates each dimension of input gradients separately. Specifically, for a given dimension j, the j-th parameters of n local models {g j i } i=1,&#8226;&#8226;&#8226; ,n , Trimmed-mean removes the largest and smallest &#946; of them, and computes the mean of the remaining n -2&#946; parameters as the j-th dimension of the global model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>DeFL</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Federated Gradient Norm Vector</head><p>Existing defenses for detecting poisoned model updates are based on metrics that treat the DNN as a black box, e.g., cosine (Mu&#241;oz-Gonz&#225;lez, Co, and Lupu 2019) or L 2 -norm <ref type="bibr">(Blanchard et al. 2017;</ref><ref type="bibr">Zhang et al. 2022)</ref>. However, recent studies <ref type="bibr">(Fung, Yoon, and Beschastnikh 2020;</ref><ref type="bibr">Rieger et al. 2022)</ref> showed that different DNN layers exhibit various vulnerabilities to model poisoning attacks and hence may play different roles in defending FL against model poisoning attacks. To this end, we design a new metric, called Federated Gradient Norm Vector (FGNV) that allows to analyze the DNN used for FL training, and measures fine-grained differences between model updates.</p><p>Specifically, we consider a DNN with L layers for FL training. Let g i (w j i ; &#958;) = &#8706; &#8706;w j i (w j i ; &#958;) be client i's gradient update on layer &#8704;j = 1, &#8226; &#8226; &#8226; , L evaluated on &#958;. After performing a step SGD on this sample, the training loss or the global model update difference of client i on layer j is &#8710; j i = (w j i -&#951;g i (w j i ; &#958;); &#958;) -(w j i ; &#958;), which can be approximated by its gradient norm using Taylor expansion, i.e.,</p><p>We call this as the FGNV i of client i on layer j, i.e.,</p><p>as the federated gradient norm vector of client i, which represents the global model update difference of client i over each layer of the DNN. Then the global model update difference over each layer l at round t can be approximated using the weighted average of FGNV j i across all selected clients, i.e.,</p><p>(3)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Detecting Critical Learning Periods</head><p>We develop a simple threshold-based rule to identify the CLP based on the FGNV as follows: if</p><p>then the current training round t is in CLP, where &#948; is the threshold used to declare CLP in federated settings. We set &#948; = 0.05 as the default value in our experiments and will investigate its impact in Figure <ref type="figure">3</ref>. We compare the CLP identified by our FGNV approach with the federated Fisher information (FedFIM) approach in <ref type="bibr">(Yan, Wang, and Li 2022)</ref>. When training AlexNet on non-IID CIFAR-10 and Fashion-MNIST, we observe that these two approaches yield similar results as shown in Figure <ref type="figure">1</ref>. However, our FGNV approach is much more computationally efficient (being orders of magnitude faster to compute) and can be easily leveraged for defending FL against model poisoning attacks in each round during the FL training process in an online manner.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Detecting Malicious Clients</head><p>In each round t, we identify malicious clients based on the FGNV discussed above. Specifically, we cast the malicious client detection as a statistical outlier detection problem <ref type="bibr">(Zhang, Yuan, and Tzeng 2021)</ref>. Different from existing defenses that consider the DNN as a black box, our FGNV measures fine-grained differences in each layer of the DNN. To this end, we assign the FGNV i to each client i as its feature vector in our statistical outline detection problem in each training round t, and develop a lightweight voting based method via leveraging a statistical methodology named massive unsupervised outlier detection (MOUD) <ref type="bibr">(Azcorra et al. 2018)</ref> to determine if a client is an outlier or not.</p><p>The inputs to the MOUD algorithm are the FGNV j i over each layer j of each client i. The output of the MOUD algorithm is the outlier in each layer. Generally, MOUD compares the similarity of each client i's global model update difference on layer j, i.e., FGNV j i with respect to a reference observed from all participated clients, to determine if client i's update on layer j is an outlier. Specifically, the computation of MOUD in each round t involves the following steps: 1) Based on FGNV i , &#8704;i &#8712; N (t), generate reference vectors on each layer j as</p><p>as the estimated slope of a simple linear regression model; 3) Define the index of client i on layer j as I(FGNV j i , FGNV j ) = 1</p><p>i =1 &#946;i and output layer j of client i as an outlier if its value deviates significantly from others.</p><p>Based on the detection of each layer j of each client i, we further develop a simple voting method to determine if client i is an outlier or not. To reduce the detection errors and improve the robustness, we leverage an adaptive threshold (as the number of layers declared as outliers from MOUD) for voting. Specifically, we first set the threshold as L, i.e., if MOUD outputs all L layers of client i as outliers, then client i is declared as an outlier in round t. If no client is detected as malicious, then we set the threshold as L -1 and repeat the above process until at least one client is clarified as malicious. We call our detection method that couples a FGNV based MOUD with a voting strategy as MOUD-Vote.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>The Design of DeFL Defense</head><p>Per our discussions on CLP, the final model accuracy will be permanently impaired if the global model is severely poisoned during the early training phase, no matter how much additional training is performed after the period <ref type="bibr">(Achille, Rovere, and Soatto 2019;</ref><ref type="bibr">Yan, Wang, and Li 2022)</ref>. Therefore, once the CLP is identified, our DeFL removes all detected malicious clients from the model aggregation. However, a false positive rate (FPR), i.e., benign clients may be falsely claimed as malicious clients, often occurs in existing detection methods, though our MOUD-Vote is shown to have a low FPR, see the Experiments Section. As a result, if DeFL strictly removes all detected malicious clients from the model aggregation throughout the training process, it may the detriment of the final model accuracy. To this end, we further use a Bayesian model to estimate the clients' probability to provide good model updates based on our detected CLP and MOUD-Vote. As inspired by (Mu&#241;oz-Gonz&#225;lez, Co, and Lupu 2019), the ability of the clients to provide good model updates can be modeled as a Hidden Markov model. At each round t, the probability p i (t) that client i provides a good update is given as</p><p>Algorithm 1: The DeFL defense Input: w i (0), &#8704;i;</p><p>//Compute federated gradient norm vector FGNV 3:</p><p>Perform local model updates w i (t) and compute the global model update difference of each client i on each layer j as in (2) to generate</p><p>//Detect malicious client using MOUD-Vote 5: The aggregation weight for the detected malicious client i is p i (t) = 0;</p><p>15:</p><p>The aggregation weight for the detected benign client i is p i (t) = Obtain a new global model w(t) via local model update aggregation:</p><p>19: end for where &#945; i and &#946; i are the parameters of a Beta distribution, and &#945; i (t) = &#945; i (t -1) + 1 if client i is claimed as a benign client (i.e., provides good update) by our MOUD-Vote in round t; otherwise, &#946; i (t) = &#946; i (t -1) + 1. We summarize our DeFL defense in Algorithm 1.</p><p>From a high-level perspective, DeFL strictly removes all detected malicious clients from the model aggregation during the initial phase of the learning procedure (i.e., the detected CLP) to avoid poisoning attacks on the global model since the initial learning phase plays a critical role in FL performance. However, the malicious client detection may suffer from FPR, and removing too many clients from global model aggregation may degrade the final model accuracy.</p><p>To address these issues and improve the robustness of DeFL against FPR, we augment DeFL with a Bayesian model to learn to associate a "good" update probability to each client. Roughly speaking, after the CLP, a smaller aggregation weight is associated with detected malicious clients in the global model aggregation rather than completely removing them. Likewise, a larger aggregation weight is assigned to detected benign clients in the global model aggregation after the CLP. As a result, DeFL is able to consistently defend FL against model poisoning attacks and is robust to the FPR of the detection method.  &#8226; Fang is an optimization based model poisoning attack that can be tailored to aforementioned aggregation rules. Specifically, the adversary computes the average &#181; of benign gradients that she has access to. Then the adversary computes -sign(&#181;) and a malicious update by solving for a global co-efficient &#955;. The adversary attacks all malicious clients and change their gradient updates' direction based on &#955;.</p><p>&#8226; LIE adds small amounts of noises to each dimension of the average of benign gradients. The small noises can be sufficiently large to adversely impact the global model and can be sufficiently small to evade detection by the Byzantine-robust aggregation rules. In particular, the adversary computes the average &#181; and standard deviation &#963; of benign gradients that she has access to. Furthermore, the adversary computes a coefficient z based on the total number of benign and malicious clients, and hence obtains the malicious update as &#181; + z&#963;.</p><p>&#8226; Min-Sum ensures that the sum of squared distances of malicious gradients from all benign gradients is upper bounded by the sum of squared distances of any benign gradient from the other benign gradients. All malicious gradients are kept the same for the maximum attack impact.</p><p>&#8226; Min-Max computes malicious gradients such that its maximum distance from any other gradient is upper bounded by the maximum distance between any two benign gradients. As a result, the malicious gradients lie close to the clique of benign gradients. Parameter settings. We implement our defenses, attacks and FL in PyTorch (Paszke et al. 2017) on Python 3 with three NVIDIA RTX A6000 GPUs. We run each experiments for 100 independent trials and report the average results. For ease of presentation, we omit the variances which are observed to be small in the experiments. By default, we consider a total number of N = 128 clients in our experiments. In each round, the FL central server randomly selects n = 32 clients to participate in the global model update, in which m = 4 are malicious clients. We investigate the impact of the number of malicious clients in Figure <ref type="figure">4</ref> and relegate additional experimental results with different number of malicious clients to <ref type="bibr">(Yan et al. 2023)</ref>.</p><p>Each client applies 20 iterations of the stochastic gradient descent to update its local model and the central server aggregates local model updates from all selected clients. We set 200 rounds for all DNN classifiers on all datasets considered in this paper. The local learning rate &#951; is initialized as 0.01 and decayed by a constant factor after each communication round. The batch size is set to be 16. We set the weight decay to be 10 -4 . The detection threshold &#948; is tunable parameters. We set &#948; = 0.05 in all of our experiments and investigate its impact in Figure <ref type="figure">3</ref>. The Trimmed-mean aggregation rule prunes the largest and smallest &#946; parameters, where m &#8804; &#946; &#8804; n/2. We set &#946; = m which is the default setting in Trimmed-mean <ref type="bibr">(Yin et al. 2018)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experimental Results</head><p>Reduced attack impact. We evaluate the performance of our DeFL defense against state-of-the-art model poisoning attacks and compare it with state-of-the-art defenses. The impacts of these attacks when defended by these defenses when benign gradients are either known or unknown to the adversary are summarized in Table <ref type="table">1</ref>. Due to space constraints, we only present the testing accuracy using AlexNet on non-IID partitioned CIFAR-10 with &#945; = 0.1 in Figure <ref type="figure">2</ref>. Similar observations can be made in other cases and hence are relegated to <ref type="bibr">(Yan et al. 2023</ref>   <ref type="table">1</ref> that our DeFL dramatically mitigates the impacts of these strongest model poisoning attacks in the literature, and DeFL is up to 12.04&#215; more effective against these attacks than the best performing defenses in consideration. For example, when running AlexNet on CIFAR-10 with known benign gradients, the Min-Max attack has an attack impact of 7.52 when defended by DeFL, while the attack impact is 18.29 when defended by FLDetector, which is the best performing defense in consideration, i.e., our DeFL is 2.34&#215; more effective. Take the AlexNet on Fashion-MNIST with unknown benign gradients as another example, the Fang attack has an attack impact of 11.56 when defended by AFA, while the attack impact is 0.96 when defended by DeFL, i.e., DeFL is 12.04&#215; more effective.</p><p>We note that FLTrust requires the server to have access to a clean validation dataset, which is not the case in a typical FL scenario since the server often does not have such a dataset. FLDetector overcomes this limitation by detecting and removing malicious clients. However, the predictionbased detection requires historical information and hence is accurate when there is a large number of malicious clients participated in each FL training round. However, in practical FL systems, only a small fraction of clients is involved in each training round <ref type="bibr">(Bonawitz et al. 2019)</ref>. Our DeFL neither requires a validation dataset nor historical malicious client information, but instead leverages the internal structure of DNN and fine-grained model update differences via FGNV to improve the effectiveness of defending FL against model poisoning attacks in practical FL scenarios. Effectiveness of FGNV. As motivated earlier, our DeFL is a CLP-awareness defense that analyzes the DNN via our proposed FGNV and leverages the structural information encoded in FGNV to detect malicious clients. To this end, we further understand the effectiveness of the information encoded in FGNV on the performance of CLP detection and malicious clients detection. As shown in Figure <ref type="figure">1</ref>, our proposed threshold-based rule using FGNV is able to detect CLP as accurate as that of state-of-the-art approach, however, our FGNV based approach is much more computation efficient. Table <ref type="table">2</ref> illustrates the true positive rate (TPR) and false positive rate (FPR) of our MOUD-Vote, which couples FGNV with an unsupervised outlier detection method. TPR (FPR) is the fraction of malicious (benign) clients correctly (falsely) classified as malicious. We observe that our MOUD-Vote can consistently detect majority of malicious clients, and only a small fraction (up to 3%) of malicious clients are not detected, e.g., the TPR under Fang attack using VGG-11 on non-IID partitioned CIFAR-10 is 97%. In addition, MOUD-Vote falsely detects a small fraction of benign clients as malicious, i.e., the FPR of our MOUD-Vote ranges between 0.01 and 0.09. Importantly, our DeFL is robust to these TPR and FPR since DeFL not only removes detected malicious clients from the aggregation during the CLP, but also learns to estimate the aggregation weight for each client. These two techniques together contribute to the improvement of the effectiveness of our DeFL defenses. Sensitivity of CLP detection threshold. We leverage FGNV to detect CLP via a threshold-based rule in (4). We now evaluate the sensitivity of the threshold value &#948;. We consider the candidate values of {0, 0.05, 0.2, 0.35, 0.5}. The global model accuracy when state-of-the-art attacks defended by DeFL using AlexNet on non-IID partitioned CIFAR-10 with different &#945; is shown in Figure <ref type="figure">3</ref>. As expected, as &#948; becomes larger, fewer rounds in the initial training phases are declared as CLP by (4). As a result, DeFL only completely removes detected malicious clients in fewer arounds according to Algorithm 1. However, the global model accuracy does not degrade significantly as &#948; becomes larger, this is due to the fact that DeFL is further augmented with a learning process to associate aggregation weight to malicious clients. For ease of simplicity, we set &#948; = 0.05 in all of our experiments. Impact of the number of malicious clients. Figure <ref type="figure">4</ref> shows the impact of the number of malicious clients, where we consider the ratio of malicious clients in each round as {12.5%, 18.75%, 25%, 31.25%}. We observe that the global model accuracy only drops slightly. This is because DeFL can efficiently detect malicious clients with consistently large TPR and small FPR as shown in Figure <ref type="figure">4</ref>, and mitigate their impacts via CLP awareness. Impact of non-IID degree of data distribution. We simulate a heterogeneous data partition into N clients using the Dirichlet distribution with parameter &#945;. As shown in Figure <ref type="figure">5</ref>, as the non-IID degree decreases (as &#945; increases), the global model accuracy when state-of-the-art attacks defended by DeFL increases. This is intuitive since a lower degree of non-IID data makes the adversaries easier to be detected and removed from the aggregation. Again we observe that DeFL consistently has a large TPR and small FPR across different non-IID degrees.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusion</head><p>In this paper, we proposed, DeFL, a CLP-aware defense against model poisoning attacks to FL. Different from existing defenses that mainly focused on designing robust aggregation rules, DeFL analyzed the underlying DNN used for FL training and measured fine-grained difference between DNN model updates via an easy-to-compute federated gradient norm vector. Using this metric, we designed simple rules to identify CLP and detect malicious clients, which are seamlessly integrated into DeFL to mitigate model poisoning attacks to FL. Our extensive evaluations showed that DeFL outperforms baseline defenses.</p></div></body>
		</text>
</TEI>
