<?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'>A New Implementation of Federated Learning for Privacy and Security Enhancement</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>12/04/2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10394978</idno>
					<idno type="doi">10.1109/GLOBECOM48099.2022.10001614</idno>
					<title level='j'>IEEE Globecom 2022</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Xiang Ma</author><author>Haijian Sun</author><author>Rose Qingyang Hu</author><author>Yi Qian</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Motivated by the ever-increasing concerns on personal data privacy and the rapidly growing data volume at local clients, federated learning (FL) has emerged as a new machine learning setting. An FL system is comprised of a central parameter server and multiple local clients. It keeps data at local clients and learns a centralized model by sharing the model parameters learned locally. No local data needs to be shared, and privacy can be well protected. Nevertheless, since it is the model instead of the raw data that is shared, the system can be exposed to the poisoning model attacks launched by malicious clients. Furthermore, it is challenging to identify malicious clients since no local client data is available on the server. Besides, membership inference attacks can still be performed by using the uploaded model to estimate the client's local data, leading to privacy disclosure. In this work, we first propose a model update based federated averaging algorithm to defend against Byzantine attacks such as additive noise attacks and sign-flipping attacks. The individual client model initialization method is presented to provide further privacy protections from the membership inference attacks by hiding the individual local machine learning model. When combining these two schemes, privacy and security can be both effectively enhanced. The proposed schemes are proved to converge experimentally under non-lID data distribution when there are no attacks. Under Byzantine attacks, the proposed schemes perform much better than the classical model based FedAvg algorithm.]]></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>Federated learning (FL) <ref type="bibr">[1]</ref> aims to build a robust machine learning (ML) model where local clients (LCs) distributively train their ML model using their locally collected data. In a typical FL setting, a central parameter server (PS) is connected to multiple clients and aggregates the models uploaded by the LCs. User privacy can be greatly protected since no local data is shared. However, it could be more harmful to the system when the malicious LCs launch Byzantine attacks by sending the poisoning model to the PS, which can directly degrade the overall learning performance. Furthermore, privacy is protected but not guaranteed in FL since attackers can still infer the private data and some key parameters such as gradients from the model in a membership inference attack <ref type="bibr">[2]</ref>.</p><p>The Byzantine attacks usually refers to the attacks initiated from the internal components in the systems. In FL, it is launched by the malicious LCs aims to degrade the learning performance. The model poisoning attacks can directly reduce the local task execution accuracy at LCs. Furthermore, the individual model of a single LC is invisible over the air or at the server due to the secure aggregation or other encoding methods. Only the aggregated model is available. Therefore, it is very difficult to identify malicious LCs in such a scenario. There have been extensive works to defend against Byzantine attacks in the distributed ML and FL. Most works aim to accommodate the attacks and mitigate the adverse effects, such as Krum aggregation <ref type="bibr">[3]</ref> and geometric median aggregation <ref type="bibr">[4]</ref>. Krum aggregation is based on majority and squared distance to select some representative clients as the benign and trusted clients and estimate the true center using their updates. This may result in a biased model, especially when the data among LCs is not independent and identically distributed (non-lID). Unlike the classical arithmetic averaging, the geometric median considers the compounding that occurs from time to time and mitigates the impacts of poisoning attacks. But this scheme needs to obtain an individual model, which may cause privacy disclosure in membership inference attacks that is to infer membership of individual training instances of a model. In <ref type="bibr">[5]</ref>, rather than accommodating the attacks as mentioned above, the work identified the attackers and removed the model updates coming from the attackers. However, it could be challenging to select the dynamic threshold used to determine the attackers.</p><p>Another method to provide enhanced privacy protection in FL is differential privacy (DP) <ref type="bibr">[6]</ref>. A typical approach of DP is to add random noise to the model and hide the real model from the eavesdroppers. It does not affect the system performance since the Gaussian noise can be averaged out due to aggregation. Another way for privacy protection is to hide the individual model from the eavesdroppers, i.e., only the aggregated model is accessible. This can be achieved with the Secure Aggregation protocol (SecAgg) <ref type="bibr">[7]</ref> or over-the-air computation (AirComp) <ref type="bibr">[8]</ref> in wireless communications. Since the PS only needs to know the aggregated model, hiding the individual model does not impact the system performance.</p><p>In this work, we propose to use model update based (MUB) aggregation to defend against Byzantine attacks and enhance security. The individual client model initialization (ICMI) scheme is further used to enhance privacy protection. By combining the two techniques as MUB-ICMI, privacy and security are enhanced. To the best of our knowledge, this is the first paper to provide both security and privacy protection without the error between the data sample (Xi, Yi) and the mapping made by model parameters w. Since data is distributed among K clients, the objective (1) can be rewritten as   changing the fundamental structure of the classical federated averaging algorithm FedAvg <ref type="bibr">[9]</ref>. The critical contributions of the paper are summarized as follows.</p><p>&#8226; schemes are robust against attacks while still achieving good performance. The rest of the paper is organized as follows. Section II introduces the classical MB FedAvg algorithm. It also gives the motivations to apply MUB, ICMI, and MUB-ICMI schemes in FL. Section III presents the detailed algorithms for the three proposed schemes. Simulation results are given in Section IV. Finally, section V concludes the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. SYSTEM MODEL</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. FL System Model</head><p>FL aims to learn a central ML model without data sharing. This is achieved by sharing the local ML models trained at each LC. The system is normally comprised of a central parameter server (PS) connected by K LCs. Each LC has its dataset, and the data can be non-lID across different LCs. Considering bandwidth restrictions, especially in a wireless setting, only a fraction C of total clients are selected to participate in the FL process in each round. In the classical MB FedAvg algorithm, the selected clients perform local learning based on their local dataset. Each LC then uploads the updated local model to the server for aggregation. The server employs the updated local models to get the latest global model via arithmetic averaging and then sends it back to all the LCs. The process repeats until the model converges.</p><p>The objective function of the FL system can be defined as</p><p>wERd where f( w) == 11 1 L:~=1 fi( w), IDI is the size of the dataset D. fi (w) == R(Xi, Yi; w) is the loss function used to capture where wf is defined in (3), i.e., the local model after the local learning process; wf' is the local model before local learning, which will be defined later in <ref type="bibr">(7)</ref>. The global model update is defined as <ref type="bibr">(6)</ref> ~IDkl k</p><p>Ut+1 == ~lDT Ut .</p><p>k=1</p><p>The To understand the difference between MB and MUB, we first derive the distributions of model and model update, respectively, in the non-lID data case. In Fig. <ref type="figure">2</ref>, the distribution of model update in Fig. <ref type="figure">2(a)</ref> shows much less deviation than the model distribution in Fig. <ref type="figure">2(b</ref>). Further, in Fig. <ref type="figure">2</ref> model of each client is accessible to the eavesdroppers during uploading. Thus the eavesdroppers have a chance to perform membership inference attacks to infer the private data at LCs. To address that, ICMI is introduced as a new model initialization scheme. ICMI lets LC initialize its own model rather than using a common initial model sent by the server. SecAgg or AirComp can be further used to hide each LC's model from others, including the server and possible eavesdroppers, during the uploading stage. The eavesdroppers can only obtain the aggregated model, which effectively prevents the membership inference attacks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Combined Scheme</head><p>In the MUB scheme, since the model update rather than the model itself is shared by each client, the local model and the global model are effectively hidden from the eavesdroppers. However, due to the fact that the model initialization is done at the server and then is sent to each client, the eavesdroppers may still be able to calculate the local model and the global model based on the initial global model and subsequent local model updates. To avoid that, MUB can be combined with ICMI to form the MUB-ICMI scheme, providing further privacy protection. With MUB-ICMI, no model information is made accessible to the eavesdroppers. Therefore, there is no need to use SecAgg or AirComp to hide the individual models. This simplifies the design of ICMI scheme by avoiding extra computation or communication overhead. In the classical MB FedAvg, the global model is first initialized by the server and then sent to LCs. Thus, each client has the same learning initialization point. Besides, the In <ref type="bibr">[10]</ref>, the author proposed the update norm clipping approach to ensure the norm of each model update is small enough so that the server is less susceptible to the poisoning models on backdoor attacks. This is proved to be a valid defense method for backdoor attacks without much impact on the performance of the main task. From the distributions of model and model update in Fig. <ref type="figure">2</ref>, the l2-norm of the model update distribution is much smaller than that of the model distribution. So the model update can naturally work like the norm-clipped model. And it should also apply to Byzantine attacks such as additive noise attacks and sign-flipping attacks. In the previous section, the motivation to apply the MUB scheme and ICMI scheme is articulated. In this section, the details of the proposed schemes are presented.  The three substages can be summarized as:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. MUB FL</head><p>In ML, the gradient is usually defined as 9 == \lF (w ), so the local gradient in FL is gf == \lF k (Wt), and the global d &#8226; .</p><p>- In the classical MB FedAvg, an LC only needs to perform local learning in each FL round. In MUB-FL, a client needs to execute the three substages, as shown in Fig. <ref type="figure">3</ref>. This might result in different local models and different convergence behavior. When the model is initialized from the server and sent to LCs, the initial global model WI in the classical MB-FL is the same for all the clients. The local model after learning is w} == WI -r;\lFk(WI).  <ref type="bibr">[7]</ref>, e.g., masking with one-time pads, dropped user recovery using secret sharing, exchanging secrets efficiently, and minimizing thrust in practice. As the aggregated model is hidden from eavesdroppers and other third parties, the membership inference attacks can not be executed. Since only the initial model WI is different across LCs while the rest part keeps the same as in the classical MB FedAvg, ICMI should also converge to a similar level as in classical MB-FL. This is verified in the simulation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. MUB-fCMf FL</head><p>To enhance both security and privacy in FL, MUB and ICMI can be combined to form MUB-ICMI, where the model initialization is taken place at LCs, and only the model update (not the model itself) is uploaded. The MUB-ICMI algorithm is summarized in Algorithm 1. In the additive noise attack, malicious clients add Gaussian noise to their local model updates and send them to PS. The malicious clients have the desire to add the noise with significant power. However, it is easy to detect it by computing the l2-norm of the model update. In a sign-flipping attack, the malicious client flips the signs of the model updates while keeping the magnitude unchanged. So this attack is more brutal to be identified and thus more harmful to the system performance. F Fig. <ref type="figure">5</ref> presents the results of classical MB-FL with lID data under additive noise attacks as well as with non-lID data under sign-flipping attacks in the CNN model. When more malicious clients participate in model sharing, the performance becomes worse. The lID data distribution makes the test accuracy smoother under Byzantine attacks shown in Fig. <ref type="figure">5(a)</ref>. Due to the non-lID data distribution, the test accuracy results in Fig. <ref type="figure">5</ref>(b) experience fluctuation during the learning. Compared with the additive noise attacks, sign-flipping attacks suffers much worse performance. When 40% of the clients are malicious clients, the model almost learns nothing under the sign-flipping attacks. As shown in Fig. <ref type="figure">5</ref>, the non-lID data distribution is more vulnerable to sign-flipping attacks. So in the following result, only the testing result of non-lID data distribution under sign-flipping attacks will be presented to demonstrate the effectiveness of the proposed schemes. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm 1 MUB-ICMI FedAvg</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. SIMULATION RESULTS</head><p>In this section, we first show the convergence of the proposed three schemes as well as the classical MB FedAvg algorithm by using image classification tasks under no attacks. Then the testing results of four different schemes under two different Byzantine attacks, i.e., additive noise attacks and sign-flipping attacks are presented. Compared with the classical MB-FL scheme, MUB-ICMI scheme is effective in defending against Byzantine attacks while still achieving good performance.</p><p>We First, the convergence of the classical MB-FL and the proposed MUB-FL and ICMI-FL are demonstrated using MLP or CNN model under lID or non-lID data distributions without any attacks. Fig. <ref type="figure">4</ref> shows the testing accuracy of MNIST under a non-lID data distribution with the CNN model. All four algorithms converge after 200 training rounds and also converge to the levels that are very close to each other. The MUB algorithm even achieves slightly better performance than the classical MB-FL during the learning process. The heterogeneity of data distribution has less impact when the model update rather than the model is aggregated. Under lID data distribution, MUB-FL achieves similar performance compared with the classical MB-FL. The MUB-ICMI algorithm performs slightly worse than the other three algorithms.</p><p>To demonstrate the effectiveness of the proposed algorithms in defending against Byzantine attacks, we evaluate the proposed algorithms in several scenarios. First, we assume that 20%, 30%, or 40% of the clients are attackers. Two types of scheme to enhance privacy. The combined new MUB-ICMI can effectively improve both privacy and security in FL. Two types of Byzantine attacks were used to demonstrate the effectiveness of the proposed schemes. The convergence and effectiveness of the methods were presented using the MNIST dataset with both lID and non-lID data distributions. The theoretical analysis of the proposed algorithms and more simulation results on other datasets will be provided in the future. Fig. <ref type="figure">6</ref> provides the results of non-lID data with MLP model using MUB scheme under sign-flipping attacks, and Fig. <ref type="figure">7</ref> presents the results of ICMI scheme under sign-flipping attacks. From Fig. <ref type="figure">6</ref>, we know MUB-FL can significantly defend against the sign-flipping attacks. After 100 learning rounds, even in the worst case with 40% malicious clients, the testing accuracy is still very close to the result without any attacks when it converges. Since the ICMI scheme is designed to enhance privacy, it does not help to defend the Byzantine attacks. Thus the testing results in Fig. <ref type="figure">7</ref> are similar to the results with the classical MB-FL algorithm shown in Fig. <ref type="figure">5(b)</ref>.</p><p>Finally, the MUB-ICMI scheme is applied to non-lID data distribution with the CNN model under sign-flipping attacks. To demonstrate the effectiveness of the algorithm, 200 training rounds are executed. In Fig. <ref type="figure">8</ref>, the scenarios with 20% and 30% malicious clients achieve similar results to the "N0 Attack" case after 200 training rounds. For the attack with 40% malicious clients, although the performance is worse than the "no attack" scenario as expected, it is still much better than the classical MB-FL shown in Fig. <ref type="figure">5(b</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. CONCLUSIONS</head><p>In this paper, we proposed a new method using the MUB scheme in FL to defend against Byzantine attacks and the ICMI</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Authorized licensed use limited to: Utah State University. Downloaded on February 03,2023 at 00:56:29 UTC from IEEE Xplore. Restrictions apply.</p></note>
		</body>
		</text>
</TEI>
