Abstract
Federated Learning (FL) enables collaborative model training across decentralized devices while preserving data privacy. However, the high communication and computational costs associated with exchanging large model weights remain a significant barrier for resource-constrained edge devices. This paper presents SpaFL, a novel framework that slashes communication costs by over 99% and reduces computational overhead by 88%. SpaFL achieves this by training and sharing only a small set of "trainable thresholds" for structured pruning. This allows devices to collaboratively learn sparse model architectures without ever exchanging heavy model weights, maintaining high accuracy even on complex datasets like CIFAR-100.
Introduction
While Federated Learning is a powerful tool for privacy-preserving AI, it is often a nightmare for bandwidth and battery life. Standard FL protocols require clients to transmit millions of model parameters back and forth every round. Previous attempts to mitigate this using sparsity often rely on unstructured pruning, which creates "holes" in weight matrices that standard hardware (like GPUs or mobile chips) cannot efficiently skip. Furthermore, many methods require an initial dense training phase, which defeats the purpose for low-power IoT devices.
SpaFL addresses these challenges by focusing on structured sparsity—removing entire neurons or filters—and a communication-light protocol that avoids the exchange of massive weight matrices entirely.
Methodology: Trainable Thresholds
The core innovation of SpaFL is the introduction of the Trainable Threshold ($\tau$). Instead of treating pruning as a static post-processing step, SpaFL integrates it directly into the learning process. For every filter in a convolutional layer or neuron in a linear layer, the model maintains a threshold value.
- The Pruning Rule: A neuron or filter is pruned (set to zero) if the average magnitude of its connected weights is less than its corresponding threshold.
- Threshold-Only Communication: During the FL process, clients and the server only exchange these thresholds. Since there is typically only one threshold per filter or neuron, the number of values sent is often less than 1% of the total model size.
- Global Consensus via XOR: When a client receives updated global thresholds, it uses a specialized XOR-based update rule to adjust its local, private weights. This allows local weights to drift toward a globally useful structure without the weights themselves ever leaving the device.
Experimental Evaluation
The researchers evaluated SpaFL on three standard image classification benchmarks: FMNIST, CIFAR-10, and CIFAR-100. They tested various architectures, including LeNet-5, ResNet-18, and Vision Transformers (ViT).
Key Results
SpaFL demonstrates exceptional efficiency across all metrics:
- Communication Savings: Compared to the standard FedAvg (dense) approach, SpaFL used only 0.17% of the communication bandwidth.
- Computational Efficiency: It required only 12.0% of the FLOPs used by the dense baseline.
- Accuracy Improvements: Despite its small footprint, SpaFL outperformed several sparse baselines. For instance, it improved accuracy by 2.92% over leading competitors while using a fraction of the resources.
The effectiveness of learning these thresholds is clearly visible when comparing the accuracy of the model at initialization versus after training the thresholds.
Discussion and Insights
SpaFL's success stems from treating thresholds as proxies for importance. By sharing thresholds, clients effectively communicate which neurons were most useful for their local data without revealing exact weight values. This structured approach ensures that the resulting models are physically smaller and faster on real-world hardware.
Furthermore, the authors provide a theoretical "generalization bound" suggesting that in federated settings, the right kind of sparsity can actually improve a model's ability to generalize by reducing noise and preventing overfitting. Because weights are never synchronized, each client maintains a degree of personalization while benefiting from a collaborative global structure.
Limitations and Future Work
While SpaFL is highly efficient, it currently relies on a regularizer term ($\alpha$) to control sparsity indirectly, making it difficult to target an exact density level. Future work aims to refine this control and extend the theoretical convergence analysis to multi-epoch local training, which is common in practical deployments.
Reference: Kim, M., Saad, W., Debbah, M., & Hong, C. S. (2024). SpaFL: Communication-Efficient Federated Learning with Sparse Models and Low Computational Overhead. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).
Summary updated