Exploiting Label Skewness for Spiking Neural Networks in Federated Learning

Di Yu, Xin Du, Linshan Jiang, Huijing Zhang, Shuiguang Deng

Introduction

Spiking Neural Networks (SNNs) represent a promising frontier for energy-efficient edge AI, mimicking biological neural processes to provide high performance on battery-constrained devices. However, deploying SNNs within a Federated Learning (FL) framework—where decentralized clients train models locally to preserve privacy—presents significant challenges. Specifically, real-world data is rarely Identically and Independently Distributed (IID). This label skewness often leads to "gradient drift," where local models diverge from the global objective. For SNNs, which rely on temporal surrogate gradients, these errors accumulate and explode, causing models to forget minority or missing classes entirely.

To address these issues, this paper introduces FedLEC (Federated Label-skewed Calibration), a framework designed to stabilize SNN training under extreme label imbalance, achieving an average accuracy boost of 11.59% over current state-of-the-art methods.

Methodology

FedLEC tackles the instability of SNNs in heterogeneous environments through two primary mechanisms:

  1. Intra-client Label Calibration: To prevent majority labels from dominating local training, FedLEC adjusts the cross-entropy loss function based on label occurrence probability. By calibrating output thresholds (logits), the model is forced to seek larger margins for underrepresented minority labels, improving discriminative power.
  2. Inter-client Knowledge Distillation: When a client lacks specific data categories, it typically becomes "blind" to them. FedLEC utilizes the global model from the previous round as a "teacher." Through Kullback–Leibler (KL) divergence, the local model aligns its predictions for missing labels with the global model’s broader perspective, preventing catastrophic forgetting.
  3. Aggregation Through Time (ATT): The authors formalize a temporal aggregation process to ensure the global model remains stable across the multi-timestep dynamics inherent to spiking neurons.
The FedLEC framework architecture, illustrating the interaction between the global server and local clients through label calibration and distillation.

Experimental Setup

The researchers evaluated FedLEC across five diverse datasets to demonstrate its versatility:

  • Static Image Datasets: CIFAR-10, CIFAR-100, and SVHN (Street View House Numbers).
  • Neuromorphic (Event-based) Datasets: CIFAR10-DVS and N-MNIST, which consist of spike data captured by bio-inspired cameras.
  • Skew Settings: The framework was tested under both quantity-based skew (fixed number of classes per client) and distribution-based skew (Dirichlet distribution).

Key Results and Insights

FedLEC consistently outperformed eight state-of-the-art FL algorithms, including FedAvg, FedProx, and Scaffold. On CIFAR-10, FedLEC improved accuracy by up to 13.56% over the next best baseline, and by 14.70% on the SVHN dataset.

One of the most compelling findings is that the framework is architecture-agnostic, performing effectively across S-VGG9, MS-ResNet, and Meta-Spikeformer. Visual analysis via t-SNE confirms these metrics: while standard methods like FedAvg result in a "jumbled mess" of features for minority labels, FedLEC produces clearly defined, separable clusters.

t-SNE visualizations comparing FedAvg and FedLEC, showing that FedLEC maintains clearly separable feature clusters even for minority and missing labels.

Discussion and Future Work

While FedLEC provides substantial gains, the authors noted that performance improvements were more modest (~4%) on neuromorphic datasets like CIFAR10-DVS due to the sparse and chaotic nature of event-based data. Furthermore, the introduction of Differential Privacy (Laplacian noise) to enhance security significantly degraded accuracy, suggesting that future research should focus on developing "SNN-friendly" privacy techniques. Additionally, the computational overhead of knowledge distillation remains a consideration for the most resource-constrained edge devices.

Summary updated

BibTeX
@inproceedings{yu2025exploiting,
  author = {Di Yu and Xin Du and Linshan Jiang and Huijing Zhang and Shuiguang Deng},
  title = {{Exploiting Label Skewness for Spiking Neural Networks in Federated Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/767},
}
Figure