SalientGrads: Sparse Models for Communication Efficient and Data Aware Distributed Federated Training

Riyasat Ohib, Bishal Thapaliya, Pratyush Gaggenapalli, Jingyu Liu, Vince D. Calhoun, Sergey M. PlisarXiv 2023 · DOI

Abstract

Federated Learning (FL) enables collaborative model training across decentralized data sources while maintaining privacy. However, the high communication overhead of transmitting large model weights remains a significant bottleneck. We present SalientGrads, a framework that identifies a "data-aware" sparse subnetwork before training begins. By calculating parameter saliency scores across clients and communicating only sparse gradients, SalientGrads achieves up to a 2.32x speedup in communication time with 90% sparsity, maintaining high accuracy across various ResNet architectures.

Introduction

The primary challenge in Federated Learning is the communication bottleneck between the central server and decentralized clients. Deep learning models are increasingly massive, making the transmission of full weight vectors over limited bandwidth slow and expensive. Existing sparsity-based methods often require periodic full-model synchronization to update pruning masks or rely on random pruning that ignores the underlying data distribution. SalientGrads addresses these issues by establishing a static, data-driven sparse mask at initialization, ensuring that only sparse updates are ever exchanged throughout the training process.

Methodology

The SalientGrads workflow consists of a three-step initialization process followed by sparse training:

  1. Saliency Discovery: The server sends a common initialization ($\theta_0$) to all clients. Each client uses a small amount of local data to calculate saliency scores for every parameter using a gradient-based measure: $s(\theta_j) = |\theta_j \odot g_j|$.
  2. Global Masking: Clients return these scores to the server, which averages them to identify the top-k% most important connections, forming a Global Mask ($m_g$).
  3. Sparse-Only Training: This mask is distributed back to clients. For the remainder of the training, clients only calculate and transmit sparse gradients for the masked parameters using Compressed Sparse Row (CSR) encoding.
The SalientGrads workflow: (a) Saliency discovery and masking before training, and (b) Sparse gradient exchange during training.

By using real data to calculate saliency before training, the model avoids the performance degradation typical of random pruning, leveraging the "Lottery Ticket Hypothesis"—the concept that dense networks contain smaller subnetworks capable of reaching equivalent accuracy.

Experimental Results

The framework was evaluated on the CIFAR-10 dataset using the ResNet family (ResNet20 to ResNet110) within the COINSTAC framework. Comparisons were made against the standard FedAvg baseline.

Communication Efficiency

SalientGrads demonstrated substantial reductions in communication time, with benefits scaling alongside model complexity. As shown in the performance data, the speedup factor increases with model depth, reaching 2.32x for ResNet110.

Communication time comparison and speedup factors for various ResNet architectures.

Model Performance

Crucially, this efficiency did not come at the cost of performance. Even at 90% sparsity, the models maintained high accuracy. For instance, ResNet110 achieved 93.25% accuracy, nearly identical to dense training results. This confirms that the "one-and-done" masking approach effectively captures the most critical parameters for the task at hand.

Conclusion

SalientGrads provides a robust solution for communication-efficient FL by leveraging data-aware sparsity from the outset. By eliminating the need for dense weight synchronization after initialization, it significantly reduces the network burden. Future work will explore the framework's performance under non-IID data distributions and its scalability to thousands of edge devices.

Reference: Ohib, R., Thapaliya, B., et al. (2023). SalientGrads: Sparse Models for Communication Efficient and Data Aware Distributed Federated Training. Presented at the ICLR Sparsity in Neural Networks (SNN) workshop.

Summary updated

BibTeX
@misc{ohib2023salientgrads,
  author = {Riyasat Ohib and Bishal Thapaliya and Pratyush Gaggenapalli and Jingyu Liu and Vince D. Calhoun and Sergey M. Plis},
  title = {{SalientGrads: Sparse Models for Communication Efficient and Data Aware Distributed Federated Training}},
  year = {2023},
  eprint = {2304.07488},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.07488},
}
Figure