Abstract
Distributed machine learning often faces a significant communication bottleneck as model sizes grow. We present SAPS-PSGD (Sparsification and Adaptive Peer Selection), a decentralized learning algorithm that addresses this challenge by combining aggressive random model sparsification with bandwidth-aware peer selection. By exchanging only ~1% of model parameters with a single high-bandwidth peer per round, SAPS-PSGD achieves up to a 7x reduction in communication traffic and substantial training speedups in geo-distributed settings without compromising convergence rates or final accuracy.
Introduction
In distributed machine learning, the "communication bottleneck" is a primary constraint on performance. As models scale to billions of parameters, the time required to transmit data across the network frequently exceeds the time spent on computation. Existing solutions often fall short: centralized architectures like Parameter Servers suffer from traffic congestion at the central node, while standard decentralized methods like All-Reduce require data transfers proportional to the full model size. Furthermore, most decentralized algorithms assume a static, uniform network topology, ignoring the inherent "bandwidth diversity" of real-world geo-distributed systems.
To overcome these limitations, we propose SAPS-PSGD, an algorithm that is decentralized, extremely sparse, and capable of prioritizing high-bandwidth network links.
Methodology
The SAPS-PSGD algorithm is built upon three core pillars designed to optimize communication efficiency:
- Decentralized Architecture with a Tracker: Rather than a central Parameter Server, SAPS-PSGD utilizes a lightweight coordinator, similar to a BitTorrent tracker. This coordinator does not store the model; instead, it manages metadata regarding worker availability and mutual connection speeds.
- Random Sparsification: To minimize data transfer, workers generate a random mask using a shared seed to zero out approximately 99% of model parameters. Only the remaining 1% is exchanged. This random approach is computationally more efficient than "Top-K" sparsification, which requires expensive sorting of all gradients.
- Adaptive Peer Selection: The coordinator uses a bandwidth matrix of all worker-to-worker connections to solve a maximum matching problem (via the Blossom algorithm) each round. This pairs workers with their highest-bandwidth neighbors. To ensure global consensus, the algorithm periodically forces connections between different sub-groups to maintain a connected global gossip graph over time.
Experimental Setup
The effectiveness of SAPS-PSGD was evaluated using three standard image classification benchmarks: MNIST (standard CNN), CIFAR-10 (larger CNN), and ResNet-20 (deep architecture with skip connections). Experiments were conducted on a cluster of 32 workers, with network conditions emulated to reflect real-world geo-distributed bandwidth diversity, ranging from 0.1 MB/s to 300 MB/s.
Key Results and Insights
SAPS-PSGD demonstrates significant advantages in resource-constrained and geo-distributed environments.
Theoretical and Practical Efficiency
Theoretical analysis confirms that despite 99% sparsification and shifting topologies, SAPS-PSGD converges at the same rate ($O(1/\sqrt{nT})$) as standard Parallel SGD. Practically, the algorithm avoids "stragglers" by explicitly modeling and utilizing high-bandwidth links.
Performance Metrics
- Traffic Reduction: On the MNIST benchmark, SAPS-PSGD required only 10MB of traffic per worker to reach 96.8% accuracy, compared to 70MB for FedAvg and 1800MB for standard decentralized SGD (D-PSGD).
- Training Speedup: In geo-distributed simulations, SAPS-PSGD reached target accuracy on MNIST in 6 seconds. In contrast, FedAvg took 94 seconds, and D-PSGD exceeded 17,000 seconds due to network congestion.
- Accuracy Preservation: Validation accuracy remained competitive despite extreme compression. For ResNet-20, SAPS-PSGD achieved 81.42% accuracy, outperforming both FedAvg (75.2%) and S-FedAvg (77.78%).
Conclusion
SAPS-PSGD offers a robust solution for communication-efficient decentralized learning. While the current implementation relies on a lightweight coordinator and assumes an accurate bandwidth matrix, it significantly reduces the communication overhead of large-scale training. Future work will focus on fully decentralizing the peer selection process and exploring the limits of sparsification for massive Transformer-based models.
Summary updated