Federated Dynamic Sparse Training: Computing Less, Communicating Less, Yet Learning Better

Sameer Bibikar, Haris Vikalo, Zhangyang Wang, Xiaohan Chen

Abstract

Federated Learning (FL) enables collaborative model training on decentralized data but is hindered by significant communication and computation bottlenecks. We present Federated Dynamic Sparse Training (FedDST), a framework that maintains a fixed sparsity budget throughout the entire training process. By dynamically evolving sparse masks locally and aggregating them through a specialized "mask voting" mechanism, FedDST simultaneously reduces bandwidth and compute requirements. Our evaluations on non-IID datasets demonstrate that FedDST not only slashes costs but often outperforms traditional dense training, achieving up to 10% higher accuracy under identical communication constraints.

Introduction

Federated Learning (FL) has emerged as a critical paradigm for training machine learning models on private, decentralized data. However, deploying FL on edge devices like smartphones or IoT sensors faces two primary challenges: the high communication cost of transmitting large model updates over constrained networks and the limited computational resources of local hardware.

Existing solutions often rely on pruning, which typically requires training a full dense model initially or periodic dense updates, leading to bandwidth spikes. Furthermore, these methods frequently struggle with non-IID (Independent and Identically Distributed) data, where data heterogeneity across clients can destabilize training. FedDST addresses these issues by maintaining a sparse model from start to finish, avoiding "dense spikes" in communication.

Methodology

FedDST integrates Dynamic Sparse Training (DST) into the federated pipeline. Unlike traditional pruning, FedDST operates under a strict sparsity budget (e.g., 80-90% sparsity) from initialization to convergence.

Local Dynamic Updates

During local training, clients do not merely update weight values. They periodically prune the smallest weights and "grow" new connections where gradients are strongest. This allows the model to explore various subnetwork architectures without increasing the parameter count or computational load.

Sparse Weighted Averaging and Mask Voting

The server aggregates sparse updates by averaging only the weights that were active on the clients. This mechanism effectively treats client mask selections as "votes" for the most important connections, providing a stable signal even in highly heterogeneous data environments. FedDST is designed as a modular wrapper, compatible with standard FL optimizers such as FedAvg and FedProx.

Experimental Setup

The performance of FedDST was evaluated using three standard image classification benchmarks modified to simulate pathologically non-IID conditions:

  • MNIST: Handwritten digits distributed with limited classes per client.
  • CIFAR-10: 10-class object recognition.
  • CIFAR-100: 100-class recognition with a Dirichlet-based "long-tail" distribution across 400 simulated clients.

Results and Analysis

FedDST demonstrates a consistent ability to achieve higher accuracy with significantly lower communication costs compared to dense baselines.

Figure 1: Performance of FedDST across MNIST, CIFAR-10, and CIFAR-100 datasets compared to FedAvg and FedProx baselines. FedDST consistently achieves higher accuracy for a given communication budget.

Efficiency and Accuracy Gains

On non-IID CIFAR-10, FedDST outperformed the dense FedAvgM baseline by 10% when restricted to the same upload data cap. At 80% sparsity, it reduced forward-pass FLOPs from 4.6 MFLOPs to just 0.8 MFLOPs. This "less is more" phenomenon is attributed to a spatial-temporal ensembling effect: different clients explore different subnetworks, and the aggregation of these masks over time acts as a powerful regularizer, similar to Dropout.

Robustness to Hyperparameters

A key advantage of FedDST is its robustness to hyperparameter selection, particularly the mask update rate $\alpha$.

Figure 2: Sensitivity analysis of the mask update rate alpha on CIFAR-10. FedDST maintains superior performance over dense baselines across different alpha values.

As shown in Figure 2, the framework remains effective across varying update rates, making it suitable for practical, "set-and-forget" deployments where extensive tuning is not feasible.

Conclusion

FedDST provides a robust solution for efficient Federated Learning by maintaining sparsity throughout the training lifecycle. While currently focused on unstructured sparsity, which offers theoretical and communication benefits, future work will explore structured sparsity to better leverage commodity hardware accelerators. Further research is also needed to validate these gains on actual mobile hardware platforms.

Summary updated

BibTeX
@inproceedings{bibikar2022federated,
  author = {Sameer Bibikar and Haris Vikalo and Zhangyang Wang and Xiaohan Chen},
  title = {{Federated Dynamic Sparse Training: Computing Less, Communicating Less, Yet Learning Better}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i6.20555},
}
Figure