Abstract
Decentralized training enables learning with distributed datasets generated at different locations without relying on a central server. In realistic scenarios, the data distribution across these sparsely connected learning agents can be significantly heterogeneous, leading to local model over-fitting and poor global model generalization. Another challenge is the high communication cost of training models in such a peer-to-peer fashion without any central coordination. In this paper, we jointly tackle these two-fold practical challenges by proposing SADDLe, a set of sharpness-aware de-centralized deep learning algorithms. SADDLe leverages Sharpness-Aware Minimization (SAM) to seek a flatter loss landscape during training, resulting in better model generalization as well as enhanced robustness to communication compression. We present two versions of our approach and demonstrate its effectiveness through extensive experiments on various Computer Vision datasets (CIFAR-10, CIFAR-100, Imagenette, and ImageNet), model architectures, and graph topologies. Our results show that SADDLe leads to 1-20% improvement in test accuracy as compared to existing techniques while incurring a minimal accuracy drop (~ 1%) in the presence of up to 4× compression.
The Challenge of Decentralized Learning
Decentralized deep learning allows multiple agents, such as mobile devices or edge sensors, to collaboratively train a model by communicating only with their immediate neighbors. This peer-to-peer approach avoids the single point of failure and privacy concerns associated with central servers. However, it faces two primary hurdles:
- Data Heterogeneity (Non-IID Data): In real-world deployments, data is rarely distributed identically across agents. This heterogeneity causes local models to overfit to their specific data subsets, leading to a global model that generalizes poorly to unseen data.
- Communication Bottlenecks: Peer-to-peer communication is often bandwidth-constrained. While techniques like quantization or sparsification reduce communication costs, they introduce noise that can severely degrade performance, particularly when data is heterogeneous.
SADDLe: Seeking Flatter Minima
The core innovation of SADDLe is the integration of Sharpness-Aware Minimization (SAM) into decentralized training. Traditional optimizers seek the absolute lowest point of a loss function, which often results in "sharp" minima that are sensitive to parameter perturbations. In contrast, SAM identifies "flat" minima—regions where the loss remains low even if parameters are slightly shifted.
The paper introduces two algorithmic variants:
- Q-SADDLe: Integrates SAM with Quasi-Global Momentum (QGM), utilizing a momentum buffer to align local updates with the global training trajectory.
- N-SADDLe: Combines SAM with Neighborhood Gradient Mean (NGM), where agents share gradient information to better approximate the global data distribution.
The authors theoretically prove that SADDLe maintains a convergence rate of $O(1/\sqrt{nT})$, matching the theoretical benchmark for decentralized stochastic gradient descent.
Why Flatness Matters for Robustness
A key insight of this work is that a flatter loss landscape is inherently more resilient to the noise introduced by communication compression. In a flat region, the "error" from quantization or sparsification does not significantly increase the loss, allowing the model to remain in a high-performance state. Furthermore, SAM naturally leads to smaller gradient norms, which translates to smaller model updates and, consequently, lower compression errors.
Experimental Evaluation
The researchers evaluated SADDLe across several standard Computer Vision benchmarks, including CIFAR-10, CIFAR-100, Imagenette, and ImageNet. To simulate realistic conditions, they used a Dirichlet distribution to create extreme data heterogeneity across agents.
Key Results: Accuracy and Robustness
SADDLe consistently outperformed state-of-the-art decentralized algorithms across all tested scenarios:
- Generalization Gains: SADDLe achieved a 1-20% improvement in test accuracy compared to QGM and NGM baselines.
- Resilience to Compression: When using 8-bit stochastic quantization (representing 4× compression), SADDLe experienced a negligible accuracy drop of approximately 1%, whereas baseline methods suffered drops exceeding 4%.
Quantitative analysis using Hessian eigenvalues confirmed that SADDLe successfully finds flatter minima. The largest eigenvalue ($\lambda_{max}$), a measure of sharpness, was significantly lower for SADDLe models compared to baselines throughout the training process.
Conclusion and Future Work
SADDLe addresses the dual challenges of data heterogeneity and communication efficiency in decentralized learning by prioritizing loss landscape flatness. While SAM introduces additional computational overhead—requiring two forward/backward passes per update—the authors proposed a "compute-efficient" variant that mitigates this cost while still outperforming standard methods. Future research may explore SADDLe's performance in dynamic graph topologies or its application to decentralized Natural Language Processing.
Summary updated