Balancing Communication and Computation in Distributed Optimization

Albert S. Berahas, Raghu Bollapragada, Nitish Shirish Keskar, Ermin Wei · DOI

Abstract

Methods for distributed optimization have received significant attention in recent years owing to their wide applicability in various domains. A distributed optimization method typically consists of two key components: communication and computation. More specifically, at every iteration (or every several iterations) of a distributed algorithm, each node in the network requires some form of information exchange with its neighboring nodes (communication) and the computation step related to a (sub)-gradient (computation). The standard way of judging an algorithm via only the number of iterations overlooks the complexity associated with each iteration. Moreover, various applications deploying distributed methods may prefer a different composition of communication and computation. Motivated by this discrepancy, in this work we propose an adaptive cost framework which adjusts the cost measure depending on the features of various applications. We present a flexible algorithmic framework, where communication and computation steps are explicitly decomposed to enable algorithm customization for various applications. We apply this framework to the well-known distributed gradient descent (DGD) method, and show that the resulting customized algorithms, which we call DGD$^t$, NEAR-DGD$^t$ and NEAR-DGD$^+$, compare favorably to their base algorithms, both theoretically and empirically. The proposed NEAR-DGD$^+$ algorithm is an exact first-order method where the communication and computation steps are nested, and when the number of communication steps is adaptively increased, the method converges to the optimal solution. We test the performance and illustrate the flexibility of the methods, as well as practical variants, on quadratic functions and classification problems that arise in machine learning, in terms of iterations, gradient evaluations, communications and the proposed cost framework.

Introduction

In distributed optimization, a network of agents—such as a swarm of robots or a cluster of servers—collaborates to minimize a global objective function. In these scenarios, each agent possesses only a local portion of the data. Traditionally, the efficiency of these algorithms is measured by the number of iterations required to reach a solution.

However, this metric is often misleading. An "iteration" in a high-speed data center, where communication is nearly instantaneous, is fundamentally different from an iteration in a battery-powered sensor network, where radio transmission is significantly more expensive than local computation. Standard Distributed Gradient Descent (DGD) also faces a theoretical limitation: using a constant stepsize allows for fast convergence but only to a "neighborhood" of the optimal solution, while a diminishing stepsize achieves exact convergence at the cost of significantly slower performance.

The Adaptive Cost Framework and Algorithmic Decomposition

To address these discrepancies, this research introduces two major innovations:

  1. Adaptive Cost Framework: A performance metric based on actual resource usage is defined as: $$Cost = (\#Communications \times c_c) + (\#Computations \times c_g)$$ where $c_c$ and $c_g$ are weights representing the relative "price" of communication and computation for a specific hardware environment.

  2. Algorithmic Decomposition: The authors decouple DGD into its two core operators: the Consensus Operator (communication) and the Gradient Operator (computation). This leads to three new algorithm classes:

  3. DGD$^t$: Performs $t$ consensus steps for every one gradient step.
  4. NEAR-DGD$^t$ (Nested Exact Alternating Recursion): Nests the operators sequentially to improve stability.
  5. NEAR-DGD$^+$: An advanced version where the number of consensus steps $t$ increases over time (e.g., $t=k$ at iteration $k$), allowing for exact convergence with a constant stepsize.

Empirical Analysis and Key Insights

The researchers evaluated these methods using synthetic quadratic problems and binary classification tasks (using the Mushrooms dataset). A key finding is the "diminishing returns" of communication: while adding a few extra consensus steps per iteration significantly improves accuracy, the marginal gains decrease as $t$ grows larger.

Performance comparison of DGD$^t$ variants across different metrics: iterations, total cost, gradient evaluations, and communications.

As shown in the figure above, increasing the number of consensus steps ($t$) in the DGD$^t$ framework allows the algorithm to reach a lower error floor for a fixed stepsize. However, the plots also reveal the trade-offs involved: while higher $t$ values (like DGD$^{10}$) converge in fewer iterations and gradient evaluations, they incur a much higher cost in terms of total communications. This visualization underscores the importance of the adaptive cost framework, as the "best" algorithm depends entirely on whether the system is constrained by computation or communication bandwidth.

Key Results and Convergence

  • Exactness through Communication: Unlike standard DGD, NEAR-DGD$^+$ achieves exact convergence while maintaining a constant stepsize by adaptively "cleaning up" consensus error through increased communication as it approaches the optimum.
  • Theoretical Convergence: The authors prove that NEAR-DGD$^+$ converges at an R-linear rate. To reach an $\epsilon$-accurate solution, it requires $O(\log(1/\epsilon))$ gradient evaluations and $O(\log^2(1/\epsilon))$ communication rounds.
  • Practical Performance: On the Mushrooms dataset, NEAR-DGD variants consistently outperformed standard DGD. Practical implementations, such as doubling communication steps every 500 iterations, proved highly effective at balancing total resource costs.

Conclusion and Future Work

This framework allows researchers to "tune" algorithms to be either communication-heavy or computation-heavy based on environmental constraints. While the current theory relies on strong convexity and static network topologies, future research will explore dynamic environments where nodes move or links fail, and investigate methods to automatically adjust the communication-computation balance in real-time.

Summary updated

BibTeX
@article{berahas2019balancing,
  author = {Albert S. Berahas and Raghu Bollapragada and Nitish Shirish Keskar and Ermin Wei},
  title = {{Balancing Communication and Computation in Distributed Optimization}},
  journal = {IEEE Trans. Automatic Control},
  year = {2019},
  doi = {10.1109/tac.2018.2880407},
}
Figure