Nested Distributed Gradient Methods with Stochastic Computation Errors

Charikleia Iakovidou, Ermin Wei · DOI

Introduction

In modern distributed systems—ranging from sensor networks and smart grids to multi-vehicle coordination—agents must collectively minimize a global objective function while only having access to local data. This problem is typically formulated as minimizing a sum of convex functions across a network. However, real-world applications introduce two significant hurdles: the high cost of computing exact gradients on massive datasets and the inherent imbalance between computation and communication costs.

This paper introduces a stochastic adaptation of the Nested Distributed Gradient Descent (NEAR-DGD) algorithm. By nesting multiple communication rounds between local gradient updates, the proposed method addresses the noise of stochastic computation while leveraging the relative efficiency of network communication.

The Problem: Computation vs. Communication

Distributed optimization often faces a "communication-computation imbalance." In many systems, sending a message to a neighbor is significantly faster or less energy-intensive than performing a complex local optimization step. Furthermore, computing an exact gradient on a massive local dataset is often prohibitive. Instead, agents rely on stochastic gradients—noisy estimates based on a subset of data.

Existing distributed stochastic methods frequently suffer from high memory requirements or slow convergence. The goal of this work is to provide a method that is memory-efficient, communication-aware, and robust to the noise inherent in stochastic computation.

The NEAR-DGD Framework

The authors adapt the NEAR-DGD framework to the stochastic setting. The algorithm operates in two main phases per iteration:

  1. The Gradient Step: Each agent computes a local stochastic gradient estimate (unbiased but noisy) and updates its local estimate of the solution.
  2. The Consensus Step: Agents perform $t$ successive rounds of communication, averaging their local estimates with their immediate neighbors.

The paper analyzes two specific variants:

  • NEAR-DGD$^t$: The number of consensus steps ($t$) remains constant at every iteration.
  • NEAR-DGD$^+$: The number of consensus steps increases over time ($t(k) = k$), forcing the network toward a perfect consensus as the algorithm progresses.

Key Insights: Network-Wide Mini-batching

A primary contribution of this work is the proof that distributed averaging acts as a natural variance reducer. The variance of the average stochastic gradient across the network is scaled by $1/n$, where $n$ is the number of agents. This implies that a distributed network of 100 agents behaves similarly to a centralized system using a mini-batch 100 times larger than any individual agent's batch.

Furthermore, by performing multiple consensus steps ($t > 1$) between gradient updates, the algorithm suppresses "network-related error"—the noise caused by agents having different local information—allowing the group to behave more like a single centralized optimizer.

Experimental Results

The authors evaluated their method using the Mushrooms Dataset (binary logistic regression) and various synthetic network topologies, including Erdős-Rényi random graphs and path graphs.

Figure 1: Squared error versus iterations for various algorithms. NEAR-DGD variants closely track the centralized batch performance.

As shown in Figure 1, NEAR-DGD$^t$ converges at a linear rate to a neighborhood of the optimal solution. In numerical experiments, NEAR-DGD variants matched the performance of centralized mini-batching. While it may require more communication rounds to reach high accuracy compared to some competitors, it achieves much stronger consensus among agents.

Figure 3: Trade-off between squared error and total communication rounds. NEAR-DGD variants achieve low error at the cost of increased communication.

Figure 3 highlights the communication-accuracy trade-off. Notably, in "path graph" experiments—a difficult topology for distributed algorithms—NEAR-DGD was the only method tested that successfully approached the performance of a centralized optimizer. Other methods like DGD or EXTRA struggled significantly when the network was poorly connected.

Conclusion

NEAR-DGD provides a robust framework for distributed optimization with stochastic gradients. Its minimal memory footprint—requiring no storage of previous gradients or multiple iterates—makes it ideal for memory-constrained hardware. Future work will explore extending this analysis to non-convex problems and developing adaptive schemes to determine the optimal number of consensus steps dynamically.

Summary updated

BibTeX
@inproceedings{iakovidou2019nested,
  author = {Charikleia Iakovidou and Ermin Wei},
  title = {{Nested Distributed Gradient Methods with Stochastic Computation Errors}},
  booktitle = {Allerton},
  year = {2019},
  doi = {10.1109/allerton.2019.8919853},
}
Figure