Abstract
Decentralized and asynchronous communications are two popular techniques to speedup communication complexity of distributed machine learning, by respectively removing the dependency over a central orchestrator and the need for synchronization. Yet, combining these two techniques together still remains a challenge. In this paper, we take a step in this direction and introduce Asynchronous SGD on Graphs (AGRAF SGD) — a general algorithmic framework that covers asynchronous versions of many popular algorithms including SGD, Decentralized SGD, Local SGD, FedBuff, thanks to its relaxed communication and computation assumptions. We provide rates of convergence under much milder assumptions than previous decentralized asynchronous works, while still recovering or even improving over the best know results for all the algorithms covered.
Introduction
Training massive machine learning models requires distributing workloads across many devices. To optimize this process, researchers often employ decentralization (removing central bottlenecks) and asynchrony (allowing independent node updates). However, combining these techniques is mathematically and practically challenging. Previous theoretical analyses of Asynchronous Decentralized SGD often rely on restrictive assumptions—such as static topologies, zero communication delays, or specific node-sampling probabilities—that fail to capture real-world hardware complexities like dropped links or physical latencies.
This paper introduces AGRAF SGD, a unified theoretical framework designed to bridge this gap. By relaxing strict communication and computation assumptions, the authors provide improved convergence rates for a wide family of distributed learning algorithms and introduce a novel "Loss Networks" approach to handle physical communication delays gracefully.
Methodology
The AGRAF SGD framework tackles these challenges through several key innovations:
- Unified Formulation: Asynchronous decentralized updates are modeled as a single sequence: $x^{k+1} = W_k x^k - \gamma g^k$. This decouples the communication matrix ($W_k$) from the computation updates ($g^k$), requiring only an "ergodic mixing" assumption. This allows for arbitrary computation orders and time-varying graphs.
- Virtual Iterates: To handle arbitrary computation delays without strict upper bounds, the authors adapt the "virtual sequence" proof technique to the decentralized setting.
- Loss Networks: Borrowing from telecommunications, the authors model communication delays using "Loss Networks." Nodes are tagged as "busy" during exchanges, and exponential random waiting times are used to schedule communications, preventing deadlocks and modeling physical latencies.
Key Insights
AGRAF SGD serves as a "master equation" that naturally covers Minibatch SGD, Asynchronous SGD, Decentralized SGD, FedAvg, and FedBuff. A significant finding is the framework's delay independence: for convex-Lipschitz or smooth-convex functions, convergence rates do not depend on the maximum computation delay. This demonstrates high robustness to "stragglers," as a single slow node does not compromise the system's theoretical efficiency.
Results and Comparison
The framework achieves significantly improved convergence rates compared to prior work. For Asynchronous Decentralized SGD, AGRAF improves theoretical rates by up to a factor of $n^2$ (where $n$ is the number of nodes) under weaker assumptions. Furthermore, it recovers state-of-the-art rates for specific sub-algorithms, such as the optimal $O(\sqrt{B^2D^2n/K})$ rate for standard Asynchronous SGD.
As shown in the table above, the AGRAF framework (Theorems 2.1, 4.1, 4.2) allows for arbitrary computation assumptions and provides competitive or superior iteration counts before reaching the $\sqrt{\sigma^2/K}$ regime compared to previous works like Lian et al. [2017b] and Bornstein et al. [2023].
Limitations and Future Work
Despite its strengths, some challenges remain. In non-convex smooth settings without specific sampling assumptions, the convergence rate still depends on the maximum delay ($\sqrt{n\tau_{\max}}$). While varying stepsizes might mitigate this, implementing them in a decentralized system without a global iteration count is an open problem. Additionally, as a purely theoretical paper, empirical validation of the Loss Network scheduling scheme's real-world performance remains a necessary next step.
Summary updated