[Paper Review] ZeroFL: Efficient On-Device Training for Federated Learning with Local Sparsity
ZeroFL is a novel federated learning framework that accelerates on-device training by leveraging up to 95% weight and activation sparsity, using adaptive sparsification techniques and CSR-based compression. It achieves up to 2.3% higher accuracy than state-of-the-art baselines at 90% sparsity and reduces uplink communication by 3.0×, while maintaining high model performance in non-IID and resource-constrained settings.
When the available hardware cannot meet the memory and compute requirements to efficiently train high performing machine learning models, a compromise in either the training quality or the model complexity is needed. In Federated Learning (FL), nodes are orders of magnitude more constrained than traditional server-grade hardware and are often battery powered, severely limiting the sophistication of models that can be trained under this paradigm. While most research has focused on designing better aggregation strategies to improve convergence rates and in alleviating the communication costs of FL, fewer efforts have been devoted to accelerating on-device training. Such stage, which repeats hundreds of times (i.e. every round) and can involve thousands of devices, accounts for the majority of the time required to train federated models and, the totality of the energy consumption at the client side. In this work, we present the first study on the unique aspects that arise when introducing sparsity at training time in FL workloads. We then propose ZeroFL, a framework that relies on highly sparse operations to accelerate on-device training. Models trained with ZeroFL and 95% sparsity achieve up to 2.3% higher accuracy compared to competitive baselines obtained from adapting a state-of-the-art sparse training framework to the FL setting.
Motivation & Objective
- To address the critical bottleneck of on-device training in federated learning, where constrained devices limit model complexity and training speed.
- To study the unique challenges of introducing high sparsity during training in FL, including data imbalance and stateless clients.
- To develop a framework that accelerates on-device training without server-side model restrictions or performance degradation.
- To reduce communication costs via sparse model transmission while maintaining or improving model accuracy.
- To demonstrate that sparsity can be effectively leveraged not only for communication efficiency but also for training acceleration in FL.
Proposed method
- ZeroFL introduces local sparsification during on-device training using three sparsification methods: Top-K-Weights, Top-K-Gradients, and Top-K-Activations.
- It employs a mask ratio strategy to control sparsity levels, dynamically adjusting the proportion of non-zero weights during training.
- The framework uses Compressed Sparse Row (CSR) format to compress model weights before transmission to the server, reducing communication overhead.
- Sparsity is applied during both forward and backward passes, enabling faster training through sparse convolution operations.
- The method preserves global model consistency by maintaining fixed zero locations across training rounds, improving convergence stability.
- It integrates state-of-the-art sparsification techniques into the FL pipeline while adapting them to handle non-IID data and device heterogeneity.
Experimental results
Research questions
- RQ1How does inducing high sparsity (up to 95%) during on-device training affect model accuracy and convergence in federated learning?
- RQ2What unique challenges arise when applying sparsity at training time in FL, particularly regarding data imbalance and model consistency?
- RQ3Can sparsity be used not only to reduce communication but also to accelerate on-device training in FL?
- RQ4How do different sparsification strategies (e.g., Top-K-Weights vs. Top-K-Gradients) impact final model performance under high sparsity?
- RQ5What is the optimal mask ratio for balancing communication cost and model accuracy in sparse FL training?
Key findings
- ZeroFL achieves +2.3% higher test accuracy than competitive baselines on non-IID SpeechCommands at 90% sparsity, demonstrating significant performance gains.
- At 95% sparsity, ZeroFL improves accuracy by +1.5% over baselines on the same dataset, showing robustness to extreme sparsity.
- For CIFAR-10, ZeroFL reduces uplink communication by 3.0× at 95% sparsity with a mask ratio of 0.2, while maintaining higher accuracy than baselines.
- The Top-K-Weights sparsification method with a mask ratio of 0.2 yields the best performance across all datasets and sparsity levels.
- Communication savings scale with mask ratio: 7.5× reduction at 0.0, 3.0× at 0.1, and 1.9× at 0.2, with 95% sparsity.
- The study reveals that zero locations in the global model remain stable across most training rounds, enabling consistent sparsity patterns and efficient training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.