[Paper Review] Moshpit SGD: Communication-Efficient Decentralized Training on Heterogeneous Unreliable Devices
This paper proposes Moshpit SGD, a communication-efficient decentralized training framework for heterogeneous and unreliable devices. It introduces Moshpit All-Reduce, a dynamic, decentralized grouping protocol that enables exponential convergence to global average gradients, achieving 1.3x speedup on ResNet-50/ImageNet and 1.5x on ALBERT-large using preemptible cloud VMs compared to gossip-based methods.
Training deep neural networks on large datasets can often be accelerated by using multiple compute nodes. This approach, known as distributed training, can utilize hundreds of computers via specialized message-passing protocols such as Ring All-Reduce. However, running these protocols at scale requires reliable high-speed networking that is only available in dedicated clusters. In contrast, many real-world applications, such as federated learning and cloud-based distributed training, operate on unreliable devices with unstable network bandwidth. As a result, these applications are restricted to using parameter servers or gossip-based averaging protocols. In this work, we lift that restriction by proposing Moshpit All-Reduce - an iterative averaging protocol that exponentially converges to the global average. We demonstrate the efficiency of our protocol for distributed optimization with strong theoretical guarantees. The experiments show 1.3x speedup for ResNet-50 training on ImageNet compared to competitive gossip-based strategies and 1.5x speedup when training ALBERT-large from scratch using preemptible compute nodes.
Motivation & Objective
- To address the limitations of centralized all-reduce protocols in unreliable, heterogeneous, and communication-constrained environments such as federated learning and cloud-based distributed training.
- To overcome the scalability and fault-tolerance limitations of traditional all-reduce by enabling decentralized, dynamic gradient averaging without relying on fixed communication graphs.
- To design a protocol that maintains communication efficiency and exponential convergence rates even under variable network latency, bandwidth, and node failures.
- To demonstrate that decentralized training with Moshpit All-Reduce can match or exceed the performance of centralized and gossip-based approaches in real-world, unreliable hardware settings.
Proposed method
- Moshpit All-Reduce dynamically forms peer groups using a decentralized matchmaking algorithm, enabling efficient all-reduce-style averaging without a central coordinator.
- The protocol uses iterative averaging within dynamically formed groups, ensuring exponential convergence to the global average regardless of network topology or size.
- It leverages a randomized grouping strategy that adapts to node availability and network conditions, minimizing communication overhead while maintaining convergence guarantees.
- The method is integrated into a full training pipeline via Moshpit SGD, which maintains equivalence to centralized SGD in terms of iteration complexity under realistic assumptions.
- The protocol is designed to be resilient to node failures and variable network latency, making it suitable for preemptible cloud instances and federated learning settings.
- Theoretical analysis establishes exponential convergence rates independent of network structure, with formal guarantees on convergence to the global optimum.
Experimental results
Research questions
- RQ1Can a decentralized averaging protocol achieve exponential convergence to the global average gradient without relying on a fixed communication graph or centralized coordination?
- RQ2How does the performance of Moshpit All-Reduce compare to gossip-based and centralized all-reduce protocols under variable network latency and node failures?
- RQ3To what extent can Moshpit SGD improve training speed on heterogeneous and unreliable hardware, such as preemptible cloud VMs or federated devices?
- RQ4Does Moshpit SGD maintain convergence guarantees equivalent to centralized SGD in practical, non-ideal training environments?
Key findings
- Moshpit All-Reduce achieves exponential convergence to the global average gradient, with convergence rates independent of network topology and size.
- On ResNet-50 training on ImageNet, Moshpit SGD achieves 1.3x speedup compared to competitive gossip-based decentralized training strategies.
- When training ALBERT-large on preemptible cloud VMs, Moshpit SGD achieves 1.5x speedup over baseline gossip-based methods.
- In averaging precision experiments, Moshpit All-Reduce required only 2.0 iterations to reach 1e-9 error on 1024 workers with no failures, outperforming all other methods.
- The protocol maintains robust performance even under high failure rates (up to 1%), with convergence times increasing only moderately compared to gossip and all-reduce baselines.
- On a single 8-GPU server, Moshpit SGD was 25% slower than AR-SGD due to TCP-based communication, but this performance gap is acceptable given its resilience and decentralization benefits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.