Stochastic Controlled Averaging for Federated Learning with Communication Compression

Xinmeng Huang, Ping Li, Xiaoyun Li

Introduction

Federated learning (FL) is a powerful paradigm for large-scale machine learning (Konečnỳ et al., 2016; McMahan et al., 2017). In situations where data and computational resources are dispersed among diverse clients such as phones, tablets, sensors, banks, hospitals, and other devices and agents, federated learning facilitates local data processing and collaboration among these clients (Kairouz et al., 2021). FL enjoys the advantage of distributed optimization on the efficiency of computational resources as the local clients conduct computations simultaneously. Moreover, since the centralized model is trained without transmitting decentralized data from clients directly to servers, FL provides the first layer of protection of data privacy as the local data never leaves the local device.

Due to its nature and application scenarios, federated learning encounters several significant challenges in algorithmic development and theory (Yang et al., 2020; Li and Li, 2023):

Severe data heterogeneity. Unlike in classic distributed training, the local data distribution in FL can vary significantly (i.e., non-iid clients), reflecting practical scenarios where local data held by clients is highly personalized (Zhao et al., 2018; Kairouz et al., 2021; Yuan et al., 2021a; Li et al., 2022a). When multiple local training steps are taken, the local models become “biased” toward minimizing the local losses instead of the global loss, hindering the convergence quality of the global model (Mohri et al., 2019; Li et al., 2020c, a).

Partial client participation. Another practical issue in FL systems is partial participation, where not all clients can always join the training, e.g., due to unstable connections or active selection (Li et al., 2020a). Consequently, only a fraction of clients are involved in each FL training round to interact with the central server. This slows down the convergence of the global model because of less accessible data/information per round (Charles et al., 2021; Chen et al., 2022; Li and Li, 2023).

Heavy communication workload. The cost of model transmission can be a major challenge in FL systems with limited bandwidth (e.g., portable wireless devices), especially when training large models with millions or billions of model parameters. Therefore, communication compression, a technique that aims to reduce the volume of information transmitted, has gained growing research interests in FL (Basu et al., 2019; Reisizadeh et al., 2020; Haddadpour et al., 2021; Li and Li, 2023).

The classic FL approach, FedAvg (Konečnỳ et al., 2016; McMahan et al., 2017; Stich, 2019; Yu et al., 2019a; Lin et al., 2020; Wang and Joshi, 2021), performs multiple gradient-descent steps within each accessible client before communicating with the central server. While showing success in certain scenarios, FedAvg is notably hampered by data heterogeneity and partial client participation (Karimireddy et al., 2020b; Li et al., 2020c; Yang et al., 2021) due to the “client drift” effect. Furthermore, when communication compression is employed, the adverse effect of data heterogeneity can be amplified due to the interplay of client drift and inaccurate message aggregation caused by compression (Basu et al., 2019; Reisizadeh et al., 2020; Haddadpour et al., 2021; Gao et al., 2021; Malekijoo et al., 2021; Li and Li, 2023); see Figure 1 for illustration. The inaccurate aggregation incurred by compression imposes more obstacles to obtaining stable and robust performance in FL systems, particularly when data heterogeneity is severe, and compressors are biased (i.e., the compressed output is a biased estimate of input) (Li and Li, 2023; Gao et al., 2021; Basu et al., 2019).

While having the potential to reduce communication costs in FL, communication compression brings forth new challenges in addition to FL’s inherent characteristics like local updates and partial participation. This naturally raises the question regarding the utility of compressed FL approaches:

Can we design FL approaches that accommodate arbitrary data heterogeneity, local updates, and partial participation, as well as support communication compression?

Despite several attempts, none of the existing algorithms have successfully achieved this goal, to the best of our knowledge. For instance, FedPAQ (Reisizadeh et al., 2020), FedCOM (Haddadpour et al., 2021), QSPARSE-SGD (Basu et al., 2019), Local-SGD-C (Gao et al., 2021) consider compressed FL algorithms under homogeneous data (i.e., iid clients). FedCOMGATE (Haddadpour et al., 2021), designed for unbiased compressors, does not support biased compressors, and their analysis does not validate the utility under partial client participation. Fed-EF (Li and Li, 2023) focuses on biased communication compression in FL with error feedback (Seide et al., 2014; Karimireddy et al., 2019) and partial client participation. However, the convergence analysis requires the assumption of bounded gradient dissimilarity on the data heterogeneity and shows an extra slow-down factor in the convergence rate under partial client participation, suggesting a theoretical limitation of error feedback in FL. Moreover, both Haddadpour et al. (2021) and Li and Li (2023) impose stringent conditions on compression errors (see Remark 2 for more details).

Given these limitations, the motivation of this work is to develop new compressed FL approaches that are practical to implement, robust to data heterogeneity and partial participation, support both biased and unbiased compressors, and exhibit superior theoretical convergence.

In this paper, we propose two algorithms, SCALLION and SCAFCOM, which cover unbiased and biased compression and offer enhanced communication efficiency, faster convergence rates, and robustness to arbitrary data heterogeneity and partial participation. Table 1 presents a comprehensive comparison of communication and computation complexities and associated restrictions of existing algorithms, as well as our newly proposed approaches.

It is worth emphasizing that, the theoretical analysis in our paper only requires the smoothness of local objectives and bounded variance of stochastic gradients, without any additional assumptions on data heterogeneity or compression errors (see Remark 2 for more details), as opposed to all prior related works. The keys to this significant improvement are our new formulation of stochastic controlled averaging and the introduction of momentum. The main contributions are:

We revisit the SCAFFOLD method (Karimireddy et al., 2020b) by proposing a simplified and more communication-efficient formulation. The new implementation reduces the uplink communication cost by half, requiring each client to transmit only one increment variable (of the same size as the model) when participating in a training round, instead of two variables in the original implementation (Karimireddy et al., 2020b).

Building upon our new formulation of SCAFFOLD, we propose the SCALLION method that employs unbiased compressors for the communication of increment variables. We establish its convergence result for non-convex objectives. SCALLION obtains the state-of-the-art communication and computation complexities for FL under unbiased compressors and supports partial client participation.

We further develop SCAFCOM which enables biased compressors for broader applications. Local momentum is applied to guarantee fast convergence and improve empirical performance. The communication and computation complexities of SCAFCOM improve prior results by significant margins, particularly when compression is aggressive.

We conduct experiments to illustrate the effectiveness of SCALLION and SCAFCOM and support our theories. Our empirical results show that the proposed methods achieve comparable performance to full-precision FL methods with substantially reduced communication costs, and outperform recent compressed FL methods under the same communication budget.

Related Work

Two popular approaches are commonly employed to compress communication in distributed systems: quantization and sparsification. Quantization involves mapping input vectors to a set of grid values, and the output can be either unbiased (random dithering) or biased (deterministic dithering) of the input value. Notable examples include Sign-SGD (Seide et al., 2014; Bernstein et al., 2018), low-bit fixed rounding (Dettmers, 2016), Q-SGD (Alistarh et al., 2017), TurnGrad (Wen et al., 2017), and natural compression (Horvóth et al., 2022). On the other hand, sparsification operators only transmit a small subset of entries from the input vector, which can also be unbiased or biased (Wangni et al., 2018; Stich et al., 2018). Theoretical analyses of biased compressors often impose stringent assumptions, such as bounded gradients (Karimireddy et al., 2019; Zhao et al., 2019; Beznosikov et al., 2020) due to the challenges incurred by biasedness. A more detailed summary of unbiased and biased compressors can be found in Huang et al. (2022); Safaryan et al. (2022); He et al. (2023b), among others.

Usually, in distributed training, unbiased compressors can be applied in place of the full-precision gradients to get reasonable theoretical rates and empirical performance. However, directly using biased compressors may slow down convergence or even lead to divergence (Beznosikov et al., 2020; Li and Li, 2023). To alleviate the information distortion caused by compression, the technique of error feedback (EF) was first proposed in Seide et al. (2014). Error feedback has proven particularly effective in addressing biased compressors (Stich et al., 2018; Karimireddy et al., 2019), and it has inspired numerous subsequent distributed approaches (e.g., Wu et al., 2018; Alistarh et al., 2018; Li et al., 2022b). Moreover, a variant scheme of error feedback called EF21 was introduced recently (Richtárik et al., 2021). EF21 compresses increments of deterministic gradients and offers superior theoretical guarantees compared to vanilla error feedback.

Federated learning with compression.

Federated learning has gained great prominence since the introduction of FedAvg, proposed by McMahan et al. (2017) to improve the communication efficiency of classic distributed training. Subsequent studies have explored its theoretical convergence and empirical performance, revealing its susceptibility to data heterogeneity (i.e., non-iid clients) due to the “client-drift” effect, particularly when not all clients participate in training (Stich, 2019; Yu et al., 2019b; Wang and Joshi, 2021; Lin et al., 2020; Wang et al., 2020b; Li et al., 2020c; Yang et al., 2021). Substantial efforts have been made to address client heterogeneity in FL (Liang et al., 2019; Li et al., 2020b, a; Wang et al., 2020a; Zhang et al., 2021; Haddadpour et al., 2021; Yuan and Li, 2022; Alghunaim, 2023; Cheng et al., 2023), and develop other FL protocols involving variance reduction techniques or adaptive optimizers (Karimireddy et al., 2020b; Reddi et al., 2021; Chen et al., 2020; Karimi et al., 2023). Notably, SCAFFOLD introduced by Karimireddy et al. (2020b) leverages control variables to mitigate the impact of data herogeneity and partial client participation.

To further reduce communication costs, communication compression has been integrated into federated learning algorithms, leading to methods such as FedPAQ (Reisizadeh et al., 2020), FedCOMGATE (Haddadpour et al., 2021), Fed-EF (Li and Li, 2023), etc. However, due to the information distortion incurred by compression, the existing communication-compressed FL methods either lack the robustness to arbitrary client heterogeneity and partial participation or rely on stringent conditions of compressors used by clients, going beyond standard unbiased/contractive compressibility. In contrast, our proposed algorithms work under minimal assumptions, which accommodate arbitrary client heterogeneity, partial participation and standard compressibilities while outperforming previous methods theoretically and empirically.

Federated learning with momentum.

The utilization of momentum in optimization traces back to Nesterov’s acceleration (Yurri, 2004) and the heavy-ball method (Polyak, 1964) in deterministic settings, which has been extended to the stochastic scenario (Yan et al., 2018; Yu et al., 2019a; Liu et al., 2020) and other domains (Yuan et al., 2021b; He et al., 2023b, a; Chen et al., 2023). A recent work (Fatkhullin et al., 2023) suggests the benefits of momentum in error feedback for distributed optimization. In the context of federated learning, momentum has been widely incorporated and empirically shown to enhance performance (Wang et al., 2020b; Karimireddy et al., 2020a; Khanduri et al., 2021; Das et al., 2022). For FL, Cheng et al. (2023) demonstrates that momentum can mitigate the client drift phenomenon in FedAvg under full client participation. It is important to note that the algorithms and analysis in this paper are different from these prior works because of the unique challenges posed by the interplay of local updates, partial client participation, and communication compression.

Problem Setup

Formally, in federated learning, we aim to minimize the following objective:

where ξi\xi_{i} represents a local data sample of client ii, F(x;ξi)F(x;\xi_{i}) represents the loss function evaluated at model xx and sample ξi\xi_{i}, and fi(x)f_{i}(x) is the local objective w.r.t. data distribution Di\mathcal{D}_{i} at client ii. Since finding the optimum of non-convex objectives is generally intractable, we devote to finding a stationary point of ff.

In practice, the data distributions Di\mathcal{D}_{i} across clients may vary significantly, resulting in the inequality fi(x)≠fj(x)f_{i}(x)\neq f_{j}(x) for different clients ii and jj. Consequently, a globally stationary model x⋆x^{\star} with ∇f(x⋆)=0\nabla f(x^{\star})=0 may not be a stationary point of the local objectives, leading to large values of ∥∇fi(x⋆)∥\|\nabla f_{i}(x^{\star})\|. This phenomenon is widely referred to as data heterogeneity. If all local clients were homogeneous, meaning that the local data samples of different clients follow a common distribution D\mathcal{D}, we would have f1(x)=⋯=fN(x)f_{1}(x)=\cdots=f_{N}(x) and each globally stationary model would also be stationary for each client.

where ξi∼Di\xi_{i}\sim\mathcal{D}_{i} are iid random samples for each client ii.

Assumptions 1-2 are standard in the analysis of FL algorithms. It is worth highlighting that, these are the only two assumptions required for all the theoretical analysis in this paper.

SCALLION: Single-round Compressed Communication

In this section, we first revisit the seminal SCAFFOLD algorithm (Karimireddy et al., 2020b), which requires communicating two variables (of the same size as the model) from client to server per communication round. We present a new formulation with only a single variable for uplink communication for each client participating in a training round. We then propose SCALLION, which employs unbiased compressors to further reduce the communication workload of SCAFFOLD. SCALLION embraces arbitrary data heterogeneity, local updates, and partial client participation. Theoretical analysis is provided, showing that SCALLION converges at a state-of-the-art rate under standard unbiased compressibility.

The SCAFFOLD approach (Karimireddy et al., 2020b) maintains local control variables {cit}i=1N\{c_{i}^{t}\}_{i=1}^{N} on clients and a global control variable ctc^{t} on the server. Let St⊆[N]\mathcal{S}^{t}\subseteq[N] (with ∣St∣=S|\mathcal{S}^{t}|=S) be the set of accessible (active) clients to interact with the server in the tt-th round. In each training round, SCAFFOLD conducts KK local updates within each accessible client i∈Sti\in\mathcal{S}^{t} by

The increments of local model yit,K−xty_{i}^{t,K}-x^{t} and control variable cit+1−citc_{i}^{t+1}-c_{i}^{t}, of each participating client i∈Sti\in\mathcal{S}^{t}, are then sent to the central server and aggregated to update the global model parameters:

where ηg\eta_{g} is the global learning rate. The detailed description of SCAFFOLD can be found in Appendix A. Notably, the control variables of SCAFFOLD track local gradients such that cit≈∇fi(xt)c_{i}^{t}\approx\nabla f_{i}(x^{t}) and ct≈∇f(xt)c^{t}\approx\nabla f(x^{t}), thereby mimicking the ideal update through ∇F(yit,k;ξit,k)−cit+ct≈∇f(xt)\nabla F(y_{i}^{t,k};\xi_{i}^{t,k})-c_{i}^{t}+c^{t}\approx\nabla f(x^{t}) given ∇F(yit,k;ξit,k)≈∇fi(yit,k)\nabla F(y_{i}^{t,k};\xi_{i}^{t,k})\approx\nabla f_{i}(y_{i}^{t,k}) and yit,k≈xty_{i}^{t,k}\approx x^{t}. Consequently, the local updates are nearly synchronized in the presence of data heterogeneity without suffering from client drift.

While the introduction of control variables enables SCAFFOLD to converge robustly with arbitrarily heterogeneous clients and partial client participation, the original implementation of SCAFFOLD described above requires clients to communicate both updates of local models yit,K−xty_{i}^{t,K}-x^{t} and control variables cit+1−citc_{i}^{t+1}-c_{i}^{t} (also see (Karimireddy et al., 2020b, Alg. 1, line 13)). This results in a doubled client-to-server communication cost and more obstacles to employing communication compression, compared to its counterparts without control variables such as FedAvg.

2 Development of SCALLION

Now we present an equivalent implementation of SCAFFOLD which only requires a single variable for uplink communication and is readily employable for communication compression. Expanding the updates of local models yit,K−xty_{i}^{t,K}-x^{t} and control variables cit+1−citc_{i}^{t+1}-c_{i}^{t} used by exploiting (1) and (2), we have

In (4) and (5), we see that the updates of local models and control variables share a common component, the increment variables Δit\Delta_{i}^{t}. Since the global control variable ctc^{t} is inherently maintained by the server, updates cit+1−citc_{i}^{t+1}-c_{i}^{t} and thus yit,K−xty_{i}^{t,K}-x^{t} can be recovered by the server upon receiving the increment variables Δit\Delta_{i}^{t}. Therefore, the server model and control variable can be equivalently updated as

Based on our above formulation, by communicating the increment variables Δit\Delta_{i}^{t} and applying the server-side updates (6) accordingly, SCAFFOLD can be implemented equivalently with a halved uplink communication cost, compared to the original one (Karimireddy et al., 2020b). A detailed description of the new implementation can be found in Algorithm 4 in Appendix A. It is also worth noting that the new implementation only modifies the communication procedure, and the same local updates as in Karimireddy et al. (2020b) remain in our implementation.

Importantly, the new implementation of SCAFFOLD provides a simpler and more natural backbone for communication compression as only the transmission of Δit\Delta_{i}^{t} is to be compressed. Moreover, unlike compressing local gradients as adopted in Reisizadeh et al. (2020); Haddadpour et al. (2021); Basu et al. (2019); Gao et al. (2021); Li and Li (2023), compressing Δit\Delta_{i}^{t} asymptotically eliminates compression errors even in the presence of client heterogeneity. Consider the case of deterministic gradients for simplicity. Based on the update rules of SCAFFOLD (Algorithm 4), if hypothetically the training approached a steady stage where xtx^{t} is close to a stationary point x⋆x^{\star}, we expect to have cit≈∇fi(x⋆)c_{i}^{t}\approx\nabla f_{i}(x^{\star}) and ct=1N∑i=1Ncit≈∇f(x⋆)=0c^{t}=\frac{1}{N}\sum_{i=1}^{N}c_{i}^{t}\approx\nabla f(x^{\star})=0. Consequently, the directions for local updates satisfy ∇fi(yt,k)−cit+ct≈0\nabla f_{i}(y^{t,k})-c_{i}^{t}+c^{t}\approx 0 so that x⋆≈xt≈yt,1≈⋯≈yt,Kx^{\star}\approx x^{t}\approx y^{t,1}\approx\cdots\approx y^{t,K}. Therefore, the definition of Δit\Delta_{i}^{t} in (4) implies

Namely, the increment variable Δit\Delta_{i}^{t} gradually vanishes as the algorithm iterates. Therefore, taking an ω\omega-unbiased compressor as an example (see Definition 1), compressing Δit\Delta_{i}^{t} results in a vanishing compression error

regardless of data heterogeneity. In contrast, if one considers compressing local gradients directly, a constantly large compression error is introduced in each communication round

The constant ∥∇fi(x⋆)∥2\|\nabla f_{i}(x^{\star})\|^{2} can be extremely large when the data heterogeneity is severe, resulting in the susceptibility of algorithms to data heterogeneity.

Comparison with FedPAQ (Reisizadeh et al., 2020), FedCOM (Haddadpour et al., 2021), Fed-EF (Li and Li, 2023).

All of them boil down to the FedAvg algorithm (McMahan et al., 2017) when no compression is conducted. As such, their convergence is significantly hampered by data heterogeneity across clients due to client drift. The former two works do not consider partial participation, and Fed-EF suffers from an extra slow-down factor in the convergence rate under partial participation. In opposition, SCALLION roots from SCAFFOLD, and is robust to arbitrary data heterogeneity and partial participation.

Comparison with FedCOMGATE (Haddadpour et al., 2021).

3 Convergence of SCALLION

To study the convergence of SCALLION under communication compression, we consider compressors satisfying the following standard unbiased compressibility.

where the expectation is taken over the randomness of the compressor Ci\mathcal{C}_{i}.

Examples that satisfy Definition 1 include random sparsification and dithering as stated below.

For any s∈[d]s\in[d], the random-ss sparsification is defined as C:x↦ds(ξ⊙x)\mathcal{C}:x\mapsto\frac{d}{s}(\xi\odot x) where ⊙\odot denotes the entry-wise product and ξ∈{0,1}d\xi\in\{0,1\}^{d} is a uniformly random binary vector with ss non-zero entries. This random-ss sparsification is an ω\omega-unbiased compressor with ω=d/s−1\omega=d/s-1.

where ⌊⋅⌋\lfloor\cdot\rfloor and ⌈⋅⌉\lceil\cdot\rceil are the floor and ceiling functions, respectively. This random dithering with bb-bits per entry is an ω\omega-unbiased compressor with ω=min⁡{d/4b,d/2b}\omega=\min\{d/4^{b},\sqrt{d}/2^{b}\}.

When communication compression with ω\omega-unbiased compressors is employed, the convergence of the proposed SCALLION (Algorithm 1) is justified as follows.

Under Assumptions 1 and 2, supposing clients apply mutually independent ω\omega-unbiased compressors, if we initialize ci0=∇fi(x0)c_{i}^{0}=\nabla f_{i}(x^{0}) and c0=∇f(x0)c^{0}=\nabla f(x^{0}), and set learning rates ηl\eta_{l}, ηg\eta_{g} as well as scaling factor α\alpha properly, then SCALLION converges as

where Δ≜f(x0)−min⁡f(x)\Delta\triangleq f(x^{0})-\min f(x). A detailed version and the proof are in Appendix C.

The initialization of {ci0}i=1N\{c_{i}^{0}\}_{i=1}^{N} and c0c^{0} does not affect the convergence rate and the asymptotic complexities. The one in Theorem 1 is conducted for neatness. In practice, we can simply set ci0=0c_{i}^{0}=0.

Due to comprehensive challenges in compressed FL, to facilitate convergence analysis, most existing approaches require additional stringent conditions or assumptions that are not necessarily valid in practice, including but not restricted to:

As a result, their convergence rates inevitably depend on the large constants GG, ζ\zeta, GAG_{A}, (1−qA)−1(1-q_{A})^{-1}. In contrast, the results presented in our work do not rely on any such condition.

Comparison with prior compressed FL methods.

Table 1 provides a summary of non-convex FL methods employing unbiased compressors under full client participation. We observe that SCALLION matches the state-of-the-art asymptotic communication and computation complexities under non-iid clients. In particular, while having the same asymptotic complexities as FedCOMGATE (Haddadpour et al., 2021), SCALLION does not incur the dependence on a large uniform bound of compression errors (see Remark 2) in convergence and thus has a superior convergence rate.

To sum up, based on the above discussion, we demonstrate that SCALLION theoretically improves existing FL methods with unbiased compression. In particular, SCALLION is the first stochastic FL method, to the best of our knowledge, that accommodates arbitrary data heterogeneity, partial client participation, and local updates, without any additional assumptions on compression errors.

SCAFCOM: Biased Compression with Momentum

While SCALLION achieves superior convergence speed under unbiased compression, its analysis cannot be adapted to biased compressors (also known as contractive compressors) to attain fast convergence rates. In this section, we propose an algorithm called SCAFCOM as a complement of SCALLION to accommodate biased communication compression in FL.

In the literature, biased compressors are commonly modeled by the following contractive compressibility.

where the expectation is taken over the randomness of the compressor Ci\mathcal{C}_{i}.

Notably, compared to unbiased compressors satisfying Definition 1, contractive compressors, though potentially having smaller squared compression errors, no longer enjoy the unbiasedness. Common examples of contractive compressors include (Li and Li, 2023):

For any r∈r\in, the Top-rr operator is defined as C:x↦(\mathds1{k∈Sr(x)}xk)k=1d\mathcal{C}:x\mapsto(\mathds{1}\{k\in\mathcal{S}_{r}(x)\}x_{k})_{k=1}^{d} where Sr(x)\mathcal{S}_{r}(x) is the set of the largest r×dr\times d entries of xx in absolute values. Top-rr operator is a q2q^{2}-contractive compressor with q2=1−rq^{2}=1-r.

Due to the lack of unbiasedness, compared to their counterparts with unbiased compressors, approaches employing with biased compressors in the literature typically (i) require stringent assumptions, e.g., bounded gradients (Seide et al., 2014; Koloskova et al., 2019; Basu et al., 2019; Li et al., 2022b) or bounded gradient dissimilarity (Huang et al., 2022; Li and Li, 2023), (ii) rely on impractical algorithmic structure, e.g., large data batches in gradient computation (Huang et al., 2022), (iii) have weak convergence guarantees, e.g., no improvement in the scaling of the number of clients (i.e., linear speedup) (Fatkhullin et al., 2021) or worse dependence on compression parameter qq (Zhao et al., 2022).

Recently, Fatkhullin et al. (2023) shows that tactfully incorporating momentum into communication compression can effectively mitigate the influence of biased compression. Inspired by their findings, we introduce an extra momentum variable vitv_{i}^{t} on each client ii to overcome the adverse effect of biased compression. This leads to the SCAFCOM method, as presented in Algorithm 2. When client ii participates in the tt-th round, an additional momentum variable vitv_{i}^{t} is updated as

where {yit,k}\{y_{i}^{t,k}\} are the intermediate local models and β\beta is the momentum factor. We then set vit+1−cit=(1−β)vit+βK−1∑k=0K−1∇F(yit,k;ξit,k)−citv_{i}^{t+1}-c_{i}^{t}=(1-\beta)v_{i}^{t}+\beta K^{-1}\sum_{k=0}^{K-1}\nabla F(y_{i}^{t,k};\xi_{i}^{t,k})-c_{i}^{t} as the message to be communicated, as opposed to K−1∑k=0K−1∇F(yit,k;ξit,k)−citK^{-1}\sum_{k=0}^{K-1}\nabla F(y_{i}^{t,k};\xi_{i}^{t,k})-c_{i}^{t} in SCAFFOLD and α(K−1∑k=0K−1∇F(yit,k;ξit,k)−cit)\alpha(K^{-1}\sum_{k=0}^{K-1}\nabla F(y_{i}^{t,k};\xi_{i}^{t,k})-c_{i}^{t}) in SCALLION. Compared to the gradient K−1∑k=0K−1∇F(yit,k;ξit,k)K^{-1}\sum_{k=0}^{K-1}\nabla F(y_{i}^{t,k};\xi_{i}^{t,k}) yielded by single local loop, the momentum variable vit+1v_{i}^{t+1} has a smaller variance due to its accumulation nature, thereby refining the convergence behavior under biased compression. Finally, note that similar to SCALLION, SCAFCOM only transmits one compressed variable in the uplink communication, and recovers SCAFFOLD when β=1\beta=1 and {Ci}i=1N\{\mathcal{C}_{i}\}_{i=1}^{N} are the identity mapping (i.e., no compression).

Notably, the difference between SCAFCOM and SCALLION lies in the utilization of momentum; see the colored highlights in Algorithm 1 and 2. Specifically, if we replace line 10 of SCAFCOM with the following formula:

then SCAFCOM recovers SCALLION (Algorithm 1) with β=α\beta=\alpha. Note that in this case, the memorization of vitv_{i}^{t} is no longer needed to be retained, which is consistent with the design of SCALLION. We also remark that the roles of the scaling factor α\alpha and momentum β\beta vary in SCALLION and SCAFCOM. In SCALLION, α\alpha stabilizes the updates of control variables {cit}i=1N\{c_{i}^{t}\}_{i=1}^{N} while SCAFCOM sets β\beta to mainly address the biasedness issue of contractive compressors.

Connection with error feedback.

While SCAFCOM does not directly pertain to the vanilla error feedback (Seide et al., 2014; Stich, 2019), a technique widely used to tackle biased compression, SCAFCOM relates to the newly proposed EF21 mechanism (Richtárik et al., 2021). If one sets β=1\beta=1 in SCAFCOM, then the message K−1∑k=0K−1∇F(yit,k;ξit,k)−citK^{-1}\sum_{k=0}^{K-1}\nabla F(y_{i}^{t,k};\xi_{i}^{t,k})-c_{i}^{t} would be compressed and the control variable would be updated as cit+1=cit+Ci(K−1∑k=0K−1∇F(yit,k;ξit,k)−cit)c_{i}^{t+1}=c_{i}^{t}+\mathcal{C}_{i}(K^{-1}\sum_{k=0}^{K-1}\nabla F(y_{i}^{t,k};\xi_{i}^{t,k})-c_{i}^{t}). Under the simplification where σ=0\sigma=0 (i.e., full-batch gradients), K=1K=1 (i.e., no local updates), S=NS=N (i.e., full client participation), it becomes cit+1=cit+Ci(∇fi(xt)−cit)c_{i}^{t+1}=c_{i}^{t}+\mathcal{C}_{i}(\nabla f_{i}(x^{t})-c_{i}^{t}) and the global model is updated through xt+1=xt−ηgηlct+1x^{t+1}=x^{t}-{\eta_{g}\eta_{l}}c^{t+1} with ct+1=1N∑i=1Ncit+1c^{t+1}=\frac{1}{N}\sum_{i=1}^{N}c_{i}^{t+1}, recovering the recursion of EF21.

2 Convergence of SCAFCOM

With the help of local momentum, the convergence of SCAFCOM under q2q^{2}-contractive compression can be established as follows.

Under Assumption 1 and 2, supposing clients apply q2q^{2}-contractive compressors {Ci}i=1N\{\mathcal{C}_{i}\}_{i=1}^{N}, if we initialize ci0=vi0=∇fi(x0)c_{i}^{0}=v_{i}^{0}=\nabla f_{i}(x^{0}) and c0=∇f(x0)c^{0}=\nabla f(x^{0}), and set learning rates ηl\eta_{l}, ηg\eta_{g} as well as momentum β\beta properly, then SCAFCOM converges as

where Δ≜f(x0)−min⁡f(x)\Delta\triangleq f(x^{0})-\min f(x). A detailed version and the proof are in Appendix D.

The initialization of {ci0}i=1N\{c_{i}^{0}\}_{i=1}^{N}, c0c^{0}, {vi0}i=1N\{v_{i}^{0}\}_{i=1}^{N} does not affect the convergence rate and the asymptotic complexities. The one in Theorem 2 is conducted for neatness. In practice, we can simply set ci0=vi0=0c_{i}^{0}=v_{i}^{0}=0.

Furthermore, it is known that one can convert any ω\omega-unbiased compressor Ci\mathcal{C}_{i} into a q2q^{2}-contractive compressors with q2=ω1+ωq^{2}=\frac{\omega}{1+\omega} through scaling 11+ωCi:x↦11+ωCi(x)\frac{1}{1+\omega}\mathcal{C}_{i}:x\mapsto\frac{1}{1+\omega}\mathcal{C}_{i}(x) (see, e.g., (Safaryan et al., 2022, Lemma 1) and (Huang et al., 2022, Lemma 1)). Consequently, SCAFCOM can also employ unbiased compressors after the scaling with convergence guaranteed as:

When employing unbiased compressors (after scaling) in communication compression, then SCAFCOM converges as

Corollary 1 is obtained by directly plugging in the relation q2=ω1+ωq^{2}=\frac{\omega}{1+\omega} into Theorem 2 without exploiting the unbiasedness property of the compressors. However, it is feasible to refine the 1/T2/31/T^{2/3} and 1/T3/41/T^{3/4} terms in (11) by taking advantage of unbiasedness. We omit the proof here for conciseness.

Comparison with prior compressed FL methods.

In Table 1, we compare SCAFCOM with existing FL algorithms with biased compression under full client participation. We observe that SCAFCOM outperforms prior results with biased compression (QSPARSE-SGD (Basu et al., 2019), Local-SGD-C (Gao et al., 2021), and Fed-EF (Li and Li, 2023), etc) in the asymptotic communication complexity by at least a factor 1/(1−q)1/(1-q). Moreover, inferior to SCAFCOM, the existing FL methods with biased compression cannot tolerate unbounded data heterogeneity or even require homogeneous data. In addition, QSPARSE-SGD and Local-SGD-C only converge under full client participation. Notably, when employing unbiased compression, SCAFCOM enhances the asymptotic computation complexity by a factor of 1+ω1+\omega compared to SCALLION, surpassing all prior FL methods with unbiased compression. Furthermore, under partial client participation, our rate is better than that of Fed-EF (Li and Li, 2023) by a factor of NS\sqrt{\frac{N}{S}} thanks to control variables, overcoming the drawback of the standard error feedback under partial participation in distributed/federated learning.

Based on discussions in Section 5, we demonstrate that SCAFCOM, as a unified approach, outperforms existing compressed FL methods under both unbiased and biased compression. In particular, SCAFCOM is the first stochastic FL method, to the best of our knowledge, that accommodates arbitrary client heterogeneity, partial client participation, and local updates, as well as support communication compression relying only on standard contractive compressibility.

Experiments

We present a set of experiments on FL benchmark datasets to demonstrate the efficacy of our proposed algorithms. Since the (substantial) saving in communication overhead of various compressors is straightforward and has been well demonstrated in prior compressed FL works (e.g., via communication vs. test accuracy plots in Haddadpour et al. (2021); Li and Li (2023)), in this section, our empirical results mainly focus on:

Validating that SCALLION and SCAFCOM can empirically match the full-precision SCAFFOLD with considerably reduced communication costs.

Showing the advantages of SCALLION and SCAFCOM over prior methods with the same communication budget and training rounds.

We test our algorithms on two standard FL datasets: MNIST dataset (LeCun, 1998) and Fashion MNIST dataset (Xiao et al., 2017). The MNIST dataset contains 60,000 training images and 10,000 test images. Each image is a gray-scale handwritten digit from 0 to 9 (10 classes in total) with 784 pixels. The FMNIST dataset has the same training and test dataset sizes and the number of pixels per image whereas each image falls into 10 categories of fashion products (e.g., bag, dress), making the learning task more challenging. Following (Karimireddy et al., 2020b), we train a (non-convex) fully-connected neural network with 2 hidden layers with 256 and 128 neurons, respectively. We use ReLU as the activation function and the cross-entropy loss as the training objective.

Algorithms.

We implement our two proposed methods and two recent compressed FL algorithms, with biased and unbiased compression, respectively:

(Biased) Fed-EF (Li and Li, 2023): Federated learning with biased compression and standard error feedback. Since our proposed algorithms conduct SGD-type updates in the server, we compare them with its Fed-EF-SGD variant.

(Biased) SCAFCOM (our Algorithm 2): Biased compression for FL with stochastic controlled averaging and local momentum. The momentum β\beta in Algorithm 2 is tuned over a fine grid on [0.05,1][0.05,1].

(Unbiased) FedCOMGATE (Haddadpour et al., 2021): Federated learning with unbiased compression. This algorithm uses the gradient-tracking technique to alleviate data heterogeneity.

(Unbiased) SCALLION (our Algorithm 1): Unbiased compression for FL with stochastic controlled averaging. The local scaling factor α\alpha in Algorithm 1 is tuned over a fine grid on [0.05,1][0.05,1].

Besides the compressed FL algorithms, we also test the corresponding full-precision baselines: Fed-SGD (also known as FedAvg (Yang et al., 2021)) and SCAFFOLD (Karimireddy et al., 2020b), both with two-sided (global and local) learning rates. For a fair comparison, we execute SCAFFOLD with our new implementation in experiments, corresponding to the special cases of SCAFCOM (Ci=I\mathcal{C}_{i}=I, β=1\beta=1) and of SCALLION (Ci=I\mathcal{C}_{i}=I, α=1\alpha=1). Notably, under a fixed random seed, our implementation yields the same training trajectory as Karimireddy et al. (2020b) at a halved uplink communication cost (by only sending one variable per participating client).

In the experiments, biased compression is simulated with Top-rr operators (our Example 3). Specifically, we experiment with Top-0.01 and Top-0.05, where only the largest 1%1\% and 5%5\% entries in absolute values are transmitted in communication. For unbiased compression, we utilize random dithering (our Example 2), with 2 bits and 4 bits per entry, respectively. We tune the combination of the global learning rate ηg\eta_{g} and the local learning rate ηl\eta_{l} over the 2D grid {0.001,0.003,0.01,0.03,0.1,0.3,1,3,10}2\{0.001,0.003,0.01,0.03,0.1,0.3,1,3,10\}^{2}. The combination of learning rates with the highest test accuracy is reported for each algorithm and hyper-parameter choice (e.g., β\beta, α\alpha, and degree of compression).

Federated learning setting.

In our experiments, the training data are distributed across N=200N=200 clients, in a highly heterogeneous setting following (Li and Li, 2023). The training data samples are split into 400 shards each containing samples from only one class. Then, each client is randomly assigned two shards of data. Therefore, every client only possesses training samples from at most two classes. All the clients share the same initial model at T=0T=0. In each round of client-server interaction, we uniformly randomly pick S=20S=20 clients to participate in FL training, i.e., the partial participation rate is 10%10\%. Each participating client performs K=10K=10 local training steps using the local data, with a mini-batch size 32. All the presented results are averaged over 5 independent runs with the same model initialization for all the algorithms.

2 Results

Since all the compressed FL methods in our experiments require transmitting one variable in the uplink communication, their communication costs are essentially the same when the same compressor is applied. Therefore, for clarity of comparisons, we will plot the metrics versus the number of training rounds.

In Figure 2, we first present the train loss and test accuracy of our proposed SCAFCOM (Algorithm 2) with momentum β=0.2\beta=0.2 and Fed-EF (Li and Li, 2023), both using biased Top-rr compressors. We observe:

In general, under the same degree of compression (i.e., the value of rr in the case), SCAFCOM outperforms Fed-EF in terms of both training loss and test accuracy, thanks to controlled variables and the local momentum in SCAFCOM.

On both datasets, SCAFCOM with Top-0.01 can achieve very close test accuracy as the full-precision SCAFFOLD, and SCAFCOM with Top-0.05 essentially match those of full-precision SCAFFOLD. Hence, we can reach the same performance while saving 20 - 100x uplink communication costs.

For both SCAFCOM and Fed-EF, as the degree of compression decreases (i.e., rr increases), their performance approaches that of the corresponding FL methods under full-precision communication (i.e., SCAFFOLD and Fed-SGD).

SCALLION with unbiased compression.

In Figure 3, we plot the same set of experimental results and compare SCALLION (α=0.1\alpha=0.1) with FedCOMGATE (Haddadpour et al., 2021), both applying unbiased random dithering (Alistarh et al., 2017) with 22 and 44 bits per entry. Similarly, we see that SCALLION outperforms FedCOMGATE under the same degree of compression (number of bits per entry). The SCALLION curves of both 2-bit and 4-bit compression basically overlap that of SCAFFOLD, and 4-bit compression slightly performs better than 2-bit compression in later training rounds. Since random dithering also introduces sparsity in compressed variables, the 4-bit compressor already provides around 100x communication compression, and the 2-bit compressor saves more communication costs.

Impact of β𝛽\beta and α𝛼\alpha.

The momentum factor β\beta in SCAFCOM and the scaling factor α\alpha in SCALLION are two important tuning parameters of our proposed methods. As an example, in Figure 4, we report the test accuracy of SCAFCOM with Top-0.01 (left column) and SCALLION (right column) 2-bit random dithering, for various β\beta and α\alpha values, respectively. From the results, we see that SCAFCOM can converge with a wide range of β∈[0.05,1]\beta\in[0.05,1], and β=0.2\beta=0.2 performs the best on both datasets (so we presented the results with β=0.2\beta=0.2 in Figure 2). For SCALLION, we report three α\alpha-values, α=0.05,0.1,0.2\alpha=0.05,0.1,0.2. When α>0.5\alpha>0.5, the training of SCALLION becomes unstable for 2-bit quantization. As we use more bits, larger α\alpha could be allowed. This is because, random dithering may hugely scale up the transmitted (compressed) entries, especially for low-bit quantization. When the scaling factor α\alpha is too large in this case, the updates of local control variables become unstable, which further incapacitates the proper dynamic the local/global training. Thus, for SCALLION with low-bit random dithering, we typically need a relatively small α\alpha. As presented in Figure 3, α=0.1\alpha=0.1 yields the best overall performance. In general, we should tune parameter β\beta and α\alpha in SCAFCOM and SCALLION practically to reach the best performance.

Conclusion

This paper proposes two compressed federated learning (FL) algorithms, SCALLION and SCAFCOM, to support unbiased and biased compression in FL. The proposed methods are built upon our new implementation of the stochastic controlled averaging approach (SCAFFOLD), along with local momentum, and communication compression. Theoretically, under minimal assumptions, SCALLION and SCAFCOM match or improve the state-of-the-art convergence rates and complexities of compressed FL algorithms. Specifically, SCALLION and SCAFCOM are the first stochastic FL methods, to the best of our knowledge, that exhibit robustness to arbitrary data heterogeneity, partial participation, local updates, and also accommodate communication compression relying solely on standard compressibilities. Empirically, experiments show that SCALLION and SCAFCOM outperform prior compressed FL methods and perform comparably to full-precision FL approaches at a substantially reduced communication cost. In the future, our algorithms and techniques might be integrated with or extended to, for example, adaptive optimization, privacy, and fairness in federated learning.

References

Appendix A Detailed Implementations of SCAFFOLD

The original implementation of SCAFFOLD (Karimireddy et al., 2020b) is stated in Algorithm 3 where no compression is employed in communication. In this implementation, each participating client needs to transmit the increments of both local model yt,K−yt,0y^{t,K}-y^{t,0} and control variable cit+1−citc_{i}^{t+1}-c_{i}^{t} to the server at the end of local updates, resulting to two rounds of uplink communication for per training iteration.

By communicating the increment variable Δit\Delta_{i}^{t}, we can implement SCAFFOLD equivalently with only a single round of uplink communication for each participating client, as described in Algorithm 4.

Appendix B Preliminaries of Proofs

and dt+1=1S∑i∈Stα(git−cit)+ctd^{t+1}=\frac{1}{S}\sum_{i\in\mathcal{S}^{t}}\alpha(g_{i}^{t}-c_{i}^{t})+c^{t}

For SCAFCOM.

We additionally let uit+1≜vit+β(git−vit)u_{i}^{t+1}\triangleq v_{i}^{t}+\beta(g_{i}^{t}-v_{i}^{t}). Then, due to client sampling, it holds that

and dt+1=1S∑i∈St(uit+1−cit)+ctd^{t+1}=\frac{1}{S}\sum_{i\in\mathcal{S}^{t}}(u_{i}^{t+1}-c_{i}^{t})+c^{t}. Similarly, we let vt≜1N∑i=1Nvitv^{t}\triangleq\frac{1}{N}\sum_{i=1}^{N}v_{i}^{t} and ut+1≜1N∑i=1Nuit+1=(1−β)vt+βgtu^{t+1}\triangleq\frac{1}{N}\sum_{i=1}^{N}u_{i}^{t+1}=(1-\beta)v^{t}+\beta g^{t}.

Under Assumption 1, for any θ∈\theta\in and v,v1,…,vN∈Ft−1v,v_{1},\dots,v_{N}\in\mathcal{F}^{t-1}, it holds that

We mainly focus on proving (14) as (16) can be established similarly. Using Lemma 2, we have

By further applying Sedrakyan’s inequality ∥(1−θ)v+θv′∥2≤(1−θ)∥v∥2+θ∥v′∥2\|(1-\theta)v+\theta v^{\prime}\|^{2}\leq(1-\theta)\|v\|^{2}+\theta\|v^{\prime}\|^{2} and Assumption 1, we have

The other upper bound of (14) follows ∥(1−θ)v+θv′∥2≤2∥v∥2+2θ2∥v′∥2\|(1-\theta)v+\theta v^{\prime}\|^{2}\leq 2\|v\|^{2}+2\theta^{2}\|v^{\prime}\|^{2}. ∎

Appendix C Proof of SCALLION

In this subsection, we prove the convergence result of SCALLION with unbiased compression, where we additionally define x−1:=x0x^{-1}:=x^{0}.

Under Assumptions 1 and 2, it holds for all t≥0t\geq 0 and γ>0\gamma>0 that

For ∥dt+1−∇f(xt+1)∥2\|d^{t+1}-\nabla f(x^{t+1})\|^{2}, using Lemma 2 and the fact that ct≡1N∑icitc^{t}\equiv\frac{1}{N}\sum_{i}c_{i}^{t} and dt+1=1S∑i∈Stα(git−cit)+ctd^{t+1}=\frac{1}{S}\sum_{i\in\mathcal{S}^{t}}\alpha(g_{i}^{t}-c_{i}^{t})+c^{t}, we have

Similarly, using (16) and Assumption 1, we have

Plugging (35) and (38) into (32), we obtain

Then applying the same relaxation in (38), we obtain

Plugging (41) and (44) into (30) and noting N−1≤S−1N^{-1}\leq S^{-1}, we completes the proof. ∎

Given Lemma 4, the rest is to bound ∥ct−∇f(xt−1)∥2\|c^{t}-\nabla f(x^{t-1})\|^{2}, ∥cit−∇fi(xt−1)∥2\|c_{i}^{t}-\nabla f_{i}(x^{t-1})\|^{2}.

Under Assumptions 1 and 2, it holds for all t≥0t\geq 0 that

Using (14), Young’s inequality, and Assumption 1, we further have

Using Young’s inequality and Assumption 1, we can obtain

Combining (50), (53), (59) together and using α2S2σ2N3K≤(1+ω)α2Sσ2N2K\frac{\alpha^{2}S^{2}\sigma^{2}}{N^{3}K}\leq\frac{(1+\omega)\alpha^{2}S\sigma^{2}}{N^{2}K} completes the proof. ∎

Under Assumptions 1 and 2, suppose 0≤α≤14(ω+1)0\leq\alpha\leq\frac{1}{4(\omega+1)}, then it holds for all t≥0t\geq 0 that

Plugging (66) and (68) into (64), we obtain

where we use α≤14(ω+1)\alpha\leq\frac{1}{4(\omega+1)} in the last inequality. By further using Young’s inequality and Assumption 1, we obtain

Under Assumptions 1 and 2, it holds for any t≥0t\geq 0 and ηlKL≤12\eta_{l}KL\leq\frac{1}{2} that

Under Assumptions 1 and 2, if we initialize ci0=vi0=1B∑b=1B∇F(x0;ξib)c_{i}^{0}=v_{i}^{0}=\frac{1}{B}\sum_{b=1}^{B}\nabla F(x^{0};\xi_{i}^{b}), c0=1N∑i=1Nci0c^{0}=\frac{1}{N}\sum_{i=1}^{N}c_{i}^{0} with {ξib}b=1B∼iidDi\{\xi_{i}^{b}\}_{b=1}^{B}\overset{iid}{\sim}\mathcal{D}_{i} and B≳σ2NLΔB\gtrsim\frac{\sigma^{2}}{NL\Delta} (ci0→∇fi(x0)c_{i}^{0}\to\nabla f_{i}(x^{0}) as B→∞B\to\infty), set ηgηlKL=27αSN\eta_{g}\eta_{l}KL=\frac{27\alpha S}{N}, ηlKL≤α(1+ω)36e2N(24+131α/S)\eta_{l}KL\leq\sqrt{\frac{\alpha(1+\omega)}{36e^{2}N(24+{131\alpha}/{S})}}, and

where Δ≜f(x0)−min⁡f(x)\Delta\triangleq f(x^{0})-\min f(x).

Adding \eqrefeqn:vhidhfsvcxu×10γNαS\eqref{eqn:vhidhfsv cxu}\times\frac{10\gamma N}{\alpha S} to (28), we have

Adding \eqrefeqn:vidnvdcxvcu×164γ(1+ω)S\eqref{eqn:vidnvdcxvcu}\times\frac{164\gamma(1+\omega)}{S} to (81), we have

Defining the Lyapunov function (x−1:=x0x^{-1}:=x^{0})

Using 9e2K2ηl2L2(24+4(1+ω)α2S+522(1+ω)αN)≤α(1+ω)N≤149e^{2}K^{2}\eta_{l}^{2}L^{2}\left(24+\frac{4(1+\omega)\alpha^{2}}{S}+\frac{522(1+\omega)\alpha}{N}\right)\leq\frac{\alpha(1+\omega)}{N}\leq\frac{1}{4} and Lemma 7, we have

Due to the choice of γ=ηgηlK\gamma=\eta_{g}\eta_{l}K and α≤14(ω+1)\alpha\leq\frac{1}{4(\omega+1)}, it holds that

Averaging (98) over kk and noting ∥x0−x−1∥2=0\|x^{0}-x^{-1}\|^{2}=0, α=O((1+ω)−1)\alpha=O((1+\omega)^{-1}), we obtain

By the definition of Φt\Phi^{t}, it holds that

where we use the choice of γ\gamma, α\alpha, and the initialization of {ci0}i∈[N]\{c_{i}^{0}\}_{i\in[N]} and c0c^{0} in the second inequality. Due to the choice of BB, we have σ2αSBT≲LΔTNαS\frac{\sigma^{2}}{\alpha SBT}\lesssim\frac{L\Delta}{T}\frac{N}{\alpha S} and thus

Plugging the choice of α\alpha completes the proof. ∎

Appendix D Proof of SCAFCOM

In this subsection, we prove the convergence result of SCAFCOM with biased compression, where we additionally define x−1:=x0x^{-1}:=x^{0}.

Under Assumptions 1 and 2, it holds for all t≥0t\geq 0 and γ>0\gamma>0 that

For ∥dt+1−∇f(xt+1)∥2\|d^{t+1}-\nabla f(x^{t+1})\|^{2}, using Lemma 2 and the fact that ct≡1N∑icitc^{t}\equiv\frac{1}{N}\sum_{i}c_{i}^{t} and dt+1=1S∑i∈St(uit+1−cit)+ctd^{t+1}=\frac{1}{S}\sum_{i\in\mathcal{S}^{t}}(u_{i}^{t+1}-c_{i}^{t})+c^{t}, we have

Similarly, using (16) and Assumption 1, we have

Plugging (116) and (120) into (113), we obtain

Then applying the same relaxation in (120), we obtain

Plugging (122) and (127) into (109) and noting N−1≤S−1≤1N^{-1}\leq S^{-1}\leq 1, q2≤1q^{2}\leq 1, we completes the proof. ∎

Given Lemma 8, the rest is to bound ∥vt−∇f(xt−1)∥2\|v^{t}-\nabla f(x^{t-1})\|^{2}, ∥vit−∇fi(xt−1)∥2\|v_{i}^{t}-\nabla f_{i}(x^{t-1})\|^{2}, and ∥vit−cit∥2\|v_{i}^{t}-c_{i}^{t}\|^{2}.

Under Assumptions 1 and 2, it holds for all t≥0t\geq 0 that

Using (14), Young’s inequality, and Assumption 1, we further have

Using Young’s inequality and Assumption 1, we can obtain

Combining (132), (135), (139) together and using β2S2σ2N3K≤β2Sσ2N2K\frac{\beta^{2}S^{2}\sigma^{2}}{N^{3}K}\leq\frac{\beta^{2}S\sigma^{2}}{N^{2}K}, β2SL2N2≤NL2Sβ\frac{\beta^{2}SL^{2}}{N^{2}}\leq\frac{NL^{2}}{S\beta}, β2SL2N2≤βSL2N\frac{\beta^{2}SL^{2}}{N^{2}}\leq\frac{\beta SL^{2}}{N} completes the proof. ∎

Under Assumptions 1 and 2, it holds for all t≥0t\geq 0 that

by applying (16). By further using Young’s inequality and Assumption 1, we obtain

Under Assumptions 1 and 2, it holds for all t≥0t\geq 0 that

where uit+1≜vit+β(git−vit)u_{i}^{t+1}\triangleq v_{i}^{t}+\beta(g_{i}^{t}-v_{i}^{t}). Using Lemma 2 and Assumption 1, we have

By further using Sedrakyan’s inequality and Assumption 1, we obtain

By combinining (165) with (152) and using 1≤1/(1−q)1\leq 1/(1-q), we finish the proof. ∎

Under Assumptions 1 and 2, it holds for any t≥0t\geq 0 and ηlKL≤12\eta_{l}KL\leq\frac{1}{2} that

When K=1K=1, Ut=0U^{t}=0 trivially for all t≥0t\geq 0 so we consider K≥2K\geq 2 below. Using Young’s inequality, we have

By further using Young’s inequality and Assumption 1, we obtain

By combinining the above inequalities together, we have

where we use ηlKL≤12\eta_{l}KL\leq\frac{1}{2} so that 3Kηl2L2≤1K−13K\eta_{l}^{2}L^{2}\leq\frac{1}{K-1} in the last inequality. Iterating and averaging (182) over k=0,…,K−1k=0,\dots,K-1, we obtain

where we use the fact (1+2K−1)2≤e2\left(1+\frac{2}{K-1}\right)^{2}\leq e^{2} in the last inequality. ∎

Under Assumptions 1 and 2, if we initialize ci0=vi0=1B∑b=1B∇F(x0;ξib)c_{i}^{0}=v_{i}^{0}=\frac{1}{B}\sum_{b=1}^{B}\nabla F(x^{0};\xi_{i}^{b}), c0=1N∑i=1Nci0c^{0}=\frac{1}{N}\sum_{i=1}^{N}c_{i}^{0} with {ξib}b=1B∼iidDi\{\xi_{i}^{b}\}_{b=1}^{B}\overset{iid}{\sim}\mathcal{D}_{i} and B≳σ2(1−q)LΔB\gtrsim\frac{\sigma^{2}}{(1-q)L\Delta} (ci0→∇fi(x0)c_{i}^{0}\to\nabla f_{i}(x^{0}) as B→∞B\to\infty), set ηgηlKL=(20NβS+28N(1−q)S)−1\eta_{g}\eta_{l}KL=\left(\frac{20N}{\beta S}+\frac{28N}{(1-q)S}\right)^{-1}, ηlKL≤β(1−q)236e2N(189(1−q)2+306β2)\eta_{l}KL\leq\sqrt{\frac{\beta(1-q)^{2}}{36e^{2}N(189(1-q)^{2}+306\beta^{2})}},

where Δ≜f(x0)−min⁡f(x)\Delta\triangleq f(x^{0})-\min f(x).

Adding \eqrefeqn:vhidhfsvcx×8γNβS+\eqrefeqn:vidfnvsdd×13γN(1−q)S\eqref{eqn:vhidhfsv cx}\times\frac{8\gamma N}{\beta S}+\eqref{eqn:vidfnvsdd}\times\frac{13\gamma N}{(1-q)S} to (107), we have

Using q,β∈q,\beta\in and 1≤S≤N1\leq S\leq N to simplify coefficients, we obtain

Now adding \eqrefeqn:vidnvdcxvc×66γ(1S+2βN(1−q)2S)\eqref{eqn:vidnvdcxvc}\times 66\gamma(\frac{1}{S}+\frac{2\beta N}{(1-q)^{2}S}) to (199) and defining the Lyapunov function (x−1:=x0x^{-1}:=x^{0})

Using q,β∈q,\beta\in and 1≤S≤N1\leq S\leq N to simplify coefficients, we obtain

Using 9e2K2ηl2L2(180+303β2(1−q)2)≤β4N9e^{2}K^{2}\eta_{l}^{2}L^{2}\left(180+\frac{303\beta^{2}}{(1-q)^{2}}\right)\leq\frac{\beta}{4N} and Lemma 12, we have

Due to the choice of γ=ηgηlK\gamma=\eta_{g}\eta_{l}K, it holds that

Averaging (215) over kk and noting ∥x0−x−1∥2=0\|x^{0}-x^{-1}\|^{2}=0, we obtain

Note that, by the definition of Ψt\Psi^{t}, it holds that

where we use the choice of γ\gamma and the initialization of {vi0}i∈[N]\{v_{i}^{0}\}_{i\in[N]}, {ci0}i∈[N]\{c_{i}^{0}\}_{i\in[N]}, and c0c^{0} in the second inequality. Due to the choice of BB, we have

Plugging the choice of β\beta, we complete the proof.