Abstract
Distributed training is essential for scaling deep learning, yet standard synchronization methods often struggle to find high-quality solutions that generalize well. We present GRAWA (Gradient-based Weighted Averaging), a novel family of algorithms that leverages gradient norms as a proxy for local landscape flatness. By weighting worker contributions inversely to their gradient norms, GRAWA prioritizes models in flatter regions, leading to faster convergence and superior generalization. Empirical results across multiple vision benchmarks demonstrate that GRAWA significantly reduces communication overhead while achieving state-of-the-art accuracy.
Introduction
In data-parallel distributed training, multiple workers process different data shards and periodically synchronize. Traditional methods like Elastic Averaging SGD (EASGD) pull workers toward a simple arithmetic mean. However, this approach ignores the geometry of the loss landscape. Workers may become trapped in "sharp" local minima, which generalize poorly. Furthermore, simple averaging can suffer from the "curse of symmetry," where the center model lands on a high-loss region between two sharp minima.
Methodology
GRAWA addresses these issues by using the gradient norm as a computationally efficient proxy for landscape flatness. A small gradient norm suggests a worker is in a flatter, more mature region. The authors propose two main variants:
- MGRAWA (Model-level): Computes a single weight per worker based on the entire model's gradient norm. Workers in flatter regions get more "say" in the consensus center model.
- LGRAWA (Layer-level): Computes weights independently for each layer, allowing the center model to be a composite of the most stable layers across the distributed system. This recognizes that different layers learn at different speeds.
To maintain stability, a Proximity Search Mechanism applies a gentle "elastic" force during local training steps, nudging workers toward the last known good center model.
Experimental Results
GRAWA was evaluated on CIFAR-10, CIFAR-100, and ImageNet using various architectures including ResNet, VGG, and PyramidNet.
- Superior Accuracy: LGRAWA consistently outperformed baselines. For PyramidNet on CIFAR-10, it achieved a 3.79% test error compared to 4.06% for EASGD.
- Communication Efficiency: GRAWA drastically reduces communication time. In the PyramidNet task, MGRAWA reduced communication overhead by over 50% compared to EASGD (1,602s vs 3,673s).
- Scalability: Performance remained stable or improved as the number of workers increased from 4 to 12.
Conclusion
GRAWA offers a robust solution for distributed training by favoring workers in flatter regions of the loss landscape. By breaking the symmetry of uniform averaging and utilizing layer-wise maturity, it achieves better generalization with significantly less communication. Future work includes extending these principles to Natural Language Processing and Model Parallelism settings.
Summary updated