Fully Distributed and Asynchronized Stochastic Gradient Descent for Networked Systems

Ying Zhang · DOI

Abstract

This paper considers a general data-fitting problem over a networked system, in which many computing nodes are connected by an undirected graph. This kind of problem can find many real-world applications and has been studied extensively in the literature. However, existing solutions either need a central controller for information sharing or requires slot synchronization among different nodes, which increases the difficulty of practical implementations, especially for a very large and heterogeneous system. As a contrast, in this paper, we treat the data-fitting problem over the network as a stochastic programming problem with many constraints. By adapting the results in a recent paper, we design a fully distributed and asynchronized stochastic gradient descent (SGD) algorithm. We show that our algorithm can achieve global optimality and consensus asymptotically by only local computations and communications. Additionally, we provide a sharp lower bound for the convergence speed in the regular graph case. This result fits the intuition and provides guidance to design a 'good' network topology to speed up the convergence. Also, the merit of our design is validated by experiments on both synthetic and real-world datasets.

Introduction

In the era of big data, Stochastic Gradient Descent (SGD) has become the standard for training machine learning models. However, as datasets scale, single-machine processing becomes a bottleneck. The traditional solution is the "Server-Worker" architecture, where a central parameter server coordinates multiple workers. While effective, this centralized approach introduces significant vulnerabilities: the server acts as a single point of failure and a communication bottleneck. Furthermore, synchronous distributed SGD suffers from the "straggler problem," where the entire network's speed is dictated by its slowest node.

Comparison of (a) traditional Server-Worker and (b) the proposed Networked Structure.

To address these issues, this research proposes a fully distributed, asynchronous SGD algorithm. By reformulating distributed learning as a constraint satisfaction problem on a networked graph, nodes can achieve global optimality through local interactions with immediate neighbors, eliminating the need for a central controller or global synchronization.

Methodology

The core innovation lies in problem reformulation. Instead of a single global objective, each node $i$ maintains a local model $\beta_i$. Global agreement is enforced through constraints requiring each node's model to match those of its neighbors ($\beta_i = \beta_k$).

The resulting algorithm alternates between two randomized local tasks:

  1. Gradient Descent: A node performs a standard SGD step using a local data sample to minimize its local error.
  2. Projection (Consensus): A node averages its model with those of its immediate neighbors.

Because these steps are local and randomized, the system functions without a global clock. As long as the network graph remains connected, the algorithm guarantees asymptotic convergence to a global consensus and optimal solution.

Experimental Evaluation

The algorithm was evaluated using synthetic datasets for Logistic Regression, SVM, and Lasso problems, as well as the notMNIST dataset—a 12GB collection of character images (A-J) in diverse fonts.

Distance from consensus over iterations for different network connectivity.

Key findings include:

  • Global Consensus: In a 30-node network, the distance between local models (consensus error) decreased exponentially. Higher connectivity (more neighbors) significantly accelerated this convergence.
  • Accuracy: On the notMNIST dataset, the decentralized approach achieved prediction errors below 0.1, matching the performance of centralized SGD implementations.
  • Connectivity Impact: The paper establishes that the "spectral gap" of the graph's adjacency matrix determines learning speed, confirming that better-connected topologies facilitate faster information spread.

Conclusion

This fully distributed SGD framework offers a robust and scalable alternative to centralized parameter server models. By removing the central bottleneck and the requirement for global synchronization, it enables efficient learning in large-scale, heterogeneous networked systems. Future research will focus on optimizing communication overhead and handling hardware heterogeneity where nodes possess varying computational power.

Summary updated

BibTeX
@misc{zhang2017fully,
  author = {Ying Zhang},
  title = {{Fully Distributed and Asynchronized Stochastic Gradient Descent for Networked Systems}},
  year = {2017},
  eprint = {1704.03992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.03992},
}
Figure