Introduction
Spiking Neural Networks (SNNs) represent a promising frontier for energy-efficient edge computing due to their brain-inspired, spike-based information processing. However, deploying SNNs in real-world Federated Learning (FL) environments introduces a significant challenge: label skewness. When local devices possess highly imbalanced data distributions, SNNs suffer from severe performance degradation. This paper introduces FedLEC (Federated SNN learning with Label skew Calibration), a novel framework designed to mitigate these biases through label calibration and knowledge distillation.
The Challenge of Label Skew in SNNs
In decentralized learning, data is often non-identically and independently distributed (non-IID) across clients. For SNNs, this "label skew" leads to "Bias Aggravation." Unlike standard Artificial Neural Networks (ANNs), SNNs utilize surrogate gradients that accumulate errors over multiple temporal steps. When a local model is trained on a subset of labels, missing classes cause significant gradient drifts, making the local model a specialist that fails to generalize to the global distribution. Consequently, standard aggregation methods like FedAvg result in a suboptimal global model.
The FedLEC Framework
FedLEC addresses these issues by implementing a multi-faceted approach to stabilize local training and preserve global knowledge.
The framework consists of four primary components:
- Intra-client Label Calibration: To counteract local class imbalances, FedLEC adjusts the model's logits based on label frequency. By modifying the loss function to penalize errors on minority classes more heavily, the model is forced to learn a more balanced representation.
- Inter-client Knowledge Distillation: To prevent "catastrophic forgetting" of missing classes, the global model from the previous round acts as a "teacher." Local models (students) are regularized to ensure their predictions for unseen classes do not deviate significantly from the teacher's established knowledge.
- Aggregation Through Time (ATT): SNNs operate over temporal sequences. FedLEC introduces a specialized aggregation logic that preserves these temporal dynamics during the server-side model merge.
- Privacy Protection: To ensure data security, FedLEC incorporates local differential privacy by adding zero-mean Laplacian noise to model parameters before transmission, mitigating the risk of gradient-based data leakage.
Experimental Evaluation
The effectiveness of FedLEC was evaluated across five datasets:
- Static Benchmarks: CIFAR-10, CIFAR-100, and SVHN.
- Neuromorphic Benchmarks: CIFAR10-DVS and N-MNIST, which provide native spike-based data.
The framework was tested against eight state-of-the-art FL baselines, including FedAvg, FedProx, Scaffold, and FedNova, under various skew conditions.
Results and Discussion
FedLEC consistently outperformed existing baselines, achieving an average accuracy improvement of 11.59% across all tested scenarios.
Key findings include:
- Robustness to Extreme Skew: In scenarios where clients only observed 2 out of 10 classes, FedLEC maintained high performance, outperforming the next-best baseline by over 15% on the SVHN dataset.
- Architecture Versatility: The improvements were consistent across various SNN architectures, including Spiking VGG, ResNet, and Vision Transformers (ViT).
- Ablation Insights: Knowledge distillation was identified as the primary driver of performance gains, suggesting that addressing missing information is more critical for SNN stability than simply balancing existing label counts.
Conclusion and Future Work
FedLEC effectively bridges the performance gap for SNNs in federated environments plagued by label skew. While the framework shows substantial gains, challenges remain in optimizing performance for sparse neuromorphic data and balancing the privacy-accuracy trade-off. Future research will focus on reducing the computational overhead of local distillation to better suit resource-constrained edge devices.
Summary updated