Next Article in Journal
Performance Evaluation of Open-Source Serverless Platforms for Kubernetes
Next Article in Special Issue
Federated Optimization of 0-norm Regularized Sparse Learning
Previous Article in Journal
Generating Higher-Fidelity Synthetic Datasets with Privacy Guarantees
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ZenoPS: A Distributed Learning System Integrating Communication Efficiency and Security

Department of Computer Science, University of Illinois Urbana-Champaign, Urbana, IL 61801, USA
*
Author to whom correspondence should be addressed.
Algorithms 2022, 15(7), 233; https://doi.org/10.3390/a15070233
Submission received: 24 May 2022 / Revised: 24 June 2022 / Accepted: 29 June 2022 / Published: 1 July 2022
(This article belongs to the Special Issue Gradient Methods for Optimization)

Abstract

:
Distributed machine learning is primarily motivated by the promise of increased computation power for accelerating training and mitigating privacy concerns. Unlike machine learning on a single device, distributed machine learning requires collaboration and communication among the devices. This creates several new challenges: (1) the heavy communication overhead can be a bottleneck that slows down the training, and (2) the unreliable communication and weaker control over the remote entities make the distributed system vulnerable to systematic failures and malicious attacks. This paper presents a variant of stochastic gradient descent (SGD) with improved communication efficiency and security in distributed environments. Our contributions include (1) a new technique called error reset to adapt both infrequent synchronization and message compression for communication reduction in both synchronous and asynchronous training, (2) new score-based approaches for validating the updates, and (3) integration with both error reset and score-based validation. The proposed system provides communication reduction, both synchronous and asynchronous training, Byzantine tolerance, and local privacy preservation. We evaluate our techniques both theoretically and empirically.

1. Introduction

Recent years have witnessed the increasing attention to distributed machine learning algorithms [1,2,3,4]. The motivation to train machine-learning models in a distributed manner arises from the rapid growth of the sizes of machine-learning models and datasets, the increase in the diversity of the datasets, and the privacy concerns of centralized training alternatives. On one hand, we can use multiple GPU devices to accelerate the training with more computation power. On the other hand, training machine-learning models on the local private data on the massive edge devices makes the models more informative and representative. However, in both cases, the communication overhead between the devices is the potential bottleneck of the performance. To make things worse, larger learning systems with more devices are also more vulnerable to software/hardware failures, as well as malicious (Byzantine) attacks.
In practice, different scenarios require different solutions. For example, when conducting training tasks in a traditional datacenter, we do not require too much reduction of the communication overhead, or too much asynchrony, since the communication is relatively fast. In such a scenario, the requirement of privacy preservation and Byzantine tolerance is lower. However, when there are remote devices that are geographically far away from each other, the system should still work well with more limited communication. Additionally, the system should also support an asynchronous mode, in case there are stragglers. Furthermore, for edge devices, the system has to prepare for unreliable or malicious entities and provide guarantees in preserving privacy for users of remote devices (e.g., local differential privacy in sending messages to the central servers). The upshot of this is that any system must be flexible enough in order to fulfill the requirements of different scenarios.
Besides the system-level concerns, a machine-learning system also needs to guarantee the performance of model training. However, there are always trade-offs. Reducing the communication overhead usually causes performance regression due to the inaccuracy in training. Robustness or fault tolerance also causes additional noise in training. It is essential to develop algorithms that satisfy the system requirements while guarantee training performance by providing theoretical analysis to show the trade-offs.
An efficient, secure, and privacy-preserving distributed learning system benefits a wide range of real-world applications. For example, communication compression can reduce the time cost by training [5,6] for large-scale deep-learning models such as BERT [7] and GPT-2 [8]. Federated learning [9] (FL) is another application that potentially benefits from our proposed distributed learning system. FL is designed to train machine-learning models on a collection of remote agents with their local private datasets, where the communication is extremely slow or unreliable, thus requiring compression [10] and protection [11]. For example, next-word prediction is a widely used feature on virtual keyboards for touchscreen mobile devices, which is commonly supported by FL due to the privacy concerns. However, the mobile devices are not always connected to high-speed and free WiFi. To make things worse, nefarious users can easily feed poisoned data with abnormal behaviors to attack the learning system. In that case, a distributed learning system that integrates both communication efficiency and security is very useful. Industrial machine-learning applications such as the ML-embedded energy sector [12,13] can also use distributed learning systems to train a global model on the data placed on multiple sites that are remote to each other, without transmitting the local training data, which are potentially confidential. In such cases, the communication efficiency and robustness are substantial due to the slow and unreliable networking of the remote sites located in suburban or even offshore areas [14]. However, combining communication efficiency, security, and privacy preservation is challenging in both theory and practice.
In this paper, we study distributed stochastic gradient descent (SGD) and its variants, which are commonly used for training large-scale deep neural networks. We present a distributed learning system that trains machine-learning models with variants of distributed SGD, which integrates several techniques in (1) communication reduction, (2) asynchronous training, and (3) tolerance to Byzantine faults.
In contrast to previous works that focus on one of the aspects in communication reduction [15], asynchronous training [16], and Byzantine tolerance [17,18,19], this paper presents a distributed learning system, ZenoPS, with the following characteristics:
  • Communication efficiency and security in a single system: In contrast to the previous works that focus on either communication efficiency or security in distributed SGD, this paper presents algorithms that achieve communication reduction with both message compression and infrequent synchronization, asynchronous training, and Byzantine tolerance, simultaneously.
  • Detached validation from the servers: In this paper, we present a new system architecture with an additional component called the Validator, which decouples the Byzantine tolerance from the server side. By doing so, the servers can focus on maintaining the global model parameters, which requires less computation resources, while the validators, which are more computation-intensive, are tasked with defending the servers by verifying the anonymous updates.
  • Local differential privacy: In this paper, we propose to randomly insert Byzantine failures on the workers intentionally to produce noisy updates for the protection of the private local data on the workers. Combined with the validators, the system achieves both local differential privacy with limited regression in training convergence and accuracy.
The contributions of this paper are as follows:
  • We present a distributed learning system, ZenoPS, that integrates the techniques of communication compression, different synchronization modes, and Byzantine tolerance.
  • We present a novel system design with implementation details of ZenoPS.
  • We establish the theoretical guarantees for the convergence, Byzantine tolerance, and local differential privacy of the proposed system.
  • We show that the integrated system can achieve both communication efficiency and security in the experiments.
The rest of this paper is organized as follows. In Section 2, we briefly discuss the previous research related to our work. Section 3 formalizes the distributed optimization problem solved in this paper, with the detailed definition of the parameter-server architecture, Byzantine failures in distributed SGD, and local differential privacy. In Section 4, we present the algorithm and the system design of ZenoPS. The theoretical analysis of the convergence, Byzantine tolerance, and privacy preservation can be found in Section 5, with detailed proofs in Appendix A. We present the empirical results in Section 6. Finally, we conclude the paper in Section 7.

2. Related Work

This paper leverages previous works providing communication reduction with error reset [15], asynchronous federated optimization [16], and Byzantine tolerance [17,18,19,20,21]. The authors of [15] presented a technique called error reset, which adapts arbitrary compressors to distributed SGD and corrects for local residual errors, but the proposed algorithm and the corresponding theoretical analysis are limited to the classic synchronous SGD rather than the federated optimization. The authors of [16] presented a combination of asynchronous training and federated optimization or local SGD, but it lacked guarantees in security and privacy. For the security, we focus on the Byzantine failures [22] in this paper. The authors of [17,20,21] presented Byzantine-tolerant SGD algorithms based on robust statistics such as the trimmed mean. However, it is argued in [18] that these previous approaches are not specially designed for gradient descent algorithms, which results in the potential vulnerability to several specific types of attacks. To resolve the potential issues of the previous approaches based on robust statistics, the authors of [19] presented score-based approaches, which validated the updates with a standalone validation dataset, but they used a definition of Byzantine tolerance similar to that in [21]. There are also other approaches to Byzantine-tolerant SGD. For example, DRACO [23] uses redundant workers as pivots to distinguish Byzantine workers, which provides strong guarantees for Byzantine tolerance, at the cost of additional computation resources for the redundant workers. To make things worse, adding redundant workers is infeasible in federated learning scenarios. While there are many different kinds of differential privacy (DP) [24,25,26,27,28,29,30,31,32,33,34,35], we focus on local differential privacy when releasing the individual updates from the workers to the servers, which is more important in the federated learning scenarios.

3. Preliminaries

In this paper, we focus on distributed SGD with a parameter aerver (PS) architecture, and unreliable workers. In this section, we formally introduce the optimization problem, distributed SGD, PS architecture, and the threat model of Byzantine failures.

3.1. Notations

First, in Table 1, we define some important notations and terminologies that are used throughout this paper.

3.2. Problem Formulation

We consider the following optimization problem with n workers:
min x d F ( x ) ,
where F ( x ) = 1 n i [ n ] F i ( x ) = 1 n i [ n ] 𝔼 z i D i f ( x ; z i ) , i [ n ] , x d are the set of model parameters, and z i is a mini-batch of data sampled from the local data D i on the ith device. Each device can be a GPU, a machine with multiple GPUs, or an edge device such as a smart phone, depending on the scenario and application.

3.3. Distributed SGD

In this paper, we use distributed SGD to solve the optimization problem (1). In each iteration, a random mini-batch of data z i is sampled from the training dataset of any worker i, which is used to compute the local stochastic gradient g i . We then rescale g i with the learning rate η and update the model parameters x.
There are typically two strategies to execute distributed training with SGD: synchronous and asynchronous. In synchronous training, the combination of the updates aggregated from all workers are applied to the global model parameters in every step. In contrast, for asynchronous training, the global model parameters are immediately updated by any single worker without waiting for the other workers [36,37,38]. Typically, synchronous training is more stable with less noise, but it is also slower due to the global barrier across all workers. Asynchronous training is faster, but any asynchronous training technique needs to address instability and noisiness due to staleness.
The detailed distributed synchronous SGD algorithm is shown in Algorithm 1. In each iteration, every worker computes the stochastic gradient on a random mini-batch of data and then takes the average over the gradients from all workers. The averaged gradient is used to update the global model parameters in the same way as vanilla SGD. The global averaging incurs communication overhead.
Algorithm 1 Distributed synchronous stochastic gradient descent (DS-SGD).
1:
Initialize x 0 d
2:
for all iteration t [ T ] do
3:
for all workers i [ n ] in parallel do
4:
   g i , t f ( x t 1 ; z i , t )
5:
end for
6:
 Synchronization: g ¯ t 1 n j [ n ] g j , t
7:
x t x t 1 η g ¯ t
8:
end for
The detailed distributed asynchronous SGD algorithm is shown in Algorithm 2. In each iteration, the global model parameters are updated by the stochastic gradient from an arbitrary worker. Note that such a stochastic gradient is based on the model parameters from any previous iteration instead of the last iteration. There is a central node that maintains the latest version of the global model parameters. Pushing the stochastic gradient from any worker to the central node and pulling the model parameters from the central node to any worker incur communication overhead.
In brief, if the same number of stochastic gradients are applied to the global model parameters, then synchronous SGD and asynchronous SGD have the same communication overhead. The main difference is that the global updates are blocked until all gradients are collected for synchronous training, while for asynchronous training, the global updates are executed whenever the stochastic gradients arrive. Furthermore, since the stochastic gradients are potentially based on the model parameters previous to the latest version, such staleness incurs additional noise to the convergence.
Algorithm 2 Distributed asynchronous stochastic gradient descent (DA-SGD).
1:
Initialize x 0 d
2:
for all iteration t [ T ] do
3:
 arbitrary worker i [ n ] :
4:
g t f ( x t ; z i , t ) , t < t
5:
x t x t 1 η g t
6:
end for

3.4. Parameter-Server Architecture

For distributed SGD, there are various strategies and infrastructures that support the communication and synchronization between the workers. In this research, we focus on the parameter-server (PS) architecture [39,40,41,42,43], which is one of the most popular strategies to enable distributed training.
The system is composed of the server nodes and the worker nodes, as illustrated in Figure 1. Typically, the training data and the major workload of computation are distributed onto the worker nodes. For cloud computing, the worker nodes are placed on the cloud, where more worker nodes accelerate the training. For edge computing, the worker nodes are placed on the edge devices, where more worker nodes bring more training data. The server nodes, located on the cloud, are used for synchronization among the worker nodes. In summary, the workers conduct computation on their local data, and the resulting updates are then merged by the server. Such merge/synchronization operations cause the communication overhead. Different algorithms send different types of updates to the server, e.g., gradients or updated model parameters. Thus, the same PS architecture could be used in different algorithms and scenarios.

3.5. Byzantine Failures

Byzantine failure, first introduced in [22], is a well-studied problem in the field of distributed systems. In general, Byzantine failures assume a threat model where the failed agents behave arbitrarily in a traditional distributed system. Such a threat model assumes the worse cases of failures and attacks in the distributed systems.
Many failures and attacks can be viewed as special cases of Byzantine failures. For example, the authors of [44] describe the vulnerability to bit-flipping attacks in the wireless transmission technology, where the servers can receive data via such vulnerable communication media, even if the messages are encrypted. As a result, an arbitrary fraction of the received values are corrupted. Furthermore, federated learning can be vulnerable to data poisoning attacks, where the users feed compromised or fabricated data such as fake reviews [45] to the learning systems. A recent work [46] argues that data poisoning attacks are equivalent to Byzantine failures under certain assumptions.
The authors of [47] introduced Byzantine failures to distributed synchronous SGD, with some modifications to make the threat model fit the machine-learning scenario, in which the Byzantine failures only happen on the worker nodes. In summary, workers with Byzantine failures send arbitrary messages to other processes. We define the threat model as follows.
Definition 1
(Threat Model). Additional to the n honest workers, there are q Byzantine workers that send out arbitrary messages during communication. Furthermore, we assume that the workers are anonymous to the other processes.
The existence of Byzantine workers prevents the distributed SGD from converging or decreasing the loss value on the training data. We formally define the Byzantine failures for synchronous training and asynchronous training as follows.
Definition 2
(Threat model for synchronous SGD). We assume that there are n honest workers and q Byzantine workers. When the server receives a gradient estimator g ˜ i , t from the ith worker in the t t h iteration, it is either correct or Byzantine. If sent by a Byzantine worker, g ˜ i , t is assigned arbitrary values. If sent by an honest worker, the correct gradient is f ( x t 1 ; z i , t ) , i [ n ] , t [ T ] . Thus, we have
g ˜ i , t = a r b i t r a r y   v a l u e , i f   w o r k e r   i   i s   B y z a n t i n e ,   i . e . ,   i [ n + 1 , n + q ] , g i , t = f ( x t 1 ; z i , t D i ) , o t h e r w i s e ,   i . e . ,   i [ n ] .
Definition 3
(Threat model for asynchronous SGD). We assume that there are n honest workers and q Byzantine workers. When the server receives a gradient estimator g ˜ t from the ith worker in the t t h iteration, it is either correct or Byzantine. If sent by a Byzantine worker, g ˜ t is assigned arbitrary values. If sent by an honest worker, the correct gradient is f ( x t ; z i , t ) , i [ n ] , t t 1 . Thus, we have
g ˜ t = a r b i t r a r y   v a l u e , i f   w o r k e r   i   i s   B y z a n t i n e ,   i . e . ,   i [ n + 1 , n + q ] , g t = f ( x t ; z i , t D i , t t 1 ) , o t h e r w i s e ,   i . e . ,   i [ n ] .
Based on the definition of Byzantine failures above, we formally define the general Byzantine tolerance for both synchronous and asynchronous SGD in the IID settings.
Definition 4
(SGD Byzantine Tolerance). Without a loss of generality, suppose that, in any iteration t on the server, the global model parameters are updated by x t = x t 1 η u t , where u t is the update vector (gradient estimator) produced by different approaches. An algorithm is said to be SGD-Byzantine-tolerant if the following condition is satisfied where there are Byzantine workers in the IID settings:
t T , s . t . F ( x t ) , 𝔼 u t 0 ,
where T = { t 1 } for synchronous training, and T = { t : t t 1 } for asynchronous training.
In brief, an SGD-Byzantine-tolerant algorithm must have a positive inner product with the correct gradient. Note that SGD-Byzantine tolerance is a necessary condition of SGD convergence under Byzantine attacks. To guarantee the convergence sufficiently, other conditions such as smoothness, bounded variance, and 2 -norm of gradients, as well as sufficiently small learning rates are required, as we have shown in Section 5.3.

3.6. Design Objectives

The goal of this research is to design an integrated system resolving the critical problems in distributed machine learning: heavy communication overhead, system security, and client privacy. To be more specific, we solve the distributed optimization problem defined in (1) based on the parameter server architecture with the following additional features.
  • Communication reduction: Optionally, the workers can reduce the communication overhead via both infrequent synchronization and message compression. To be more specific, every worker sends updates to the central server after every H local iterations, and compresses the update with the error reset technique and an arbitrary compressor 𝒞 that satisfies δ -approximation: 𝒞 ( v ) v 2 ( 1 δ ) v 2 , v d , where v is the message vector sent to the server.
  • Synchronization mode: The system supports both synchronous and asynchronous training.
  • Byzantine tolerance: The system supports Byzantine tolerance on the server side, with multiple choices of defense methods, including a coordinate-wise trimmed mean and score-based validation approaches.
  • Local differential privacy: We show the theoretical guarantees that the local differential privacy of releasing updates from the workers to the servers can be achieved by randomly replacing the correct values with arbitrary (Byzantine) values. To be more specific, we use the following definition for local differential privacy (LDP).
Definition 5
( ξ -LDP [48]). Given the domain 𝒟 of the datasets and a query function q u e r y : 𝒟 d , a mechanism with domain d is ξ-LDP if, for any 𝒮 R a n g e ( ) and two arbitrary datasets D 1 , D 2 𝒟 ,
Pr q u e r y ( D 1 ) 𝒮 exp ( ξ ) Pr q u e r y ( D 2 ) 𝒮 .
In the case of distributed SGD, the queries are the gradients or updates released by the workers. Note here that the result does not refer to differential privacy of the full training pipeline, but only to differential privacy of a single step with the following threat model: We assume that the attackers are the curious servers, from which we want to protect the workers and of which we want to avoid the servers recovering the private updates from individual workers. There are various mechanisms or protocols that achieve LDP [49,50,51,52,53,54,55,56]. Furthermore, some LDP mechanisms can also provide ξ -DP guarantees [48,57] for the full training process, at the expense of increased ξ for LDP.

4. Methodology

In this section, we present ZenoPS, which is a distributed learning system based on the PS architecture. Our implementation is based on the cutting-edge PS implementation called BytePS [42,43]. In the ZenoPS architecture, the processes are categorized into three roles: servers, workers, and validators. Note that, compared to the original PS architecture, ZenoPS has an additional role of nodes: validators, which read the update cached on the servers and filter out the potentially malicious ones. The responsibilities of the three roles are described as follows:
  • Server: The server nodes maintain the global model parameters. ZenoPS also supports multiple server nodes, where the model parameters are partitioned into several blocks and are uniquely assigned to different server nodes via some hash functions. The servers communicate to both the workers and the validators. On one hand, the servers send the latest model parameters to the workers on request and cache the updates sent from the workers. On the other hand, the servers send the cached updates to the validators and collect the verified updates from the validators. Once verified, the updates are supposed to be benign and safe for the servers to update the global model parameters. In the synchronous mode, the servers will wait for all validators to respond, take the average of the verified updates from all validators, and then apply the averaged updates to the global model parameters. In the asynchronous mode, the servers update the global model parameters whenever a verified update arrives.
  • Worker: The worker nodes take the main workload of computation in the ZenoPS system. Periodically, the workers pull the latest model parameters from the servers, run SGD locally for H steps to update the local models, and then send the accumulated updates to the server. Optionally, the workers can compress the updates sent to the servers and use error reset for biased compressors. Optionally, the workers can randomly replace the updates sent to the servers with arbitrary noise, which helps provide privacy preservation. We show that the adverse effects of adding noise are managed by the robust aggregation.
  • Validator: The validators are used for filtering out the potentially malicious updates. Any update sent from the workers will be cached and rallied to a validator. The users of ZenoPS can choose various algorithms for validation. In the synchronous mode, the validators can use the coordinate-wise trimmed mean, Phocas [17], or score-based approaches such as Zeno [19], or they can simply take the average. In the asynchronous mode, the validators have two options: score-based approaches or no validation at all (approving any received updates). Future robust training approaches can be implemented using the same framework. Typically, we assume fast communication between the servers and validators. A reasonable configuration is to co-locate the servers and the validators. For example, when using the score-based approaches, a validator node should have the computation power similar to a worker node. In that case, we could put the server node and the validator node in the same machine, where the server is assigned to the CPU, and the validator is assigned to the GPU.
The detailed algorithm is shown in Algorithm 3, where we only use the score-based validation approach defined in Definition 6 for Byzantine tolerance.
The workers pull the model parameters from the servers and add the local residual errors to the pulled model. After H steps of local updates, the workers obtain the accumulated local update, which is the difference between the current version of local models and the previously pulled models. The workers will then compress the local updates, update the local residual errors, and send the compressed updates to the servers. To protect privacy, the workers can randomly replace the messages with arbitrary values, which inserts some noise in the released data, in order to achieve differential privacy.
The servers simply relay all updates sent from the workers to the validators and respond to any pulling request from the workers and the validators. In the synchronous mode, the servers will wait until the approved updates are received from all validators. In the asynchronous mode, the servers will update the global model parameters whenever an approved update is received from any validator. Note that the validators can send vectors of all 0 values to the server, as a notification that an update fails the validation. The servers will not move on to the next iteration until a non-zero approved update is received.
The validator uses the criterion defined in Definition 6 to validate the candidate updates sent from the servers. If a candidate update passes the validation procedure, it will be sent to the servers; otherwise the validator will send a vector of all 0 values to the server. Periodically, the validators will pull the model parameters from the servers and update the validator vector. Note that, in the synchronous mode, the validators always pull the latest version of the global model; in the asynchronous mode, the pulled model can have some delay.
Algorithm 3 ZenoPS with score-based validation.
1:
Server
2:
Initialize x 0 d
3:
for all server step t [ T ] do
4:
u t 0
5:
while u t = 0 do
6:
     Send x t 1 to workers on request
7:
     Receive updates { u ˜ i : i [ n + q ] } from workers, and relay to validators
8:
     if Synchronous then
9:
       u t 1 n v i [ n v ] u i , after all validators respond
10:
   else
11:
     u t u i , after receiving u i : i [ n v ] from a validator
12:
   end if
13:
   Update the parameters x t x t 1 + α u t
14:
   end while
15:
end for
1:
Worker (honest) i = 1 , , n
2:
Initialize e i 0
3:
while until terminated do
4:
    Receive x t from the server, and initialize x i , t , 0 x t + e i
5:
    for all local iteration h [ H ] do
6:
         x i , t , h x i , t , h 1 η f ( x i , t , h 1 ; z i 𝒟 i )
7:
    end for
8:
    Compute the accumulated update u i x i , t , H x t
9:
    Compress u i 𝒞 ( u i ) , and update the local residual error e i u i u i
10:
    Replace u i by arbitrary value with probability p b y z (optional)
11:
    Send u i to the server
12:
end while
1:
Validator j = 1 , , n v
2:
Initialize c o u n t e r = 1
3:
while until terminated do
4:
    if  mod ( c o u n t e r , n / n v ) = 1  then
5:
         Pull x t from server, update for H SGD steps, and obtain x t , H
6:
         Update the validation vector v t = x t , H x t
7:
    end if
8:
     c o u n t e r c o u n t e r + 1
9:
    Wait until any update u ˜ arrives
10:
    u u ˜ if the validation defined in Definition 6 is passed, else u 0
11:
   Send u to the server
12:
end while
To make the system design and the relationship between the three groups of nodes clearer, we illustrate the ZenoPS architecture in Figure 2.
In the remainder of this section, we present more details of the optional features provided by ZenoPS.

4.1. Communication Reduction

When sending updates to the servers, the workers can choose to compress the message using an arbitrary compressor 𝒞 and use the technique of error reset to handle the residual error of the compression. In the algorithm, we compress the locally accumulated update u i and maintain the local residual error e i of worker i, in Line 9 in Algorithm 3 (in the worker process). The local residual error will then be applied to the model parameters pulled from the servers in the next time. Similar to CSER in [15], we assume δ -approximate compressors: 𝒞 ( v ) v 2 ( 1 δ ) v 2 , v d , where δ [ 0 , 1 ] . The choice of the expected compression ratio δ depends on the sensitivity of the deep neural network and the networking environment. When the number of workers increases, the network tends to become congested and requires a larger compression ratio to maintain the efficiency of training. However, larger compression ratios usually incur larger noise. Thus, case-by-case hyperparameter tuning is typically required to find the optimal trade-offs.

4.2. Synchronization Modes

Besides the synchronous mode, ZenoPS also provides the asynchronous mode, where the workers and validators can check in and send updates to the server at any time. The servers launch multiple threads to handle the pushing and pulling request sent by the workers and validators. In the synchronous mode, any pulling request from the workers or the validators will be blocked until the global model parameters are updated. In the asynchronous mode, the servers respond to the pulling requests immediately without any barrier.
If the workers have almost identical computation power and networking environments, the synchronous mode is recommended, which is more efficient and stable. However, there are also cases where the workers have heterogeneous capabilities and communication speeds, especially in the federated learning scenario. The heterogeneity results in stragglers in the system, which then causes noisy or slow updates sent to the servers. In that case, the asynchronous mode is recommended for efficiency. The noise caused by the stragglers can be mitigated by tuning the mixing hyperparameter α and using the validators to automatically filter out the extremely outdated updates.

4.3. Byzantine Tolerance

In ZenoPS, we use the following score-based approach for Byzantine tolerance.
Definition 6
(ZenoPS validation). Assume that, in the tth iteration, based on the model parameters x t (with latency) on the server, where t t 1 ( t = t 1 in the synchronous mode), the validator locally updates the model parameters for H steps using the validation data and obtains the accumulated update for validation: v = η h H f ( x t , h 1 ; z t , h 𝒟 r ) , where x t , h = x t , h 1 η f ( x t , h 1 ; z t , h 𝒟 r ) , and x t , 0 = x t . An update u from any worker will be approved and sent back to the server for updating the global model parameters if the following two conditions are satisfied:
u , v ρ v 2 + ϵ , u 2 ( 1 + γ ) v 2 a l t e r n a t i v e :   c l i p   u   t o   t h e   m a x i m u m   n o r m ( 1 + γ ) v 2 ,
where ρ , γ > 0 are some hyperparameters for the thresholds.
The above validation mechanism allows both the candidate update and the validation vector to be the accumulation of multiple steps of SGD updates. Thus, such a validation mechanism can be used for distributed SGD with infrequent synchronization, such as federated optimization or local SGD.

4.4. Byzantine Mechanism and Privacy Preservation

In our implementation, we add a simulator on the worker side to simulate Byzantine failures and send malicious values to the servers. It turns out that such a simulator can also be used to generate random noises for privacy preservation. On the server side, the random noises will then be treated as values from Byzantine workers. Formally, we introduce the Byzantine mechanism as follows.
Definition 7.
In the Byzantine mechanism denoted as b y z , the ith worker sends the vector
v ˜ i = b y z ( v i ) = v i w i t h   p r o b a b i l i t y   1 p b y z ; n o i s e 𝒟 n o i s e o t h e r w i s e ,
where v i is the correct vector. In other words, with probability p b y z , the worker sends the value n o i s e , which is randomly drawn from the distribution 𝒟 n o i s e instead of the correct value v i , to the server.

5. Theoretical Analysis

In this section, we show the theoretical guarantees of ZenoPS using the score-based approach in the validators. We theoretically analyze the Byzantine tolerance, the convergence, and the differential privacy of the proposed system. The detailed proofs of the theorems are in Appendix A.

5.1. Assumptions

Assumption 1
(Smoothness). F ( x ) and F i ( x ) , i [ n ] are L-smooth:
F ( y ) F ( x ) F ( x ) , y x + L 2 y x 2 , x , y ,
and
F i ( y ) F i ( x ) F i ( x ) , y x + L 2 y x 2 , x , y .
Assumption 2
(Variance). For any stochastic gradient g i = f ( x ; z i ) , z i D i , we assume bounded intra-worker variance: 𝔼 [ g i F i ( x ) 2 ] V 1 = σ 2 s , x d , where σ 2 is the variance of the gradient of a single data sample, and s is the mini-batch size per worker.
Assumption 3
(Bounded gradients). For any stochastic gradient f ( x ; z ) , x d , we assume bounded expectation: F ( x ; z ) 2 = 𝔼 [ f ( x ; z ) ] 2 V 1 , i [ n ] , t [ T ] . In some cases, we directly assume the upper bound of the stochastic gradients: f ( x ; z ) 2 V 3 .
Assumption 4
(Global minimum). There is at least one global minimum x * , where F ( x * ) F ( x ) , x .

5.2. Byzantine Tolerance

In the following theorem, we show the Byzantine tolerance of score-based validation approach defined in Definition 6.
Theorem 1
(SGD-Byzantine tolerance of ZenoPS). Assume that the validation data is close to the training data F r ( x ) F ( x ) r , x d where r 0 and F r ( x ) = 𝔼 [ f r ( x ; z 𝒟 r ) ] (the expectation is taken with respect to z), and ϵ is large enough. Under Assumptions 2 and 3 (bounded gradients and variance, which is also applied to the validation gradients), for a verified update u sent from the validators, there is a t t 1 such that we have the positive inner-product:
η h H F ( x t , h 1 ) , 𝔼 [ u ] 0 ,
where x t , h = x t , h 1 η f ( x t , h 1 ; z t , h 𝒟 r ) , and x t , 0 = x t .

5.3. Convergence

Now we prove the convergence of the proposed algorithm in the synchronous mode. For simplicity, we take α = 1 in the synchronous mode.
Theorem 2
(Error bound of ZenoPS in the synchronous mode without compression). In addition to Assumption 1 (smoothness), Assumption 2 (bounded variance), Assumption 3 (bounded gradients), and Assumption 4 (global minimum), we assume that the compressors are disabled and that the validation data is close to the training data F r ( x ) F ( x ) r , x d where r 0 and F r ( x ) = 𝔼 [ f r ( x ; z 𝒟 r ) ] (the expectation is taken with respect to z). Taking ϵ = c H 2 η 2 , we have the following error bound for ZenoPS in the synchronous mode:
t [ T ] 𝔼 F ( x t 1 ) 2 T F ( x 0 ) F ( x * ) T H η ρ + 3 + 3 γ + 4 ρ 2 ρ L H η V 3 + ( 4 + 3 γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ + ( 1 + γ ) V 3 σ ρ s r .
    Taking η = 1 T H , s r T H , we have  
t [ T ] 𝔼 F ( x t 1 ) 2 T O F ( x 0 ) F ( x * ) T H ρ + O H T H ρ + O σ T H ρ + ( 4 + 3 γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ .
The error bound of ZenoPS is composed of four parts: the gap to the initial value [ F ( x 0 ) F ( x * ) ] , the error caused and the infrequent synchronization that is proportional to H, the noise caused by variance σ , and the validation error caused by Byzantine tolerance ( 4 + 3 γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ . A better validation dataset that is closer to the training dataset with a smaller r decreases the validation error. Increasing c and ρ or decreasing γ decreases the validation error, but also potentially decreases the chances that benign updates pass the validation procedure, which can slow down the optimization progress. In short, stronger security guarantees smaller validation error, but also slower convergence.
When the compressors are enabled, there is an additional error term with the approximation factor δ .
Theorem 3
(Error bound of ZenoPS in the synchronous mode with compression). In addition to Assumption 1 (smoothness), Assumption 3 (bounded gradients), and Assumption 4 (global minimum), we assume that the compressors are disabled and the validation data is close to the training data F r ( x ) F ( x ) r , x d where r 0 and F r ( x ) = 𝔼 [ f r ( x ; z 𝒟 r ) ] (the expectation is taken with respect to z). Taking ϵ = c H 2 η 2 and η = 1 T H , we have the following error bound for ZenoPS in the synchronous mode:
t [ T ] 𝔼 F ( x t 1 ) 2 T O F ( x 0 ) F ( x * ) T H ρ + O H T H ρ + O σ T H ρ + ( 4 + 3 γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ + ( 1 δ ) ( 1 + γ ) L H V 3 2 ρ T 1 1 δ 2 .
Finally, we prove the convergence of the proposed algorithm in the asynchronous mode.
Theorem 4
(Error bound of ZenoPS in the asynchronous model with compression). In addition to Assumption 1 (smoothness), Assumption 2 (bounded variance), Assumption 3 (bounded gradients), and Assumption 4 (global minimum), we assume that the validation data is close to the training data F r ( x ) F ( x ) r , x d where r 0 and F r ( x ) = 𝔼 [ f r ( x ; z 𝒟 r ) ] (the expectation is taken with respect to z). Furthermore, we assume that, in any server step t, the approved update is based on the global model parameters in the server step t , where t t 1 has bounded delay t 1 t τ . Taking ϵ = c H 2 η 2 , we have the following error bound for ZenoPS in the asynchronous mode:
t [ T ] 𝔼 F ( x t 1 ) 2 T F ( x 0 ) F ( x * ) T H α η ρ + ( 2 τ + 2 + α ) ( 1 + γ ) + 4 ( τ + 1 ) ρ ρ L H η V 3 + ( 2 + γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ + ( 1 + γ ) V 3 σ ρ s r + ( 1 δ ) ( 1 + γ ) L H V 3 2 ρ T 1 1 δ 2 .
Taking η = 1 T H , s r = T H , we have  
t [ T ] 𝔼 F ( x t 1 ) 2 T F ( x 0 ) F ( x * ) T H α ρ + H T ( 2 τ + 2 + α ) ( 1 + γ ) + 4 ( τ + 1 ) ρ ρ L V 3 + ( 2 + γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ + ( 1 + γ ) V 3 σ ρ T H + ( 1 δ ) ( 1 + γ ) L H V 3 2 ρ T 1 1 δ 2 .

5.4. Local Differential Privacy

Finally, we present the theoretical guarantee of the Byzantine mechanism in local differential privacy. Denote p n o i s e ( z ) as the probability density function of the random variable n o i s e 𝒟 n o i s e . We show that the Byzantine mechanism is LDP in the following theorem.
Theorem 5
(LDP of Byzantine mechanism). Assume that the noise distribution 𝒟 n o i s e has the support [ a , b ] , and p = min z [ a , b ] p n o i s e ( z ) > 0 , where p n o i s e ( · ) is the PDF of the noise distribution 𝒟 n o i s e (e.g., uniform distribution with support [ a , b ] ). The Byzantine mechanism is then ξ-LDP, where
ξ = 1 p b y z p b y z p .
Thus, a larger p b y z makes the mechanism more differentially private, at the cost of replacing more correct values with the random noise as well as a slowdown of the overall optimization progress on the servers.

6. Experiments

In this section, we empirically evaluate the proposed ZenoPS system in various simulated settings. We test the performance of ZenoPS in both the synchronous and asynchronous mode, where the asynchronous experimental setting represents edge computing with flexible workers, and the synchronous experimental setting represents a traditional datacenter. Furthermore, we test the robustness of ZenoPS under various attacks in both synchronous and asynchronous modes.

6.1. Evaluation Setup

We trained ResNet-20 on the CIFAR-10 [58] dataset. The mini-batch size was 32. In this section, our experiments were conducted in real distributed environments with CPU workers. We used η = 0.2 in the synchronous mode and η = 0.1 in the asynchronous mode. In the epochs 100 and 150, the learning rate decayed by 0.1 in the synchronous mode and 0.2 in the asynchronous mode. We used a constant α = 1 in the synchronous mode. In the asynchronous mode, we used an initial value α = 0.4 , which decayed by 0.5 in the epochs 100 and 150.
The communication overhead was reduced by both message compression and infrequent synchronization. We used random block-wise sparsification to compress the communication. Whenever a worker sent an update of a block of parameters to the server, with the probability of 0.2 , it ignored the communication and put the update into the local residual error. Furthermore, the number of local steps H was 8.
For the validators, we set b = 3 for both the trimmed mean and Phocas. We set γ = 0.6 , ρ = 0.001 , ϵ = 0 for Zeno validation in the synchronous mode. In the asynchronous mode, we set γ = 0 (with clipping), ρ = 0.02 , ϵ = 0 for Zeno validation.
We randomly and evenly partitioned the training data into the number of workers plus one parts and assigned the additional part to every validator.
We evaluated ZenoPS in both the synchronous mode and the asynchronous mode. In the synchronous mode, we used Mean, Trimmed mean, Phocas [17], and Zeno (the score-based validation defined in Definition 6) as the validators. In the asynchronous mode, we used FedAsync (no validation) and Zeno as the validators.
In the experiments, we used the following two types of attacks:
  • Sign-flipping attack: The worker multiplies the original updates by ζ , i.e., flips the sign and rescales the updates by ζ . We call this type of attack a “sign-flipping attack rescaled by ζ ”. The same type of attacks have also been used in previous work [20,23].
  • Random attack: The worker uses Gaussian random values with a 0 mean to replace the original values. If we use Gaussian random values with variance ζ , then we call this type of attack a “random attack rescaled to ζ ”. On the other hand, if we use Gaussian random values and rescale the Byzantine vector, so that the 2 norm of the Byzantine vector is ζ times the original one, then we call this type of attack a “random attack rescaled by ζ ”. The same type of attacks have also been used in previous work [47].
We simulated the Byzantine attacks by randomly replacing the vectors sent from the workers to the servers with a probability of 0.2 .

6.2. Empirical Results

The result of ZenoPS in the synchronous mode is shown in Figure 3. We can see that, when there are no Byzantine attacks, all algorithms have similar performance. When there are Byzantine attacks, using a Zeno validator, ZenoPS converged almost as well as using averaging without any attack. However, the trimmed mean had relatively bad results under sign-flipping attacks, and both the trimmed mean and Phocas failed under the random attacks rescaled to 1. In some cases, where the attacks were relatively weak, such as the sign-flipping attacks rescaled by 6 and the random attacks rescaled by 8, Phocas also had good convergence, which is an option that is cheaper than Zeno. However, in general, using Zeno as the validator provided the best performance under all kinds of attacks.
Furthermore, we show that ZenoPS is capable of using multiple servers and validators. Different servers are responsible for different blocks of the model parameters. The updates sent to the servers will be evenly hashed to the validators, so that different validators are assigned a similar workload. Figure 4 shows that, by using multiple validators, ZenoPS has a similar performance compared to the case of using a single validator. Note that the multiple validators send updates to the server independently and asynchronously. Such asynchronicity causes additional noise compared to the case where there is only 1 Zeno validator. Furthermore, without changing the hyperparameter b = 3 for the trimmed mean and Phocas validators, adding more validators results in more potentially harmful updates being dropped. Hence, the trimmed mean and Phocas validators have slightly better results in Figure 4b than those in Figure 3c.
The result of ZenoPS in the asynchronous mode is shown in Figure 5. When there are no Byzantine attacks, using Zeno as the validator provides good convergence similar to FedAsync. Adding Byzantine attacks makes FedAsync performs much worse. Using Zeno as the validator, ZenoPS converges as well as the cases where there are no attacks. We also show the results where two servers and two validators are used in Figure 6.
As shown in Figure 7, we tested the sensitivity to the hyperparameter ρ , with fixed ϵ = 0 . We varied ρ in { 0.1 , 0.01 , 0.001 , 0 , 0.001 , 0.01 , 0.1 } . In most cases, the Zeno validator was insensitive to ρ and converged to the same value. The only exception was the case of ρ = 0.1 , where the threshold was too large and made the convergence extremely slow. Thus, while a grid search needs to be performed for hyperparameter tuning in practice, for ρ we recommend using a negative value close to 0. Although the convergence analysis shows that a larger ρ yields smaller error bounds, it will also decrease the number of approved updates. As shown in Figure 7, when ρ = 0.1 , only 16 % of the updates passed the validation. By decreasing the threshold, the approval rate approached the ideal value of 80 % ( 20 % of the updates are Byzantine). We also show the result of training the model only using the validation data, which is referred to as “validation only.” Note that, in this case, the training was not affected by the attacks. It is shown that, if we only use the validation data, the testing accuracy will be very low. Thus, when using Zeno as the validator, the models learn from the training data. However, if the threshold ρ is too large, the approved updates will be extremely biased to the validation data, which causes the performance to be close to the case of “validation only.” Another interesting observation is that “validation only” has a slightly higher testing accuracy at the very beginning of the training. Thus, the validation dataset is useful for training the model for several epochs as initialization.

7. Conclusions

We propose a prototype of a distributed learning system, ZenoPS, that integrates message compression, infrequent synchronization, both asynchronous and synchronous training, and score-based validation. The proposed system provides communication reduction, asynchronous training, Byzantine tolerance, and local differential privacy, with theoretical guarantees, and was evaluated on an open benchmark.
This work also raises some open problems to be solved in future work. One limitation of ZenoPS is the relatively high computation overhead of the score-based validation algorithm, which gives improved protection from attacks at the cost of consuming more computation resources. How the score-based validation can be more efficient remains to be explored. The learning system could also be made to automatically and adaptively choose the compression ratio and validation methods for different training tasks, to make the system more user-friendly in practice. For theoretical analysis, it will be interesting to establish theories for optimal values of hyperparameters such as ρ in score-based validation, and to study how hyperparameters such as the learning rate η affect the optimal value of ρ .

Author Contributions

Conceptualization, C.X., O.K., and I.G.; methodology, C.X., O.K., and I.G.; software, C.X.; resources, O.K. and I.G.; writing—original draft preparation, C.X.; writing—review and editing, O.K. and I.G.; visualization, C.X.; supervision, O.K. and I.G.; project administration, O.K. and I.G.; funding acquisition, O.K. and I.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by J.P. Morgan 2020 AI Research Ph.D. Fellowship Awards 098804, a 2021 Sloan Fellowship, and a gift from Microsoft. This work was also funded in part by NSF 2046795, 1909577, 1934986, and NIFA award 2020-67021-32799.

Data Availability Statement

This research uses the following publicly archived dataset: the CIFAR-10 [58] dataset, available on the website https://www.cs.toronto.edu/kriz/cifar.html (accessed on 15 February 2021).

Acknowledgments

We would like to thank Intel and Microsoft Azure for granting the computation resources to support this research.

Conflicts of Interest

The funders had no role in the design of the study, in the collection, analyses, or interpretation of data, in the writing of the manuscript, or in the decision to publish the results.

Appendix A. Proofs

Theorem A1
(SGD-Byzantine Tolerance of ZenoPS). Assume that the validation data is close to the training data F r ( x ) F ( x ) r , x R d where r 0 and F r ( x ) = E [ f r ( x ; z D r ) ] (the expectation is taken with respect to z), and ϵ is large enough. Under Assumptions 2 and 3 (bounded gradients and variance, which is also applied to the validation gradients), for a verified update u sent from the validators, there is a t t 1 such that we have the positive inner-product:
η h H F ( x t , h 1 ) , E [ u ] 0 ,
where x t , h = x t , h 1 η f ( x t , h 1 ; z t , h D r ) , and x t , 0 = x t .
Proof. 
Using F r ( x ) F ( x ) r , it is easy to check that F r ( x ) , F ( x ) [ r 2 2 , r 2 2 ] . The algorithm guarantees that there is a t t 1 such that η h H f r ( x t , h 1 ) , u ρ η h H f r ( x t , h 1 ) 2 + ϵ . Taking expectation on both sides with respect to the random data samples and re-arranging the terms, we have
E η h H f r ( x t , h 1 ) , u ρ E η h H f r ( x t , h 1 ) 2 + ϵ ρ η h H F r ( x t , h 1 ) 2 + ϵ ρ η h H [ F r ( x t , h 1 ) F ( x t , h 1 ) + F ( x t , h 1 ) ] 2 + ϵ ρ η h H [ F r ( x t , h 1 ) F ( x t , h 1 ) ] 2 + ρ η h H F ( x t , h 1 ) 2 + 2 ρ η h H [ F r ( x t , h 1 ) F ( x t , h 1 ) ] , η h H F ( x t , h 1 ) + ϵ ρ η h H F ( x t , h 1 ) 2 2 ρ η 2 H 2 r V 3 + ϵ .
On the other hand, we have
E η h H f r ( x t , h 1 ) , u = E η h H f r ( x t , h 1 ) + η h H F r ( x t , h 1 ) η h H F r ( x t , h 1 ) , u = E η h H F r ( x t , h 1 ) , u + E η h H f r ( x t , h 1 ) + η h H F r ( x t , h 1 ) , u η h H F r ( x t , h 1 ) , E [ u ] + η E h H f r ( x t , h 1 ) + h H F r ( x t , h 1 ) × u η h H F r ( x t , h 1 ) , E [ u ] + η 2 H ( 1 + γ ) V 3 h H E f r ( x t , h 1 ) + F r ( x t , h 1 ) η h H F r ( x t , h 1 ) , E [ u ] + η 2 H 2 ( 1 + γ ) V 3 σ s r = 1 2 η h H F r ( x t , h 1 ) 2 + 1 2 E [ u ] 2 1 2 η h H F r ( x t , h 1 ) E [ u ] 2 + η 2 H 2 ( 1 + γ ) V 3 σ s r = 1 2 η h H F r ( x t , h 1 ) 2 + 1 2 E [ u ] 2 1 2 η h H [ F r ( x t , h 1 ) F ( x t , h 1 ) + F ( x t , h 1 ) ] E [ u ] 2 + η 2 H 2 ( 1 + γ ) V 3 σ s r = 1 2 η h H F r ( x t , h 1 ) 2 + 1 2 E [ u ] 2 1 2 η h H [ F r ( x t , h 1 ) F ( x t , h 1 ) + F ( x t , h 1 ) ] E [ u ] 2 + η 2 H 2 ( 1 + γ ) V 3 σ s r η h H F ( x t , h 1 ) , E [ u ] + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r .
Combining these, we have
η h H F ( x t , h 1 ) , E [ u ] ρ η h H F ( x t , h 1 ) 2 + ϵ 2 ρ η 2 H 2 r V 3 η 2 H 2 r 2 2 2 + γ 2 η 2 H 2 r V 3 η 2 H 2 ( 1 + γ ) V 3 σ s r 0 ,
if we take ϵ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r . □
Theorem A2
(Error bound of ZenoPS in the synchronous mode without compression). In addition to Assumption 1 (smoothness), Assumption 2 (bounded variance), Assumption 3 (bounded gradients), and Assumption 4 (global minimum), we assume that the compressors are disabled and the validation data is close to the training data F r ( x ) F ( x ) r , x R d where r 0 and F r ( x ) = E [ f r ( x ; z D r ) ] (the expectation is taken with respect to z). Taking ϵ = c H 2 η 2 , we have the following error bound for ZenoPS in the synchronous mode:
t [ T ] E F ( x t 1 ) 2 T F ( x 0 ) F ( x * ) T H η ρ + 3 + 3 γ + 4 ρ 2 ρ L H η V 3 + ( 4 + 3 γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ + ( 1 + γ ) V 3 σ ρ s r .
Taking η = 1 T H , s r T H , we have
t [ T ] E F ( x t 1 ) 2 T O F ( x 0 ) F ( x * ) T H ρ + O H T H ρ + O σ T H ρ + ( 4 + 3 γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ .
Proof. 
Using smoothness, we have
F ( x t ) F ( x t 1 ) F ( x t 1 ) , u t + L 2 u t 2 F ( x t 1 ) , u t + L ( 1 + γ ) 2 v t 2 F ( x t 1 ) , u t + L ( 1 + γ ) 2 η 2 H 2 V 3 ,
where x t = x t 1 + u t , v t is the validation vector. Taking the expectation on both sides, we have
E [ F ( x t ) F ( x t 1 ) ] F ( x t 1 ) , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 1 H η H η F ( x t 1 ) , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 1 H η H η F ( x t 1 ) E [ v t ] + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 1 H η E [ v t ] , E [ u t ] + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 .
Using the results in the proof of Byzantine tolerance, we have
E [ F ( x t ) F ( x t 1 ) ] 1 H η E [ v t ] , E [ u t ] + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 1 H η ρ η h H F ( x t , h 1 ) 2 + 1 H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 ρ H η η h H F ( x t , h 1 ) 2 + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η ρ H η η h H [ F ( x t , h 1 ) F ( x t 1 ) + F ( x t 1 ) ] 2 + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r ρ H η η h H F ( x t 1 ) 2 + 2 ρ H η η h H [ F ( x t , h 1 ) F ( x t 1 ) ] × η h H F ( x t 1 ) + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r H η ρ F ( x t 1 ) 2 + 2 ρ η V 3 h H [ F ( x t , h 1 ) F ( x t 1 ) ] + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r ,
where t = t 1 .
It is easy to check that
h H [ F ( x t , h 1 ) F ( x t 1 ) ] h H F ( x t , h 1 ) F ( x t 1 ) h H L x t , h 1 x t 1 L H 2 η V 3 .
Thus, we have
E [ F ( x t ) F ( x t 1 ) ] H η ρ F ( x t 1 ) 2 + 2 ρ η V 3 h H [ F ( x t , h 1 ) F ( x t 1 ) ] + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r H η ρ F ( x t 1 ) 2 + 2 ρ L H 2 η 2 V 3 + 1 H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r H η ρ F ( x t 1 ) 2 + 1 H η H η F ( x t 1 ) + E [ v t ] × E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η + 2 ρ L H 2 η 2 V 3 + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r .
To finish the upper bound, we have
H η F ( x t 1 ) + E [ v t ] = h [ H ] η [ F ( x t 1 ) F r ( x t 1 , h 1 ) ] η h [ H ] F ( x t 1 ) F r ( x t 1 , h 1 ) η h [ H ] [ F ( x t 1 ) F ( x t 1 , h 1 ) + r ] η h [ H ] [ L x t 1 x t 1 , h 1 + r ] η h [ H ] [ L H η V 3 + r ] η H [ L H η V 3 + r ] .
On the other hand, we have
E [ u t ] E u t ( 1 + γ ) E v t ( 1 + γ ) H η V 3 .
Thus, we have
E [ F ( x t ) F ( x t 1 ) ] H η ρ F ( x t 1 ) 2 + 1 H η H η F ( x t 1 ) + E [ v t ] × E [ u t ] + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η + 2 ρ L H 2 η 2 V 3 + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r H η ρ F ( x t 1 ) 2 + ( 1 + γ ) L H 2 η 2 V 3 + ( 1 + γ ) H η r V 3 + L ( 1 + γ ) 2 η 2 H 2 V 3 + 2 ρ η H r V 3 ϵ H η + 2 ρ L H 2 η 2 V 3 + η H r 2 2 + 2 + γ 2 η H r V 3 + η H ( 1 + γ ) V 3 σ s r .
By re-arranging the terms, telescoping, and taking the total expectation, we have
t [ T ] E F ( x t 1 ) 2 T E [ F ( x 0 ) F ( x T ) ] T H η ρ + 3 + 3 γ + 4 ρ 2 ρ L H η V 3 + 4 + 3 γ + 4 ρ 2 ρ r V 3 + r 2 2 ρ ϵ H 2 η 2 ρ + ( 1 + γ ) V 3 σ ρ s r ,
which concludes the proof. □
Theorem A3
(Error bound of ZenoPS in the synchronous mode with compression). In addition to Assumption 1 (smoothness), Assumption 3 (bounded gradients), and Assumption 4 (global minimum), we assume that the compressors are disabled and the validation data is close to the training data F r ( x ) F ( x ) r , x R d where r 0 and F r ( x ) = E [ f r ( x ; z D r ) ] (the expectation is taken with respect to z). Taking ϵ = c H 2 η 2 and η = 1 T H , we have the following error bound for ZenoPS in the synchronous mode:
t [ T ] E F ( x t 1 ) 2 T O F ( x 0 ) F ( x * ) T H ρ + O H T H ρ + O σ T H ρ + ( 4 + 3 γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ + ( 1 δ ) ( 1 + γ ) L H V 3 2 ρ T 1 1 δ 2 .
Proof. 
We only need to add the additional error caused by e i , t to the previous error bound. We already have e i , 0 = 0 . For any t 1 , we can bound the local error:
E e i , t 2 = ( 1 δ ) E e i , t 1 η h [ H ] g i , t 1 , h 1 2 ( 1 δ ) ( 1 + a ) E e i , t 1 2 + ( 1 δ ) ( 1 + 1 / a ) E η h [ H ] g i , t 1 , h 1 2 ( 1 δ ) ( 1 + a ) E e i , t 1 2 + ( 1 δ ) η 2 ( 1 + 1 / a ) E h [ H ] g i , t 1 , h 1 2 ( 1 δ ) ( 1 + a ) E e i , t 1 2 + ( 1 δ ) H 2 η 2 ( 1 + 1 / a ) V 3 ( 1 + 1 / a ) ( 1 δ ) H 2 η 2 V 3 t = 0 + ( 1 + a ) ( 1 δ ) t 1 + 1 / a 1 ( 1 + a ) ( 1 δ ) ( 1 δ ) H 2 η 2 V 3 ,
for any a > 0 , such that ( 1 + a ) ( 1 δ 1 ) ( 0 , 1 ) . The bound above is minimized when we take a = 1 1 δ 1 , which results in
E e i , t 2 ( 1 δ ) H 2 η 2 V 3 1 1 δ 2 .
Theorem A4
(Error bound of ZenoPS in the asynchronous model with compression). In addition to Assumption 1 (smoothness), Assumption 2 (bounded variance), Assumption 3 (bounded gradients), and Assumption 4 (global minimum), we assume that the validation data is close to the training data F r ( x ) F ( x ) r , x R d where r 0 and F r ( x ) = E [ f r ( x ; z D r ) ] (the expectation is taken with respect to z). Furthermore, we assume that, in any server step t, the approved update is based on the global model parameters in the server step t , where t t 1 has bounded delay t 1 t τ . Taking ϵ = c H 2 η 2 , we have the following error bound for ZenoPS in the asynchronous mode:
t [ T ] E F ( x t 1 ) 2 T F ( x 0 ) F ( x * ) T H α η ρ + ( 2 τ + 2 + α ) ( 1 + γ ) + 4 ( τ + 1 ) ρ ρ L H η V 3 + ( 2 + γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ + ( 1 + γ ) V 3 σ ρ s r + ( 1 δ ) ( 1 + γ ) L H V 3 2 ρ T 1 1 δ 2 .
Taking η = 1 T H , s r T H , we have
t [ T ] E F ( x t 1 ) 2 T F ( x 0 ) F ( x * ) T H α ρ + H T ( 2 τ + 2 + α ) ( 1 + γ ) + 4 ( τ + 1 ) ρ ρ L V 3 + ( 2 + γ + 4 ρ ) r V 3 + r 2 2 c 2 ρ + ( 1 + γ ) V 3 σ ρ T H + ( 1 δ ) ( 1 + γ ) L H V 3 2 ρ T 1 1 δ 2 .
Proof. 
Using smoothness, we have
F ( x t ) F ( x t 1 ) F ( x t 1 ) , α u t + L α 2 2 u t 2 α F ( x t 1 ) , α u t + L α 2 ( 1 + γ ) 2 v t 2 α F ( x t 1 ) , u t + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 ,
where x t = x t 1 + u t , and v t is the validation vector. Taking the expectation on both sides, we have
E [ F ( x t ) F ( x t 1 ) ] α F ( x t 1 ) , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 α H η H η F ( x t 1 ) , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 α H η H η F ( x t 1 ) E [ v t ] + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 α H η E [ v t ] , E [ u t ] + α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 .
Using the results in the proof of Byzantine tolerance, we have
E [ F ( x t ) F ( x t 1 ) ] α H η E [ v t ] , E [ u t ] + α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 α H η ρ η h H F ( x t , h 1 ) 2 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] + α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 α ρ H η η h H F ( x t , h 1 ) 2 + α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] α ρ H η η h H [ F ( x t , h 1 ) F ( x t 1 ) + F ( x t 1 ) ] 2 + α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] α ρ H η η h H F ( x t 1 ) 2 + 2 α ρ H η η h H [ F ( x t , h 1 ) F ( x t 1 ) ] × η h H F ( x t 1 )
+ α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] H α η ρ F ( x t 1 ) 2 + 2 α ρ η V 3 h H [ F ( x t , h 1 ) F ( x t 1 ) ] + α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] ,
where t t 1 .
Using ( t 1 ) t τ , we have
h H [ F ( x t , h 1 ) F ( x t 1 ) ] h H F ( x t , h 1 ) F ( x t 1 ) h H L x t , h 1 x t 1 h H L [ x t , h 1 x t + x t x t 1 ] 2 ( τ + 1 ) L H 2 η V 3 .
Thus, we have
E [ F ( x t ) F ( x t 1 ) ] H α η ρ F ( x t 1 ) 2 + 2 α ρ η V 3 h H [ F ( x t , h 1 ) F ( x t 1 ) ] + α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] H α η ρ F ( x t 1 ) 2 + 4 α ( τ + 1 ) ρ L H 2 η 2 V 3 + α H η H η F ( x t 1 ) + E [ v t ] , E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] H α η ρ F ( x t 1 ) 2 + α H η H η F ( x t 1 ) + E [ v t ] × E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + 4 α ( τ + 1 ) ρ L H 2 η 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] .
To finish the upper bound, we have
H η F ( x t 1 ) + E [ v t ] = h [ H ] η [ F ( x t 1 ) F r ( x t , h 1 ) ] η h [ H ] F ( x t 1 ) F r ( x t , h 1 ) η h [ H ] [ F ( x t 1 ) F ( x t , h 1 ) + r ] η h [ H ] [ L x t 1 x t , h 1 + r ] η h [ H ] [ 2 ( τ + 1 ) L H η V 3 + r ] η H [ 2 ( τ + 1 ) L H η V 3 + r ] .
On the other hand, we have
E [ u t ] E u t ( 1 + γ ) E v t ( 1 + γ ) H η V 3 .
Thus, we have
E [ F ( x t ) F ( x t 1 ) ] H α η ρ F ( x t 1 ) 2 + α H η H η F ( x t 1 ) + E [ v t ] × E [ u t ] + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + 4 α ( τ + 1 ) ρ L H 2 η 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] H α η ρ F ( x t 1 ) 2 + 2 α ( τ + 1 ) ( 1 + γ ) L H 2 η 2 V 3 + α ( 1 + γ ) H η r V 3 + L α 2 ( 1 + γ ) 2 η 2 H 2 V 3 + 4 α ( τ + 1 ) ρ L H 2 η 2 V 3 + α H η [ 2 ρ η 2 H 2 r V 3 + η 2 H 2 r 2 2 + 2 + γ 2 η 2 H 2 r V 3 + η 2 H 2 ( 1 + γ ) V 3 σ s r ϵ ] .
By re-arranging the terms, telescoping, and taking the total expectation, we have
t [ T ] E F ( x t 1 ) 2 T E [ F ( x 0 ) F ( x T ) ] T H α η ρ + ( 2 τ + 2 + α ) ( 1 + γ ) + 4 ( τ + 1 ) ρ ρ L H η V 3 + ( 2 + γ + 4 ρ ) r V 3 + r 2 2 ρ ϵ H 2 η 2 ρ + ( 1 + γ ) V 3 σ ρ s r .
Similar to the synchronous mode, we then add the additional compression error to obtain the final result. □
Theorem A5
(LDP of the Byzantine mechanism). Assume that the noise distribution D n o i s e has the support [ a , b ] , and p = min z [ a , b ] p n o i s e ( z ) > 0 , where p n o i s e ( · ) is the PDF of the noise distribution D n o i s e (e.g., uniform distribution with support [ a , b ] ). The Byzantine mechanism is ξ-LDP, where
ξ = 1 p b y z p b y z p .
Proof. 
Denote q v ( z ) as the probability density function of the output of the Byzantine mechanism, given the input v. For an arbitrary output z R a n g e ( M b y z ) , we have
q v ( z ) = 1 { M b y z ( v ) = z } [ ( 1 p b y z ) 1 { v = z } + p b y z p n o i s e ( z ) ] + 1 { M b y z ( v ) z } p n o i s e ( z ) .
Using 0 1 { v = z } 1 , we have
q v ( z ) 1 { M b y z ( v ) = z } [ ( 1 p b y z ) ( 1 p n o i s e ( z ) ) ] + p n o i s e ( z ) ( 1 p b y z ) ( 1 p n o i s e ( z ) ) + p n o i s e ( z ) ,
and
q v ( z ) 1 { M b y z ( v ) = z } p b y z p n o i s e ( z ) + 1 { M b y z ( v ) z } p n o i s e ( z ) 1 { M b y z ( v ) = z } p b y z p n o i s e ( z ) + 1 { M b y z ( v ) z } p b y z p n o i s e ( z ) p b y z p n o i s e ( z ) .
Thus, for any pair of inputs v , v , we have
q v ( z ) q v ( z ) ( 1 p b y z ) ( 1 p n o i s e ( z ) ) + p n o i s e ( z ) p b y z p n o i s e ( z ) = ( 1 p b y z ) + p b y z p n o i s e ( z ) p b y z p n o i s e ( z ) exp 1 p b y z p b y z p n o i s e ( z )                                             1 + x exp ( x ) exp 1 p b y z p b y z p ,
which concludes the proof. □

References

  1. Goyal, P.; Dollár, P.; Girshick, R.; Noordhuis, P.; Wesolowski, L.; Kyrola, A.; Tulloch, A.; Jia, Y.; He, K. Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour. arXiv 2017, arXiv:1706.02677. [Google Scholar]
  2. You, Y.; Gitman, I.; Ginsburg, B. Scaling SGD Batch Size to 32K for ImageNet Training. arXiv 2017, arXiv:1708.03888. [Google Scholar]
  3. You, Y.; Zhang, Z.; Hsieh, C.J.; Demmel, J.; Keutzer, K. ImageNet training in minutes. In Proceedings of the International Conference on Parallel Processing, Eugene, OR, USA, 13–16 August 2018. [Google Scholar]
  4. You, Y.; Li, J.; Reddi, S.; Hseu, J.; Kumar, S.; Bhojanapalli, S.; Song, X.; Demmel, J.; Keutzer, K.; Hsieh, C.J. Large Batch Optimization for Deep Learning: Training BERT in 76 minutes. In Proceedings of the International Conference on Learning Representations (ICLR), New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  5. Wang, Z.; Lin, H.; Zhu, Y.; Ng, T.S.E. ByteComp: Revisiting Gradient Compression in Distributed Training. arXiv 2022, arXiv:2205.14465. [Google Scholar]
  6. Wang, Y.; Lin, L.; Chen, J. Communication-Compressed Adaptive Gradient Method for Distributed Nonconvex Optimization. In Proceedings of the Artificial Intelligence and Statistics (AISTATS), PMLR, Virtual, 28–30 March 2022. [Google Scholar]
  7. Kenton, J.D.M.W.C.; Toutanova, L.K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the NAACL-HLT, Minneapolis, MN, USA, 2–7 June 2019. [Google Scholar]
  8. Radford, A.; Wu, J.; Child, R.; Luan, D.; Amodei, D.; Sutskever, I. Language models are unsupervised multitask learners. OpenAI Blog 2019, 1, 9. [Google Scholar]
  9. Bonawitz, K.; Eichner, H.; Grieskamp, W.; Huba, D.; Ingerman, A.; Ivanov, V.; Kiddon, C.; Konecnỳ, J.; Mazzocchi, S.; McMahan, H.B.; et al. Towards federated learning at scale: System design. In Proceedings of the Conference on Machine Learning and Systems (MLSys), Stanford, CA, USA, 31 March–2 April 2019. [Google Scholar]
  10. Basat, R.B.; Vargaftik, S.; Portnoy, A.; Einziger, G.; Ben-Itzhak, Y.; Mitzenmacher, M. QUICK-FL: Quick Unbiased Compression for Federated Learning. arXiv 2022, arXiv:2205.13341. [Google Scholar]
  11. Bagdasaryan, E.; Veit, A.; Hua, Y.; Estrin, D.; Shmatikov, V. How To Backdoor Federated Learning. In Proceedings of the Artificial Intelligence and Statistics (AISTATS), PMLR, Online, 26–28 August 2020. [Google Scholar]
  12. Li, H.; Deng, J.; Feng, P.; Pu, C.; Arachchige, D.D.; Cheng, Q. Short-Term Nacelle Orientation Forecasting Using Bilinear Transformation and ICEEMDAN Framework. Front. Energy Res. 2021, 9, 780928. [Google Scholar] [CrossRef]
  13. Li, H. SCADA Data based Wind Power Interval Prediction using LUBE-based Deep Residual Networks. Front. Energy Res. 2022, 10, 920837. [Google Scholar] [CrossRef]
  14. Kizielewicz, B.; Wątróbski, J.; Sałabun, W. Identification of relevant criteria set in the MCDA process—Wind farm location case study. Energies 2020, 13, 6548. [Google Scholar] [CrossRef]
  15. Xie, C.; Zheng, S.; Koyejo, O.; Gupta, I.; Li, M.; Lin, H. CSER: Communication-efficient SGD with Error Reset. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Online, 6–12 December 2020. [Google Scholar]
  16. Xie, C.; Koyejo, O.; Gupta, I. Asynchronous Federated Optimization. In Proceedings of the NeurIPS Workshop on Optimization for Machine Learning (OPT2020), Online, 11–12 December 2020. [Google Scholar]
  17. Xie, C.; Koyejo, O.; Gupta, I. Phocas: Dimensional Byzantine-resilient stochastic gradient descent. arXiv 2018, arXiv:1805.09682. [Google Scholar]
  18. Xie, C.; Koyejo, O.; Gupta, I. Fall of Empires: Breaking Byzantine-tolerant SGD by Inner Product Manipulation. In Proceedings of the Uncertainty in Artificial Intelligence (UAI), Aviv, Israel, 22–25 July 2019. [Google Scholar]
  19. Xie, C.; Koyejo, O.; Gupta, I. Zeno: Distributed Stochastic Gradient Descent with Suspicion-based Fault-tolerance. In Proceedings of the International Conference on Machine Learning (ICML), Long Beach, CA, USA, 10–15 June 2019. [Google Scholar]
  20. Boussetta, A.; El-Mhamdi, E.M.; Guerraoui, R.; Maurer, A.; Rouault, S. AKSEL: Fast Byzantine SGD. In Proceedings of the OPODIS, Strasbourg, France, 14–16 December 2020. [Google Scholar]
  21. Yin, D.; Chen, Y.; Kannan, R.; Bartlett, P. Byzantine-Robust Distributed Learning: Towards Optimal Statistical Rates. In Proceedings of the International Conference on Machine Learning (ICML), Stockholm, Sweden, 10–15 July 2018. [Google Scholar]
  22. Lamport, L.; Shostak, R.; Pease, M. The Byzantine generals problem. In Concurrency: The Works of Leslie Lamport; ACM: New York, NY, USA, 2019; pp. 203–226. [Google Scholar]
  23. Chen, L.; Wang, H.; Charles, Z.; Papailiopoulos, D. DRACO: Byzantine-resilient Distributed Training via Redundant Gradients. In Proceedings of the International Conference on Machine Learning (ICML), Stockholm, Sweden, 10–15 July 2018. [Google Scholar]
  24. Abadi, M.; Chu, A.; Goodfellow, I.; McMahan, H.B.; Mironov, I.; Talwar, K.; Zhang, L. Deep Learning with Differential Privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, 24–28 October 2016. [Google Scholar]
  25. Chase, M.; Gilad-Bachrach, R.; Laine, K.; Lauter, K.E.; Rindal, P. Private Collaborative Neural Network Learning. IACR Cryptol. EPrint Arch. 2017, 2017, 762. [Google Scholar]
  26. McMahan, H.B.; Ramage, D.; Talwar, K.; Zhang, L. Learning differentially private language models without losing accuracy. arXiv 2017, arXiv:1710.06963. [Google Scholar]
  27. Acs, G.; Melis, L.; Castelluccia, C.; De Cristofaro, E. Differentially Private Mixture of Generative Neural Networks. IEEE Trans. Knowl. Data Eng. 2018, 31, 1109–1121. [Google Scholar] [CrossRef] [Green Version]
  28. Lu, P.H.; Yu, C.M. POSTER: A Unified Framework of Differentially Private Synthetic Data Release with Generative Adversarial Network. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, Dallas, TX, USA, 30 October–3 November 2017. [Google Scholar]
  29. Beaulieu-Jones, B.K.; Wu, Z.S.; Williams, C.; Lee, R.; Bhavnani, S.P.; Byrd, J.B.; Greene, C.S. Privacy-Preserving Generative Deep Neural Networks Support Clinical Data Sharing. Circ. Cardiovasc. Qual. Outcomes 2019, 12, e005122. [Google Scholar] [CrossRef] [PubMed]
  30. Zhang, X.; Ji, S.; Wang, T. Differentially Private Releasing via Deep Generative Model (Technical Report). arXiv 2018, arXiv:1801.01594. [Google Scholar]
  31. Xie, L.; Lin, K.; Wang, S.; Wang, F.; Zhou, J. Differentially Private Generative Adversarial Network. arXiv 2018, arXiv:1802.06739. [Google Scholar]
  32. Shokri, R.; Shmatikov, V. Privacy-Preserving Deep Learning. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, Denver, CO, USA, 12–16 October 2015. [Google Scholar]
  33. Phan, N.; Wu, X.; Hu, H.; Dou, D. Adaptive Laplace Mechanism: Differential Privacy Preservation in Deep Learning. In Proceedings of the 2017 IEEE International Conference on Data Mining (ICDM), New Orleans, LA, USA, 18–21 November 2017. [Google Scholar]
  34. Zhang, X.; Ji, S.; Wang, H.; Wang, T. Private, Yet Practical, Multiparty Deep Learning. In Proceedings of the 2017 IEEE 37th International Conference on Distributed Computing Systems (ICDCS), Atlanta, GA, USA, 5–8 June 2017. [Google Scholar]
  35. Papernot, N.; Song, S.; Mironov, I.; Raghunathan, A.; Talwar, K.; Erlingsson, Ú. Scalable Private Learning with PATE. arXiv 2018, arXiv:1802.08908. [Google Scholar]
  36. Zinkevich, M.; Langford, J.; Smola, A.J. Slow Learners are Fast. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 7–10 December 2009. [Google Scholar]
  37. Lian, X.; Zhang, W.; Zhang, C.; Liu, J. Asynchronous Decentralized Parallel Stochastic Gradient Descent. In Proceedings of the International Conference on Machine Learning (ICML), Stockholm, Sweden, 10–15 July 2018. [Google Scholar]
  38. Zheng, S.; Meng, Q.; Wang, T.; Chen, W.; Yu, N.; Ma, Z.M.; Liu, T.Y. Asynchronous Stochastic Gradient Descent with Delay Compensation. In Proceedings of the International Conference on Machine Learning (ICML), Sydney, Australia, 6–11 August 2017. [Google Scholar]
  39. Ho, Q.; Cipar, J.; Cui, H.; Lee, S.; Kim, J.K.; Gibbons, P.B.; Gibson, G.A.; Ganger, G.; Xing, E.P. More Effective Distributed ML via a Stale Synchronous Parallel Parameter Server. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Lake Tahoe, NV, USA, 5–8 December 2013. [Google Scholar]
  40. Li, M.; Andersen, D.G.; Park, J.W.; Smola, A.J.; Ahmed, A.; Josifovski, V.; Long, J.; Shekita, E.J.; Su, B.Y. Scaling Distributed Machine Learning with the Parameter Server. In Proceedings of the Symposium on Operating Systems Design and Implementation (OSDI), Broomfield, CO, USA, 6–8 October 2014. [Google Scholar]
  41. Li, M.; Andersen, D.G.; Smola, A.J.; Yu, K. Communication Efficient Distributed Machine Learning with the Parameter Server. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Montreal, QC, Canada, 8–13 December 2014. [Google Scholar]
  42. Peng, Y.; Zhu, Y.; Chen, Y.; Bao, Y.; Yi, B.; Lan, C.; Wu, C.; Guo, C. A generic communication scheduler for distributed DNN training acceleration. In Proceedings of the ACM Symposium on Operating Systems Principles (SOSP), Huntsville, ON, Canada, 27–30 October 2019; pp. 16–29. [Google Scholar]
  43. Jiang, Y.; Zhu, Y.; Lan, C.; Yi, B.; Cui, Y.; Guo, C. A Unified Architecture for Accelerating Distributed DNN Training in Heterogeneous GPU/CPU Clusters. In Proceedings of the Symposium on Operating Systems Design and Implementation (OSDI), Virtual, 4–6 November 2020. [Google Scholar]
  44. Lee, J.; Hwang, D.; Park, J.; Kim, K.H. Risk analysis and countermeasure for bit-flipping attack in LoRaWAN. In Proceedings of the International Conference on Information Networking (ICOIN), Da Nang, Vietnam, 11–13 January 2017. [Google Scholar]
  45. Wu, Y.; Ngai, E.W.; Wu, P.; Wu, C. Fake online reviews: Literature review, synthesis, and directions for future research. Decis. Support Syst. 2020, 132, 113280. [Google Scholar] [CrossRef]
  46. Farhadkhani, S.; Guerraoui, R.; Hoang, L.N.; Villemaud, O. An Equivalence Between Data Poisoning and Byzantine Gradient Attacks. arXiv 2022, arXiv:2202.08578. [Google Scholar]
  47. Blanchard, P.; El Mhamdi, E.M.; Guerraoui, R.; Stainer, J. Machine Learning with Adversaries: Byzantine Tolerant Gradient Descent. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]
  48. Balle, B.; Bell, J.; Gascón, A.; Nissim, K. The Privacy Blanket of the Shuffle Model. In Proceedings of the Annual International Cryptology Conference, Santa Barbara, CA, USA, 18–22 August 2019. [Google Scholar]
  49. Kasiviswanathan, S.P.; Lee, H.K.; Nissim, K.; Raskhodnikova, S.; Smith, A. What Can We Learn Privately? SIAM J. Comput. 2011, 40, 793–826. [Google Scholar] [CrossRef]
  50. Warner, S.L. Randomized Response: A Survey Technique for Eliminating Evasive Answer Bias. J. Am. Stat. Assoc. 1965, 60, 63–69. [Google Scholar] [CrossRef]
  51. Beimel, A.; Nissim, K.; Omri, E. Distributed Private Data Analysis: Simultaneously Solving How and What. In Proceedings of the Annual International Cryptology Conference, Santa Barbara, CA, USA, 17–21 August 2008. [Google Scholar]
  52. Chan, T.H.; Shi, E.; Song, D. Optimal Lower Bound for Differentially Private Multi-party Aggregation. In Proceedings of the European Symposium on Algorithms, Ljubljana, Slovenia, 10–12 September 2012. [Google Scholar]
  53. Dwork, C.; McSherry, F.; Nissim, K.; Smith, A. Calibrating Noise to Sensitivity in Private Data Analysis. In Proceedings of the Theory of Cryptography Conference, New York, NY, USA, 4–7 March 2006. [Google Scholar]
  54. Ding, B.; Kulkarni, J.; Yekhanin, S. Collecting Telemetry Data Privately. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]
  55. Erlingsson, Ú.; Pihur, V.; Korolova, A. RAPPOR: Randomized Aggregatable Privacy-Preserving Ordinal Response. In Proceedings of the 2014 ACM SIGSAC Conference on Computer and Communications Security, Scottsdale, AZ, USA, 3–7 November 2014. [Google Scholar]
  56. Differential Privacy Team, Apple. Learning with Privacy at Scale. Apple Mach. Learn. Res. 2017. [Google Scholar]
  57. Bebensee, B. Local Differential Privacy: A tutorial. arXiv 2019, arXiv:1907.11908. [Google Scholar]
  58. Krizhevsky, A. Learning Multiple Layers of Features from Tiny Images; University of Toronto: Toronto, ON, Canada, 2009. [Google Scholar]
Figure 1. Parameter-server architecture.
Figure 1. Parameter-server architecture.
Algorithms 15 00233 g001
Figure 2. ZenoPS architecture.
Figure 2. ZenoPS architecture.
Algorithms 15 00233 g002
Figure 3. ZenoPS in the synchronous mode with various attacks and validators. In each experiment, we launched 1 server, 1 validator, and 16 workers. In each iteration, each worker had a 50 % probability of being active. (a) No attacks. (b) Sign-flipping attack rescaled by 6. (c) Random attack rescaled to 1. (d) Random attack rescaled by 8.
Figure 3. ZenoPS in the synchronous mode with various attacks and validators. In each experiment, we launched 1 server, 1 validator, and 16 workers. In each iteration, each worker had a 50 % probability of being active. (a) No attacks. (b) Sign-flipping attack rescaled by 6. (c) Random attack rescaled to 1. (d) Random attack rescaled by 8.
Algorithms 15 00233 g003
Figure 4. ZenoPS in the synchronous mode with multiple validators. In each experiment, we launched 2 servers, 2 validators, and 16 workers. In each iteration, all workers were active. (a) No attacks. (b) Random attack rescaled to 1.
Figure 4. ZenoPS in the synchronous mode with multiple validators. In each experiment, we launched 2 servers, 2 validators, and 16 workers. In each iteration, all workers were active. (a) No attacks. (b) Random attack rescaled to 1.
Algorithms 15 00233 g004
Figure 5. ZenoPS in the asynchronous mode with various attacks and validators. In each experiment, we launched 1 server, 1 validator, and 8 workers. In each communication round, each worker had a 50 % probability of dropping the entire communication. (a) No attacks. (b) Sign-flipping attack rescaled by 2. (c) Random attack rescaled to 1. (d) Random attack rescaled by 8.
Figure 5. ZenoPS in the asynchronous mode with various attacks and validators. In each experiment, we launched 1 server, 1 validator, and 8 workers. In each communication round, each worker had a 50 % probability of dropping the entire communication. (a) No attacks. (b) Sign-flipping attack rescaled by 2. (c) Random attack rescaled to 1. (d) Random attack rescaled by 8.
Algorithms 15 00233 g005
Figure 6. ZenoPS in the asynchronous mode with multiple validators. In each experiment, we launched 2 servers, 2 validators, and 8 workers. (a) No attacks. (b) Random attack rescaled by 8.
Figure 6. ZenoPS in the asynchronous mode with multiple validators. In each experiment, we launched 2 servers, 2 validators, and 8 workers. (a) No attacks. (b) Random attack rescaled by 8.
Algorithms 15 00233 g006
Figure 7. Sensitivity to ρ . ρ varies, with fixed ϵ = 0 and γ = 0.6 . ZenoPS in the synchronous mode with multiple validators. In each experiment, we launched 2 servers, 2 validators, and 16 workers. Random attack is rescaled to 1.
Figure 7. Sensitivity to ρ . ρ varies, with fixed ϵ = 0 and γ = 0.6 . ZenoPS in the synchronous mode with multiple validators. In each experiment, we launched 2 servers, 2 validators, and 16 workers. Random attack is rescaled to 1.
Algorithms 15 00233 g007
Table 1. Notations and terminologies.
Table 1. Notations and terminologies.
Notation/TermDescription
nThe number of workers
kThe number of active workers
T , t The number of iterations or server steps, and the current iteration t [ T ]
t Some previous iteration or server step, t t 1
τ Maximum delay, t 1 t τ
HThe number of local iterations (worker steps), or synchronization interval
hThe current local iteration (worker step), h [ H ]
dThe number of model parameters, or the size of the model
[ n ] The set of integers { 1 , , n }
S t The set of randomly selected devices in the t th iteration
bParameter of the trimmed mean
H m i n , H m a x Minimal/maximal number of local iterations
H i , t The number of local iterations in the tth epoch on the ith device
x t The initial model in the tth iteration
x i , t , h Model updated in the tth server step and the hth worker step,
on the ith device
𝒟 i The training dataset on the ith device
𝒟 The entire training dataset 𝒟 = 𝒟 1 𝒟 n
𝒟 r The validation dataset on the validators
z i , t , h Data (mini-batch) sampled in the tth server step and the hth worker step
on the ith device
σ 2 The variance of the stochastic gradient of a single sample
f ( x ; z 𝒟 ) ,The stochastic function value and gradient on random sample z,
f ( x ; z 𝒟 ) drawn from the dataset 𝒟 (sometimes we use f ( x ) and f ( x ) for short)
F ( x ) , F ( x ) F ( x ) = 𝔼 [ f ( x ) ] , F ( x ) = 𝔼 [ f ( x ) ] ,
and the expectation is taken over the random samples
η Learning rate
α , ρ , γ , etc.Some positive constants or hyperparameters
δ The approximation factor of the compressor 𝒞,
where v 𝒞 ( v ) 2 ( 1 δ ) v 2
· All the norms in this paper are l 2 -norms
V 1 , V 2 , V 3 , etc.Some constants defined in assumptions and used in theoretical analysis
q , m q is the number of Byzantine workers, m = n + q
DeviceWhere the training data are placed
WorkerThe process that trains the model on the local datasets
Byzantine workerWorker with Byzantine failures
ServerThe process that maintains the global model parameters and
exchanges information with the workers and validators
ValidatorThe process that validates the updates sent from the worker and
filters out the potentially malicious ones
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Xie, C.; Koyejo, O.; Gupta, I. ZenoPS: A Distributed Learning System Integrating Communication Efficiency and Security. Algorithms 2022, 15, 233. https://doi.org/10.3390/a15070233

AMA Style

Xie C, Koyejo O, Gupta I. ZenoPS: A Distributed Learning System Integrating Communication Efficiency and Security. Algorithms. 2022; 15(7):233. https://doi.org/10.3390/a15070233

Chicago/Turabian Style

Xie, Cong, Oluwasanmi Koyejo, and Indranil Gupta. 2022. "ZenoPS: A Distributed Learning System Integrating Communication Efficiency and Security" Algorithms 15, no. 7: 233. https://doi.org/10.3390/a15070233

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop