On the Communication Latency of Wireless Decentralized Learning

by   Navid NaderiAlizadeh, et al.
cornell university

We consider a wireless network comprising n nodes located within a circular area of radius R, which are participating in a decentralized learning algorithm to optimize a global objective function using their local datasets. To enable gradient exchanges across the network, we assume each node communicates only with a set of neighboring nodes, which are within a distance R n^-β of itself, where β∈(0,1/2). We use tools from network information theory and random geometric graph theory to show that the communication delay for a single round of exchanging gradients on all the links throughout the network scales as O(n^2-3β/βlog n), increasing (at different rates) with both the number of nodes and the gradient exchange threshold distance.


Decentralized SGD with Over-the-Air Computation

We study the performance of decentralized stochastic gradient descent (D...

Decentralized Multi-Task Stochastic Optimization With Compressed Communications

We consider a multi-agent network where each node has a stochastic (loca...

Event Notifications in Value-Adding Networks

Linkages between research outputs are crucial in the scholarly knowledge...

Network Topology and Communication-Computation Tradeoffs in Decentralized Optimization

In decentralized optimization, nodes cooperate to minimize an overall ob...

Confined spatial networks with wireless applications

Many networks have nodes located in physical space, with links more comm...

Greedy Gossip with Eavesdropping

This paper presents greedy gossip with eavesdropping (GGE), a novel rand...

Efficient Variance-Reduced Learning for Fully Decentralized On-Device Intelligence

This work develops a fully decentralized variance-reduced learning algor...

I Introduction

With the advent of novel powerful computing platforms, alongside the availability of large-scale datasets, machine learning (ML), and particularly, deep learning, have gained significant interest in recent years 

[1]. Such developments have also contributed to the invention of more advanced ML architectures and more efficient training mechanisms [2]

, which have resulted in state-of-the-art performance in many domains, such as computer vision 


, natural language processing 

[4], health-care [5], etc.

More recently, however, there has been an increasing awareness in consumers of services, which are driven by ML models, regarding the privacy of their data. Depending on how sensitive the data type is or how often it is collected, each user has their own privacy concerns and preferences [6]. Such trends have been coincident with the proliferation of mobile computing solutions, which provide devices, such as smart-home devices, cell phones, laptops, and drones, with strong computation capabilities [7].

These societal and technical trends have given rise to paradigms such as federated and decentralized learning, where the generated data by each device stays on-board to protect its privacy [8, 9]. To compensate for that, (part of) the computation is also shifted to be done locally at the end-user devices. It has been shown that in many cases, distributing the learning process over different nodes incurs negligible performance loss compared to centralized training approaches [10].

However, one major bottleneck in all the aforementioned paradigms is the communication network between the learning nodes. As the data points generated by each node differ from the rest of the rest of the network, the nodes need to periodically communicate with each other so that they all converge to the same model, rather than diverging to completely different models. If the communication that needs to occur between the nodes in the network induces sizeable delays, it can significantly lengthen the convergence time across the network, as it can totally dominate the computation delay at the learning nodes.

This phenomenon has motivated a massive body of recent work on dealing with the communication delays for federated and decentralized learning. In [11], a setting with a single server and multiple worker nodes is considered, where at each iteration, a subset of worker nodes are selected, either by the server or by the worker nodes themselves, to send their gradients to the server. In [12], a simple network of multiple worker nodes is considered, over which they can all exchange their computation results with a fixed amount of delay, in conjunction with a server which aggregates all the results and sends back updated parameters to the worker nodes. In [13], gossiping algorithms and convergence guarantees are provided for decentralized optimization with compressed communication. In [14], it is shown how specific connectivity of the communication network topology among learning nodes affects the speed of convergence. In [15], convergence results are derived for a combination of quantization, sparsification and local computation in a distributed computation setting with a single master and multiple worker nodes. In [16], a deadline-based approach for minibatch gradient computing at each computing node is proposed, such that the minibatch size is adaptive to the computation capabilities of each node, hence making the scheme robust to stragglers.

Most of the above works deal with an abstract model for the communication network among the learning nodes. One particularly interesting communication paradigm to consider is wireless communication, especially as operators around the world roll out their 5G network infrastructure. There have been some recent works that have considered wireless constraints, mostly in the context of federated learning [17, 18, 19, 20, 21].

In this paper, we consider the decentralized learning scenario over a network of learning nodes connected together through a shared wireless medium. Considering the nature of wireless networks, in which nodes in proximity can more efficiently communicate with each other, while interfering at concurrent transmissions, we attempt to characterize the communication delay for exchanging the gradients among the learning nodes over the wireless network topology. In particular, we consider a setting similar to [14], where at each time, a set of non-interfering gradient exchanges are scheduled to happen simultaneously. Using the results on the optimality of treating interference as noise in interference networks [22], we present an algorithm for gradient exchanges in wireless decentralized learning akin to the information-theoretic link scheduling that was proposed in [23] for the case of device-to-device networks.

We utilize tools from random geometric graph theory to characterize the asymptotic communication latency for exchanging gradients in the aforementioned decentralized setting framework. In particular, we consider a network of learning nodes located within a circle of radius , where each node exchanges gradients with its neighboring nodes, which are within a distance of itself, where is a variable that controls the density of the gradient exchange topology. This threshold distance needs to decrease with , as the entire network needs to remain connected to guarantee the convergence of the decentralized learning algorithm. We show that as , the communication latency scales as , increasing with the number of users, and decreasing with . This result provides insights on how much communication time is needed in a wireless decentralized learning scenario, where more gradient exchanges leads to longer communication latencies, but faster convergence rates.

Ii System Model

Consider a wireless network consisting of nodes dropped uniformly at random within a circular area of radius . Assume that each node has access to a set of data points

, and the goal is to minimize a global loss function

, defined over a set of optimization parameters , using the overall dataset across the network as

where is the local loss function at node , and is the stochastic loss function for sample given model parameters

. In order to solve this problem, decentralized stochastic gradient descent (SGD) can be utilized to minimize the objective function in an iterative fashion. In decentralized SGD, the system is run over multiple iterations, where at each iteration, each node performs a local computation of the gradient of the objective function with respect to the set of optimization parameters

over (a minibatch of) its local dataset, following which the gradients are exchanged among nodes prior to the beginning of the next iteration.

Due to the path-loss and fading effects in wireless communications, nodes can more easily communicate to their closer neighbors than farther ones. Therefore, we define the communication graph as the network topology which dictates how nodes exchange gradients with their neighboring nodes, and we model it as an undirected random geometric graph (RGG) , where is the set of all nodes in the network, and for every , where , if and only if , where denotes the distance between nodes and , and is the threshold distance for gradient exchange; i.e., two nodes can exchange their gradients with each other if and only if they are located within a distance of at most .

However, activating multiple gradient exchanges over the wireless channel at the same time will lead to interference, which can significantly reduce the network performance in terms of the throughput, and therefore, the communication delay. To capture the interference among concurrent wireless transmissions, we also define a conflict graph . In this graph, each vertex represents a communication link in the original communication graph, i.e., . Moreover, there is an edge between two vertices in if their activations are in conflict; i.e., if transmitting data (i.e., gradients) on those links at the same time strongly interfere on each other. Since the level of interference also depends on the distance of transmitting/receiving nodes, we introduce a conflict distance , where for two vertices , there is an edge between and , i.e., , if and only if

which implies that at least one node in is within conflict distance of . Note that for the case of , , implying that there is a conflict between and , for any two neighbors of node in the original communication graph. This means that a node cannot communicate with two nodes at the same time (i.e., half-duplex and single frequency band constraints).

Given the above definitions, our goal is to determine the asymptotic behavior of the normalized gradient exchange latency (as ), which is defined as the delay for completing the exchange of 1 bit of gradients on all the links of the communication graph. Assuming that the communication delay in the network dominates the gradient computation delay at each node, the normalized gradient exchange latency characterizes the wall-clock run time per iteration for decentralized SGD on a wireless communication network of learning nodes.

Ii-a Wireless Communication Model

We assume each node is equipped with a single transmit/receive antenna, and all transmissions happen in a synchronous time-slotted manner on a single frequency band. We restrict the transmission strategies to an on/off pattern: At each time slot, a node either transmits a message to another node with full power or stays completely silent. We use as a transmission status indicator of node at time slot ; i.e., if and only if node is transmitting with full power at time slot . On the receiver side, we adopt the simple and practical scheme of treating interference as noise (TIN), where each node decodes its desired message, while treating the interference from all other concurrent transmissions as noise. Letting

denote the noise variance, the rate achieved on a link from node

to node at time can be written as


where denotes the channel gain on the link between nodes and . In this paper, we adopt a single-slope path-loss model for the channel gains, where the channel gain at distance can be written as

where is the reference channel gain at a distance of , and denotes the path-loss exponent. This implies that the achievable rate in (1) can be written as


denotes the signal-to-noise ratio (SNR) at a distance of


Iii Forming the Communication and Conflict Graphs

The communication network topology needs to be carefully designed, as decentralized SGD will not converge if the gradient exchange communication graph is disconnected [14]. We resort to the following lemma, which provides a sufficient condition for connectivity of random geometric graphs.

Lemma 1 (Corollary 3.1 in [24]).

In an RGG with nodes and a threshold distance of

, the graph is connected with probability one (as

) if , where .111In this paper, we use the short-hand notation to denote the natural logarithm operation .

In light of Lemma 1, for the communication graph, we set the gradient exchange threshold distance as


which decreases as the number of nodes increases so as to satisfy the condition in Lemma 1, hence maintaining the connectivity of the entire graph.

Now, to build the conflict graph, we use the following result, derived in [22], for approximate information-theoretic optimality of TIN in wireless networks.

Theorem 1 (Theorem 4 in [22]).

Consider a wireless network with transmitter-receiver pairs , where denotes the signal-to-noise ratio between and , and denotes the interference-to-noise ratio between and . Then, under the following condition,

TIN achieves the entire information-theoretic capacity region of the network (as defined in [22]) to within a gap of per dimension.

Theorem 1 immediately leads to the following corollary.

Corollary 1.

In a network with transmitter-receiver pairs, if the minimum SNR and the maximum INR across the whole network (denoted by and , respectively) satisfy , then TIN is information-theoretically optimal to within a gap of per dimension.

As mentioned in Section II, the received power at distance can be written as . Hence, given the RGG nature of the communication and conflict graphs, we can bound the SNR and INR values across the network as


Therefore, (3)-(4) together with Corollary 1 imply that a sufficient condition for the optimality of TIN for exchanging the gradients is

Thus, to guarantee the optimality of TIN, while having the sparsest conflict graph, we set the conflict distance as


Iv Main Result

In this section, we present our main result on the time needed for exchanging gradients over the communication graph as follows.

Theorem 2.

For a sufficiently large network of learning nodes (), the normalized gradient exchange latency satisfies

Remark 1.

Theorem 2 implies that the normalized gradient exchange latency can be upper-bounded in an order-wise fashion (for ) as


Theorem 2 characterizes an achievable normalized gradient exchange latency over the communication graph. Figure 1 demonstrates how this latency changes with and for the case where nodes are dropped within a circular area of radius m, transmit power is assumed to be dBm, noise power spectral density is taken to be dBm/Hz, the bandwidth is MHz, the path-loss exponent is equal to , and the reference channel gain is set to . As demonstrated by (6) and its order-wise approximation in (7), as well Figure 1, the delay of exchanging gradients over all links in the conflict graph monotonically increases with , which is expected as increasing the network size, while keeping the communication graph connected, will require an increasing number of gradient exchanges among neighboring nodes.

Fig. 1: Variations of the achievable normalized gradient exchange latency for a network with nodes dropped in a circular area of radius m.

On the other hand, the latency decreases (approximately) exponentially with . As per (2), determines the threshold distance for gradient exchange among adjacent nodes; Increasing will reduce the number of neighbors with which each node exchanges gradients, and this provides a significant saving in terms of the communication latency. Note that this comes at the expense of slower convergence rate for the global loss function, as it will take longer for each node to obtain access to the gradients from datasets available in farther nodes.

V Achievable Scheme

In this section, we prove our main result in Theorem 2 by providing an achievable scheme for gradient exchange on all links in the communication graph and characterizing an upper bound on its achievable normalized gradient exchange latency.

Given the communication and conflict graphs, the nodes can exchange gradients with their neighbors in the communication graph as long as their exchanges are non-conflicting; i.e., there is not an edge between them in the conflict graph. This leads to the notion of independent sets on the conflict graph, where each such independent set contains a set of nodes such that there is no edge between them. This is closely related to the notion of information-theoretic independent sets as defined in [23] for device-to-device communication networks. It is also analog to the concept of matchings on the communication topology as considered in [14], where now the interference between active communication links is also taken into account.

We first start with the following lemma, in which we characterize a lower bound on the symmetric rate within an independent set of the conflict graph, defined as the rate that can be simultaneously achieved by all the corresponding active links in the communication graph.

Lemma 2.

For any independent set in , the symmetric rate is lower-bounded by


For every vertex , the achievable rate on the corresponding link from node to node in can be written as


where (9) follows from the fact that link is present in the communication graph, hence their distance satisfies , while the link between nodes and is not present in the conflict graph, implying that . Moreover, (10) follows from the definition of in (5), and from the fact that as , the interference grows larger than noise, i.e., . As all nodes are able to achieve this communication rate, the proof is complete. ∎

Next, we present the following lemma, which provides an upper bound on the chromatic number of the conflict graph.

Lemma 3.

The chromatic number of the conflict graph can be asymptotically upper-bounded by


Considering each vertex in the conflict graph, its degree can be upper-bounded as


where is the maximum degree of a random geometric graph with nodes and threshold distance of , and is the maximum degree of , which is a random geometric graph with nodes and threshold distance of . As per equation (4) in [25], (11) can be upper bounded by


where denotes the clique number of a random geometric graph with nodes and threshold distance , defined as the size of the largest clique in the graph, i.e., the maximal subset of vertices in which every two vertices are connected.

Now, we can leverage the bounds in the following theorem from [26] on the clique number of random geometric graphs to upper bound (12).

Theorem 3 (Theorem 1.2 in [26]).

For a -dimensional random geometric graph with nodes and threshold distance , if , then its clique number, denoted by , satisfies

where is the unit ball in and is the maximum density of the distribution of nodes in . For Euclidean distance in

and uniform distribution of nodes within a circle of radius

, and .

For the graph , we have . Given the fact that , we can invoke Theorem 3 to (almost-surely) continue (12) as


Furthermore, for the graph , we have , and since , we can again use Theorem 3 to continue (13) as


Using a greedy coloring algorithm on the conflict graph, its chromatic number can be upper bounded by , where is the maximum degree of the vertices in . Combined with (14), this completes the proof. ∎

Having Lemmas 2 and 3, we now proceed to prove Theorem 2. Suppose that we have a proper coloring on the conflict graph with colors, where the independent set corresponding to each color is denoted by . Then, assuming that all independent sets use time-sharing to exchange the gradients, we can bound the normalized gradient exchange latency as


Now, we can leverage Lemma 2 to upper bound (15) as


where is defined as


It can be shown that is concave in for (see Appendix A). Therefore, using Jensen’s inequality, we can upper-bound (16) as


Now, note that is equal to the total number of vertices in the conflict graph, or the edges in the communication graph; i.e.,

Proposition A.1 in [27] suggests that the average degree of a 2-dimensional random geometric graph with nodes dropped uniformly at random within a circular area of radius and a threshold distance asymptotically converges to . Therefore, we have

which together with (18) leads to


It is not hard to verify that the bound in (19) is a monotonically increasing function of (see Appendix B). Therefore, we can invoke Lemma 3 to upper bound (19) as in (6), hence completing the proof of Theorem 2.

Appendix A Proof of Concavity of in (17) for

Letting , we can write the first derivative of as

which leads to the second derivative of as


We can write the derivative in the numerator of (20) as


Now, consider the function


It is easy to show that this function is non-negative for . This is because , and

Plugging in , we can rewrite (21) as

which, together with the fact that the rest of the terms in (20) are negative, completes the proof.

Appendix B Proof of Monotonicity of the Bound in (19)

Let us rewrite the bound in (19) as , where is defined as


with . We can then write the first derivative of as

since as shown in Appendix A. This complete the proof.