FedSKETCH: Communication-Efficient and Private Federated Learning via Sketching
Farzin Haddadpour, Belhal Karimi, Ping Li, Xiaoyun Li
Introduction
Federated Learning is a recently emerging setting for distributed large scale machine learning problems. In Federated Learning, data is distributed across devices (which could be any smartphone or IOT edge device) and due to privacy concerns, users are only allowed to communicate with parameter server. The parameter server orchestrates optimization among devices by aggregating gradient-related information of devices and broadcasts the average of received vectors. Additionally, moving data across the devices for the purpose of learning a global model can be impractical and could violate the privacy of users/devices .
There are a number of challenges to be addressed in Federated Learning to efficiently learn a global model that performs well in average for all devices. The first challenge is the communication-efficiency as there could be a million of devices communicating iteratively among them which can incur huge communication overhead. The second challenge is data heterogeneity. Since the data in smartphones or devices are generated locally in Federated Learning, generated data may come from various probability distributions. Thus it is supposed that data distribution is non-iid. It is known that non-iid data distribution can lead to poor convergence error in practice . The last, yet important, issue is device privacy . It is important to make sure that the privacy of the sensitive information on each device is preserved during the training.
Almost all of the previous studies consider addressing the aforementioned challenges separately. One approach to deal with communication cost is the idea of local SGD with periodic averaging which asserts that instead of taking the average within each iteration, like baseline SGD , one may take the average periodically and performs local update, see local SGD . It is shown that local SGD with periodic averaging benefits from the same convergence rate as baseline SGD, while requiring less communication rounds. The second approach to deal with communication cost is aiming at reducing the size of communicated message per each communication round. Available methods reduce the size of the message by communicating compressed local gradients or models to parameter server via quantization , sparsification .
There are a number of research efforts such as aiming at mitigating the effect of data heterogeneity by exploiting variance reduction or gradient tracking techniques in distributed optimization settings where data distribution is non-iid.
Solving the privacy issue has been widely performed by injecting an additional layer of random noise in order to respect differential-privacy property of the method or using cryptography based approaches under secure multi-party computation framework.
Another promising recent approach with a potential to tackle all major issues in Federated Learning setting is based on sketching algorithms . Sketches are built from independent hash tables (functions), needed to compress a high dimensional vector into a lower dimensional one and the corresponding estimation error of sketching are well studied. With the focus of communication-efficiency, proposes a distributed SGD algorithm using sketching and they provide the convergence analysis in homogeneous data distribution setting. Also with focus on privacy, in , the authors derive a single framework in order to tackle these issues jointly and introduce DiffSketch based on the Count Sketch operator. Compression and privacy are performed using random hash functions such that no third parties are able to access the original data. Yet, does not provide the convergence analysis for the DiffSketch in Federated setting, and additionally the estimation error of the DiffSketch is relatively higher than the sketching scheme in which might end up in poor convergence error. Finally, considers using sketching technique for Federated Learning in heterogeneous setting from a communication-efficiency perspective. The proposed sketching schemes in are based on a deterministic scheme which requires having access to the exact values of the gradient-related information, thus are not privacy-preserving.
In this work, we provide a thorough convergence analysis for the Federated Learning using sketching for both homogeneous and heterogeneous settings. Additionally, all of our sketching algorithms including a novel scheme, do not need to obtain exact values of gradient, hence are privacy preserving. Therefore, our proposed algorithms based on sketching addresses all the aforementioned three main challenges jointly.
The main contributions of this paper are summarized as follows:
Based on the current compression methods, we provide a new algorithm – HEAPRIX – that displays an unbiased estimator of the full gradient we ought to communicate to the central parameter server. We theoretically show that HEAPRIX jointly reduces the cost of communication between devices and server, preserves privacy and is unbiased.
We develop a general algorithm for communication-efficient and privacy preserving federated learning based on this novel compression algorithm. Those methods, namely FedSKETCH and FedSKETCHGATE, are derived under homogeneous and heterogeneous data distribution settings.
Non asymptotic analysis of our method is established for convex, Polyak-Łojasiewicz (generalization of strongly-convex) and nonconvex functions in Theorem 2 and Theorem 3 for respectively the i.i.d. and non i.i.d. case, and highlight an improvement in the number of iteration required to achieve a stationary point.
We illustrate the benefits of FedSKETCH and FedSKETCHGATE over baseline methods through a set of experiments. In particular, we plot training loss and accuracy curves depending on the method used for training, the size of the sketches employed and the number of local updates performed at each round of communication. Numerical experiments show the advantages of, in particular, FedSKETCH-HEAPRIX algorithm that achieves comparable test accuracy as Federated SGD (FedSGD) while compressing the information exchanged between devices and server.
Related Work
In this section, we provide a summary of the prior related research efforts as follows:
Local SGD with Periodic Averaging: Compared to baseline SGD where model averaging happens in every iteration, the main idea behind Local SGD with periodic averaging comes from the intuition of variance reduction by periodic model averaging with purpose of saving communication rounds. While Local SGD has been proposed in under the title of Federated Learning Setting, the convergence analysis of Local SGD is studied in . The convergence analysis of Local SGD is improved in the follow up works in majority for homogeneous data distribution setting. The convergence analysis is further extended to heterogeneous setting, wherein studied under the title of Federated Learning, with improved rates in . Additionally, a few recent Federated Learning/Local SGD with adaptive gradient methods can be found in .
Gradient Compression Based Algorithms for Distributed Setting: develop a solution for leveraging sketches of full gradients in a distributed setting while training a global model using SGD . They introduce Sketched-SGD and establish a communication complexity of order (per round) where is the dimension of the vector of parameters, i.e. the dimension of the gradient. Other recent solutions to reduce the communication cost include quantized gradient as developed in . Yet, their dependence on the number of devices makes them harder to be used in some practical settings. Additionally, there are other research efforts such as that exploit compression in Federated Learning or distributed communication-efficient optimization. Finally, the recent work in jointly exploits variance reduction technique with compression in distributed optimization.
Privacy-preserving Setting: Differentially private methods for federated learning have been extensively developed and studied in recently.
The remaining of the paper is organized as follows. Section 3 gives a formal presentation of the general problem. Section 4 describes the various compression algorithms used for communication efficiency and privacy preservation, and introduces our new compression method. The training algorithms are provided in Section 5 and their respective analysis in the strongly-convex or nonconvex cases are provided Section 6. Finally, in Section 7 we provide empirical results for our proposed algorithms.
Notation: For the rest of the paper we indicate the number of communication rounds and number of bits per round per device with and respectively. For the rest of the paper we indicate the count sketch of any vector with . We also denote .
Problem Setting
The federated learning optimization problem across distributed devices is defined as follows:
We focus on solving the optimization problem in Eq. (1) for the homogeneous data distribution. In the heterogeneous setting we consider the special case of .
Count Sketch as a Compression Operation
A common sketching solution employed to tackle (1) called Count Sketch (for more detail see ) is described Algorithm 1.
The algorithm for generating count sketching is using two sets of functions that encode any input vector into a hash table . We use hash functions (which are pairwise independent) along with another set of pairwise independent sign hash functions to map every entry of () into different columns of hash table . These steps are summarized in Algorithm 1.
We note that this definition leads to the following property
Note that if then our algorithm reduces to the case of no compression. This property allows us to control the noise of the compression.
2 An Example of Unbiased Compressor via Sketching
An instance of such unbiased compressor is PRIVIX which obtains an estimate of input from a count sketch noted . In this algorithm, to query the quantity , the element of the vector, we compute the median of approximated values specified by the indices of for . These steps are summarized in Algorithm 2.
Next, we review a few properties of PRIVIX as follows:
Unbiased estimation: As it is also mentioned in , we have:
Bounded variance: With and , we have the following bound with probability :
We note that implies that if , , which means that the case of no compression is not covered. Thus, the algorithms based on this may converges poorly.
In the following we provide a review of privacy property of count sketch:
A randomized mechanism satisfies differential privacy, if for input data and differing by up to one element, and for any output of ,
For smaller , it will become more difficult to specify what is the input for the algorithm . Hence, smaller implies stronger privacy, and we desire to have as small as possible to impose stronger privacy guarantees. In the following, we review an assumption from to discuss a property regarding privacy.
For the purpose of privacy analysis, similar to , we suppose that for any input vector with length , each element is drawn i.i.d. from a Gaussian distribution: , and bounded by a large probability: for some positive constant .
Based on Assumption 1, the reference proves the following:
For a sketching algorithm using Count Sketch with arrays of bins, for any input vector with length satisfying Assumption 1, achieves differential privacy with high probability, where is a positive constant satisfying .
The proof of this theorem can be found in .
Theorem 1 implies that if we use smaller hash table either through using smaller or , we will obtain stronger differential privacy. On the other hand, smaller hash table means bigger estimation error for a compression based on sketching. Therefore, there is an interesting trade-off between communication complexity and obtained privacy.
3 Biased Compressor
The following Lemma links these two definitions:
An instance of biased compressor based on sketching is given in Algorithm 3.
HEAVYMIX, with sketch size is a biased compressor with and with probability . In other words, with probability , .
We note that Algorithm 3 is a variation of the sketching algorithm developed in with distinction that HEAVYMIX does not require extra second round of communication to obtain the exact values of topm. Additionally, while sketching algorithm based on HEAVYMIX has smaller estimation error compared to PRIVIX, it requires having access to the exact values of topm, therefore such sketching does not benefit from differentially privacy similar to PRIVIX. In the following we introduce our sketching scheme which enjoys from privacy property as well as smaller estimation error.
4 Sketching Based on Induced Compressor
The following Lemma from shows that we can convert the biased compressor into an unbiased one:
We note that if and , we have .
Using this concept of the induced compressor we introduce HEAPRIX:
We highlight that in this case if , then which means that the algorithm convergence can be improved by decreasing the noise of compression (with choice of bigger ).
In the following we define two general framework for different sketching algorithms for homogeneous and heterogeneous data distributions.
Algorithms for Homogeneous and Heterogeneous Settings
In the following, we first present two algorithms for the homogeneous setting. Then, we present two other algorithms to deal with data heterogeneity. We emphasize that, for the sake of privacy in all of our algorithms, the query step is happening locally and the main task of the parameter server is to perform the average of the received messages from the devices and broadcast the average back to the devices.
In this section, we propose two algorithms for the setting where data across distributed devices are identically distributed. The proposed algorithms for Federated Learning leverage sketching techniques to compress communication. The main difference between the first suggested algorithm and the DiffSketch algorithm in is that we use distinct local and global learning rates. Additionally, unlike , we do not add local Gaussian noise to ensure privacy.
which is the aggregation of the consecutive stochastic gradients multiplied with local updates .
Upon receiving all from sampled devices, the server computes
and broadcasts it to all devices. Devices after receiving from server update global model using rule
We summarize these steps in FedSKETCH, see Algorithm 5. A variant of this algorithm which uses a different compression scheme, called HEAPRIX is also described in Algorithm 5. We note that for this variant we need to have an additional communication round between server and worker to aggregate . Then, server averages all and broadcasts to all devices the following quantity:
where is computed using Eq. (2) and then updates its global model using .
2 Heterogeneous Setting
In this section, we focus on the optimization problem in Eq. (1) in special case of with full device participation (). We also note that these results can be extended to the scenario where devices are sampled, but for simplicity we do not analyze it in this section. In the previous section, we discussed algorithm FedSKETCH, which is originally designed for homogeneous setting where data distribution available at devices are identical. However, in a heterogeneous setting where data distribution could be different, the aforementioned algorithms may fail to perform well in practice. The main reason to cause this issue is that in Federated learning devices are using local stochastic descent direction which could be different than global descent direction when the data distribution are non-identical.
Convergence Analysis
In this section we start with a few common assumptions, then we provide the convergence results.
We note that Assumption 2 is a common assumption in the literature of stochastic optimization. Additionally, it is shown in that PL condition implies strong convexity property with same module. Additionally, PL objectives could also be nonconvex, hence strong convexity does not imply PL condition necessarily.
2 Convergence of FEDSKETCH for Homogeneous Setting
Now we focus on the homogeneous case where data is distributed i.i.d. among local devices. In this case, the stochastic local gradient of each worker is an unbiased estimator of the global gradient. We will need the following additional common assumption on the stochastic gradients.
Suppose that the conditions in Assumptions 2-4 hold. Given , and Consider FedSKETCH in Algorithm 5 with sketch size . If the local data distributions of all users are identical (homogeneous setting), then with probability we have
For the FedSKETCH-PRIVIX algorithm, by choosing stepsizes as and , the sequence of iterates satisfies if we set and .
For FedSKETCH-HEAPRIX algorithm, by choosing stepsizes as and , the sequence of iterates satisfies if we set and .
As a consequence of Remark 7, the total communication cost per-worker becomes
We note that this result in addition to improving over the communication complexity of federated learning of the state-of-the-art from in to , it also implies differential privacy. As a result, total communication cost is
We note that the state-of-the-art in the total communication cost is
We improve this result, in terms of dependency on , to
In comparison to , we improve the total communication per worker from to .
It is worthy to note that most of the available communication-efficient algorithm with quantization or compression only consider communication-efficiency from devices to server. However, Algorithm 5 also improves the communication efficiency from server to devices as well because of using lower dimensional sketching size and the fact that the average of sketching has also small dimension.
We note that it is not fair to compare our algorithms with algorithms without compression. However, in the following Corollary we share an interesting observation regarding our algorithm for PL and thus strongly convex objectives in homogeneous setting.
To achieve the convergence error of , we need to have and . This leads to the total communication cost per worker of
As a consequence, the total communication cost becomes:
We note that the state-of-the-art in the total communication cost is
We improve this result, in terms of dependency on , to
leading to an improvement from to . These results are summarized in Table 1.
3 Convergence of FedSKETCHGATE in Data Heterogeneous Setting
Suppose that the conditions in Assumptions 2 and 5 hold. Given , and Consider FedSKETCHGATE in Algorithm 6 with sketch size . If the local data distributions of all users are identical (homogeneous setting), then with probability we have
For the FedSKETCHGATE-PRIVIX algorithm, by choosing stepsizes as and , the sequence of iterates satisfies if we set and .
For FedSKETCHGATE-HEAPRIX algorithm, by choosing stepsizes as and , the sequence of iterates satisfies if we set and .
4 Comparison with Prior Methods [30], [45] and [41]
Comparison to . We note that our convergence analysis does not rely on the bounded gradient assumption and it can be seen that we improve both the number of communication rounds and the size of vector per communication round while preserving the privacy property. Additionally, we highlight that, while provides a convergence analysis for convex objectives, our analysis holds for PL (thus strongly convex case), general convex and general nonconvex objectives.
Comparison with . Consider two versions of FetchSGD in this reference. First while in our schemes we do not to have access to the exact entries of gradients, since the approaches in is based on queries, both of the proposed algorithms (in ) require to have access to the exact value of gradients, hence they do not preserve privacy. Second, both of the convergence results in rely on the bounded gradient assumption and it is known that this assumption is not in consistent with -smoothness when data distribution is heterogeneous which is the case in Federated Learning (see for more detail). However, our convergence results do not need any bounded gradient assumption. Third, Theorem 1 is based on an Assumption that Contraction Holds for the sequence of gradients encountered during the optimization which may not hold necessarily in practice, yet based on this strong assumption their total communication cost () to achieve error is (Note for the sake of comparison we let the compression ration in to be ). In contrast, without any extra assumptions, our results in Theorem 3 for PRIVIX and HEAPRIX are respectively and which improves total communication cost in Theorem 1 in in regimes where or . Theorem 2 in is based on another assumption of Sliding Window Heavy Hitters, which is similar to gradient diversity assumption in (but it is weaker assumption of contraction in Theorem 1 in ), and they showed that the total communication cost is ( is constant comes from the extra assumption over the window of gradients which similar to bounded gradient diversity) which is again worse than obtained result in this paper with weaker assumptions in a regime where . Next, unlike which only focuses on nonconvex objectives, in this work we provide the convergence analysis for PL (thus strongly convex case), general convex and general nonconvex objectives. Finally, although the algorithm in requires additional memory for the server to store the compression error correction vector, our algorithm does not need such additional storage.
Comparison with . The reference considers two-way compression from parameter server to devices and vice versa. They provide the convergence rate of for strongly-objective functions where and are uplink and downlink’s compression noise (specializing to our case for the sake of comparison ) for general heterogeneous data distribution. In contrast, while as pointed out in Remark 5 that our algorithms are using bidirectional compression due to use of sketching for communication, our convergence rate for strongly-convex objective is with probability .
Numerical Example
In this section, we provide empirical results on MNIST dataset to demonstrate the effectiveness of our proposed algorithms. The model we use is the LeNet-5 Convolutional Neural Network (CNN) architecture introduced in , with model parameters in total.
Four methods are compared in our experiments: Federated SGD (FedSGD), SketchSGD , FedSketch-PRIVIX (FS-PRIVIX) and FedSketch-HEAPRIX (FS-HEAPRIX). We implement the algorithms by simulating the distributed and federated environment. Note that in Algorithm 5, FS-PRIVIX with global learning rate is equivalent to the DiffSketch algorithm proposed in . In the following experiments, we set the number of workers to . For federated learning algorithms, we use different number of local updates . For SketchedSGD which is under synchronous distributed learning framework, is fixed and equal to . For all methods, we tune the learning rates (both local, i.e. and global, i.e. , if applicable) over the log-scale and report the best results.
In each round of local update, we randomly choose half of the local devices to be active, which is the common practice in real-world applications. For the data distribution on each device, we test both homogeneous and heterogeneous setting. In the former case, each device receives uniformly drawn data samples (each class has equal probability to be selected). In the latter case, each device only receives samples from one or two classes among ten digits in the MNIST dataset. Since data is not distributed i.i.d. among local devices, training is expected to be harder in the heterogeneous case.
Homogeneous case. In Figure 1 first column, we provide the training loss and test accuracy for the four algorithms mentioned above, with (since SketchSGD requires single local update per round). We also test different sizes of sketching matrix, and . Note that these two choices of sketch size correspond to a and compression ratio, respectively. In general, as one would expect, higher compression ratio leads to worse learning performance. In both cases, FS-HEAPRIX performs the best in terms of both training objective and test accuracy. FS-PRIVIX is better when sketch size is large (i.e. when the estimation from sketches are more accurate), while SketchSGD performs better with small sketch size.
The results for multiple local updates are given in column 2 and column 3 in Figure 1, where we set . We see that FS-HEAPRIX is significantly better than FS-PRIVIX, either with small or large sketching matrix. In both cases, FS-HEAPRIX yields acceptable extra test error compared to FedSGD, especially when considering the high compression ratio (e.g. ). However, FS-PRIVIX performs poorly with small sketch size , and even diverges with . We also observe that the performances of FS-HEAPRIX improve when the number of local updates increases. That is, the proposed method is able to further reduce the communication cost by reducing the number of rounds required for communication. This is also consistent with our theoretical claims established in this paper. For , we see that a sketch size of is sufficient to give similar test accuracy as the Federated SGD (FedSGD) algorithm.
Heterogeneous case. We plot similar sets of results in Figure 2 for non-i.i.d. data distribution (heterogeneous setting). This setting leads to more twists and turns in the training curves. From the first column (), we see that SketchSGD performs very poorly in the heterogeneous case, while both our proposed FedSketchGATE methods, see Algorithm 6, achieve similar generalization accuracy as the Federated SGD (FedSGD) algorithm, even with fairly small sketch size (i.e. compression ratio). Note that, the slow convergence of federated SGD in non-i.i.d. data distribution case has also been reported in literature, e.g. . In addition, FS-HEAPRIX is again better than FS-PRIVIX in terms of both training loss and test accuracy.
Furthermore, we notice in column 2 and 3 of Figure 2 the advantage of FS-HEAPRIX over FS-PRIVIX with multiple local updates. However, empirically we see that in the heterogeneous setting, more local updates tend to undermine the learning performance, especially with small sketch size. Nevertheless, we see that when sketch size is large, i.e. , FS-HEAPRIX can still provide comparable test accuracy as FedSGD with .
Our empirical study demonstrates that our proposed FedSketch (and FedSketchGATE) frameworks are able to perform well in homogeneous (resp. heterogeneous) learning setting, with high compression rate. In particular, FedSketch methods are advantageous over prior SketchedSGD method in both cases. FS-HEAPRIX performs the best among all the tested compressed optimization algorithms, which in many cases achieves similar generalization accuracy as Federated SGD with small sketch size. In general, in any tested case, we can at least achieve compression ratio with very little loss in test accuracy.
Conclusion
In this paper, we introduced FedSKETCH and FedSKETCHGATE algorithms for homogeneous and heterogeneous data distribution setting respectively for Federated Learning wherein communication between server and devices is only performed using count sketch. Our algorithms, thus, provide communication-efficiency and privacy. We analyze the convergence error for nonconvex, Polyak-Łojasiewicz and general convex objective functions in the scope of Federated Optimization. We provide insightful numerical experiments showcasing the advantages of our FedSKETCH and FedSKETCHGATE methods over current federated optimization algorithm. The proposed algorithms outperform competing compression method and can achieve comparable test accuracy as Federated SGD, with high compression ratio.
References
Notation.
We will use the following fact (which is also used in ) in proving results.
Let denote any fixed deterministic sequence. We sample a multiset (with size ) uniformly at random where is sampled with probability for with replacement. Let (some ’s may have the same value). Then
Appendix A Results for the Homogeneous Setting
In this section, we study the convergence properties of our FedSKETCH method presented in Algorithm 5. Before stating the proofs for FedSKETCH in the homogeneous setting, we first mention the following intermediate lemmas.
Using unbiased compression and under Assumption 4, we have the following bound:
Next we show that from Assumptions 5, we have
where the last inequality is due to , which together with (10) leads to the following bound:
Under Assumption 2, and according to the FedCOM algorithm the expected inner product between stochastic gradient and full batch gradient can be bounded with:
where ➀ is due to , and ➁ follows from Assumption 2. ∎
The following lemma bounds the distance of local solutions from global solution at th communication round.
Now we are ready to present our result for the homogeneous setting. We first state and prove the result for the general nonconvex objectives.
For FedSKETCH, for all , under Assumptions 2 to 4, if the learning rate satisfies
and all local model parameters are initialized at the same point , then the average-squared gradient after iterations is bounded as follows:
where is the global optimal solution with function value .
Before proceeding to the proof of Theorem 5, we would like to highlight that
From the updating rule of Algorithm 5 we have
In what follows, we use the following notation to denote the stochastic gradient used to update the global model at th communication round
Then using the unbiased estimation property of sketching we have:
By taking expectation on both sides of above inequality over sampling, we get:
where in ➀ we incorporate outer summation , and ➁ follows from condition
Summing up for all communication rounds and rearranging the terms gives:
From above inequality, is it easy to see that in order to achieve a linear speed up, we need to have . ∎
In Eq. (17) for the choice of , and the convergence rate reduces to:
Note that according to Eq. (22), if we pick a fixed constant value for , in order to achieve an -accurate solution, communication rounds and local updates are necessary. We also highlight that Eq. (22) also allows us to choose and to get the same convergence rate.
Condition in Eq. (16) can be rewritten as
So based on Eq. (23), if we set , it implies that:
We note that therefore even for we need to have
Therefore, for the choice of , due to condition in Eq. (25), we need to have . Similarly, we can have and .
By letting , and the convergence rate in Eq. (17) reduces to
which matches the rate obtained in . In this case the communication complexity and the number of local updates become
This simply implies that in this special case the convergence rate of our algorithm reduces to the rate obtained in , which indicates the tightness of our analysis.
A.2 Main result for the PL/Strongly convex setting
We now turn to stating the convergence rate for the homogeneous setting under PL condition which naturally leads to the same rate for strongly convex functions.
For FedSKETCH, for all , under Assumptions 2 to 4 and 3,if the learning rate satisfies
and if the all the models are initialized with we obtain:
By setting we obtain the following bound:
If we let , and the convergence error in Theorem 6, with results in:
which indicates that to achieve an error of , we need to have and . Additionally, we note that if , yet and will be necessary.
A.3 Main result for the general convex setting
and if the all the models initiate with , with and we obtain:
We note that above theorem implies that to achieve a convergence error of we need to have and .
Next rearranging Eq. (30) and replacing with leads to the following error bound:
Next, if we set and , we obtain that
Appendix B Proof of Main Theorems
The proof of Theorem 2 follows directly from the results in . For the sake of the completeness we review an assumptions from this reference for the quantization with their notation.
Consider FedCOM in . Suppose that the conditions in Assumptions 2, 4 and 6 hold. If the local data distributions of all users are identical (homogeneous setting), then we have
Nonconvex: By choosing stepsizes as and , the sequence of iterates satisfies if we set and .
Since the sketching PRIVIX and HEAPRIX, satisfy Assumption 6 with and respectively with probability . Therefore, all the results in Theorem 2, conclude from Theorem 8 with probability and plugging and respectively into the corresponding convergence bounds. ∎
B.2 Proof of Theorem 3
For the heterogeneous setting, the results in requires the following extra assumption that naturally holds for the sketching:
We note that since sketching is a linear compressor, in the case of our algorithms for heterogeneous setting we have .
Next, we restate the Theorem in here as follows:
Consider FedCOMGATE in . If Assumptions 2, 5, 6 and 7 hold, then even for the case the local data distribution of users are different (heterogeneous setting) we have
Nonconvex: By choosing stepsizes as and , we obtain that the iterates satisfy if we set and .
Since the sketching methods PRIVIX and HEAPRIX, satisfy the Assumption 6 with and respectively with probablity , we conclude the proofs of Theorem 3 using Theorem 9 with probability and plugging and respectively into the convergence bounds. ∎