<?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'>On the Convergence of Communication-Efficient Local SGD for Federated Learning</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>02/02/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10289671</idno>
					<idno type="doi"></idno>
					<title level='j'>35th AAAI Conference on Artificial Intelligence (AAAI 2021)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>An Xu Hongchang Gao</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Federated Learning (FL) has attracted increasing attention in recent years. A leading training algorithm in FL is local SGD, which updates the model parameter on each worker and averages model parameters across different workers only once in a while. Although it has fewer communication rounds than the classical parallel SGD, local SGD still has large communication overhead in each communication round for large machine learning models, such as deep neural networks. To address this issue, we propose a new communicationefficient distributed SGD method, which can significantly reduce the communication cost by the error-compensated double compression mechanism. Under the non-convex setting, our theoretical results show that our approach has better communication complexity than existing methods and enjoys the same linear speedup regarding the number of workers as the full-precision local SGD. Moreover, we propose a communication-efficient distributed SGD with momentum, which also has better communication complexity than existing methods and enjoys a linear speedup with respect to the number of workers. At last, extensive experiments are conducted to verify the performance of our proposed methods.]]></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>In recent years, Federated Learning (FL) has attracted more and more attention due to data distributed across user devices that requires privacy and finite communication cost. Specifically, in a FL system, there exist multiple workers and a central server. Workers optimize the model with their local data, and the central server coordinates the corporation between different workers. In particular, FL aims at solving the following distributed optimization problem:</p><p>where x &#8712; R d represents the model parameter, K is the number of workers, and f (k) (x) = E &#958;&#8764;D (k) F (k) (x; &#958;) is the loss function on each worker with D (k) denoting the data distribution on the k-th worker. In this paper, we focus on the non-convex problem. In particular, f (k) (x) is assumed as a smooth non-convex function.</p><p>To optimize Eq. ( <ref type="formula">1</ref>), a straightforward method is the parallel SGD (P-SGD) method where each worker sends the local stochastic gradient to the central server and gets the averaged gradient from the central server at each iteration. This mechanism will lead to large communication overhead at each iteration, especially when the model is large, such as deep neural networks. To reduce the communication cost, the commonly used optimization method in a FL system is local SGD <ref type="bibr">(Jiang and Agrawal 2018;</ref><ref type="bibr">Yu, Jin, and Yang 2019;</ref><ref type="bibr">Yu, Yang, and Zhu 2019;</ref><ref type="bibr">Wang and Joshi 2018;</ref><ref type="bibr">Haddadpour et al. 2019)</ref>. Specifically, each worker updates the model parameter for p (where p &gt; 1) iterations locally by using SGD and then sends the local parameter to the central server and gets the averaged model parameter from the central server. In this way, the number of communication rounds is reduced from O(T ) to O(T /p) (T is the number of iterations). In addition, <ref type="bibr">(Yu, Yang, and Zhu 2019)</ref> shows that, same as P-SGD, local SGD enjoys the same convergence rate O(1/ &#8730; KT ) with a linear speedup regarding the number of workers for non-convex problems. Therefore, local SGD is more efficient than the traditional P-SGD method, and it has been applied to different applications.</p><p>Even though local SGD can decrease the communication overhead by reducing the number of communication rounds, yet it still has large communication cost in each communication round for large models. For instance, the ResNet-152 <ref type="bibr">(He et al. 2016)</ref> neural network for ImageNet is with the size of about 240MB, which is a large burden to the communication, especially for the FL system with limited communication capacity. To allievate the communication issue caused by the large model, a common strategy is to compress the gradient in each communication round, such as sparsifying gradients <ref type="bibr">(Strom 2015;</ref><ref type="bibr">Lin et al. 2017;</ref><ref type="bibr">Aji and Heafield 2017)</ref> and quantizing gradients <ref type="bibr">(Alistarh et al. 2017;</ref><ref type="bibr">Wen et al. 2017;</ref><ref type="bibr">Bernstein et al. 2018)</ref>. In particular, gradient sparsification only sends the significant gradient elements, while gradient quantization is to quantize the full-precision gradient to the low-bit one. Both of them can significantly reduce the communication cost in each round. In addition, to reduce the large variance caused by gradient compression, the error compensation technique is usually used <ref type="bibr">(Seide et al. 2014;</ref><ref type="bibr">Stich, Cordonnier, and Jaggi 2018;</ref><ref type="bibr">Stich and Karimireddy 2019;</ref><ref type="bibr">Tang et al. 2019;</ref><ref type="bibr">Zheng, Huang, and Kwok 2019)</ref>. Previous studies <ref type="bibr">(Tang et al. 2019</ref>  <ref type="bibr">(Reisizadeh et al. 2020)</ref> O(K 3/2 T 1/2 ) -Qsparse-local-SGD <ref type="bibr">(Basu et al. 2019</ref>) The recent study <ref type="bibr">(Basu et al. 2019</ref>) tried to answer this question and proposed Qsparse-local-SGD to compress the gradient of local SGD. However, its result is suboptimal. Firstly, Qsparse-local-SGD only compresses the gradient sent from workers to the central server and keeps the full-precision gradient sent back to the worker. As a result, its communication overhead is still large. Secondly, the communication complexity given by Qsparse-local-SGD is suboptimal. It requires O(K 3/4 T 3/4 ) communication rounds, while the fullprecision local SGD only needs O(K 3/2 T 1/2 ) communication rounds. Thirdly, Qsparse-local-SGD has a pathological assumption: The gradient norm is bounded, which cannot be satisfied in many cases <ref type="bibr">(Khaled, Mishchenko, and Richt&#225;rik 2019)</ref>. What's more, Qsparse-local-SGD only focuses on the regular local SGD method. However, momentum local SGD is more commonly used in practical applications and usually has better convergence and generalization performance <ref type="bibr">(Yu, Jin, and Yang 2019)</ref>. Thus, it is also necessary to reduce the communication overhead of the momentum local SGD.</p><p>In this paper, to apply compressed gradients to local SGD without jeopardizing the convergence rate and communication complexity, we propose two novel communicationefficient local SGD methods. In particular, to reduce the communication cost in each round, we propose to compress all gradients exchanged between the worker and server by the error-compensated compression mechanism. Under the non-convex setting, without the bounded gradient assumption in <ref type="bibr">(Basu et al. 2019;</ref><ref type="bibr">Tang et al. 2019;</ref><ref type="bibr">Zheng, Huang, and Kwok 2019)</ref>, our theoretical result shows that our proposed method admits the same convergence rate O(1/ &#8730; KT ) as the full-precision method. Note that it is more challenging to study the convergence rate without the bounded gradient assumption. In this paper, we addressed this issue by carefully bounding the compression error. As shown in Table <ref type="table">1</ref>, our method enjoys the same number of communication rounds O(K 3/2 T 1/2 ) as the full-precision one, which is better than Qsparse-local-SGD. Moreover, we propose a new momentum local SGD with compressed gra-dients, which also enjoys the same convergence rate and communication complexity as the full-precision method. As far as we know, these theoretical results regarding the convergence rate and communication complexity are the first time to be discovered. At last, extensive experimental results confirmed the effectiveness of our proposed methods. Here, we summarize our contributions as follows:</p><p>&#8226; We propose a communication-efficient local SGD and a communication-efficient momentum local SGD. To the best of our knowledge, both of them are the first ones with double compression mechanism for (momentum) local SGD.</p><p>&#8226; We propose a new theoretical analysis strategy for analyzing the error-compensated double compression method without the bounded gradient assumption. As far as we know, this is the first work doing that.</p><p>&#8226; With our new theoretical analysis strategy, we carefully bound the compression error and disclose that our proposed communication-efficient (momentum) local SGD with error-compensated compression mechanism enjoys the same communication complexity with the full-precision method. This is the first work achieving this result.</p><p>&#8226; Extensive experimental results confirm the efficacy of our proposed two methods.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Related Works</head><p>In the distributed machine learning area, to reduce the communication overhead, there are two strategies: reducing the number of communication rounds and reducing the cost in each communication round.</p><p>Reduce Communication Rounds To reduce the number of communication rounds, local SGD updates model parameters locally for multiple iterations and then conducts the communication to synchronize the model parameter. Thus, local SGD can reduce the number of communication rounds by doing more local computation and less communication. Under the non-convex setting, the communication complexity is extensively studied in recent works <ref type="bibr">(Jiang and Agrawal 2018;</ref><ref type="bibr">Yu, Jin, and Yang 2019;</ref><ref type="bibr">Yu, Yang, and Zhu 2019;</ref><ref type="bibr">Wang and Joshi 2018;</ref><ref type="bibr">Haddadpour et al. 2019)</ref>. For instance, when different workers have identical data, <ref type="bibr">(Yu, Yang, and Zhu 2019)</ref> theoretically proves that local SGD achieves the convergence rate O(1/ &#8730; KT ) when the number of local updates is in the order of O(K 3/4 T 3/4 ). In the recent work <ref type="bibr">(Yu, Jin, and Yang 2019)</ref>, the communication complexity is further improved to O(K 3/2 T 1/2 ).</p><p>Compress Gradients To reduce the communication cost in each communication round, a commonly used strategy is to compress the gradient, such as sparsifying gradients and quantizing gradients. Although the compression of gradients can reduce the communication cost in each round, it causes large variance, hampering the convergence. To address this issue, <ref type="bibr">(Seide et al. 2014)</ref> proposed the error compensation method to reduce the variance of the compressed gradient, which can stabilize the convergence. After that, the error compensation technique has been used in different methods <ref type="bibr">(Stich, Cordonnier, and Jaggi 2018;</ref><ref type="bibr">Tang et al. 2019;</ref><ref type="bibr">Zheng, Huang, and Kwok 2019)</ref>. For example, Doub-leSqueeze <ref type="bibr">(Tang et al. 2019</ref>) compresses gradients with error compensation in both passes of the regular P-SGD, and dist-EF-SGDM <ref type="bibr">(Zheng, Huang, and Kwok 2019)</ref> applies the same strategy to parallel momentum SGD. However, all aforementioned methods only focus on the regular (momentum) SGD instead of local SGD. In the recent work <ref type="bibr">(Basu et al. 2019)</ref>, Qsparse-local-SGD applies the compressed gradient with error compensation to local SGD. However, it only conducts compression on the gradient from workers to the central server. Thus, it still has large communication overhead caused by the dense gradient from the central server to workers. Similar with Qsparse-local-SGD, <ref type="bibr">(Reisizadeh et al. 2020;</ref><ref type="bibr">He et al. 2020</ref>) also only compresses the gradient sent from workers to the central server and use the full gradient from the central server to workers. Moreover, <ref type="bibr">(Reisizadeh et al. 2020;</ref><ref type="bibr">He et al. 2020</ref>) require that the compressor for gradients should be unbiased and do not utilize the error-compensation mechanism. Thus, these two methods are supposed to have a worse convergence performance than those with the error-compensation mechanism <ref type="bibr">(Tang et al. 2019;</ref><ref type="bibr">Karimireddy et al. 2019)</ref>. More comparison results can be found in Table <ref type="table">1</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Convergence Analysis of Compressed Local SGD</head><p>When analyzing the convergence rate and the communication complexity, Qsparse-local-SGD <ref type="bibr">(Basu et al. 2019)</ref>, as well as the compressed P-SGD method <ref type="bibr">(Tang et al. 2019;</ref><ref type="bibr">Zheng, Huang, and Kwok 2019)</ref>, assumes the gradient is bounded so that it is easy to bound the compression error. However, this assumption is pathological <ref type="bibr">(Khaled, Mishchenko, and Richt&#225;rik 2019)</ref>, which might not be true in some cases. <ref type="bibr">(Reisizadeh et al. 2020;</ref><ref type="bibr">He et al. 2020</ref>) didn't use this assumption. However, these two methods require the compressor to be unbiased so that they do not need to bound the compression error, simplifying their theoretical analysis. On the contrary, our method uses the error-compensated compressor so that the compressed gradient in our method can be biased. We need to carefully bound the compression error in both directions without the bounded gradient assumption, which is much more challenging than all existing works.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Preliminaries</head><p>Throughout this paper, we have the following assumptions which are commonly used in federated learning <ref type="bibr">(Yu, Jin, and Yang 2019;</ref><ref type="bibr">Liang et al. 2019)</ref>.</p><p>Assumption 2. Bounded gradient variance within each worker: There exists &#963; &gt; 0 such that</p><p>These two assumptions are very common in existing literature. Note that we do not assume the bounded gradient E[ &#8711;F (k) (x; &#958;) 2 ] &#8804; G 2 for a constant G. In this paper, as Qsparse-loal-SGD <ref type="bibr">(Basu et al. 2019)</ref>, different workers have identical data. We summarize the notations used in this paper. x (k) t denotes the model parameter of the k-th worker at the t-th iteration.</p><p>denotes the averaged model parameter across all workers at the t-th iteration.</p><p>t ) represents the stochastic gradient of the k-th worker which is computed on the local model arameter and data at the t-th iteration. &#8711;f (k) (x</p><p>indicates the momentum of the k-th worker at the t-th iteration.</p><p>indicates the averaged momentum across all worker at the t-th iteration. p stands for the communication period. f * denotes minimum of the loss function.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Communication-Efficient Distributed SGD with Compressed Gradients</head><p>Local SGD with Compressed Gradient</p><p>Our proposed local SGD with compressed gradients is presented in Algorithm 1. The core idea is to compress the gradient sent from workers to the central server and that sent from the central server to workers with a &#948;-contraction operator, which is defined as follows: Definition 1. (Stich, Cordonnier, and Jaggi 2018) A compression operator</p><p>where 0 &lt; &#948; &#8804; 1.</p><p>A typical example is the top-k sparsification operator which only selects the k elements with the largest absolute values from the vector x &#8712; R d .</p><p>To alleviate the large variance of compressed gradients, we compensate the compressed gradient by the residual error between the full-precision gradient and the compressed one. Specifically, each worker keeps the local model parameter x </p><p>Worker-k: if mod(t + 1, p)=0 then 12: Worker-k:</p><p>end if 20: end for 1, p) = 0, each worker updates the local model parameter based on the local data as follows:</p><p>where &#951; is the step size. When mod(t + 1, p) = 0, each worker computes the error-compensated gradient as follows:</p><p>where</p><p>t+1 represents the accumulated gradient in the past p iterations. Then, each worker compresses the local gradient v (k) t+1 by using the compression operator Q(&#8226;), such as the top-k sparsification operator. Meanwhile, each worker updates its local residual error as follows:</p><p>where</p><p>t+1 ) represents the compressed gradient. After that, workers send the compressed gradient Q(v</p><p>As for the server, it receives all compressed gradients Q(v (k) t+1 ) from workers and computes the global errorcompensated gradient as follows:</p><p>where e t denotes the global residual error. Note that, e t is not the average of local residual errors. Instead, the server constructs the global residual error by computing the difference between the global gradient v t+1 and its compressed version Q(v t+1 ) as follows:</p><p>After that, the server broadcasts Q(v t+1 ) to all workers and they reset the local model parameter as follows:</p><p>x</p><p>In summary, all the gradient communicated between workers and the central server are compressed. Therefore, the communication cost in each round is pretty small. On the contrary, the existing works <ref type="bibr">(Basu et al. 2019;</ref><ref type="bibr">He et al. 2020;</ref><ref type="bibr">Reisizadeh et al. 2020</ref>) only compress the gradient from local workers to the central server while keeping the full-precision gradient from the central server to local workers. Moreover, compared with <ref type="bibr">(Tang et al. 2019</ref>) which performs communication at every iteration, our method conducts communication at every p iterations. Thus, our method has much fewer communication rounds. In the following, we present the convergence rate and communication complexity of our proposed Algorithm 1. Theorem 1. Under Assumption 1 and 2, if we choose &#951; &#8804; &#8730;</p><p>where</p><p>, and a 3 = 16, we have</p><p>(11) From Theorem 1, it can be seen that the last two terms on the RHS is related to the compression of gradients. Corollary 1. Under Assumption 1 and 2, by choosing &#951;</p><p>(12) From Corollary 1, we can see that our method has the convergence rate as O( 1 &#8730; KT ), indicating a linear speedup regarding the number of workers K as the full-precision local SGD method <ref type="bibr">(Yu, Jin, and Yang 2019)</ref>. Moreover, it can be seen that the communication complexity of our method is O(K 3/2 T 1/2 ), which is also same as the full-precision method. On the contrary, Qsparse-local-SGD <ref type="bibr">(Basu et al. 2019</ref>) method has the communication complexity as large as O(K 3/4 T 3/4 ). Hence, our method is more communicationefficient.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Momentum Local SGD with Compressed Gradient</head><p>The momentum technique is widely used for training machine learning models, especially deep neural networks. Recently, <ref type="bibr">(Yu, Jin, and Yang 2019)</ref> proposed the local SGD with momentum method, which can be used for Federated Learning. However, this method has large communication overhead. In addition, existing works <ref type="bibr">(Basu et al. 2019;</ref><ref type="bibr">He et al. 2020;</ref><ref type="bibr">Reisizadeh et al. 2020</ref>) didn't consider the momentum method. Thus, it is still unclear whether the momentum local SGD method can use the double compressed gradient with the error-compensated mechanism and preserve the convergence rate and communication rounds as the fullprecision one. To address this issue, we propose the momentum local SGD with the error-compensated double compression mechanism, which is summarized in Algorithm 2.</p><p>Algorithm 2 Momentum Local SGD with Compressed Gradients</p><p>Worker-k: if mod(t + 1, p)=0 then 14:</p><p>16: Worker-k:</p><p>end if 23: end for For each worker, when mod(t + 1, p) = 0, it updates the local model parameter based on its local data as follows:</p><p>t+1 denotes the momentum, 0 &lt; &#181; &lt; 1 represents the momentum coefficient, and &#951; &gt; 0 is the step size. When mod(t+1, p) = 0, instead of compressing the gradient, each worker compresses the momentum as follows:</p><p>t+1 represents the accumulated "gradient" 1 in the past p iterations, v For the server, it computes the error-compensated gradient and compresses it as follows:</p><p>(15) After that, the server broadcasts the compressed gradient to all workers. Then, all workers update the local model parameter based on the received gradient. In the following, we present the convergence rate and communication complexity of our proposed Algorithm 2. Theorem 2. Under Assumption 1 and 2, if we choose &#951; &#8804; &#8730;</p><p>where</p><p>(16) Similar with Theorem 1, compared with the full-precision momentum local SGD <ref type="bibr">(Yu, Jin, and Yang 2019)</ref>, our convergence result in Theorem 2 has extra terms with respect to &#948; which is caused by the compression of gradients. Corollary 2. Under Assumption 1 and 2, by choosing &#951;</p><p>(17) From Corollary 2, it can be seen that our method still enjoys the linear speedup regarding the number of workers as the full-precision momentum local SGD method <ref type="bibr">(Yu, Jin, and Yang 2019)</ref>. As for the communication complexity O(K 3/2 T 1/2 ), it is also the same as the full-precision method <ref type="bibr">(Yu, Jin, and Yang 2019)</ref>. Therefore, compared with the full-precision method, our method has the same convergence rate and communication complexity but has much smaller communication cost in each round due to the gradient compression. Note that, in our theoretical analysis, we follow the i.i.d. setting of Qsparse-local-sgd to improve the communication complexity. But under some assumptions regarding the non i.i.d. distribution, such as the bounded gradient heterogeneity assumption, it is not difficult to handle the heterogeneous gradient and then we can apply our proof technique to the non i.i.d. case smoothly. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experiments Experimental Settings</head><p>All experiments are implemented in PyTorch <ref type="bibr">(Paszke et al. 2019</ref>) and run on a cluster with NVIDIA Tesla P40 GPUs, where nodes are interconnected by a network with 40 Gbps bandwidth. We run each distributed training experiment using 8 workers (GPUs). The compression method used in our experiments is the top-10% sparsification operator. Two benchmark datasets are used in our experiments. The details are described as follows.</p><p>CIFAR-10: We test ResNet-56 <ref type="bibr">(He et al. 2016</ref>) with all the above mentioned algorithms on CIFAR-10 dataset <ref type="bibr">(Krizhevsky, Hinton et al. 2009)</ref>. Common data augmentation techniques such as random cropping, random flipping and standardization are performed. The base learning rate is 0.1, the weight decay is 5 &#215; 10 -4 and the batch size is 128. For local SGD, the is trained for 150 epoch in total, with a learning rate decay of 0.1 at epoch 100. For momentum local SGD, the model is trained for 200 epoch in total, with a learning rate decay of 0.1 at epoch 100 and 150.</p><p>ImageNet: We test ResNet-50 <ref type="bibr">(He et al. 2016</ref>) on Ima-geNet dataset <ref type="bibr">(Russakovsky et al. 2015)</ref> <ref type="foot">foot_1</ref> . Similar data augmentation techniques are performed. The model is trained for 90 epoch in total, with a learning rate decay of 0.1 at epoch 30 and 60. The base learning rate is 0.1, the weight decay is 1 &#215; 10 -4 and the total batch size is 256.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Results of Methods without Momentum</head><p>To verify the performance of our proposed method in Algorithm 1 (Alg1), we compare our method with the full-precision local SGD method, DoubleSqueeze <ref type="bibr">(Tang et al. 2019)</ref>, and Qsparse-local-SGD <ref type="bibr">(Basu et al. 2019)</ref>. Note that we didn't compare our method with <ref type="bibr">(He et al. 2020;</ref><ref type="bibr">Reisizadeh et al. 2020</ref>) since existing works <ref type="bibr">(Tang et al. 2019;</ref><ref type="bibr">Karimireddy et al. 2019</ref>) have shown that this kind of methods without the error-compensation mechanism has worse convergence and generalization performance. Figure <ref type="figure">1(a</ref>) and 1(b) show the training loss and testing accuracy regarding the number of epochs under different communication periods p on CIFAR-10 dataset. Table <ref type="table">2</ref> reports the final testing accuracy of ResNet-56 on CIFAR10. From them, we have the following observations. First, comparing with the full-precision method, our method with compressed gradients has similar convergence performance: converging to almost the same value and achieving almost the same accuracy. Hence, although our method uses the compressed gradient, yet the convergence performance does not degenerate. Second, when the communication period p is 1, local-p1 becomes the traditional parallel SGD (P-SGD) method, and our method is equivalent to DoubleSqueeze <ref type="bibr">(Tang et al. 2019</ref>) method. Comparing with these two state-of-the-art methods, when increasing p, our method converges to almost the same value and achieves almost the same accuracy as P-SGD and DoubleSqueeze. Furthermore, we also plot the training loss and testing accuracy regarding the communication cost in Figure <ref type="figure">1(c</ref>) and 1(d). It can be seen that our method with compressed gradients has much less communication cost and achieves almost the same performance comparing with the full-precision methods. Based on these observations, we can conclude that our method does not jeopardize the final model performance even though it compresses the gradient and reduces the number of communication rounds.</p><p>Moreover, to further verify the performance of our proposed method, we compare it with Qsparse-local-SGD (QL-SGD) which only conducts compression on the gradient sent from workers to the server. Note that, to make a fair comparison, we employ the same compression operator: top-10% sparsification. From Figure <ref type="figure">2</ref>, it can be seen that our method has similar convergence performance with QL-SGD, but has much less communication cost since our method conducts compression on the gradient sent from workers to the server and the averaged gradient sent from the server to workers. Therefore, our method is more communication-efficient than QL-SGD.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Results of Methods with Momentum</head><p>In this experiment, we compare our proposed Algorithm 2 (Alg2) with the full-precision momentum local SGD (local SGDM) <ref type="bibr">(Yu, Jin, and Yang 2019)</ref> and dist-EF-SGDM <ref type="bibr">(Zheng, Huang, and Kwok 2019)</ref>. Note that we didn't compare it with Qsparse-local-SGD <ref type="bibr">(Basu et al. 2019</ref>) because this method only studied the regular gradient rather than the momentum case. Throughout this experiment, the momentum coefficient &#181; is set to 0.9.</p><p>In Figure <ref type="figure">3</ref>(a) and 3(b), we report the convergence performance regarding the number of epochs on ImageNet. In Figure <ref type="figure">3</ref>(c) and 3(d), we show the convergence result with respect to the communication cost. In addition, the testing accuracy of the learned model is reported in Table <ref type="table">3</ref>. Similar to Algorithm 1, from Figure <ref type="figure">3</ref>(a) and 3(b), we can also find that the model optimized by our method has similar convergence behavior with that learned by the full-precision method. In terms of the final testing accuracy in Table <ref type="table">3</ref>, our method and the full-precision local SGD achieve similar performance. It shows that compressed gradient communication is not only beneficial for accelerating the convergence regarding training epochs, but also do not jeopardize the final model performance.</p><p>From Figure <ref type="figure">3</ref>(c) and 3(d), it can be seen that increasing the communication period naturally reduces the communication cost. Compared with local SGD using the same communication period, our method needs much less communication cost, which is most beneficial for the communication constrained federated learning scenario where the uplink and downlink bandwidth between the central server and user devices may be very limited. Compared with dist-EF-SGDM, our method also has much less communication cost but almost the same accuracy, which further confirms our method is efficient in communication and correct in computation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusions</head><p>In this paper, we propose two new communication-efficient distributed SGD methods for Federated Learning. Specifically, to reduce the communication cost of local SGD, we compress the gradient exchanged between the worker and server with the error-compensated compression operator. Our theoretical results show that our proposed methods enjoy the same iteration complexity and communication complexity as the full-precision method. Extensive experimental results have verified that our methods have similar convergence performance as the full-precision method but require much less communication budget.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>The Thirty-Fifth AAAI Conference on Artificial Intelligence (AAAI-21)</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>Since ResNet-50 on ImageNet is trained with momentum SGD in<ref type="bibr">(He et al. 2016</ref>), here we only use Algorithm 2 for ImageNet.</p></note>
		</body>
		</text>
</TEI>
