Lower Bounds and Nearly Optimal Algorithms in Distributed Learning with Communication Compression
Xinmeng Huang, Yiming Chen, Wotao Yin, Kun Yuan
Introduction
Large-scale optimization is a critical step in many machine learning applications. Millions or even billions of data samples contribute to the excellent performance in tasks such as robotics, computer vision, natural language processing, healthcare, and so on. However, such a scale of data samples and model parameters leads to enormous communication that hampers the scalability of distributed machine-learning training systems. We urgently need communication-reduction strategies. State-of-the-art strategies include communication compression , decentralized communication , lazy communication , and beyond. This article will focus on the former.
The most common method of distributed training is Parallel SGD (P-SGD) . In P-SGD, the stochastic gradients that workers transmit to a server cause significant communication overhead in large-scale machine learning. To reduce this overhead, many recent works propose to compress the messages sent unidirectionally from workers to server or compress the messages between them bidirectionally . The method of compression is either sparsification or quantization or their combination . The literature reveals that bidirectional compression can save more communication, but leads to slower convergence rates.
Despite the quick progress made in compression techniques and their convergence, we do not yet understand the limits of algorithms with communication compression. Since unbiased and contractive compressibilities are the two representative characteristics, we use them to generally theorize two types of compressors. For each type, we intend to answer:
What is the optimal convergence rate that a distributed algorithm can achieve when using any compressor of this type?
Here, we assume that only unbiased compressibility or contractive compressibility can be utilized, not considering any additional special compressor design; after all, any special design in the literature has been heuristic, whose effectiveness can be explained at best and not proved or quantified. So, we further clarify our question: Given a class of optimization problems (specified below) and a type of compressors, if we choose the worst combination of them to defeat an algorithm, what will the convergence rate that the best-defending algorithm can reach? To our knowledge, they are fundamental questions not addressed yet.
This paper clarifies these open questions by providing lower bounds under the non-convex smooth stochastic optimization setting, and developing effective algorithms that match the lower bounds up to logarithm factors. In particular, our contributions are:
We establish convergence lower bounds for distributed algorithms with communication compression in the stochastic non-convex regime. Our lower bounds apply to any algorithm conducting unidirectional or bidirectional compression with unbiased or contractive compressors. We find a clear gap between the established lower bounds and the existing convergence rates.
We propose a novel nearly optimal algorithm with compression (NEOLITHIC) to fill in this gap. NEOLITHIC can adopt either unidirectional or bidirectional compression, and is compatible with both unbiased and contractive compressors. Using any combination, NEOLITHIC provably matches the above lower bound, under an additional mild assumption and up to logarithmic factors.
The convergence results of NEOLITHIC imply that algorithms using biased contractive compressors bidirectionally can theoretically converge as fast as those with unbiased compressors used unidirectionally (see discussion in Remark 2). Before out work, it is only established in that, for convex problems and unbiased compressors, algorithms with bidirectional compression can match with the counterparts with unidirectional compression.
We provide extensive experimental results to validate our theories.
All established results in this paper as well as convergence rates of existing state-of-the-art distributed algorithms with communication compression are listed in Table 1. The transient complexity, which measures how sensitive the algorithm is to the compression strategy (see Section 3), is also listed in the table. The smaller the transient complexity is, the faster the algorithm converges.
2 Related Works.
Distributed learning has been increasingly useful in training large-scale machine learning models . It typically follows a centralized or decentralized setup. Centralized approaches , with P-SGD as the representative, require a global averaging step per iteration in which all workers need to synchronize with a central server. Decentralized approaches, however, are based on neighborhood averaging in which each worker only needs to synchronize with its immediate neighbors. The local interaction between directly-connected workers can save remarkable communication overhead compared to the remote communication between a worker and the central server. Well-known decentralized algorithms include decentralized SGD , D2, and stochastic gradient tracking , and their momentum variants . The lazy communication is also utilized to reduce communication overhead in which workers conduct multiple local updates before sending messages. Lazy communication is also widely used in federated learning .
Communication compression.
To alleviate the communication overhead when transmitting the full model or stochastic gradient in distributed learning, communication compression is proposed in literature with two mainstream approaches: quantization and sparsification. Quantization is essentially an unbiased operator with random noise. For example, develop Sign-SGD by using only bit for each entry whose convergence is studied in . Q-SGD , as a generalized variant of Sign-SGD, compresses each entry with more flexible bits and enables a trade-off between convergence rates and communication costs. Sparsification, on the other hand, amounts to a biased but contractive operator. suggest randomly dropping entries to achieve a sparse vector to communicate, while suggest to transmit a certain number of the largest elements of the full model or gradient. The theories behind contractive compressors are limited to those in due to analysis challenges, and they are established with assumptions such as bounded gradients or quadratic loss functions . More discussions on unbiased and biased compressors can be found in . Communication compression can also be combined with other communication-saving techniques such as decentralization .
Error compensation.
The error compensation (feedback) mechanism is introduced by to mitigate the error caused by 1-bit quantization. study SGD with error-compensated quantization for quadratic functions with convergence guarantees. show that error compensation can reduce quantization-incurred errors for strongly convex loss functions in the single-node setting. However, their analysis is restricted to compressors with expectation compression error no larger than the magnitude of the input vector, which is not applicable to general contractive compressors, such as . Error-compensated SGD is studied in for non-convex loss functions with no establishment of an improved convergence rate. A recent work gives the first algorithm EF21, in the deterministic regime, using unidirectional compression with contractive compressors that rely only on standard assumptions. The later work extends EF21 to the stochastic regime but cannot show linear speedup in terms of the number of workers.
Lower bounds in optimization.
Lower bounds are well studied in convex optimization especially when there is no gradient stochasticity . In non-convex optimization, propose a zero-chain model and show a tight bound for first-order methods. By splitting the zero-chain model into multiple components, extend the approach to finite sum and stochastic problems. Recently, show the lower bounds in the decentralized stochastic setting by assigning disjoint components of the model to remote nodes in the graphs. For distributed learning with communication compression, a useful work establishes a lower bound for unidirectional/bidirectional compression for strongly convex problems with fixed learning rates and unbiased compressors. There are limited studies on lower bounds for non-convex distributed learning with unbiased/contractive compressions.
Problem Setup
In this section, we introduce the notations and assumptions used throughout the paper. We consider standard distributed learning with parallel workers. The data in worker follow a local distribution , which can be heterogeneous among all workers. These workers, together with a central parameter server, collaborate to train a model by solving
Each local objective has -Lipschitz gradient, i.e.,
Gradient oracle class.
We assume each worker has access to its local gradient via a stochastic gradient oracle subject to independent randomness , e.g., the mini-batch sampling . We further assume that the output is an unbiased estimator of the full-batch gradient with a bounded variance. Formally, we let the stochastic gradient oracle class denote the set of all oracles satisfying Assumption 2.
Compressor class.
The two widely-studied classes of compressors in literature are i) the -unbiased compressor, described by Assumption 3, e.g., the stochastic quantization operator , and ii) the -contractive compressor, described by Assumption 4, e.g., the rand- operator and top- operator .
for constant , where the expectation is taken over the randomness of the compression operator .
for constant , where the expectation is taken over the randomness of the compression operator .
We let and denote the set of all -unbiased compressors and -contractive compressors satisfying Assumptions 3 and 4, respectively. Note that the identity operator satisfies for all and for all . Generally, an -unbiased compressor is not necessarily contractive when is larger than . However, since implies , the scaled unbiased compressor is contractive though the converse may not hold. Hence, the class of contractive compressors is strictly richer since it contains all unbiased compressors through scaling.
Algorithm class.
We consider a centralized and synchronous algorithm in which i) workers are allowed to communicate only directly with the central server but not between one another; ii) all iterations are synchronized, meaning that all workers start each of their iterations simultaneously. Each worker holds a local copy of the model, denoted by , at iteration . The output of after iterations can be any linear combination of all previous local models, namely,
We further require algorithms to satisfy the so-called “zero-respecting” property, which appears in (see formal definition in Appendix A.1). This property implies that the number of non-zero entries of the local model of a worker can be increased only by conducting local stochastic gradient queries or synchronizing with the server. The zero-respecting property holds with all algorithms in Table 1 and most first-order methods based on SGD . In addition to these properties, algorithm has to admit communication compression. Specifically, we endow the server with a compressor and each worker with a compressor . If for some , then worker (or the server if ) conducts lossless communication. When for any , algorithm conducts bidirectional compression. When , algorithm conducts unidirectional compression on messages from workers to server. The definition of the algorithm class with bidirectional/unidirectional compression is as follows.
Given compressors , write for the set of all centralized, synchronous, zero-respecting algorithms admitting bidirectional compression in which i) compressor , , is applied to messages from worker to the server, and ii) compressor is applied to messages from the server to all workers.
Lower Bounds
With all interested classes introduced above, we are ready to define the lower bound measure. Given local loss functions , stochastic gradient oracles (with for worker ), compressors (with being either or ), and an algorithm to solve problem (1) (with being either or ), we let denote the output of algorithm using no more than gradient queries and rounds of communication by each worker node. We define the minimax measure as
In (2), we do not require the compressors to be distinct or independent. When is or , we allow the compressor parameter or to be accessible by algorithm .
Our first result is for algorithms that admit unidirectional compression and -unbiased compressors.
For every , , , , , there exists a set of local loss functions , stochastic gradient oracles , -unbiased compressors with , such that for any algorithm starting from a given constant , it holds that (proof is in Appendix A.3)
The bound in (3) is consistent with best-known lower bounds in different settings. When , our result reduces to the tight bound for distributed training without compression . When and , our result reduces to the lower bound established in under the single-node non-convex stochastic setting. When and , our result recovers the tight bound for deterministic non-convex optimization .
Linear-speedup.
When is sufficiently large, the first term dominates the lower bound (3). If an algorithm achieves an rate, it will require gradient queries to reach a desired accuracy , which is inversely proportional to . Therefore, an algorithm achieves linear-speedup at -th iteration if, for this , the term involving is dominating the rate.
Transient complexity.
Due to the compression-incurred overhead in convergence rate, a distributed stochastic algorithm with communication compression has to experience a transient stage to achieve its linear-speedup stage. Transient complexity are referred to the number of gradient queries (or communication rounds) when is relatively small so non- terms still dominate the rate. The smaller the transient complexity is, the less gradient queries or communication rounds the algorithm requires to achieve linear-speedup stage. For example, if an algorithm can achieve the lower bound established in (3), it requires , i.e., transient gradient queries (or communication rounds) to achieve linear-speedup, which is proportional to the compression-related terms . Here we mainly care about the orders with respect to and (or below) in transient complexity to evaluate how sensitive the algorithm is to compression. Transient complexity is also widely used in decentralized learning to gauge how network topology can influence the convergence rate.
2 Bidirectional Unbiased Compression
Theorem 1 applies to unidirectional compression where . We next consider bidirectional compression with . Since with is a special case of , the lower bound for algorithms that admit bidirectional compression is greater than or equal to that with unidirectional compression by following the definition of the measure in (2).
Under the same setting as in Theorem 1, there exists a set of local objectives , stochastic gradient oracles , -unbiased compressors such that for any algorithm starting from , the lower bound in (3) is also valid.
Theorem 1 and Corollary 1 indicate that distributed learning with both unidirectional and bidirectional communication compression share the same lower bound. It is intuitive since unidirectional compression is just a special case of bidirectional compression by letting .
3 Unidirectional Contractive Compression
To obtain lower bounds for contractive compressors, we need the following lemma [54, Lemma 1].
It holds that .
The above Lemma reveals that any -unbiased compressor is -contractive when scaled by . Therefore, if an algorithm admits all -contractive compressors, it automatically admits all compressors in due to Lemma 1. This relation, together with Theorem 1, helps us achieve the following lower bound with respect to -contractive compressors.
For every , , , , , there exists a set of loss objectives , a set of stochastic gradient oracles , a set of -contractive compressors with , such that for any algorithm starting from , it holds that (proof is in Appendix A.4)
Transient complexity. With the discussion on transient complexity in Section 3.1, it is easy to derive the transient iteration complexity as for the lower bound with -contractive compressors.
4 Bidirectional Contractive Compression
Noting that with is a special case of , we can also establish the lower bound for algorithms that admit bidirectional compression and contractive compressors.
Under the same settings as in Theorem 2, there exists a set of loss objectives , a set of stochastic gradient oracles , a set of -contractive compressors , such that for any algorithm starting form , the lower bound (4) is also valid.
NEOLITHIC: A Nearly Optimal Algorithm
Comparing the best-known upper bounds listed in Table 1 with the established lower bounds in (3) and (4), we find existing algorithms may be sub-optimal. There exists a clear gap between their convergence rates and our established lower bounds. In this section, we propose NEOLITHIC to fill in this gap. Its rate will match the lower bounds established in (3) and (4) up to logarithm factors. NEOLITHIC can work with both unidirectional and bidirectional compressions, and it is compatible with both unbiased and contractive compressors. NEOLITHIC will be discussed in detail with bidirectional contractive compression in this section. It is easy to be adapted to other settings by simply removing the compression on the server side or utilizing unbiased compressors with proper scaling.
NEOLITHIC is built on a communication compression module listed in Algorithm 1, which we call fast compressed communication (FCC). Given an input vector to communicate in the -th iteration, FCC first initializes and then recursively compresses the residual with and sends it to the receiver for consecutive rounds, see the main recursion in Algorithm 1. When FCC module ends, the sender will transmit a set of compressed variables to the receiver, and return to itself. Quantity can be regarded as a compressed vector of original input after FCC operation.
When , the above FCC property (5) reduces to Assumption 4 for standard contractive compressors. When is large, FCC can output endowed with very small compression errors. The FCC protocol is also closely related to EF21 compression strategy If the roles of and in Eq. (8) of are switched, we can get the single round of FCC recursions.. However, the major novelty of FCC is to utilize multiple such compression rounds to help develop algorithms that can nearly match the established lower bounds.
2 NEOLITHIC Algorithm
NEOLITHIC is described in Algorithm 2. The FCC module in NEOLITHIC communicates rounds per iteration. To balance gradient queries and communication rounds, NEOLITHIC will query stochastic gradients per iteration, see the gradient accumulation step in Algorithm 2. Compared to other algorithms listed in Table 1, the proposed NEOLITHIC takes times more gradient queries and communication rounds than them per iteration. Given the same budgets to query gradient oracles and conduct communication as the other algorithms, say times on each worker, we shall consider iterations in NEOLITHIC for fair comparison.
We introduce the following assumption to establish the convergence rates of NEOLITHIC.
There exists some such that
When local distributions are identical across all workers, we have for each and the above assumption will always hold. We first establish the convergence rate of NEOLITHIC using bidirectional compression with contractive compressors.
Given constants , and Assumption 5, and let be generated by Algorithm 2. If and the learning rate is set as in Appendix B.2, it holds for any and compressors that (proof is in Appendix B.2)
When are -unbiased compressors, we utilize the fact that is -contractive for all to derive that
Under the same assumptions as in Theorem 3, it holds for any and compressors that
The convergence rates established in Theorem 3 and Corollary 3 are also valid for unidirectional compression when . They can match the lower bounds established in Section 3 up to logarithm factors. Moreover, these rates are faster than other algorithms listed in Table 1.
While our analysis relies on Assumption 5, the rates in Theorem 3 and Corollary 3 are polynomially independent of . These results also imply that NEOLITHIC with bidirectional compression can perform as fast as its counterpart with unidirectional compression. In other words, imposing bidirectional compression can save communications in NEOLITHIC without hurting convergence rates. Before our work, it is established in literature that bidirectional compression leads to slower convergence than unidirectional compression. Our results also imply that, given , well-designed algorithms such as NEOLITHIC with -contractive compressors can converge as fast as their counterparts using -unbiased compressors despite unbiasedness. Before our work, the analysis based on unbiased compressors exhibits theoretically faster convergence for non-convex problems.
We remark that Assumption 5 is not required to obtain the lower bounds in Section 3. It is not known whether the lower bounds established in Section 3 can be achieved by NEOLITHIC when Assumption 5 does not hold. However, it is worth noting that Assumption 5 is already milder than those made in most works such as bounded gradients. To our best knowledge, only EF21-SGD is guaranteed to converge without Assumption 5, which, however, leads to a fairly loose convergence rate (see Table 1) that cannot show linear-speedup .
Experiments
This section empirically investigates the performance of different compression algorithms with both synthetic simulation and deep learning tasks. We compare NEOLITHIC with P-SGD and its variants with communication compression: MEM-SGD, Double-Squeeze, and EF21-SGD.
We consider the following least-square problem:
Logistic regression.
We consider the following logistic regression problem:
2 Deep Learning Tasks
We implement all compression algorithms with PyTorch 1.8.2 using NCCL 2.8.3 (CUDA 10.1) as the communication backend. For P-SGD, we used PyTorch’s native Distributed Data Parallel (DDP) module. All deep learning training scripts in this section run on a server with 8 NVIDIA V100 GPUs in our cluster and each GPU is treated as one worker.
Image classification.
We investigate the performance of the aforementioned methods with CIFAR-10 dataset. For CIFAR-10 dataset, it consists of 50,000 training images and 10,000 validation images categorized in 10 classes. We utilize two common variants of ResNet model on CIFAR-10 (ResNet-20 with roughly 0.27M parameters and ResNet-18 with 11.17M parameters). We train total 300 epochs and set the batch size to 128 on every worker. The learning rate is set to 5e-3 for single worker and warmed up in the first 5 epochs and decayed by a factor of 10 at 150 and 250-th epoch.
All experiments were repeated three times with different seeds. For NEOLITHIC, we set . Following previous works , we use top- compressor with different compression ratio to evaluate the performance of the aforementioned methods. As shown in Figure 2, Tables 2 and Table 3, NEOLITHIC consistently outperforms other compression methods and reaches the similar performance to P-SGD. It is worth noting that EF21-SGD, while guaranteed to converge with milder assumptions than ours, does not provide competitive performance in deep learning tasks listed in Tables 2, 3, and 4. We find our reported result for EF21-SGD is consistent with Figure 7 (the left plot) in .
The effect of compression ratio.
We also investigate the influence of different compression ratios. Table 3 is with a compression ratio of 1%, which indicates a harsher setting for compression methods. It is observed that NEOLITHIC still outperforms other compression methods.
Performance with heterogeneous data.
We simulate data heterogeneity among workers via a Dirichlet distribution-based partition with parameter controlling the data heterogeneity. The training data for a particular class tends to concentrate in a single node as , i.e. becoming more heterogeneous, while the homogeneous data distribution is achieved as . We test and in Table 4 for all compared methods as corresponding to a setting with high/low heterogeneity.
Effects of accumulation rounds.
We also empirically evaluate the performance of NEOLITHIC with different choice of parameter in deep learning tasks. NEOLITHIC have slightly performance degradation in both compression scenarios as scales up. We conjecture that the gradient accumulation step, which amounts to using large-batch samples in gradient evaluation, can help in the optimization and training stage as proved in this paper, but it may hurt the generalization performance. We recommend using NEOLITHIC in applications that are friendly to large-batch training.
Conclusion
This paper provides lower bounds for distributed algorithms with communication compression, whether the compression is unidirectional or bidirectional and unbiased or contractive. An algorithm called NEOLITHIC is introduced to match the lower bounds under the assumption of bounded gradient dissimilarity. Future directions include developing optimal algorithms without the assumption, as well as discovering additional compression properties that might produce a better lower bound.
Acknowledgements
The authors are grateful to Professor Peter Richtarik from KAUST for the helpful discussions in the relation between FCC and EF21 and various other useful suggestions.
References
Appendix A Lower Bounds
In this section, we provide the proofs for Theorem 1 and 2. To proceed, we first introduce the zero-respecting property and zero-chain functions.
Now we consider the setup of distributed learning with communication compression. For each worker and , we let be the -th variable at which worker queries its gradient oracle (with independent randomness ) during the optimization procedure. We also let be the local model that worker produces after the -th query. Note that is not necessarily the last-step local model ; it can be any auxiliary vector.
Following the above description, we now extend the zero-respecting property , which firstly appears in single-node stochastic optimization, to distributed learning with communication compression:
We say a distributed algorithm is zero-respecting if for any and , the following requirements are satisfied:
If worker queries at with , then one of the following must be true:
If the local model of worker , after the -th query, has , then one of the following must be true:
In essence, the above zero-respecting property requires that any expansion of non-zero coordinates in , , and other related vectors in worker is attributed to its historical local gradient updates, local compressions, or synchronization with the server. Meanwhile, it also requires that any expansion of non-zero coordinate in vectors held in the server is due to its own compression operation, or receiving compressed messages from workers.
To better illustrate the zero-respecting property, we take MEM-SGD as an example and show how it satisfies the zero-respecting property. MEM-SGD is listed in Algorithm 3, which conducts unidirectional compression. Following the notations in Definition 2, for any and , we have for MEM-SGD
For point 1, for any , is equivalent to .
While we only validate the zero-respecting property in MEM-SGD, one can easily follow the above procedure to verify that other algorithms, including those listed in Table 1, are zero-respecting. In fact, to our knowledge, the zero-respecting property is satisfied by all existing distributed algorithms with communication compression.
A.2 Zero-Chain Functions
We next introduce zero-chain functions, which can be combined with the zero-respecting property discussed in Appendix A.1 to prove the lower bounds for distributed learning under communication compression. As described in , a zero chain function satisfies
which implies that, starting from , a single gradient evaluation can only make at most one more coordinate of the model parameter be non-zero.
We state some key zero-chain functions that will be used to facilitate the analysis.
The function satisfies the following properties:
then and satisfy the following properties:
, where is defined in Lemma 3.
and are also -smooth with .
where and are the first- and second-order derivative of , respectively, and are the first- and second-order derivative of , respectively, and the last inequality follows Observation 2 of that
Combining (9) with (8), we know is -smooth for . ∎
A.3 Proof of Theorem 1
Without loss of generality, we assume algorithms to start from . We prove the two terms in the lower bound established in Theorem 1 separately by constructing two hard-to-optimize examples. The construction of the example, for each term in (3), can be conducted in three steps: 1) constructing local functions by following Lemma 3 and 4; 2) constructing compressors and independent oracles that hamper algorithms to expand the non-zero coordinates of model parameters; 3) establishing a limitation, in terms of the non-zero coordinates of model parameters, for zero-respecting algorithms utilizing the predefined compression protocol with gradient queries and compressed communications on each worker, and finally we translate this limitation into the lower bound of convergence rate.
The proof of the first term is adapted from the first example in proving Theorem 1 of .
(Step 1.) Let , be homogeneous and hence where is defined in Lemma 3 and is to be specified. Since and is -smooth (Lemma 3), we know is -smooth for any . By Lemma 3, we have
Therefore, to ensure , it suffices to let
(Step 2.) We assume all compressors to be identities, meaning that there is no compression error in the entire optimization procedure. It naturally follows that for any . We construct the stochastic gradient oracle on worker , as follows:
where is the indicator of event .
It is easy to see that is an unbiased stochastic gradient oracle. Moreover, since is zero-chain, by (11) and the definition of , we have
Therefore, to ensure , it suffices to let
(Step 3.) Let , and , be the -th variable at which worker queries gradient from oracle , and let be the local model it produces after the -th query. Let
be the final algorithm output after gradient queries on each worker. Since algorithms satisfy the zero-respecting property, as discussed in Appendix A.1, it holds that implies at least one , where , is non-zero, which further implies at least one is non-zero. Therefore, by considering the index of the last non-zero coordinate of and using (11), we have
Similarly, considering that the non-zero coordinates of can be tracked back to the non-zero coordinates of past gradient queries and using (13), we have
By induction for (14) with respect to , we reach
By Lemma 2 of , which is derived from the Chernoff bound, we have
Therefore, by combining (17) and (18), we have
then (10) naturally holds and by (12). Without loss of generality, we assume , which is guaranteed when . Thus, using the definition of , we have that
which, combined with (19) and that are universal constants, leads to
Example 2.
Without loss of generality, we assume is even; otherwise we can consider the lower bound for the case of .
(Step 1.) Similar to but different from the construction of Example 1, we let , and , , where and are defined in Lemma 4, and will be specified later. By the definitions of and , we have that , , is zero-chain and . Since and are also -smooth, to let , it suffices to make (10) hold.
where the last inequality follows the definition of . Therefore, the above construction gives .
be the final algorithm output after rounds of communication on each worker. By (24), we have
Combining (26), (25), (18), and(19), we have that
then (10) naturally holds. Since is assumed to be no less than , we have . Then it is easy to verify
which, combined with (27) and that are universal constants, leads to
In Example 2 in the proof of Theorem 1, it holds that
Therefore, one round of communication can increase at most by .
A.4 Proof of Theorem 2
Theorem 2 essentially follows the same analysis as in Theorem 1. The only difference is that we shall construct compressors in proving by using the rand- operators with shared randomness and . There is no scaling procedure in compression. One can easily verify that
Appendix B Convergence of NEOLITHIC
Let be the -th intermediate variable generated in FCC (i.e., Algorithm 1) for any . Since is -contractive, we have
Iterating the above inequality with respect to , we reach
B.2 Proof of Theorem 3
It is observed from Algorithm 1 that the vector returned by the FCC operator satisfies
where (32) and (33) follow the implementation of Algorithm 2, and we use the notation of in (34). ∎
Let the auxiliary sequence be , . Under Assumption 1, if learning rate , it holds that for any ,
By Lemma 6 and the definition of for , we directly have that
Since is a unbiased estimator of , and by Assumption 2, we have
Taking global expectation over (36), and plugging (37) and (38) into it, we reach
where we use Young’s inequality in (39), and (40) holds by Assumption 1. Using and that
in (40), we reach the conclusion in this lemma. ∎
Therefore, by using Young’s inequality and (38), we have
For any , using the similar argument, we have that
Taking the average of (42) over all , and using (43) and Assumption 5, we further have that
Since is sufficiently large such that
we have that and hence
With Lemma 8, we easily reach its ergodic version:
We let sufficiently large so that . Under Assumptions 2, 4, 5, it holds for any that,
Let , then by Lemma 8 and noting , we have
Therefore, by taking the average of (46) over and using , we further have
Given the above lemmas, now we prove the convergence rate of NEOLITHIC.
Let the communication round be and learning rate as in (52). Under Assumptions 1, 2, 4, 5, it holds that for any ,
where is the total number of gradient queries (or rounds of compressed communications) on each worker.
Averaging (35) over , and using the fact that and , we have
By the definition of and using the Young’s inequality, it holds that
Assume the learning rate is sufficiently small such that
where we use . By choosing
and hence and satisfies (50). Plugging (54) and (55) into (53), and applying the notation , we reach
where the last inequality follows that because of (55). ∎
Appendix C More Details of Table 1
There exist mismatches between some rates listed in Table 1 and those established in literature. The mismatches exist because
we have strengthened the vanilla rates by relaxing their restrictive assumptions (say, Double-Squeeze) or uncovering the hidden terms (say, CSER);
we have extended the vanilla rates to the same setting as NEOLITHIC (say, extend MEM-SGD to non-convex and smooth setting, or transform QSGD to the distributed setting).
With these modifications, these baseline algorithms can be compared with NEOLITHIC in a fair manner. Next we clarify each modification one by one.
There is a slight inconsistency between the original rate in and the one listed Table 1 due to the following reasons:
We noticed that the rate stated in [31, Corollary 3] is not optimal following [31, Theorem 2] since the authors set the learning rate as where is a universal constant. The rate in [31, Corollary 3] can be slightly improved in terms of , , by involving them into the learning rate. We manually optimize the learning rate by choosing .
is the total mini-batch size on all workers in Q-SGD (see the paragraph of contribution, page 2, ). For a fair comparison with other methods in Table 1, We set to make the number of total gradient queries per iteration equivalent in all algorithms.
C.2 CSER
While [68, Corollary 1] does not have a term in the convergence rate, it does impose another condition to the convergence statement. If holds, then and hence the term is dominated by and thus hidden in the notation . However, the condition does not appear in the convergence theorem of NEOLITHIC. To conduct a fair comparison, we have to remove condition from its convergence theorem, which thus incurs additional term in the rate accordingly. The rate we provided in Table 1 is hence more precise than that in .
C.3 Double-Squeeze
The original rate of Double-Squeeze established in is based on an unrealistic assumption that accumulated compression errors are bounded by unknown (see [62, Assumption 1.3]). This makes its rate incomparable with other methods. However, we can remove the unrealistic assumption and easily derive a comparable bound where can be explicitly replaced with . We plug into [62, Corollary 2] to get the rate listed in our Table 1.
Iterating (56) for and noting , we reach
Again by Young’s inequality and -contraction, we have
C.4 MEM-SGD
We notice that only the rate for strongly convex problems is established in the original MEM-SGD paper . To compare it fairly with NEOLITHIC, we derive its convergence rate in the non-convex setting by ourselves.
The key steps of our derivation are listed as follows.
The recursion formula of MEM-SGD is with . In fact, one can easily check that
Following the derivation of (40), one can obtain
Setting such that and rearranging (61), we have
By the definition of and step 1., we have
Averaging (62) with (63) plugged into, we reach
Setting the learning rate in (64) leads to the rate we listed in Table 1.
C.5 Comparison with More Algorithms
Several additional comments are as follows:
All three algorithms utilize unidirectional, unbiased, and independent compressors.
All algorithms conduct an imbalanced number of compressed communications and of gradient queries. We therefore list the communication and gradient query complexity separately in Table 6. The result of Q-SGD is slightly tuned by us, see the argument in Appendix C.1.
MARINA (with ) and SASHA (with ) have better communication complexity than QSGD (with ) when is sufficiently small.