Decoupling Label Shift and Surrogate Gradient Errors for Robust Federated Spiking Neural Networks

Zouquan Chen, Yifei Yang, Lidong Zheng, Zhiming Fang, Yuchen ZhengNeurIPS 2026

TL;DR

Combining brain-inspired Spiking Neural Networks (SNNs) with Federated Learning promises ultra-low-power, privacy-preserving AI on edge devices—until real-world, skewed data causes the training process to collapse. This paper uncovers a hidden feedback loop where uneven client data distorts internal neuron voltages and ruins gradient approximations, then fixes it using adaptive neurons and a two-pronged knowledge distillation strategy. If you want to see how biological inspiration meets distributed systems engineering without burning through battery life, read on.

What Problem Does This Paper Address?

Imagine trying to train an AI across thousands of smartwatches without ever uploading private user data to the cloud (Federated Learning), while keeping energy consumption tiny by using neurons that communicate via sparse, discrete binary pulses like the human brain (Spiking Neural Networks, or SNNs). Together, they form Federated SNNs (FedSNNs).

There is a catch, though. Because spike firing is an all-or-nothing step function, its derivative is zero almost everywhere and infinite at the threshold. To use backpropagation, SNNs rely on surrogate gradients—smooth mathematical stand-ins that approximate gradients near the firing threshold.

Meanwhile, in the real world, edge devices have label shift (Non-IID data): Alice’s watch mostly sees "running," while Bob’s mostly sees "sleeping." In standard neural networks, this causes client models to drift apart. In FedSNNs, the authors discover something much worse: a coupled failure mode. Skewed local data warps the distribution of neuronal membrane potentials (internal voltages), pushing neurons away from the sweet spot where surrogate gradients actually work. Label shift amplifies gradient approximation errors, and those bad gradients further destabilize federated learning.

Differences in membrane potential distributions between IID and Non-IID data, showing measurable shifts even before aggregation.

Methods

To break this vicious cycle, the authors propose ST-SAT (Spatio-Temporal Spiking Adaptive Thresholds), tackling the problem at both the microscopic (neuron) and macroscopic (client-server) levels:

Figure 2: Overall architecture of ST-SAT. The framework consists of the ST-PLIF neuron for stabilizing spiking dynamics under label shift and the Dual-Scale KD mechanism for aligning client- server knowledge at both logit and feature levels.
  1. The ST-PLIF Neuron (Micro-level): Standard spiking neurons use fixed firing thresholds. Building on prior dynamic threshold ideas, the authors design the Spatio-Temporal Parametric Leaky Integrate-and-Fire neuron. It uses a Normalization-based Attention Module (NAM) to spatially modulate membrane potentials across channels, pairs it with a learnable time-varying firing threshold, and adds channel-wise learnable voltage decay factors. Crucially, they add a regularization loss so these flexible parameters don't fluctuate wildly on biased client data, keeping neurons firmly inside gradient-sensitive regions.
  2. Dual-Scale Knowledge Distillation (Macro-level): When the global server sends its model down to clients, it acts as a teacher in two ways:
  3. Logit-level Adaptive Distillation: Gives full teacher guidance on classes missing from a client's local dataset, and gentler guidance on classes the client already has labels for.
  4. Feature-level Alignment: Because discrete spikes can hide internal discrepancies, ST-SAT aligns the time-averaged firing rates of neurons in the penultimate layer between the client and global models.

Datasets

The authors evaluate ST-SAT on three standard benchmarks partitioned across clients using a Dirichlet distribution (controlled by $\alpha \in \{0.1, 0.5\}$, where $\alpha = 0.1$ represents severe label skew):

  • CIFAR-10 and CIFAR-100: Standard static image classification datasets.
  • CIFAR10-DVS: A neuromorphic dataset consisting of asynchronous event-driven data streams (captured via a Dynamic Vision Sensor), testing SNNs in their native temporal habitat.

No new datasets were introduced.

Key Insights and Ideas

  • Errors aren't just additive—they compound: Through theoretical convergence analysis, the authors show FedSNN optimization hits a non-vanishing error floor ($\mathcal{O}(\delta^2)$) driven by surrogate gradient bias. Crucially, Non-IID label shift directly inflates $\delta$ by pushing membrane voltages out of alignment with the surrogate derivative's support.
  • Preventing catastrophic class forgetting: Under severe skew ($\alpha=0.1$) on CIFAR-10, the strongest prior FedSNN baseline (FedLEC) nearly completely forgets certain classes (near 0% accuracy on birds, deer, and trucks). ST-SAT revives them to 21.7%, 58.0%, and 16.2%, respectively.
  • Better accuracy doesn't require more spikes: A fair question with adaptive thresholds is whether the network just fires more spikes—burning more energy—to get better accuracy. By testing an explicit computation budget penalty, the authors prove ST-SAT still beats baselines handily even when firing fewer spikes.

Key Results

Using an S-VGG9 (VGG-S) backbone under severe label skew ($\alpha = 0.1$):

  • Global Accuracy: ST-SAT achieves 55.61% on CIFAR-10, 42.02% on CIFAR-100, and 41.62% on CIFAR10-DVS—outperforming the closest FedSNN competitor (FedLEC) by 5.51, 7.89, and 1.92 percentage points, respectively. (Under milder skew at $\alpha = 0.5$, SCAFFOLD slightly edges out ST-SAT on CIFAR-10 and CIFAR10-DVS by 1.57 and 0.60 points).
  • Local Client Accuracy: ST-SAT wins across all six dataset/skew combinations, beating FedLEC by 10.27 percentage points on CIFAR-100 ($\alpha = 0.1$).
  • Energy/Compute Efficiency: Measured in Synaptic Operations (SOPs), a budget-constrained ST-SAT hits 52.25% accuracy on CIFAR-10 ($\alpha = 0.1$) compared to FedAvg's 44.27%, while using 4.52% fewer SOPs (37.49M vs. 39.26M per sample).
  • Ablations: On CIFAR-10 ($\alpha=0.1$), adding ST-PLIF alone lifts baseline accuracy from 47.98% to 50.73%; Dual-Scale KD alone reaches 53.60%; combining them hits 56.83%, confirming they work synergistically.

Limitations and Future Work

Not discussed in the paper. (While the authors note in their theoretical section that surrogate gradient bias creates a non-vanishing optimization error floor $\mathcal{O}(\delta^2)$ and observe in experiments that SCAFFOLD slightly outperforms ST-SAT in two milder skew settings, an explicit "Limitations and Future Work" discussion is not included in the main text.)

Summary updated

Abstract

Federated Spiking Neural Networks (FedSNNs) provide an energy-efficient and privacy-preserving learning paradigm for edge intelligence. However, their robustness under Non-IID data is limited by a coupled failure mode: label shift distorts membrane potential distributions, drives neurons away from gradient-sensitive regions, and further amplifies surrogate gradient errors, which destabilizes federated optimization. To address this problem, this paper proposes Spatio-Temporal Spiking Adaptive Thresholds (ST-SAT), a framework that mitigates the coupling between label shift and surrogate gradient errors through coordinated neuron-level adaptation and client--server knowledge alignment. At the neuron level, ST-SAT introduces the Spatio-Temporal Parametric Leaky Integrate-and-Fire (ST-PLIF) neuron, which adaptively calibrates firing thresholds, membrane potentials, and decay dynamics to keep local neuronal responses within effective gradient regions. At the collaborative interaction level, ST-SAT adopts a Dual-Scale Knowledge Distillation strategy that combines adaptive logit-level distillation with feature-level alignment of neuronal statistics, thereby reducing class distribution bias and improving knowledge consistency across heterogeneous clients. Extensive experiments on three benchmark datasets show that ST-SAT consistently improves both global model performance and client-local performance, with particularly strong gains under severe label shift. These results validate the effectiveness of the proposed framework for robust federated SNN learning. The code is available at https://github.com/ZouquanChen/ST-SAT_code.
BibTeX
@inproceedings{chen2026decoupling,
  author = {Zouquan Chen and Yifei Yang and Lidong Zheng and Zhiming Fang and Yuchen Zheng},
  title = {{Decoupling Label Shift and Surrogate Gradient Errors for Robust Federated Spiking Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DuuJjNysv1},
}
Figure