Federated Learning With Quantized Global Model Updates
Abstract
We study federated learning (FL), which enables mobile devices to utilize their local datasets to collaboratively train a global model with the help of a central server, while keeping data localized.
At each iteration, the server broadcasts the current global model to the devices for local training, and aggregates the local model updates from the devices to update the global model.
Previous work on the communication eﬃciency of FL has mainly focused on the aggregation of model updates from the devices, assuming perfect broadcasting of the global model.
In this paper, we instead consider broadcasting a compressed version of the global model.
This is to further reduce the communication cost of FL, which can be particularly limited when the global model is to be transmitted over a wireless medium.
We introduce a lossy FL (LFL) algorithm, in which both the global model and the local model updates are quantized before being transmitted.
We analyze the convergence behavior of the proposed LFL algorithm assuming the availability of accurate local model updates at the server.
Numerical experiments show that the proposed LFL scheme, which quantizes the global model update (with respect to the global model estimate at the devices) rather than the global model itself, signiﬁcantly outperforms other existing schemes studying quantization of the global model at the PS-to-device direction.
Also, the performance loss of the proposed scheme is marginal compared to the fully lossless approach, where the PS and the devices transmit their messages entirely without any quantization.
Introduction
Federated learning (FL) enables wireless devices to collaboratively train a global model by utilizing locally available data and computational capabilities under the coordination of a parameter server (PS) while the data never leaves the devices McMahan & Ramage (2017).
In FL with M devices the goal is to minimize a loss function F ( θ ) =
P Mm =
1 B m B F m ( θ ) with respect to the global model θ ∈ R d , where F m ( θ ) =
1 B m P u ∈B m f ( θ , u ) is the loss function at device m , with B m representing device m ’s local dataset of size B m , B (cid:44) P Mm =1 B m , and f ( · , · ) is an empirical loss function.
Having access to the global model θ , device m utilizes its local dataset and performs multiple iterations of stochastic gradient descent (SGD) in order to minimize the local loss function F m ( θ ).
It then sends the local model update to the server, which aggregates the local updates from all the devices to update the global model.
FL mainly targets mobile applications at the network edge, and the wireless communication links connecting these devices to the network are typically limited in bandwidth and power, and suﬀer from various channel impairments such as fading, shadowing, or interference; hence the need to develop an FL framework with limited communication requirements becomes more vital.
While communication-eﬃcient FL has been widely studied, prior works mainly focused on the devices-to-PS links, assuming perfect broadcasting of the global model to the devices at each iteration.
In this paper, we design an FL algorithm aiming to reduce the cost of both PS-to-device and devices-to-PS communications.
To address the importance of quantization at the PS-to-device direction, we highlight that some devices simply may not have the suﬃcient bandwidth to receive the global model update when the model size is relatively large, particularly in the wireless setting, where the devices are away from the base station.
This would result in consistent exclusion of these devices, resulting in signiﬁcant performance loss.
Moreover, the impact of quantization in the device-to-PS direction is less severe due to the impact of averaging local updates at the PS.
Related work There is a fast-growing body of literature on the communication eﬃciency of FL targeting restricted bandwidth devices.
Several studies address this issue by considering communications with rate limitations, and propose diﬀerent compression and quantization techniques Konecny et al.
; McMahan et al.
; Konecny & Richtarik (2018); Dowlin et al.
; Konecny et al.
; Lin et al. (2018b); He et al.
M.
M. Amiri & G¨und¨uz (2020), as well as performing local updates to reduce the frequency of communications from the devices to the PS Lin et al.
(2018a);
Stich (2019).
Statistical challenges arise in FL since the data samples may not be independent and identically distributed (iid) across devices.
The common sources of the dependence or bias in data distribution are the participating devices being located in a particular geographic region, and/or at a particular time window P. Kairouz et al.
Diﬀerent approaches have been studied to mitigate the eﬀect of non-iid data in FL McMahan et al.
; Hsieh et al.
; Li et al.
(2020a)
; Wang et al.
; Eichner et al.
; Zhao et al.
Also,
FL suﬀers from a signiﬁcant variability in the system, which is mainly due to the hardware, network connectivity, and available power associated with diﬀerent devices Li et al.
Active device selection schemes have been introduced to alleviate signiﬁcant variability in
FL systems, where a subset of devices share the resources and participate at each iteration of training Kang et al.
; Nishio & Yonetani (2019); Amiri et al.
(2020b)
; Yang et al.
There have also been eﬀorts in developing convergence guarantees for FL under various scenarios, considering iid data across the devices Stich (2019); Wang & Joshi (2019);
Woodworth et al.
; Zhou & Cong (2018); Koloskova non
Haddadpour & Mahdavi
, participation of all devices Khaled or only a subset of devices at
Karimireddy
FL under limited communication
FL with compressed global model transmission has been studied recently in Caldas et al.
; Tang et al.
(2019) aiming to alleviate the communication footprint from the PS to the devices.
The global model parameters are relatively skewed/diverse and the eﬃciency of quantization diminishes signiﬁcantly when the peak-to-average ratio of the parameters is large. To overcome this, in Caldas et al.
the PS ﬁrst employs a linear transform in order to spread the information of the global model vector more evenly among its dimensions, and broadcasts a quantized version of the resultant vector, and the devices apply the inverse linear transform to estimate the global model. We highlight that this approach requires a relatively high computational overhead due to employing the linear transform at the
PS and its inverse at the devices, where this overhead grows with the size of the model parameters. Furthermore, the performance evaluation in Caldas et al.
(2019) is limited to the experimental results On the other hand, in Tang et al. the PS broadcasts quantized global model with error accumulation to compensate the quantization error.
Our contributions With the exception of Caldas et al.
; Tang et al.
(2019), the literature on FL considers perfect broadcasting of the global model from the PS to the devices.
With this assumption, no matter what type of local update or device-to-PS communication strategy is used, all the devices are synchronized with the same global model at each iteration.
In this paper, we instead consider broadcasting a quantized version of the global model update by the PS, which provides the devices with a lossy estimate of the global model (rather than its accurate estimate) with which to perform local training.
This further reduces the communication cost of FL, which can be particularly limited for transmission over a wireless medium while serving a massive number of devices.
Also, it is interesting to investigate the impact of various hyperparameters on the performance of
FL with lossy broadcasting of the global model since FL involves transmission over wireless networks with limited bandwidth.
We introduce a lossy FL (LFL) algorithm, where at each iteration the PS broadcasts a compressed version of the global model update to all the devices through quantization.
To be precise, the PS exploits the knowledge of the last global model estimate available at the devices as side information to quantize the global model update.
The devices recover an estimate of the current global model by combining the received quantized global model update with their previous estimate, and perform local training using their estimate, and return the local model updates, again employing quantization.
The PS updates the global model after receiving the quantized local model updates from the devices.
We provide convergence analysis of the LFL algorithm investigating the impact of lossy broadcasting on the performance of FL.
Numerical experiments on the MNIST and CIFAR-10 datasets illustrate the eﬃciency of the proposed LFL algorithm.
We observe that the proposed LFL scheme, which leads to a signiﬁcant communication cost saving, provides a promising performance with no visible gap to the performance of the fully lossless scenario where the communication from both PS-to-device and device-to-PS directions is assumed to be perfect.
Also, it is illustrated that the proposed LFL scheme signiﬁcantly outperforms the schemes introduced in Caldas et al.
(2019) and Tang et al.
(2019) considering compression from the PS to devices.
The proposed LFL algorithm diﬀers from the approaches in Caldas et al.
; Tang et al.
(2019), since we propose broadcasting the global model update, with respect to the previous estimate at the devices, rather than the global model itself.
We remark that the global model update has less variability/variance and peak-to-average ratio than the global model (see
Figure 2), and hence, for the same communication load, the devices can have a more accurate estimate of the global model.
However, this would require all the devices to track the global model at each iteration, even if they do not participate in the learning process by sending their local update.
We argue that broadcasting the global model update to the whole set of devices, rather than a randomly chosen subset, would introduce limited additional communication cost as broadcasting is typically more eﬃcient than sending independent information to devices.
Moreover, in practice, the subset of participating devices remain the same for a number of iterations, until a device leaves or joins.
Our algorithm can easily be adopted to such scenarios by sending the global model, rather than the model update, every time the subset of devices changes.
Also, compared to the approach in Caldas et al.
(2019), the LFL algorithm requires a signiﬁcantly smaller computational overhead.
Furthermore, unlike Caldas et al.
(2019), we provide an in-depth convergence analysis of the proposed LFL algorithm.
The advantage of the proposed LFL algorithm over the approaches introduced in Caldas et al.
; Tang et al.
(2019) is shown numerically, where, despite its signiﬁcantly smaller communication load, it provides considerably higher accuracy.
Notation The set of real numbers is denoted by R .
For x ∈ R , | x | returns the absolute value of x .
For a vector of real numbers x , the largest and the smallest absolute values among all the entries of x are represented by max {| x |} and min {| x |} , respectively.
For an integer i , we let [ i ] (cid:44) { 1 , 2 , . . .
, i } .
The l 2 -norm of vector x is denoted by k x k 2 .
Lossy Federated Learning (LFL) Algorithm
We consider a lossy PS-to-device transmission, in which the PS sends a compressed version of the global model to the devices.
This reduces the communication cost, and can be particularly beneﬁcial when the PS resources are limited, and/or communication takes place over a constrained bandwidth medium.
We denote the estimate of the global model θ ( t ) at the devices byˆ θ ( t ), where t represents the global iteration count.
Having recoveredˆ θ ( t ), the devices perform a τ -step SGD with respect to their local datasets, and transmit their local model updates to the PS using quantization while accumulating the quantization error.
2. Global Model Broadcasting
In the proposed LFL algorithm, the PS performs stochastic quantization similarly to the
QSGD algorithm introduced in Alistarh et al.
(2017) with a slight modiﬁcation to broadcast the information about the global model to the devices.
In particular, at global iteration t , the PS aims to broadcast the global model update θ ( t ) − ˆ θ ( t − 1) to the devices.
We present the stochastic quantization technique we use, denoted by Q ( · , · ), in Appendix A.
Lemma 1.
For the quantization function ϕ ( x, q ) and vector Q ( x , q ) given in (21b) and (22), respectively, we have
[Equation]
1a
[Equation]
Algorithm
PS broadcasts Q (cid:0) θ ( t ) − ˆ θ ( t − 1) , q 1 (cid:1) 3: ˆ θ ( t )
=
ˆ θ ( t − 1) + Q (cid:0) θ ( t ) − ˆ θ ( t − 1) , q 1 (cid:1)
Device m transmits Q (cid:0) ∆ θ m ( t ) + δ m ( t ) , q 2 (cid:1) =
Q (cid:0) θ
τ +1 m ( t ) − ˆ θ ( t ) + δ m ( t ) , q 2 (cid:1) 6: θ ( t + 1)
=
ˆ θ ( t ) + P Mm =1 B m B Q (cid:0) ∆ θ m ( t ) + δ m ( t ) , q 2 (cid:1) 8: where E ϕ represents expectation with respect to the quatization function ϕ ( · , · ) , and 0 ≤ ε ≤ 1 is deﬁned as ε (cid:44) (max {| x |} − min {| x |} ) 2 / k x k 22 .
The proof of Lemma 1 is provided in Appendix B.
We highlight that the value of ε depends on the skewness of the magnitudes of the entries of x , where it increases for a more skewed entries with a higher variance.
We have ε = 0, if and only if all the entries of x have the same magnitude, and ε = 1, if and only if x has only one non-zero entry.
Given a quantization level q 1 , the PS broadcasts Q (cid:0) θ ( t ) − ˆ θ ( t − 1) , q 1 (cid:1) to the devices at global iteration t .
Then the devices obtain the following estimate of θ ( t ): [Equation]
[Equation]
) which is equivalent to ˆ θ ( t )
= θ (0) + P ti =1 Q (cid:0) θ ( i ) − ˆ θ
( i − 1) , q 1 (cid:1) , where we assumed that ˆ θ (0)
=
θ (0).
We note that, having the knowledge of the compressed vector Q (cid:0) θ ( i ) − ˆ θ
( i − 1) , q 1 (cid:1) , ∀ i ∈
[ t ], the PS can also trackˆ θ ( t ) at each iteration.
2. Local Update Aggregation
After recoveringˆ θ ( t ), device m performs a τ -step local SGD, where the i -th step corresponds to θ i +1 m ( t )
=
θ im ( t ) − η im ( t ) ∇
F m (cid:0) θ im ( t ) , ξ im ( t ) (cid:1) , i ∈ [ τ ], where θ 1 m ( t ) =
ˆ θ ( t ), and ξ im ( t ) denotes the local mini-batch chosen uniformly at random from the local dataset B m .
It then aims to transmit local model update ∆ θ m ( t )
=
θ
τ +1 m ( t ) − ˆ θ ( t ) through quantization with error compensation and transmits Q (cid:0) ∆ θ m ( t ) + δ m ( t ) , q 2 (cid:1) using a quantization level q 2 , where δ m ( t ) retains the quantization error, and is updated as
[Equation]
where we set δ m (0)
= 0 .
Having received Q (cid:0) ∆ θ m ( t ) + δ m ( t ) , q 2 (cid:1) from device m , ∀ m ∈
[ M ], the PS updates the global model as
[Equation]
Algorithm 1 summarizes the proposed LFL algorithm.
Remark 1.
We do not consider error compensation at the PS with LFL since we have observed performance degradation numerically when compensating the quantization error at the
PS.
We argue that LFL naturally accumulates the quantization error at the PS since it sends the quatized global model update with respect to the last global model estimate at the devices.
We further highlight that the proposed approach is not limited to any speciﬁc quantization technique, and any compression technique can be used within the proposed framework.
Convergence Analysis of LFL Algorithm
Here we analyze the convergence behaviour of LFL, where for simplicity of the analysis, we assume that the devices can transmit their local updates, ∆ θ m ( t ), ∀ m , accurately/in a lossless fashion to the PS, and focus on the impact of lossy broadcasting on the convergence.
3. Preliminaries
We denote the optimal solution minimizing loss function F ( θ ) by θ ∗ , and the minimum loss as F ∗ , i.e., θ ∗ (cid:44) arg min θ F ( θ ), and F ∗ (cid:44) F ( θ ∗ ).
We also denote the minimum value of the local loss function at device m by F ∗ m .
We further deﬁne Γ (cid:44) F ∗ − P Mm
=1 B m B F ∗ m , where Γ ≥ 0, and its magnitude indicates the bias in the data distribution across devices.
For ease of analysis, we set η im ( t ) =
η ( t ).
Thus, the i -th step SGD at device m is given by
[Equation]
where θ 1 m ( t ) =
ˆ θ ( t ), given in (2).
Device m transmits the local model update
[Equation]
and the PS updates the global model as
[Equation]
Assumption 1.
The expected squared l 2 -norm of the stochastic gradients are bounded, i.e.,
[Equation]
[Equation]
Assumption 2.
The loss functions F 1 , . .
. , F M are L -smooth; that is, ∀ v , w ∈ R d ,
[Equation]
3. Strongly Convex Loss Function
Here we provide convergence analysis assuming that the loss functions F 1 , . . . , F M are µ - strongly convex; that is, ∀ v , w ∈ R d ,
[Equation]
In the following theorem, whose proof is provided in Appendix C [Equation] we present the convergence rate of the LFL algorithm assuming that the devices can send their local updates accurately [Equation]
Theorem
[Equation] Let 0 < η ( t ) ≤ min (cid:8) 1 , 1 µτ (cid:9) , ∀ t .
We have
[Equation]
where
[Equation]
Γ , (11c) for some 0 ≤ ε ≤ 1 , and the expectation is with respect to the stochastic gradient function and stochastic quantization.
Corollary 1.
From the L -smoothness of the loss function, for 0 < η ( t ) ≤ min (cid:8) 1 , 1 µτ (cid:9) , ∀ t , and a total of T global iterations, it follows that
[Equation]
where the last inequality follows from (11a).
Considering η ( t ) =
η and τ = 1 , we have
[Equation]
Asymptotic convergence analysis Here we show that, for a decreasing learning rate over time, such that lim t →∞ η ( t ) = 0, and given small enough ε , lim T →∞ E [ F ( θ ( T ))]
− F ∗ = 0.
For 0 < η ( t ) ≤ min { 1 , 1 µτ } , we have 0 ≤ A ( t ) < 1, and lim T →∞ Q T − 1 i =
A ( i ) = 0.
For simplicity, assume η ( t ) =
αt + β , for constant values α and β .
For j (cid:29) 0, B ( j ) → 0, and for limited j values, Q T − 1 i =
j +1 A ( i ) → 0, and so, according to (12), lim T →∞ E [ F ( θ ( T ))]
− F ∗ = 0.
3. Non-Convex Loss Function
Next, we provide convergence guarantees of the proposed LFL scheme for L -smooth and nonconvex loss functions F 1 , . .
F M .
For the non-convex case, we provide a weaker notion of convergence Liu & Wright (2015) lim T →∞ E (cid:2) k∇ F ( θ ( T )) k
[Equation]
→ 0.
In the following theorem, we bound
[Equation]
with the proof provided in Appendix F.
Theorem 2.
Performing the LFL algorithm for T ≥ 1 global iterations assuming that the
PS receives the local model updates accurately leads to
[Equation]
Choice of ε We highlight that ε appears in the convergence analysis of the LFL algorithm in inequalities (45), (63)
[Equation]
in which we have [Equation] which follows from (26b)
[Equation]
where we note that [Equation] On average the entries of θ ( t ) − ˆ θ ( t − 1), given in (16), are not expected to have very diverse magnitudes.
Thus, the inequality in (15) should hold for a relatively small value of ε .
We have observed numerically that ε ≈ 10 − 3 satisﬁes inequality (15) for the LFL algorithm.
Impact of number of local SGD steps τ
For the non-convex case, assuming η ( t ) = η , ∀ t , it is easy to verify that the upper bound on 1 T P T − 1 t =0 E (cid:2) k∇ F ( θ ( t )) k 22 (cid:3) , given in Theorem 2, is simpliﬁed as follows:
[Equation]
17) where
[Equation]
We have dh ( τ ) /dτ
= − a/τ 2 + c + 2 dτ , where we note that c + 2 d ≥ 0.
For relatively small a values, particularly a ≤ c + 2 d , h ( τ ) increases with τ , and τ = 1 minimizes h ( τ );
[Table]
that is [Table] when the training is started close to the optimal solution ( F (0) − F ∗ is relatively small) [Table]
and/or η is relatively large,
τ = 1 may be the best choice.
On the other hand, for relatively large a values, the best τ can be the nearest integer to the positive solution of ( c + 2 dτ ) τ 2 − a = 0.
Numerical Experiments
Here we investigate the performance of the proposed LFL algorithm for image classiﬁcation on both MNIST LeCun et al.
and CIFAR-10 Krizhevsky & Hinton (2009) datasets utilizing ADAM optimizer Kingma & Ba (2017).
We consider M = 40 devices [Table] and we measure the performance as the accuracy with respect to the test samples, called test accuracy .
Network architecture We train diﬀerent convolutional neural networks (CNNs) with
MNIST and CIFAR-10 datasets.
The architectures of these CNNs are described in Table 1.
Data distribution We consider two data distribution scenarios.
In the non-iid scenario, we split the training data samples with the same label (from the same class) to M/ 10 disjoint subsets (assume that M is divisible by 10).
We then assign each subset of data samples, selected at random, to a diﬀerent device.
In the iid scenario, we randomly split the training data samples to M disjoint subsets, and assign each subset to a distinct device.
We consider non-iid and iid data distributions while training using MNIST and CIFAR-10, respectively.
State-of-the-art approaches We consider two approaches with lossy broadcasting introduced in Caldas et al.
(2019) and Tang et al.
(2019) as the state-of-the-art approaches.
With the scheme in Caldas et al.
(2019), referred to as lossy transformed global model (LTGM), the PS ﬁrst employs a linear transform to project the global model.
It then quantizes the resultant vector after the linear transform, and sends the quantized vector to the devices.
The devices employ the inverse of the linear transform and use the recovered vector for local training.
As suggested in Caldas et al.
(2019), we consider Walsh-Hadamrd transform and employ the stochastic quantization scheme presented in Appendix A at the PS.
On the other hand, with the approach studied in Tang et al.
(2019), referred to as lossy global model (LGM), the PS directly quantizes the global model plus the quantization error accumulated from the previous iterations and shares the quantized global model with the devices, while updating the qunatization error.
For fairness, we consider the quantization
[Figure]
scheme presented in Appendix A with the LGM scheme, and assume the same technique for transmission in the device-to-PS direction introduced in Section 2.2.
Benchmark approaches We consider the performance of the lossless broadcasting (LB) scenario, where the devices receive the current global model accurately, and perform the quantization with error compensation approach as described in Section 2.2.
We highlight that this approach requires transmission of R LB = 33 d bits from the PS, where we assume that each entry of the global model is represented by 33 bits.
Thus, the saving ratio in the communication bits of broadcasting from the PS using LFL versus LB is
[Equation]
where (a) follows assuming that d (cid:29) 1.
We further consider the performance of the fully lossless approach, where in addition to having the accurate global model at the devices, we assume that the PS receives the local model updates from the devices accurately.
In Figure 1 we illustrate the performance of diﬀerent approaches for non-iid and iid scenarios using MNIST and CIFAR-10, respectively, for training with M = 40 devices.
Figure 1a demonstrates test accuracy of diﬀerent approaches for non-iid data using MNIST with local mini-batch size (cid:12)(cid:12) ξ im ( t ) (cid:12)(cid:12)
= 500 and number of local iterations
τ = 4.
We set q 2 = 2 for all the approaches where the devices perform quantization, and q 1 = 2 for the LFL and LGM schemes.
We observe that the proposed LFL algorithm with ( q 1 , q 2 ) =
(2 , 2) performs as well as the fully lossless and LB approaches, despite a factor of 12 .
77 savings in the number of bits that need to be broadcast compared to the LB approach.
This illustrates the eﬃciency of the LFL algorithm for the non-iid scenario providing signiﬁcant communication cost savings without any visible performance degradation.
On the other hand, the performance of the
LGM algorithm drops after an intermediate number of training iterations, which shows that the quantization level q 1 = 2 does not provide the devices with an accurate estimate of the global model to rely on for local training.
This is particularly more harmful in later iterations as the algorithm approaches the optimal point where a more accurate estimate of the global model is required for training.
We highlight that the proposed LFL algorithm resolves this deﬁciency with the LGM algorithm through quantizating the global model update rather than the global model providing a more accurate estimate of the global model to the devices even with a relatively small quantization level q 1 = 2.
Throughout our experiments, we found that the random linear transform with the LTGM scheme is not highly eﬃcient in providing a transformed vector with a relatively small peak-to-average ratio, and the quantization level q 1 should be relatively large to guarantee that the algorithm succeeds in learning.
Therefore, we set q 1 = 50 for the LTGM scheme, which is a relatively large quantization value.
The advantage of the proposed LFL algorithm over the LTGM and LGM algorithms for the non-iid scenario can be clearly seen in the ﬁgure.
A similar observation is made in Figure 1b illustrating the perforance of diﬀerent approaches for iid data using CIFAR-10 with local mini-batch size (cid:12)(cid:12) ξ
im ( t ) (cid:12)(cid:12) = 250 and number of local iterations τ = 5.
The the LFL algorithm with ( q 1 , q 2 ) =
(5 , 3) provides × 9 .
2 smaller communication load compared to LB with q 2 = 3 without any visible performance degradation [Figure] with respect to the fully lossless and LB approaches.
It also signiﬁcantly outperforms the
LGM algorithm with ( q 1 , q 2 ) =
(5 , 3), which shows the advantage of quantizing the global model update rather than the global model for iid data.
We also observe that the accuracy level of the LTGM algorithm drops signiﬁcantly after around 200 global iterations even for a large quantization level q 1 = 1000, which shows the deﬁciency of the linear transform to provide a relatively small peak-to-average ratio for the transformed vector.
In Figure 2, we investigate the empirical variance and the peak-to-average ratio of the vector (considering absolute values of its entries) to be quantized at the PS with diﬀerent schemes for the experimental settings used in Figure 1. This result is provided to better justify the beneﬁts of the proposed LFL scheme over LGM and LTGM shown in Figure 1. We observe that the global model update, which is quantized at the PS with LFL, has signiﬁcantly smaller empirical variance than the global model, which is quantized at the PS with LGM. This justiﬁes the improvement of LFL over LGM reﬂecting smaller quantization error when quantizing the global model update rather than the global model, particularly towards the end of training, where the empirical variance of the global model with LGM has an increasing trend over time.
Also, both the empirical variance and the peak-to-average ratio of the transformed vector with LTGM increases over time, particularly for training on
CIFAR-10.
This illustrates that the quantization error increases with time, which may be more harmful towards the end of training while approaching the optimal solution.
We note that the relatively small empirical variance of the transformed vector with LTGM is due to the linear transform applied at the PS which scales down the entries of the global model vector.
The relatively large peak-to-average ratio indicates that the quantized vector with
LTGM may not provide an accurate estimate of the actual transformed vector at the PS.
Conclusion
FL is demanding in terms of bandwidth, particularly when deep networks with huge numbers of parameters are trained across a large number of devices.
Communication is typically the major bottleneck, since it involves iterative transmission over a bandwidth-limited wireless medium between the PS and a massive number of devices at the edge.
With the goal of reducing the communication cost, we have studied FL with lossy broadcasting, where, in contrast to most of the existing work in the literature, the PS broadcasts a compressed version of the global model to the devices.
We have considered broadcasting quantized global model updates from the PS, which can be used to estimate the current global model at the devices for local SGD iterations.
The PS aggregates the quantized local model updates from the devices, according to which it updates the global model.
We have derived convergence guarantees for the proposed LFL algorithm to analyze the impact of lossy broadcasting on the FL performance assuming accurate local model updates at the PS.
Numerical experiments have shown the eﬃciency of the proposed LFL algorithm in providing an accurate estimate of the global model to the devices, where it performs as well as the fully lossless and LB approaches for both non-iid and iid data despite the signiﬁcant reduction in the communication load.
It also signiﬁcantly outperforms the LTGM Caldas et al.
and LGM Tang et al.
(2019) algorithms studying compression in the PS-to-device direction thanks to quantizing the global model update rather than the global model at the PS.
A Stochastic quantization
Given x ∈ R d , with the i -th entry denoted by x i , we deﬁne
[Equation]
(20a)
[Equation]
(20b)
Given a quantization level q ≥ 1, we have
[Equation]
for
[Equation] [ d ] [Equation] (21a) where ϕ ( · , · ) is a quantization function deﬁned in the following.
For 0 ≤ x ≤ 1 and q ≥ 1, let l ∈ { 0 , 1 , . . .
, q − 1 } be an integer such that x ∈ [ l/q, ( l + 1) /q ).
We then deﬁne ϕ
( x, q
[Equation]
(cid:44) (cid:26) l/
[Equation]
, with probability 1 − ( xq − l ) , ( l + 1) /q, with probability xq − l.
(21b)
We deﬁne
[Equation]
and we highlight that it is represented by
[Equation]
23) where 64 bits are used to represent x max and x min , d bits are used for sign( x i ), ∀ i ∈ [ d ], and d log 2 ( q + 1) bits represent ϕ (( | x i | − x min ) /
( x max − x min ) , q ), ∀ i ∈
[ d ].
We note that we have modiﬁed the QSGD scheme proposed in Alistarh et al.
(2017) by normalizing the entries of vector x with x max − x min rather than k x k 2 .
B Proof of Lemma
Given ϕ ( x, q ) in (21b), we have
[Equation]
Also, we have
[Equation]
where (a) follows since ( xq − l ) (1 − xq + l ) ≤ 1 / 4.
According to (24), (25) and the deﬁnition of Q ( x , q ) given in (22), it follows that
[Equation]
26a
[Equation]
where (b) follows from (24) and (25), and (c) follows since ε
= ( x max − x min ) 2 / k x k 22 .
C Proof of Theorem
We have
[Equation]
In the following
[Equation]
we bound the last two terms on the right hand side (RHS) of (27).
From the convexity of k·k
[Equation]
it follows that
[Equation]
where (a) follows from Assumption 1.
We rewrite the third term on the RHS of (27) as follows:
[Equation]
We have
[Equation] [Equation]
where (a) follows since E ξ (cid:2) ∇ F m (cid:0)
θ im ( t ) , ξ im ( t ) (cid:1)(cid:3)
= ∇ F m (cid:0) θ
im ( t ) (cid:1) , ∀ i, m , (b) is the result of assuming µ -strongly loss functions, and (c) follows since F ∗
≤ F (cid:0) ˆ θ ( t ) (cid:1) , ∀ t .
Lemma 2.
For 0 < η ( t ) ≤ 1 , we have
[Equation]
Proof.
See Appendix D.
By substituting (30) and (31) in (29)
[Equation]
it follows that
[Equation]
which, together with the inequality in (28)
[Equation]
leads to the following upper bound on
E h k θ ( t + 1) − θ ∗ k 22 i , when substituted into (27):
[Equation]
Lemma 3.
For ˆ θ ( t ) given in (2)
[Equation]
we have
[Equation]
for some 0 ≤ ε ≤ 1 .
Proof.
See Appendix E.
According to Lemma
[Equation]
the inequality in (34) can be rewritten as follows:
[Equation]
Theorem 1 follows from the inequality in (35) having 0 < η ( t ) ≤ min n 1 , 1 µτ o , ∀ t .
D Proof of Lemma
We have
[Equation]
We ﬁrst bound the ﬁrst term on the RHS of (36).
We have
[Equation]
=2 E h
h
θ im ( t ) − ˆ θ ( t ) , ∇ F m (cid:0)
θ im ( t ) , ξ im ( t ) (cid:1) i i ≤ η ( t ) X
[Equation] =
[Equation]
E (cid:20)η ( t ) (cid:13)(cid:13)(cid:13) θ im ( t ) − ˆ θ ( t ) (cid:13)(cid:13)(cid:13) 2 2 + η ( t ) (cid:13)(cid:13) ∇ F m (cid:0) θ im ( t ) , ξ im ( t ) (cid:1)(cid:13)(cid:13) 2 2 (cid:21) (a) ≤ X M m =
B m
B
X [Equation] E (cid:20)(cid:13)(cid:13)(cid:13)
θ im ( t ) − ˆ θ ( t ) (cid:13)(cid:13)(cid:13) 2(cid:21) + η 2 ( t ) ( τ [Equation] 1) G 2 , (37) where (a) follows from Assumption 1.
We have
[Equation]
where (b) follows from the convexity of k·k 22 and Assumption 1.
Plugging (38) into (37) yields
[Equation]
For the second term on the RHS of (36)
[Equation]
we have
[Equation] [Equation]
where (a) follows since E ξ (cid:2) ∇ F m (cid:0) θ ( t ) , ξ im ( t ) (cid:1)(cid:3)
= ∇ F m ( θ ( t )), ∀ i, m, t ; (b) follows from assuming that the loss functions are µ -strongly convex; and (c) follows since F ∗ m ≤ F m ( θ im ( t )), ∀ m . We have [Equation] t
[Equation]
−
[Equation] t [Equation] (cid:13)
[Equation]
(cid:13)b
[Equation] t ) [Equation] (cid:13)(cid:13) (cid:13)
[Equation] t ) −
[Equation]
( t )
[Equation]
t )
[Equation]
i
[Equation]
( t )
[Equation]
(cid:13)(cid:13)(cid:13)
[Equation]
(cid:13)(cid:13)(cid:13)b
[Equation]
[Equation]
(41) where (a) follows from Cauchy-Schwarz inequality.
Plugging (41) into (40) yields 2 η ( t )
M
X M
[Equation]
≤ − µη
[Equation] − η [Equation] where we used the inequality in (38) and η ( t ) ≤ 1.
Plugging (39) and (42) into (36) completes the proof of Lemma 2.
E Proof of Lemma
We have
[Equation]
where (a) follows since
[Equation]
where the last equality follows from (26a).
In the following
[Equation]
we upper bound E (cid:20)(cid:13)(cid:13)(cid:13) ˆ
[Equation]
We have
[Equation]
where (a) follows from (26) for some 0 ≤ ε ( t ) ≤ 1 deﬁned as ε ( t ) (cid:44) [Equation] [Table] [Equation]
[Equation]
noting that
[Equation]
and in (b) we deﬁne ε (cid:44) max t { ε ( t ) } .
According to (47), from the convexity of k·k 2 2 , it follows that
[Equation]
where (a) follows from Assumption 1.
Accordingly, (45) reduces to [Equation]
[Equation]
Substituting the above inequality into (43) yields
[Equation]
According to the L -smoothness of the loss functions F 1 , . . . , F m , we have
[Equation]
In the following we bound the average of the two terms on the RHS of the above inequality.
Lemma 4.
We have
[Equation]
Proof.
See Appendix G.
Lemma 5.
We have
[Equation]
Proof.
See Appendix I.
Substituting the results in Lemmas 4 and 5 into (51) yields
[Equation]
For any T
[Equation]
by summing the above inequality over t we have
[Equation]
We bound the ﬁrst term on the RHS of the above inequality as follows:
[Equation]
Substituting the above results in (55) and dividing both sides of the inequality in (55) by
{+P T − 1 t =
+}
η ( t ) complete the proof of Theorem 2.
G Proof of Lemma
We have
[Equation]
where (a) follows since E ϕ (cid:2) Q (cid:0) x , q
[Equation]
(cid:1)(cid:3)
=
x and the fact that θ ( t ) − ˆ θ ( t − 1) is independent of the stochastic quantization Q (cid:0) θ ( t ) − ˆ θ ( t − 1) , q 1 (cid:1) , and E ξ (cid:2) ∇ F m (cid:0) θ i m ( t ) , ξ i m ( t ) (cid:1)(cid:3)
= ∇ F m (cid:0) θ
im ( t ) (cid:1) , ∀ i, m , results (b).
We bound the ﬁrst term on the RHS of (57) as follows:
[Equation]
Lemma 6.
We have
[Equation]
Proof.
See Appendix H.
Plugging (59) into (58) yields
[Equation]
[Equation]
The second term on the RHS of (57) is bounded as follows:
[Equation]
2 2 i(cid:17) (a) ≤ η ( t ) τ
X i =
M X m =
B m
B (cid:13)(cid:13)(cid:0) ∇
F m (cid:0) θ im ( t ) (cid:1) − ∇ F m ( θ ( t ))
(cid:1)(cid:13)(cid:13) 2 2 − η ( t )( τ − 1)
E h(cid:13)(cid:13) ∇ F ( θ ( t )) (cid:13)(cid:13) 2 2 i ≤ η ( t )
L τ X i =
M X m =
B m
B (cid:13)(cid:13) θ
im ( t ) − θ ( t ) (cid:13)(cid:13) 2 2 − η ( t )( τ − 1)
E h(cid:13)(cid:13) ∇ F ( θ ( t )) (cid:13)(cid:13) 2 2 i ≤ η ( t )
Lτ X i =
M X m =
B m
B (cid:16)(cid:13)(cid:13) θ im ( t ) − ˆ θ ( t ) (cid:13)(cid:13) 2 2 + (cid:13)(cid:13) θ ( t ) − ˆ θ ( t ) (cid:13)(cid:13) 2 2 (cid:17) − η ( t )( τ − 1)
{+E h(cid:13)(cid:13) ∇ F ( θ ( t )) (cid:13)(cid:13) 2 
+}
i (b) ≤ η 3 ( t ) L 2 G 2 τ ( τ − 1)(2 τ − 1) + (cid:16) η ( t − 1) τGL 2 q(cid:17) 2 εdη ( t )( τ − 1) − η ( t )( τ − 1)
{+E h(cid:13)(cid:13) ∇ F ( θ ( t )) (cid:13)(cid:13) 2 
+}
i , (61) where (a) follows from the convexity of k·k 22 , and (b) follows from (38) and (59).
Plugging (60) and (61) into (57) yields
[Equation]
H Proof of Lemma
We have
[Equation]
where (a) follows since θ ( t ) − ˆ θ ( t − 1) is independent of the stochastic quantization Q (cid:0) θ ( t ) − ˆ θ ( t − 1) , q 1 (cid:1) and E ϕ [ Q ( x , q 1 )]
= x , the second inequality in (1b) leads to (b), and (c) is the result of the convexity of k·k 22 and Assumption 1.
I Proof of Lemma
We have
[Equation]
For the ﬁrst term on the RHS of the above inequality, we have
[Equation]
65) where (a) and (b) follow from the convexity of k·k 22 and Assumption 1, respectively.
Plugging (65) and (59) into (64) yields
[Equation]